Section 1
//GHGhostMove (com.greenhermit.motion.GHGhostMove)
package com.greenhermit.motion {
import flash.display.*;
import com.greenhermit.object.*;
public class GHGhostMove extends GHMotion {
public var framecount:Number;
public var timedetect;
public var sleep;
public var locktarget:MovieClip;
public function GHGhostMove(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:MovieClip, _arg6:Number, _arg7:GHObject):void{
_arg7.x = (_arg7.px = _arg1);
_arg7.y = (_arg7.py = _arg2);
_arg7.speed = _arg6;
this.locktarget = _arg5;
this.timedetect = _arg4;
this.sleep = _arg3;
this.framecount = 0;
}
override public function process():void{
framecount++;
if ((((framecount < timedetect)) || ((timedetect < 0)))){
if ((framecount % sleep) == 0){
control.ang = ((Math.atan2((this.locktarget.y - control.py), (this.locktarget.x - control.px)) * 180) / Math.PI);
this.speedx = (control.speed * Math.cos(((control.ang * Math.PI) / 180)));
this.speedy = (control.speed * Math.sin(((control.ang * Math.PI) / 180)));
};
} else {
framecount = timedetect;
};
Applyspeed();
}
}
}//package com.greenhermit.motion
Section 2
//GHHomingMove (com.greenhermit.motion.GHHomingMove)
package com.greenhermit.motion {
import flash.display.*;
import com.greenhermit.object.*;
import flash.events.*;
public class GHHomingMove extends GHMotion {
public var stoprotation:Boolean;
private var framecount:Number;
private var lockcount;
private var speed;
private var rndpor;
private var timedetect;
public var locktarget:MovieClip;
public function GHHomingMove(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:MovieClip, _arg7:GHObject):void{
this.control = _arg7;
_arg7.x = (_arg7.px = _arg1);
_arg7.y = (_arg7.py = _arg2);
_arg7.ang = _arg3;
_arg7.speed = _arg5;
_arg7.sleep = 1000;
this.speed = (_arg7.speed / 2);
this.stoprotation = true;
this.lockcount = 0;
this.framecount = 0;
this.locktarget = _arg6;
this.timedetect = _arg4;
_arg7.graphics.beginFill(0xFF0000, 0);
_arg7.graphics.lineStyle(1, 0xFF0000, 0);
_arg7.graphics.moveTo(0, 0);
_arg7.graphics.lineTo(640, -100);
_arg7.graphics.lineTo(640, 100);
_arg7.graphics.lineTo(0, 0);
_arg7.graphics.endFill();
rndpor = (((Math.random() * 100))<50) ? 1 : -1;
this.speedx = (this.speed * Math.cos(((_arg7.ang * Math.PI) / 180)));
this.speedy = (this.speed * Math.sin(((_arg7.ang * Math.PI) / 180)));
}
override public function process():void{
this.lockcount++;
this.framecount++;
if ((((this.framecount < this.timedetect)) || ((this.timedetect == -1)))){
if ((((this.lockcount > (60 / (control.speed / 5)))) || ((this.lockcount > control.sleep)))){
this.lockcount = 0;
this.stoprotation = false;
control.graphics.clear();
control.graphics.beginFill(0xFF0000, 0);
control.graphics.lineStyle(1, 0xFF0000, 0);
control.graphics.moveTo(0, 0);
control.graphics.lineTo(640, -100);
control.graphics.lineTo(640, 100);
control.graphics.lineTo(0, 0);
control.graphics.endFill();
this.speed = (control.speed / 2);
};
} else {
this.framecount = this.timedetect;
};
if (((!((this.locktarget == null))) && (!(this.stoprotation)))){
if (((((((control.hitTestPoint((this.locktarget.x - (this.locktarget.width / 2)), this.locktarget.y, true)) || (control.hitTestPoint((this.locktarget.x + (this.locktarget.width / 2)), this.locktarget.y, true)))) || (control.hitTestPoint(this.locktarget.x, (this.locktarget.y + (this.locktarget.height / 2)), true)))) || (control.hitTestPoint(this.locktarget.x, (this.locktarget.y - (this.locktarget.height / 2)), true)))){
control.ang = ((Math.atan2((this.locktarget.y - control.py), (this.locktarget.x - control.px)) * 180) / Math.PI);
this.stoprotation = true;
this.speed = control.speed;
control.graphics.clear();
rndpor = (((Math.random() * 100))<50) ? 1 : -1;
this.speedx = (this.speed * Math.cos(((control.ang * Math.PI) / 180)));
this.speedy = (this.speed * Math.sin(((control.ang * Math.PI) / 180)));
};
};
if (!this.stoprotation){
control.ang = (control.ang + ((rndpor * control.speed) / 1.5));
this.speed = (control.speed / 2);
this.speedx = ((this.speed / 1.1) * Math.cos(((control.ang * Math.PI) / 180)));
this.speedy = ((this.speed / 1.1) * Math.sin(((control.ang * Math.PI) / 180)));
};
Applyspeed();
}
}
}//package com.greenhermit.motion
Section 3
//GHLineMove (com.greenhermit.motion.GHLineMove)
package com.greenhermit.motion {
import flash.display.*;
import com.greenhermit.object.*;
public class GHLineMove extends GHMotion {
public var py2:Number;
public var px2;
public var locktarget:MovieClip;
public function GHLineMove(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:MovieClip, _arg7:Number, _arg8:GHObject):void{
_arg8.x = (_arg8.px = _arg1);
_arg8.y = (_arg8.py = _arg2);
_arg8.speed = _arg7;
_arg8.ang = _arg5;
this.px2 = _arg3;
this.py2 = _arg4;
this.locktarget = _arg6;
if (_arg8.ang >= 0){
this.speedx = (_arg8.speed * Math.cos(((_arg8.ang * Math.PI) / 180)));
this.speedy = (_arg8.speed * Math.sin(((_arg8.ang * Math.PI) / 180)));
} else {
if (this.locktarget != null){
_arg8.ang = ((Math.atan2((this.locktarget.y - _arg8.py), (this.locktarget.x - _arg8.px)) * 180) / Math.PI);
this.speedx = (_arg8.speed * Math.cos(((_arg8.ang * Math.PI) / 180)));
this.speedy = (_arg8.speed * Math.sin(((_arg8.ang * Math.PI) / 180)));
} else {
_arg8.ang = ((Math.atan2((this.py2 - _arg8.py), (this.px2 - _arg8.px)) * 180) / Math.PI);
this.speedx = (_arg8.speed * Math.cos(((_arg8.ang * Math.PI) / 180)));
this.speedy = (_arg8.speed * Math.sin(((_arg8.ang * Math.PI) / 180)));
};
};
}
override public function process():void{
Applyspeed();
}
}
}//package com.greenhermit.motion
Section 4
//GHMotion (com.greenhermit.motion.GHMotion)
package com.greenhermit.motion {
import com.greenhermit.object.*;
public class GHMotion {
public var amp:Number;
public var speedx;
public var speedy;
public var control:GHObject;
public function GHMotion():void{
speedx = 0;
speedy = 0;
amp = 1;
}
public function process():void{
control.px = (Math.random() * 640);
control.py = (Math.random() * 480);
}
public function Applyspeed():void{
control.px = (control.px + (this.speedx * this.amp));
control.py = (control.py + (this.speedy * this.amp));
}
}
}//package com.greenhermit.motion
Section 5
//GHTimeRandomMove (com.greenhermit.motion.GHTimeRandomMove)
package com.greenhermit.motion {
import com.greenhermit.object.*;
public class GHTimeRandomMove extends GHMotion {
public var anglestage;
public var framecount:Number;
public var sleep;
public var speed;
public function GHTimeRandomMove(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:GHObject):void{
anglestage = new Array(90, 270);
super();
_arg6.x = (_arg6.px = _arg1);
_arg6.y = (_arg6.py = _arg2);
_arg6.speed = _arg4;
this.sleep = _arg3;
this.framecount = 0;
_arg6.ang = _arg5;
this.speedx = (_arg6.speed * Math.cos(((_arg6.ang * Math.PI) / 180)));
this.speedy = (_arg6.speed * Math.sin(((_arg6.ang * Math.PI) / 180)));
this.speed = ((_arg6.speed * this.sleep) / 8);
}
override public function process():void{
var _local1:*;
framecount++;
if ((framecount % sleep) == 0){
_local1 = control.ang;
this.speed = ((control.speed * this.sleep) / 8);
control.ang = ((control.ang + anglestage[int((Math.random() * 2))]) % 360);
this.speedx = (this.speed * Math.cos(((control.ang * Math.PI) / 180)));
this.speedy = (this.speed * Math.sin(((control.ang * Math.PI) / 180)));
framecount = 0;
};
this.speed = (this.speed - (control.speed / 8));
this.speedx = (this.speed * Math.cos(((control.ang * Math.PI) / 180)));
this.speedy = (this.speed * Math.sin(((control.ang * Math.PI) / 180)));
Applyspeed();
}
}
}//package com.greenhermit.motion
Section 6
//GHObjectEx (com.greenhermit.object.objectex.GHObjectEx)
package com.greenhermit.object.objectex {
import flash.display.*;
import com.greenhermit.object.*;
import flash.events.*;
import com.greenhermit.motion.*;
import flash.text.*;
public class GHObjectEx extends GHObject {
public var callbackframe:Array;
public var playerscore:TextField;
public var playerper:TextField;
public var b_next:Bgui_next;
public var bmenu:SimpleButton;
public var playername:TextField;
public var bsubmit:SimpleButton;
public var power:Number;
public var bmoregame:SimpleButton;
public var onRemove;
public var pirece:Boolean;
private var objectcount:Number;
public var onCallBack;
public var b_more_free:SimpleButton;
public var framecount:Number;
public function GHObjectEx():void{
onCallBack = function (_arg1:Number, _arg2:GHObject){
};
onRemove = function (_arg1:Number, _arg2:GHObject){
};
super();
this.power = 0;
this.callbackframe = new Array(-1, -1, -1);
this.framecount = 0;
this.pirece = true;
}
public function normalCallBack(_arg1:Number, _arg2){
if (_arg1 == 0){
this.visible = false;
onRemove(0, _arg2);
} else {
if (_arg1 == 1){
this.hitactive = true;
} else {
if (_arg1 == 2){
this.hitactive = false;
};
};
};
}
override public function enterFrame(_arg1:Event):void{
var _local2:*;
super.enterFrame(_arg1);
this.framecount++;
_local2 = 0;
while (_local2 < this.callbackframe.length) {
if (this.framecount == this.callbackframe[_local2]){
onCallBack(_local2, this);
};
_local2++;
};
}
public function setNormal(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Boolean, _arg6:GHMotion){
this.hitactive = false;
this.callbackframe[0] = _arg1;
this.callbackframe[1] = _arg2;
this.callbackframe[2] = _arg3;
this.power = _arg4;
this.pirece = _arg5;
this.onCallBack = this.normalCallBack;
setMotion(_arg6);
}
}
}//package com.greenhermit.object.objectex
Section 7
//GHObject (com.greenhermit.object.GHObject)
package com.greenhermit.object {
import flash.display.*;
import flash.events.*;
import com.greenhermit.motion.*;
import flash.text.*;
public dynamic class GHObject extends MovieClip {
public const GH_TEAM_D = 8;
public const GH_TEAM_E = 16;
public const GH_TEAM_G = 64;
public const GH_TEAM_H = 128;
public const GH_ALLTEAM = 35184372088831;
public const GH_BOSS = 0x0800;
public const GH_TEAM_F = 32;
public const GH_BULLET = 0x0400;
public const GH_TEAM_C = 4;
public const GH_ENEMY = 0x0200;
public const GH_UNTEAM = 0;
public const GH_TEAM_A = 1;
public const GH_TEAM_B = 2;
public const GH_PLAYER = 0x0100;
public var subspeed;
public var py:Number;
public var ttrep:TextField;
public var px:Number;
public var checkin:MovieClip;
public var hitactive:Boolean;
public var bnext:Bgui_next;
public var team;
public var speed;
public var screp:TextField;
public var dxy;
public var process;
public var subindex:Number;
public var ux;
public var uy;
public var attackteam:Number;
public var hitObject;
public var mcount:Number;
public var submot:Array;
public var hp:Number;
public var anglesnap:Boolean;
public var borep:TextField;
public var mpx;
public var mpy;
public var range:Number;
public var motionobj:GHMotion;
public var ang:Number;
public function GHObject():void{
var _local1:*;
hitObject = function (_arg1, _arg2:MovieClip){
};
process = function (_arg1:MovieClip){
};
super();
this.motionobj = null;
px = 0;
py = 0;
ang = 0;
speed = 0;
subspeed = 0;
subindex = 0;
mcount = 0;
dxy = 0;
mpx = 0;
mpy = 0;
hitactive = true;
anglesnap = true;
this.team = GH_UNTEAM;
this.attackteam = GH_UNTEAM;
this.checkin = null;
this.range = 0;
_local1 = new Shape();
_local1.name = "hit";
this.addChild(_local1);
}
public function setRange(_arg1:Number, _arg2:Boolean){
var _local3:*;
this.range = _arg1;
if (_arg2){
_local3 = this.getChildByName("hit");
_local3.graphics.clear;
_local3.graphics.beginFill(0xFF0000, 0.3);
_local3.graphics.drawCircle(0, 0, this.range);
_local3.graphics.endFill();
_local3.name = "hit";
this.addChild(_local3);
};
}
public function setMotion(_arg1:GHMotion){
if (_arg1 != null){
this.motionobj = GHMotion(_arg1);
this.motionobj.control = this;
if (anglesnap){
this.motionobj.control.rotation = this.motionobj.control.ang;
};
};
}
public function updatePosition(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (submot != null){
if (submot.length < ((subindex + 1) * 2)){
subindex = 0;
mpx = 0;
mpy = 0;
mcount = 0;
dxy = 0;
ux = 0;
uy = 0;
};
if ((mcount * subspeed) >= dxy){
_local1 = submot[(subindex * 2)];
_local2 = submot[((subindex * 2) + 1)];
_local3 = submot[((subindex + 1) * 2)];
_local4 = submot[(((subindex + 1) * 2) + 1)];
_local5 = (_local3 - _local1);
_local6 = (_local4 - _local2);
if (_local3 != null){
dxy = Math.sqrt(((_local5 * _local5) + (_local6 * _local6)));
ux = (_local5 / dxy);
uy = (_local6 / dxy);
} else {
ux = 0;
uy = 0;
};
mcount = 0;
subindex++;
};
mcount++;
this.mpx = (this.mpx + (subspeed * this.ux));
this.mpy = (this.mpy + (subspeed * this.uy));
this.x = (this.px + this.mpx);
this.y = (this.py + this.mpy);
} else {
this.x = this.px;
this.y = this.py;
};
}
public function hitable(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip){
this.hitactive = true;
this.team = _arg1;
this.attackteam = _arg2;
this.checkin = _arg4;
setRange(_arg3, false);
}
public function enterFrame(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:Number;
var _local5:GHObject;
var _local6:*;
if (this.visible){
this.process(this);
if (this.motionobj != null){
this.motionobj.process();
};
if (((hitactive) && (checkin))){
_local6 = 0;
while (_local6 < checkin.numChildren) {
if ((checkin.getChildAt(_local6) is GHObject)){
_local5 = GHObject(checkin.getChildAt(_local6));
if ((this.attackteam & _local5.team) > 0){
if (((((!((this == _local5))) && (_local5.hitactive))) && (_local5.visible))){
_local2 = (this.x - _local5.x);
_local3 = (this.y - _local5.y);
_local4 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3)));
if (_local4 < (this.range + _local5.range)){
hitObject(this, _local5);
};
};
};
};
_local6++;
};
};
if (this.anglesnap){
this.rotation = this.ang;
};
};
}
}
}//package com.greenhermit.object
Section 8
//AvoidGame (com.greenhermit.template.AvoidGame)
package com.greenhermit.template {
import flash.display.*;
import com.greenhermit.object.*;
import flash.events.*;
import com.greenhermit.motion.*;
import flash.media.*;
import flash.text.*;
import com.greenhermit.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class AvoidGame extends FlashGame {
public var levelcount;
public var scorename:TextField;
public var av:MovieClip;
public var bg:MovieClip;
public var addspeed;
public var avrep:TextField;
public var mine;
public var screp:TextField;
public var skillname;
public var i;
public var bg2:MovieClip;
public var gage_exp:MovieClip;
public var red;
public var r;
public var b_mfz:SimpleButton;
public var skillspeed;
public var corep:TextField;
public var stopperActive;
public var onKeyDown;
public var pbx;
public var pby;
public var coolslow;
public var fx;
public var dlg;
public var EPOCH_TIME;
public var sclass;
public var reptime:TextField;
public var firea;
public var fireb;
public var sniper;
public var obj;
public var hl;
public var enemypic;
public var serep:TextField;
public var b_more:SimpleButton;
public var bariercount;
public var speedcount;
public var countrep:TextField;
public var linePosition;
public var playerlevelmax;
public var playerlevel;
public var lineAng;
public var bmoreRelease;
public var scoreper:TextField;
public var gamelevelmax;
public var bhiscoreRelease;
public var b_more_free:SimpleButton;
public var avoid;
public var php;
public var fx2;
public var resetgame;
public var misstime;
public var enemypow;
public var skillavoid;
public var stopper;
public var keyrep:TextField;
public var timeRandomMove;
public var fxheale:MovieClip;
public var code;
public var maxname;
public var pc:TextField;
public var pi:MovieClip;
public var exp;
public var skilltail;
public var icslow:MovieClip;
public var bulletpow;
public var b_start:SimpleButton;
public var exp_indicator;
public var coolbarier;
public var twoWayShooter;
public var hprep:TextField;
public var score;
public var coolspeed;
public var pcount;
public var skillspeedx;
public var bShun2Release;
public var bstartRelease;
public var lineTarget;
public var bomberActive;
public var vl;
public var objmot;
public var stagetime;
public var bomber;
public var now;
public var player;
public var skillslowx;
public var replv:TextField;
public var shake;
public var skillhpre;
public var exrep:TextField;
public var LOC;
public var cmpHandler;
public var b_preload:SimpleButton;
public var LOS;
public var tailplayer;
public var b_preloadRelease;
public var skrep:TextField;
public var undie;
public var createamp;
public var b_hiscore:SimpleButton;
public var icspeed:MovieClip;
public var gage_hp:MovieClip;
public var repx:TextField;
public var icbarier:MovieClip;
public var skillbarier;
public var skillbarierx;
public var explevel;
public var hp_indicator;
public var MAXO;
public var soundtimer;
public var slowcount;
public var maxscore;
public var framecount;
public var skillslow;
public var skilllevel;
public var cockroach;
public var Choming;
public var b_continue:SimpleButton;
public var bgsound:Sound;
public var sumexp;
public function AvoidGame(){
addFrameScript(0, frame1, 3, frame4, 19, frame20, 20, frame21);
}
public function playerHitmindfx(_arg1, _arg2){
if ((player.lasthit + 1000) < getTimer()){
player.lasthit = getTimer();
if ((Math.random() * 100) > skillavoid[skilllevel["levelavoid"]]){
if ((((((bariercount == 0)) && ((undie == 0)))) && ((_arg1.power > 0)))){
effectAddEx_hero(player);
player.hp = (player.hp - _arg1.power);
avoid = 0;
};
if (_arg1.power > 0){
shake = 10;
};
_arg1.power = 0;
};
};
}
public function bomberRemove(_arg1, _arg2){
bomberActive(enemypic["bomber_sub"], 50, _arg2.px, _arg2.py, objectRemove, playerHit).power = enemypow;
}
public function removeEX(_arg1, _arg2){
var _local3:*;
if (_arg2.visible){
_arg2.visible = false;
_local3 = new mgfx_all();
_local3.gotoAndStop(_arg2.currentFrame);
_local3.px = _arg2.px;
_local3.py = _arg2.py;
_local3.hitable(_local3.GH_ENEMY, _local3.GH_PLAYER, 40, this);
_local3.setNormal(100, 30, 40, bulletpow, true, null);
_local3.hitObject = playerHitmindfx;
this.addChild(_local3);
};
}
public function normalRemove(_arg1, _arg2){
_arg2.visible = false;
}
public function BulletRangeHit(_arg1, _arg2){
if ((player.lasthit + 1000) < getTimer()){
player.lasthit = getTimer();
_arg1.visible = false;
effectAdd(_arg1);
bomberActive(enemypic["range_sub"], 50, _arg1.px, _arg1.py, objectRemove, playerHit).power = enemypow;
};
}
public function lineBulletRangeH(_arg1){
var _local2:*;
_local2 = null;
if ((Math.random() * 100) < 5){
_local2 = lineAng(enemypic["mine"], _arg1.px, _arg1.py, 270, mineRemove, 50, 100, mineHit);
_local2.power = 0;
};
return (_local2);
}
function frame1(){
b_preloadRelease = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_preload.addEventListener("mouseUp", b_preloadRelease);
}
function frame4(){
}
function frame20(){
stop();
GHEnterFrame = function (){
};
bstartRelease = function (){
play();
};
bmoreRelease = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
bShun2Release = function (){
getURL("http://www.mofunzone.com/online_games/shun_2.shtml", "_blank");
};
bhiscoreRelease = function (){
getURL("http://www.mofunzone.com/game_scores/shun/highscores.shtml", "_blank");
};
b_start.addEventListener("mouseUp", bstartRelease);
b_more.addEventListener("mouseUp", bmoreRelease);
b_mfz.addEventListener("mouseUp", bmoreRelease);
b_hiscore.addEventListener("mouseUp", bhiscoreRelease);
b_continue.addEventListener("mouseUp", bShun2Release);
}
function frame21(){
now = new Date();
EPOCH_TIME = now.getTime();
b_more_free.addEventListener("mouseUp", bmoreRelease);
sniper = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8){
var _local9:*;
var _local10:*;
_local9 = new mspr_all();
_local9.name = _arg7;
_local9.gotoAndStop(_arg1);
_local10 = new GHGhostMove(_arg2, _arg3, _arg4, _arg5, _arg6, 10, _local9);
_local9.setNormal(-1, 5, -1, 1, true, _local10);
_local9.process = _arg8;
_local9.anglesnap = false;
this.addChild(_local9);
return (_local9);
};
lineAng = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8){
var _local9:*;
var _local10:*;
_local9 = new mspr_all();
_local9.gotoAndStop(_arg1);
_local10 = new GHLineMove(_arg2, _arg3, 0, 0, _arg4, null, 10, _local9);
_local9.setNormal(_arg7, 5, -1, 1, true, _local10);
_local9.hitable(_local9.GH_ENEMY, _local9.GH_PLAYER, _arg6, this);
if (_arg8 != null){
_local9.hitObject = _arg8;
} else {
_local9.hitObject = playerHit;
};
_local9.onRemove = _arg5;
this.addChild(_local9);
return (_local9);
};
lineTarget = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8){
var _local9:*;
var _local10:*;
_local9 = new mspr_all();
_local9.gotoAndStop(_arg1);
_local10 = new GHLineMove(_arg2, _arg3, 0, 0, -1, _arg4, 10, _local9);
_local9.setNormal(_arg5, 5, -1, 1, true, _local10);
_local9.hitable(_local9.GH_ENEMY, _local9.GH_PLAYER, _arg7, this);
if (_arg8 != null){
_local9.hitObject = _arg8;
} else {
_local9.hitObject = playerHit;
};
_local9.onRemove = _arg6;
this.addChild(_local9);
return (_local9);
};
linePosition = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9){
var _local10:*;
var _local11:*;
_local10 = new mspr_all();
_local10.gotoAndStop(_arg1);
_local11 = new GHLineMove(_arg2, _arg3, _arg4, _arg5, -1, null, 10, _local10);
_local10.setNormal(_arg6, 5, -1, 1, true, _local11);
_local10.hitable(_local10.GH_ENEMY, _local10.GH_PLAYER, _arg9, this);
if (_arg7 != null){
_local10.hitObject = _arg7;
} else {
_local10.hitObject = playerHit;
};
_local10.onRemove = _arg8;
this.addChild(_local10);
return (_local10);
};
timeRandomMove = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9){
var _local10:*;
var _local11:*;
_local10 = new mspr_all();
_local10.gotoAndStop(_arg1);
_local11 = new GHTimeRandomMove(_arg2, _arg3, _arg4, 5, _arg5, _local10);
_local10.setNormal(_arg6, 5, -1, 1, true, _local11);
_local10.hitable(_local10.GH_ENEMY, _local10.GH_PLAYER, _arg7, this);
_local10.hitObject = _arg8;
_local10.onRemove = _arg9;
this.addChild(_local10);
return (_local10);
};
Choming = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11){
var _local12:*;
var _local13:*;
_local12 = new mspr_all();
_local12.gotoAndStop(_arg1);
_local13 = new GHHomingMove(_arg2, _arg3, _arg4, _arg5, 10, _arg6, _local12);
_local12.setNormal(_arg7, 5, -1, _arg11, true, _local13);
_local12.hitable(_local12.GH_ENEMY, _local12.GH_PLAYER, _arg8, this);
if (_arg9 != null){
_local12.hitObject = _arg9;
} else {
_local12.hitObject = playerHit;
};
_local12.onRemove = _arg10;
this.addChild(_local12);
return (_local12);
};
mine = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9){
var _local10:*;
var _local11:*;
_local10 = new mspr_all();
_local10.gotoAndStop(_arg1);
_local11 = new GHHomingMove(_arg2, _arg3, _arg4, _arg5, 5, _arg6, _local10);
_local10.setNormal(200, 5, -1, 0, true, _local11);
_local10.hitable(_local10.GH_ENEMY, _local10.GH_PLAYER, _arg8, this);
if (_arg9 != null){
_local10.hitObject = _arg9;
} else {
_local10.hitObject = playerHit;
};
_local10.onRemove = _arg7;
this.addChild(_local10);
return (_local10);
};
bomber = function (_arg1, _arg2, _arg3){
var _local4:*;
_local4 = new mspr_all();
_local4.gotoAndStop(_arg1);
_local4.px = _arg2;
_local4.py = _arg3;
_local4.setNormal(10, -1, -1, 0, true, null);
removeEX(1, _local4);
this.addChild(_local4);
return (_local4);
};
bomberActive = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){
var _local7:*;
_local7 = new mspr_all();
_local7.gotoAndStop(_arg1);
_local7.px = _arg3;
_local7.py = _arg4;
_local7.hitable(_local7.GH_ENEMY, _local7.GH_PLAYER, 180, this);
_local7.setNormal(100, 30, 40, 10, true, null);
if (_arg6 != null){
_local7.hitObject = _arg6;
} else {
_local7.hitObject = playerHit;
};
_local7.onRemove = _arg5;
this.addChild(_local7);
return (_local7);
};
stopperActive = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){
var _local7:*;
_local7 = new mspr_all();
_local7.gotoAndStop(_arg1);
_local7.px = _arg3;
_local7.py = _arg4;
_local7.setNormal(150, 2, -1, 1, true, null);
_local7.hitable(_local7.GH_ENEMY, _local7.GH_PLAYER, 20, this);
if (_arg6 != null){
_local7.hitObject = _arg6;
} else {
_local7.hitObject = playerHit;
};
_local7.onRemove = _arg5;
this.addChild(_local7);
return (_local7);
};
twoWayShooter = function (_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){
var _local7:*;
_local7 = null;
if ((Math.random() * 100) < 50){
_local7 = lineAng(_arg1, (Math.random() * 640), 0, 90, _arg3, _arg2, _arg5, _arg6);
} else {
_local7 = lineAng(_arg1, (Math.random() * 640), 480, 270, _arg3, _arg2, _arg5, _arg6);
};
_local7.process = _arg4;
this.addChild(_local7);
return (_local7);
};
cockroach = function (_arg1, _arg2, _arg3, _arg4, _arg5){
var _local6:*;
var _local7:*;
var _local8:*;
_local6 = (Math.random() * 480);
_local7 = null;
_local8 = (Math.random() * 4);
if (_local8 < 1){
_local7 = timeRandomMove(_arg1, 640, (Math.random() * 480), (int((Math.random() * 10)) + 20), 180, _arg2, _arg3, _arg4, _arg5);
};
if (_local8 < 2){
_local7 = timeRandomMove(_arg1, 0, (Math.random() * 480), (int((Math.random() * 10)) + 20), 0, _arg2, _arg3, _arg4, _arg5);
};
if (_local8 < 3){
_local7 = timeRandomMove(_arg1, (Math.random() * 640), 0, (int((Math.random() * 10)) + 20), 90, _arg2, _arg3, _arg4, _arg5);
};
if (_local8 < 4){
_local7 = timeRandomMove(_arg1, (Math.random() * 640), 480, (int((Math.random() * 10)) + 20), 270, _arg2, _arg3, _arg4, _arg5);
};
return (_local7);
};
fireb = function (_arg1, _arg2, _arg3, _arg4){
var _local5:*;
var _local6:*;
_local5 = null;
_local6 = (Math.random() * 4);
if (_local6 < 1){
_local5 = lineTarget(_arg1, 640, (Math.random() * 480), player, _arg2, _arg3, 10, _arg4);
};
if (_local6 < 2){
_local5 = lineTarget(_arg1, 0, (Math.random() * 480), player, _arg2, _arg3, 10, _arg4);
};
if (_local6 < 3){
_local5 = lineTarget(_arg1, (Math.random() * 640), 480, player, _arg2, _arg3, 10, _arg4);
};
if (_local6 < 4){
_local5 = lineTarget(_arg1, (Math.random() * 640), 0, player, _arg2, _arg3, 10, _arg4);
};
return (_local5);
};
stopper = function (_arg1, _arg2, _arg3, _arg4){
var _local5:*;
_local5 = null;
if ((Math.random() * 100) < 50){
_local5 = linePosition(_arg1, (Math.random() * 640), 0, (Math.random() * 640), (Math.random() * 480), _arg2, _arg3, _arg4, 10);
} else {
_local5 = linePosition(_arg1, (Math.random() * 640), 480, (Math.random() * 640), (Math.random() * 480), _arg2, _arg3, _arg4, 10);
};
return (_local5);
};
firea = function (_arg1, _arg2, _arg3, _arg4){
var _local5:*;
var _local6:*;
_local5 = null;
_local6 = (Math.random() * 4);
if (_local6 < 1){
_local5 = linePosition(_arg1, (Math.random() * 640), 0, (Math.random() * 640), (Math.random() * 480), _arg2, _arg3, _arg4, 10);
};
if (_local6 < 2){
_local5 = linePosition(_arg1, (Math.random() * 640), 480, (Math.random() * 640), (Math.random() * 480), _arg2, _arg3, _arg4, 10);
};
if (_local6 < 3){
_local5 = linePosition(_arg1, 640, (Math.random() * 480), (Math.random() * 640), (Math.random() * 480), _arg2, _arg3, _arg4, 10);
};
if (_local6 < 4){
_local5 = linePosition(_arg1, 0, (Math.random() * 480), (Math.random() * 640), (Math.random() * 480), _arg2, _arg3, _arg4, 10);
};
return (_local5);
};
misstime = getTimer();
playerlevel = 0;
explevel = new Array();
explevel[0] = 150;
explevel[1] = 400;
explevel[2] = 800;
explevel[3] = 1200;
explevel[4] = 1600;
explevel[5] = 2100;
explevel[6] = 2400;
explevel[7] = 2800;
explevel[8] = 3200;
explevel[9] = 3600;
explevel[10] = 4000;
explevel[11] = 4400;
explevel[12] = 4800;
explevel[13] = 5200;
explevel[14] = 5700;
explevel[15] = 6300;
explevel[16] = 7000;
explevel[17] = 7800;
explevel[18] = 9000;
explevel[19] = 12000;
skillname = new Array("levelavoid", "leveltail", "levelhpre", "levelbarier", "levelavoid", "levelhpre", "levelbarier", "leveltail", "levelslow", "levelbarier", "levelavoid", "leveltail", "levelspeed", "levelslow", "levelspeed", "levelhpre", "levelslow", "leveltail", "levelspeed");
skilllevel = new Object();
skilllevel["levelavoid"] = 0;
skilllevel["leveltail"] = 0;
skilllevel["levelhpre"] = 0;
skilllevel["levelbarier"] = 0;
skilllevel["levelslow"] = 0;
skilllevel["levelspeed"] = 0;
skillavoid = new Array(0, 12, 24, 36);
skilltail = new Array(0, 1, 2, 3);
skillhpre = new Array(1, 2, 3, 4);
coolbarier = new Array(0, 1000);
skillbarier = new Array(0, 100, 150, 200);
skillbarierx = new Array(0, 150, 140, 130);
bariercount = 0;
coolslow = new Array(0, 1450);
skillslow = new Array(0, 150, 200, 250, 250, 250, 250, 250);
skillslowx = new Array(0, 12, 10, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1);
slowcount = 0;
coolspeed = new Array(0, 400);
addspeed = 1.4;
skillspeed = new Array(0, 150, 200, 250, 250, 250, 250, 250);
skillspeedx = new Array(0, 60, 120, 180, 1, 1, 1, 1, 1, 1, 1, 1);
speedcount = 0;
levelcount = 0;
stagetime = new Array();
stagetime[0] = 0;
stagetime[1] = 1000;
stagetime[2] = 1500;
stagetime[3] = 1000;
stagetime[4] = 1000;
stagetime[5] = 1000;
stagetime[6] = 1500;
stagetime[7] = 1000;
stagetime[8] = 1000;
stagetime[9] = 1000;
stagetime[10] = 1500;
stagetime[11] = 1000;
stagetime[12] = 1000;
stagetime[13] = 1000;
stagetime[14] = 1500;
stagetime[15] = 1000;
stagetime[16] = 1000;
stagetime[17] = 1000;
stagetime[18] = 1500;
stagetime[19] = 1500;
stagetime[20] = 1500;
stagetime[21] = 0;
framecount = 0;
exp = 0;
sumexp = 0;
score = 0;
avoid = 0;
enemypow = 25;
bulletpow = 15;
red = 0;
shake = 0;
resetgame = false;
maxscore = 123456;
maxname = "load..";
maxscore = 100000;
maxname = "Play@MoFunzone.com";
playerlevelmax = 19;
gamelevelmax = 20;
player = new mspr_all();
player.name = "player";
player.gotoAndStop(1);
player.tailpic = 2;
player.hitable(player.GH_PLAYER, (player.GH_ENEMY | player.GH_BULLET), 10, this);
player.hp = 75;
player.hpmax = 100;
player.lasthit = 0;
this.addChild(player);
vl = new vline();
vl.name = "vl";
vl.x = (vl.px = 320);
vl.y = (vl.py = 240);
vl.process = function (_arg1){
vl.px = player.px;
};
this.addChild(vl);
hl = new hline();
hl.name = "hl";
hl.x = (hl.px = 320);
hl.y = (hl.py = 240);
hl.process = function (_arg1){
hl.py = player.py;
};
this.addChild(hl);
fx = new fxdodge();
fx.name = "fx";
fx.gotoAndStop(1);
fx.process = function (){
if (skilllevel["levelavoid"] > 0){
this.px = player.x;
this.py = player.y;
} else {
this.px = -1000;
this.py = -1000;
};
};
addChild(fx);
fx2 = new fxrehp();
fx2.name = "fx2";
fx2.gotoAndStop(1);
fx2.process = function (){
if (skilllevel["levelhpre"] > 0){
this.x = (this.px = player.x);
this.y = (this.py = player.y);
} else {
this.x = (this.px = -1000);
this.y = (this.py = -1000);
};
};
addChild(fx2);
tailplayer = function (_arg1, _arg2, _arg3){
var _local4:*;
var _local5:*;
_local4 = new mspr_all();
_local4.gotoAndStop(player.tailpic);
_local5 = new GHHomingMove(player.x, player.y, ((Math.random() * 360) + 1), -1, _arg1, player, _local4);
_local4.setNormal(-1, 5, -1, 1, true, _local5);
_local4.hitable(_local4.GH_UNTEAM, _local4.GH_ENEMY, 10, this);
_local4.hitObject = _arg2;
_local4.alpha = 0.8;
_local4.subspeed = _arg1;
_local4.i = 0;
_local4.r = _arg3;
_local4.dir = 1;
this.addChild(_local4);
return (_local4);
};
enemypic = new Object();
enemypic["choming"] = 45;
enemypic["mine"] = 46;
enemypic["bomber"] = 47;
enemypic["twoway"] = 48;
enemypic["stopper"] = 49;
enemypic["cockroach"] = 50;
enemypic["firea"] = 51;
enemypic["fireb"] = 52;
enemypic["lmove"] = 15;
enemypic["tmove"] = 18;
enemypic["pmove"] = 15;
enemypic["hmove"] = 19;
enemypic["star3"] = 64;
enemypic["star6"] = 64;
enemypic["star8"] = 64;
enemypic["bomber_sub"] = 16;
enemypic["stopper_sub"] = 49;
enemypic["twoway_sub"] = 64;
enemypic["snipertail_sub"] = 64;
enemypic["range_sub"] = 16;
enemypic["sniperbullet"] = 64;
enemypic["nearbomb"] = 64;
enemypic["snipertail"] = 64;
enemypic["sniperstar8"] = 64;
enemypic["bouce"] = 64;
MAXO = new Array();
MAXO[0] = 0;
MAXO[1] = 100;
MAXO[2] = 100;
MAXO[3] = 100;
MAXO[4] = 100;
MAXO[5] = 110;
MAXO[6] = 110;
MAXO[7] = 110;
MAXO[8] = 110;
MAXO[9] = 120;
MAXO[10] = 120;
MAXO[11] = 120;
MAXO[12] = 120;
MAXO[13] = 130;
MAXO[14] = 130;
MAXO[15] = 130;
MAXO[16] = 130;
MAXO[17] = 140;
MAXO[18] = 140;
MAXO[19] = 140;
MAXO[20] = 140;
LOC = new Array();
LOC[0] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
LOC[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 5, 5, 0, 0, 0);
LOC[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0);
LOC[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 0, 0, 0);
LOC[4] = new Array(10, 0, 0, 0, 0, 0, 0, 0, 2, 1, 2, 1, 0, 0, 0);
LOC[5] = new Array(0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0);
LOC[6] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 0, 0, 0, 0, 0);
LOC[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 3, 8, 0);
LOC[8] = new Array(0, 9, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
LOC[9] = new Array(0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
LOC[10] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0);
LOC[11] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 3, 3, 0);
LOC[12] = new Array(0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0);
LOC[13] = new Array(3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4);
LOC[14] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0);
LOC[15] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 0, 0, 7);
LOC[16] = new Array(0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0);
LOC[17] = new Array(0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
LOC[18] = new Array(0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
LOC[19] = new Array(0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0);
LOC[20] = new Array(0, 0, 0, 0, 0, 0, 0, 3, 2, 2, 3, 3, 0, 0, 0);
LOC[21] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
LOS = new Array();
LOS[0] = new Array(null, null);
LOS[1] = new Array(null, null);
LOS[2] = new Array(lineBulletV, lineBulletH);
LOS[3] = new Array(null, null);
LOS[4] = new Array(null, null);
LOS[5] = new Array(null, null);
LOS[6] = new Array(lineBulletRangeV, lineBulletRangeH);
LOS[7] = new Array(null, null);
LOS[8] = new Array(null, null);
LOS[9] = new Array(null, null);
LOS[10] = new Array(lineBulletTailV, lineBulletTailH);
LOS[11] = new Array(null, null);
LOS[12] = new Array(null, null);
LOS[13] = new Array(null, null);
LOS[14] = new Array(lineBulletScatterV, lineBulletScatterH);
LOS[15] = new Array(null, null);
LOS[16] = new Array(null, null);
LOS[17] = new Array(lineBulletTailV, lineBulletScatterH);
LOS[18] = new Array(lineBulletBouce, lineBulletBouce);
LOS[19] = new Array(lineBulletV, lineBulletRangeH);
LOS[20] = new Array(null, null);
LOS[21] = new Array(null, null);
pcount = 3;
if (onKeyDown != null){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
};
onKeyDown = function (_arg1:KeyboardEvent){
var _local2:*;
keyrep.text = (_arg1.keyCode + "");
if (_arg1.keyCode == 75){
if (getChildByName("tuto") != null){
MovieClip(getChildByName("tuto")).gotoAndPlay("skip");
};
};
if (_arg1.keyCode == 49){
if (coolbarier[0] == coolbarier[1]){
coolbarier[0] = 0;
bariercount = skillbarier[skilllevel["levelbarier"]];
obj = new fxbarierx();
obj.x = (obj.px = player.px);
obj.y = (obj.py = player.py);
obj.rotation = (obj.ang = (Math.random() * 360));
player.parent.addChild(obj);
};
};
if (_arg1.keyCode == 50){
if (coolslow[0] == coolslow[1]){
speedcount = 0;
obj = new fxslowx();
obj.x = (obj.px = player.px);
obj.y = (obj.py = player.py);
player.parent.addChild(obj);
coolslow[0] = 0;
slowcount = skillslow[skilllevel["levelslow"]];
};
};
if (_arg1.keyCode == 51){
if (coolspeed[0] == coolspeed[1]){
slowcount = 0;
obj = new fxspeedx();
obj.x = (obj.px = player.px);
obj.y = (obj.py = player.py);
player.parent.addChild(obj);
coolspeed[0] = 0;
speedcount = skillspeed[skilllevel["levelspeed"]];
};
};
if ((((((((((_arg1.keyCode == 32)) && ((getChildByName("tuto") == null)))) && ((getChildByName("clear") == null)))) && ((getChildByName("up") == null)))) && ((getChildByName("over") == null)))){
if (getChildByName("stop") != null){
getChildByName("stop").visible = false;
GH_stopgame = false;
} else {
if (pcount > 0){
pcount--;
pc.text = pcount;
_local2 = new dlgstop();
_local2.name = "stop";
_local2.x = (_local2.px = 320);
_local2.y = (_local2.py = 240);
addChild(_local2);
GH_stopgame = true;
};
};
};
};
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
levelUp();
icbarier.gotoAndStop(1);
icslow.gotoAndStop(1);
icspeed.gotoAndStop(1);
GH_stopgame = true;
GH_enterframeuse = true;
soundtimer = getTimer();
createamp = 1;
cmpHandler = function (){
var _local1:*;
_local1 = (getDefinitionByName(("sound" + (int((Math.random() * 3)) + 1))) as Class);
bgsound = new (_local1);
bgsound.play(1, 1);
soundtimer = getTimer();
};
sclass = (getDefinitionByName(("sound" + (int((Math.random() * 3)) + 1))) as Class);
bgsound = new sclass();
bgsound.play(1, 1);
soundtimer = getTimer();
code = 0;
undie = 3;
this.resetgame = false;
GHEnterFrame = function (){
scorename.text = maxname;
scoreper.text = ("" + int(((score * 100) / maxscore)));
hp_indicator = Math.round(((player.hp / player.hpmax) * 100));
if (hp_indicator >= 100){
hp_indicator = 100;
};
gage_hp.gotoAndStop(hp_indicator);
exp_indicator = Math.round(((exp / explevel[playerlevel]) * 100));
if ((((exp_indicator >= 100)) || ((playerlevel == 19)))){
exp_indicator = 100;
};
gage_exp.gotoAndStop(exp_indicator);
stage.focus = this;
if ((player.lasthit + 1000) < getTimer()){
player.alpha = 1;
} else {
player.alpha = Math.random();
};
if (((soundtimer + bgsound.length) + 2000) < getTimer()){
cmpHandler();
};
if (shake > 0){
this.x = ((Math.random() * shake) - (shake / 2));
this.y = ((Math.random() * shake) - (shake / 2));
shake--;
} else {
this.x = 0;
this.y = 0;
};
framecount++;
if (framecount > stagetime[levelcount]){
if ((((((((((getChildByName("tuto") == null)) && ((getChildByName("clear") == null)))) && ((getChildByName("up") == null)))) && ((getChildByName("over") == null)))) && ((getChildByName("stop") == null)))){
undie = 3;
framecount = 0;
levelUp();
GH_stopgame = true;
i = 0;
while (i < numChildren) {
if (getChildAt(i) != null){
if ((getChildAt(i) is GHObject)){
if (((((!((GHObject(getChildAt(i)).currentFrame == player.tailpic))) && (!((GHObject(getChildAt(i)).name == "sniperh"))))) && (!((GHObject(getChildAt(i)).name == "sniperv"))))){
getChildAt(i).visible = false;
GHObject(getChildAt(i)).stop();
};
};
};
i++;
};
getChildByName("fx").visible = true;
getChildByName("fx2").visible = true;
getChildByName("vl").visible = true;
GHObject(getChildByName("vl")).play();
getChildByName("hl").visible = true;
GHObject(getChildByName("hl")).play();
getChildByName("player").visible = true;
dlg = new dlgclear();
dlg.name = "clear";
dlg.x = (dlg.px = 320);
dlg.y = (dlg.py = 240);
addChild(dlg);
};
};
if ((framecount % 25) == 0){
if (undie > 0){
undie--;
};
avoid++;
exp = (exp + avoid);
sumexp = (sumexp + avoid);
};
if ((framecount % 25) == 0){
if ((((player.hp < 100)) && ((skilllevel["levelhpre"] > 0)))){
php = int(((100 * skillhpre[skilllevel["levelhpre"]]) / 100));
i = 0;
while (i < (php * 1)) {
obj = new fxheal();
obj.gotoAndStop(skilllevel["levelhpre"]);
objmot = new GHHomingMove(player.px, player.py, ((Math.random() * 20) + 260), -1, (int((Math.random() * 10)) + 10), fxheale, obj);
obj.setMotion(objmot);
obj.setNormal(100, 30, 40, 0, true, null);
obj.process = function (_arg1){
if (_arg1.py > 440){
effecthp(_arg1);
_arg1.visible = false;
};
};
addChild(obj);
i++;
};
};
};
score = (score + avoid);
if (getChildByName("player") != null){
player.px = mouseX;
player.py = mouseY;
if (player.hp >= player.hpmax){
player.hp = player.hpmax;
};
if (player.hp <= 0){
SoundMixer.stopAll();
player.visible = false;
player.hp = 0;
effectAdd(player);
GH_stopgame = true;
};
hprep.text = (int(player.hp) + "");
};
if (exp > explevel[playerlevel]){
if ((((((((((getChildByName("tuto") == null)) && ((getChildByName("clear") == null)))) && ((getChildByName("up") == null)))) && ((getChildByName("over") == null)))) && ((getChildByName("stop") == null)))){
if (playerlevel < playerlevelmax){
undie = 3;
dlg = new dlglvup();
dlg.name = "up";
dlg.x = (dlg.px = 320);
dlg.y = (dlg.py = 240);
addChild(dlg);
GH_stopgame = true;
exp = 0;
var _local2 = skilllevel;
var _local3 = skillname[playerlevel];
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (skillname[playerlevel] == "leveltail"){
tailplayer(20, tailPlayerHit, 30).sleep = 2;
};
if (skillname[playerlevel] == "levelbarier"){
coolbarier[0] = (coolbarier[1] - 5);
};
if (skillname[playerlevel] == "levelslow"){
coolslow[0] = (coolslow[1] - 5);
};
if (skillname[playerlevel] == "levelspeed"){
coolspeed[0] = (coolspeed[1] - 5);
};
fx.gotoAndStop(skilllevel["levelavoid"]);
fx2.gotoAndStop(skilllevel["levelrehp"]);
playerlevel++;
};
};
};
pc.text = pcount;
screp.text = score;
exrep.text = ((explevel[playerlevel] - exp) + "");
serep.text = sumexp;
reptime.text = (int(((stagetime[levelcount] / 25) - (framecount / 25))) + "");
av.scaleX = (1 + (avoid / 50));
av.scaleY = (1 + (avoid / 50));
if (playerlevel >= playerlevelmax){
exrep.text = "----";
};
if (avoid < 140){
av.x = ((595 + ((Math.random() * avoid) / 10)) - (avoid / 20));
av.y = ((462 + ((Math.random() * avoid) / 10)) - (avoid / 20));
if (avoid > 50){
};
} else {
av.x = ((595 + (Math.random() * 30)) - 15);
av.y = ((462 + (Math.random() * 30)) - 15);
};
avrep.text = avoid;
replv.text = levelcount;
corep.text = (((((((((((coolbarier[0] + " : ") + bariercount) + " press[1]\n\n") + coolslow[0]) + " : ") + slowcount) + " press[2]\n") + coolspeed[0]) + " : ") + speedcount) + " press[3]");
skrep.text = "";
i = 0;
while (i < skillname.length) {
skrep.appendText((((skillname[i] + " Lv. ") + skilllevel[skillname[i]]) + "\n"));
i++;
};
if (getChildByName("sniperh") != null){
GHObject(getChildByName("sniperh")).y = (GHObject(getChildByName("sniperh")).py = 470);
};
if (getChildByName("sniperv") != null){
GHObject(getChildByName("sniperv")).x = (GHObject(getChildByName("sniperv")).px = 10);
};
if ((countrep.text = this.numChildren) < MAXO[levelcount]){
obj = null;
if ((Math.random() * 100) < (LOC[levelcount][0] * createamp)){
obj = null;
r = (Math.random() * 4);
if (r < 1){
obj = Choming(enemypic["choming"], 640, (Math.random() * 480), (Math.random() * 360), 50, player, 300, 10, playerHit, objectRemove, 5);
} else {
if (r < 2){
obj = Choming(enemypic["choming"], 0, (Math.random() * 480), (Math.random() * 360), 50, player, 300, 10, playerHit, objectRemove, 5);
} else {
if (r < 3){
obj = Choming(enemypic["choming"], (Math.random() * 640), 480, (Math.random() * 360), 50, player, 300, 10, playerHit, objectRemove, 5);
} else {
if (r < 4){
obj = Choming(enemypic["choming"], (Math.random() * 640), 0, (Math.random() * 360), 50, player, 300, 10, playerHit, objectRemove, 5);
};
};
};
};
if (obj){
obj.power = enemypow;
};
};
if ((Math.random() * 100) < (LOC[levelcount][1] * createamp)){
obj = null;
r = (Math.random() * 4);
if (r < 1){
obj = linePosition(enemypic["mine"], 640, (Math.random() * 480), (Math.random() * 630), (Math.random() * 470), 100, mineHit, mineRemove, 50);
} else {
if (r < 2){
obj = linePosition(enemypic["mine"], 0, (Math.random() * 480), (Math.random() * 630), (Math.random() * 470), 100, mineHit, mineRemove, 50);
} else {
if (r < 3){
obj = linePosition(enemypic["mine"], (Math.random() * 640), 480, (Math.random() * 630), (Math.random() * 470), 100, mineHit, mineRemove, 50);
} else {
if (r < 4){
obj = linePosition(enemypic["mine"], (Math.random() * 640), 0, (Math.random() * 630), (Math.random() * 470), 100, mineHit, mineRemove, 50);
};
};
};
};
if (obj){
obj.power = 0;
};
};
if ((Math.random() * 100) < (LOC[levelcount][2] * createamp)){
obj = null;
obj = bomber(enemypic["bomber"], (Math.random() * 640), (Math.random() * 480));
obj.hitable(obj.GH_UNTEAM, obj.GH_UNTEAM, 1, this);
if (obj){
obj.power = enemypow;
};
};
if ((Math.random() * 100) < (LOC[levelcount][3] * createamp)){
obj = null;
obj = twoWayShooter(enemypic["twoway"], 10, objectRemove, lineBulletShooter, 100, playerHit);
if (obj){
obj.power = enemypow;
};
};
if ((Math.random() * 100) < (LOC[levelcount][4] * createamp)){
obj = null;
obj = stopper(enemypic["stopper"], 30, playerHitmindfx, stopperRemove);
if (obj){
obj.power = enemypow;
};
};
if ((Math.random() * 100) < (LOC[levelcount][5] * createamp)){
obj = null;
obj = cockroach(enemypic["cockroach"], 80, 10, playerHit, objectRemove);
if (obj){
obj.power = enemypow;
};
};
if ((Math.random() * 100) < (LOC[levelcount][6] * createamp)){
obj = null;
obj = firea(enemypic["firea"], 30, playerHit, scatterRemove);
if (obj){
obj.power = enemypow;
};
};
if ((Math.random() * 100) < (LOC[levelcount][7] * createamp)){
obj = null;
obj = fireb(enemypic["fireb"], 50, firebRemove, playerHit);
if (obj){
obj.power = enemypow;
};
};
if ((Math.random() * 100) < (LOC[levelcount][8] * createamp)){
lineAng(enemypic["lmove"], (Math.random() * 640), 0, 90, objectRemove, 5, 100, playerHit).power = enemypow;
};
if ((Math.random() * 100) < LOC[levelcount][9]){
lineAng(enemypic["lmove"], (Math.random() * 640), 480, 270, objectRemove, 5, 100, playerHit).power = enemypow;
};
if ((Math.random() * 100) < LOC[levelcount][10]){
lineAng(enemypic["lmove"], 0, (Math.random() * 480), 0, objectRemove, 5, 100, playerHit).power = enemypow;
};
if ((Math.random() * 100) < LOC[levelcount][11]){
lineAng(enemypic["lmove"], 640, (Math.random() * 480), 180, objectRemove, 5, 100, playerHit).power = enemypow;
};
if ((Math.random() * 100) < (LOC[levelcount][12] * createamp)){
r = (Math.random() * 4);
if (r < 1){
lineTarget(enemypic["tmove"], 640, (Math.random() * 480), player, objectRemove, 100, 15, playerHit).power = enemypow;
} else {
if (r < 2){
lineTarget(enemypic["tmove"], 0, (Math.random() * 480), player, objectRemove, 100, 15, playerHit).power = enemypow;
} else {
if (r < 3){
lineTarget(enemypic["tmove"], (Math.random() * 640), 0, player, objectRemove, 100, 15, playerHit).power = enemypow;
} else {
if (r < 4){
lineTarget(enemypic["tmove"], (Math.random() * 640), 480, player, objectRemove, 100, 15, playerHit).power = enemypow;
};
};
};
};
};
if ((Math.random() * 100) < (LOC[levelcount][13] * createamp)){
r = (Math.random() * 4);
if (r < 1){
linePosition(enemypic["pmove"], 640, (Math.random() * 480), (Math.random() * 630), (Math.random() * 470), 100, playerHit, objectRemove, 15).power = enemypow;
} else {
if (r < 2){
linePosition(enemypic["pmove"], 0, (Math.random() * 480), (Math.random() * 630), (Math.random() * 470), 100, playerHit, objectRemove, 15).power = enemypow;
} else {
if (r < 3){
linePosition(enemypic["pmove"], (Math.random() * 640), 0, (Math.random() * 630), (Math.random() * 470), 100, playerHit, objectRemove, 15).power = enemypow;
} else {
if (r < 4){
linePosition(enemypic["pmove"], (Math.random() * 640), 480, (Math.random() * 630), (Math.random() * 470), 100, playerHit, objectRemove, 15).power = enemypow;
};
};
};
};
};
if ((Math.random() * 100) < (LOC[levelcount][14] * createamp)){
obj = null;
obj = Choming(enemypic["hmove"], (Math.random() * 640), (Math.random() * 480), (Math.random() * 360), 50, player, 300, 5, playerHit, objectRemove);
if (obj){
obj.power = enemypow;
};
};
};
if (skilllevel["levelbarier"] > 0){
if (coolbarier[0] < coolbarier[1]){
_local2 = coolbarier;
_local3 = 0;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
icbarier.gotoAndStop(int(((coolbarier[0] / coolbarier[1]) * 100)));
};
};
if (skilllevel["levelslow"] > 0){
if (coolslow[0] < coolslow[1]){
_local2 = coolslow;
_local3 = 0;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
icslow.gotoAndStop(int(((coolslow[0] / coolslow[1]) * 100)));
};
};
if (skilllevel["levelspeed"] > 0){
if (coolspeed[0] < coolspeed[1]){
_local2 = coolspeed;
_local3 = 0;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
icspeed.gotoAndStop(int(((coolspeed[0] / coolspeed[1]) * 100)));
};
};
if (speedcount > 0){
i = 0;
while (i < this.numChildren) {
if ((this.getChildAt(i) is GHObject)){
if (GHObject(this.getChildAt(i)).motionobj){
GHObject(this.getChildAt(i)).motionobj.amp = addspeed;
createamp = 1.7;
};
};
i++;
};
speedcount--;
obj = new fxspeed();
obj.gotoAndStop(skilllevel["levelspeed"]);
obj.x = (obj.px = player.px);
obj.y = (obj.py = player.py);
obj.rotation = (obj.ang = (Math.random() * 360));
this.addChild(obj);
if (speedcount < 2){
i = 0;
while (i < this.numChildren) {
if ((this.getChildAt(i) is GHObject)){
if (GHObject(this.getChildAt(i)).motionobj){
GHObject(this.getChildAt(i)).motionobj.amp = 1;
createamp = 1;
};
};
i++;
};
};
};
if (slowcount > 0){
i = 0;
while (i < this.numChildren) {
if ((this.getChildAt(i) is GHObject)){
if (((GHObject(this.getChildAt(i)).motionobj) && ((GHObject(this.getChildAt(i)).team == GHObject(this.getChildAt(i)).GH_ENEMY)))){
GHObject(this.getChildAt(i)).motionobj.amp = 0.4;
createamp = 0.08;
};
};
i++;
};
slowcount--;
obj = new fxslow();
obj.gotoAndStop(skilllevel["levelslow"]);
obj.x = (obj.px = player.px);
obj.y = (obj.py = player.py);
obj.rotation = (obj.ang = (Math.random() * 360));
this.addChild(obj);
if (slowcount < 2){
i = 0;
while (i < this.numChildren) {
if ((this.getChildAt(i) is GHObject)){
if (GHObject(this.getChildAt(i)).motionobj){
GHObject(this.getChildAt(i)).motionobj.amp = 1;
createamp = 1;
};
};
i++;
};
};
};
if (bariercount > 0){
score = (score - skillbarierx[skilllevel["levelbarier"]]);
bariercount--;
obj = new fxbarier();
obj.gotoAndStop(skilllevel["levelbarier"]);
obj.x = (obj.px = player.x);
obj.y = (obj.py = player.y);
this.addChild(obj);
};
if (undie > 0){
obj = new fxbarier();
obj.gotoAndStop(skilllevel["levelbarier"]);
obj.x = (obj.px = player.x);
obj.y = (obj.py = player.y);
this.addChild(obj);
};
pi.gotoAndStop((pcount + 1));
if (pcount <= 0){
pc.y = 580;
} else {
pc.y = 448;
};
};
GHAllFrame = function (){
i = 0;
while (i < this.numChildren) {
if ((this.getChildAt(i) is GHObject)){
if (!this.getChildAt(i).visible){
GHObject(this.getChildAt(i)).motionobj = null;
delete ??getglobalscope
[this.getChildAt(i)];
this.removeChild(this.getChildAt(i));
};
};
i++;
};
if ((((((((((((((getChildByName("tuto") == null)) && ((getChildByName("clear") == null)))) && ((getChildByName("up") == null)))) && ((getChildByName("over") == null)))) && ((getChildByName("stop") == null)))) && ((getChildByName("submit") == null)))) && ((player.hp > 0)))){
repx.text = "play";
av.visible = true;
GH_stopgame = false;
} else {
repx.text = "stop";
av.visible = false;
GH_stopgame = true;
};
};
stop();
}
public function lineBulletRangeV(_arg1){
var _local2:*;
_local2 = null;
if ((Math.random() * 100) < 5){
_local2 = lineAng(enemypic["mine"], _arg1.px, _arg1.py, 0, mineRemove, 50, 100, mineHit);
_local2.power = 0;
};
return (_local2);
}
public function firebRemove(_arg1, _arg2){
var _local3:*;
_local3 = 0;
while (_local3 < 6) {
Choming(enemypic["star6"], _arg2.px, _arg2.py, ((360 * _local3) / 6), 70, player, 200, 10, playerHit, objectRemove).power = bulletpow;
_local3++;
};
}
public function effectAddEx_hero(_arg1){
var _local2:*;
_local2 = new gfx_hero_hited();
_local2.x = (_local2.px = _arg1.x);
_local2.y = (_local2.py = _arg1.y);
this.addChild(_local2);
}
public function objectRemove(_arg1, _arg2){
effectAdd(_arg2);
}
public function scatterRemove(_arg1, _arg2){
var _local3:*;
_local3 = 0;
while (_local3 < 8) {
lineAng(enemypic["star8"], _arg2.px, _arg2.py, ((360 * _local3) / 8), objectRemove, 10, 50, playerHit).power = bulletpow;
_local3++;
};
}
public function playerHit(_arg1, _arg2){
if ((player.lasthit + 1000) < getTimer()){
player.lasthit = getTimer();
if ((Math.random() * 100) > skillavoid[skilllevel["levelavoid"]]){
_arg1.visible = false;
effectAdd(_arg1);
if ((((((bariercount == 0)) && ((undie == 0)))) && ((_arg1.power > 0)))){
effectAddEx_hero(player);
player.hp = (player.hp - _arg1.power);
avoid = Math.round((avoid / 2));
};
if (_arg1.power > 0){
shake = 10;
};
} else {
effectAddEx(15, _arg2);
};
};
}
public function lineBulletV(_arg1){
var _local2:*;
_local2 = null;
if ((Math.random() * 100) < 5){
_local2 = lineAng(enemypic["sniperbullet"], _arg1.px, _arg1.py, 0, objectRemove, 5, 100, playerHit);
_local2.power = enemypow;
};
return (_local2);
}
public function lineBulletH(_arg1){
var _local2:*;
_local2 = null;
if ((Math.random() * 100) < 5){
_local2 = lineAng(enemypic["sniperbullet"], _arg1.px, _arg1.py, 270, objectRemove, 5, 100, playerHit);
_local2.power = enemypow;
};
return (_local2);
}
public function levelUp(){
var _local1:*;
if (levelcount == 0){
_local1 = new gui_dia_tutorial();
_local1.px = (_local1.x = 320);
_local1.py = (_local1.y = 240);
_local1.name = "tuto";
addChild(_local1);
};
levelcount++;
if (getChildByName("sniperh") != null){
removeChild(getChildByName("sniperh"));
};
if (getChildByName("sniperv") != null){
removeChild(getChildByName("sniperv"));
};
if (LOS[levelcount][0] != null){
sniper(30, 10, 0, 10, -1, player, "sniperv", LOS[levelcount][0]);
};
if (LOS[levelcount][1] != null){
sniper(31, 10, 0, 10, -1, player, "sniperh", LOS[levelcount][1]);
};
bg.gotoAndStop((int((levelcount % 5)) + 1));
bg2.gotoAndStop((int((Math.random() * 15)) + 1));
}
public function effectAdd(_arg1){
var _local2:*;
_local2 = new mgfx_all();
_local2.gotoAndStop(_arg1.currentFrame);
_local2.x = (_local2.px = _arg1.x);
_local2.y = (_local2.py = _arg1.y);
this.addChild(_local2);
}
public function lineBulletScatterH(_arg1){
var _local2:*;
_local2 = null;
if ((Math.random() * 100) < 3){
_local2 = lineAng(enemypic["sniperstar8"], _arg1.px, _arg1.py, 270, scatterRemove, 5, (int((Math.random() * 50)) + 25), playerHit);
_local2.power = enemypow;
};
return (_local2);
}
public function lineBulletTailH(_arg1){
var _local2:*;
_local2 = null;
if ((Math.random() * 100) < 3){
_local2 = lineAng(enemypic["snipertail"], _arg1.px, _arg1.py, 270, objectRemove, 5, 100, playerHit);
_local2.process = sniperTail;
_local2.power = enemypow;
};
return (_local2);
}
public function lineBulletScatterV(_arg1){
var _local2:*;
_local2 = null;
if ((Math.random() * 100) < 3){
_local2 = lineAng(enemypic["sniperstar8"], _arg1.px, _arg1.py, 0, scatterRemove, 5, (int((Math.random() * 50)) + 25), playerHit);
_local2.power = enemypow;
};
return (_local2);
}
public function lineBulletTailV(_arg1){
var _local2:*;
_local2 = null;
if ((Math.random() * 100) < 3){
_local2 = lineAng(enemypic["snipertail"], _arg1.px, _arg1.py, 0, objectRemove, 5, 100, playerHit);
_local2.process = sniperTail;
_local2.power = enemypow;
};
return (_local2);
}
public function sniperTail(_arg1){
var obj:*;
var me = _arg1;
obj = null;
if ((framecount % 10) == 0){
obj = new mspr_all();
obj.gotoAndStop(enemypic["snipertail_sub"]);
obj.setNormal(50, 5, -1, 1, true, null);
obj.hitable(obj.GH_ENEMY, obj.GH_PLAYER, 10, this);
obj.hitObject = playerHit;
obj.px = me.px;
obj.py = me.py;
obj.process = function (){
if (this.alpha > 0){
this.alpha = (this.alpha - 0.01);
};
};
obj.onRemove = objectRemove;
obj.power = enemypow;
this.addChild(obj);
};
return (obj);
}
public function effectAddEx(_arg1, _arg2){
var _local3:*;
if ((misstime + 500) < getTimer()){
_local3 = new fxmiss();
_local3.x = (_local3.px = _arg2.x);
_local3.y = (_local3.py = _arg2.y);
this.addChild(_local3);
misstime = getTimer();
};
}
public function lineBulletShooter(_arg1){
var _local2:*;
_local2 = null;
if ((Math.random() * 100) < 5){
_local2 = linePosition(enemypic["twoway_sub"], _arg1.x, _arg1.y, player.x, _arg1.y, 100, playerHit, objectRemove, 10);
_local2.power = enemypow;
};
return (_local2);
}
public function stopperRemove(_arg1, _arg2){
stopperActive(enemypic["stopper_sub"], 10, _arg2.px, _arg2.py, normalRemove, playerHitmindfx).power = enemypow;
}
public function mineHit(_arg1, _arg2){
if ((player.lasthit + 1000) < getTimer()){
mineRemove(0, _arg1);
};
}
public function effecthp(_arg1){
var _local2:*;
_local2 = new heale();
_local2.x = (_local2.px = ((64 + (Math.random() * 20)) - 10));
_local2.y = (_local2.py = ((450 + (Math.random() * 20)) - 10));
player.hp = (player.hp + 0.12);
this.addChild(_local2);
}
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) {
};
}
public function tailPlayerHit(_arg1, _arg2){
if ((player.lasthit + 1000) < getTimer()){
effectAdd(_arg2);
_arg2.visible = false;
};
}
public function loadVariablesNum(_arg1:String){
var _local2:*;
var _local3:*;
_local2 = new URLRequest(_arg1);
_local3 = new URLLoader();
_local3.load(_local2);
}
public function mineRemove(_arg1, _arg2){
var _local3:*;
if (_arg2.visible){
_arg2.visible = false;
_local3 = new mgfx_all();
_local3.gotoAndStop(_arg2.currentFrame);
_local3.px = _arg2.px;
_local3.py = _arg2.py;
_local3.hitable(_local3.GH_ENEMY, _local3.GH_PLAYER, 50, this);
_local3.setNormal(100, 30, 40, bulletpow, true, null);
_local3.hitObject = playerHitmindfx;
this.addChild(_local3);
};
}
public function cockRemove(_arg1, _arg2){
var _local3:*;
_local3 = 0;
while (_local3 < 3) {
Choming(enemypic["star3"], _arg2.px, _arg2.py, ((360 * _local3) / 3), 50, player, 200, 10, playerHit, objectRemove).power = bulletpow;
_local3++;
};
}
public function lineBulletBouce(_arg1){
var obj:*;
var me = _arg1;
obj = null;
if ((Math.random() * 100) < 5){
obj = lineAng(enemypic["bouce"], me.px, me.py, (Math.random() * 360), objectRemove, 5, 200, playerHit);
obj.speed = 10;
obj.process = function (){
if (this.px >= 640){
this.px = 640;
this.motionobj.speedx = -(this.motionobj.speedx);
};
if (this.py >= 480){
this.py = 480;
this.motionobj.speedy = -(this.motionobj.speedy);
};
if (this.px <= 0){
this.px = 0;
this.motionobj.speedx = -(this.motionobj.speedx);
};
if (this.py < 0){
this.py = 0;
this.motionobj.speedy = -(this.motionobj.speedy);
};
};
obj.power = enemypow;
};
return (obj);
}
}
}//package com.greenhermit.template
Section 9
//FlashGame (com.greenhermit.template.FlashGame)
package com.greenhermit.template {
import flash.events.*;
import com.greenhermit.*;
public dynamic class FlashGame extends GHGameFlash {
public var GH_enterframeuse:Boolean;
public var GHEnterFrame;
public var GH_stopgame:Boolean;
public var GHAllFrame;
public function FlashGame():void{
GHEnterFrame = function (){
};
GHAllFrame = function (){
};
super();
this.GH_enterframeuse = false;
this.GH_stopgame = false;
}
override public function enterFrame(_arg1:Event):void{
if (!GH_stopgame){
super.enterFrame(_arg1);
if (this.GH_enterframeuse){
GHEnterFrame();
};
};
GHAllFrame();
}
}
}//package com.greenhermit.template
Section 10
//GHGameFlash (com.greenhermit.GHGameFlash)
package com.greenhermit {
import flash.display.*;
import com.greenhermit.object.*;
import flash.events.*;
public class GHGameFlash extends MovieClip {
public function GHGameFlash():void{
addEventListener(Event.ENTER_FRAME, enterFrame);
}
public function enterFrame(_arg1:Event):void{
var _local2:*;
stage.focus = this;
_local2 = 0;
while (_local2 < this.numChildren) {
if ((this.getChildAt(_local2) is GHObject)){
GHObject(this.getChildAt(_local2)).enterFrame(_arg1);
GHObject(this.getChildAt(_local2)).updatePosition();
};
_local2++;
};
_local2 = 0;
while (_local2 < this.numChildren) {
if ((this.getChildAt(_local2) is GHObject)){
if (!this.getChildAt(_local2).visible){
GHObject(this.getChildAt(_local2)).motionobj = null;
delete ??getglobalscope
[this.getChildAt(_local2)];
this.removeChild(this.getChildAt(_local2));
};
};
_local2++;
};
}
}
}//package com.greenhermit
Section 11
//bar_root_18 (shun_511030a_pb_fla.bar_root_18)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class bar_root_18 extends MovieClip {
public var barmask:MovieClip;
}
}//package shun_511030a_pb_fla
Section 12
//BG_2 (shun_511030a_pb_fla.BG_2)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class BG_2 extends MovieClip {
public function BG_2(){
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(parent).gotoAndStop(2);
}
}
}//package shun_511030a_pb_fla
Section 13
//LOGOEND_43 (shun_511030a_pb_fla.LOGOEND_43)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class LOGOEND_43 extends MovieClip {
public function LOGOEND_43(){
addFrameScript(132, frame133);
}
function frame133(){
MovieClip(root).play();
stop();
}
}
}//package shun_511030a_pb_fla
Section 14
//LOGOPRELOAD_0_23 (shun_511030a_pb_fla.LOGOPRELOAD_0_23)
package shun_511030a_pb_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_0_23 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_0_23(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package shun_511030a_pb_fla
Section 15
//LOGOPRELOAD_1_27 (shun_511030a_pb_fla.LOGOPRELOAD_1_27)
package shun_511030a_pb_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_1_27 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_1_27(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package shun_511030a_pb_fla
Section 16
//LOGOPRELOAD_2_30 (shun_511030a_pb_fla.LOGOPRELOAD_2_30)
package shun_511030a_pb_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_2_30 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_2_30(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package shun_511030a_pb_fla
Section 17
//LOGOPRELOAD_3_32 (shun_511030a_pb_fla.LOGOPRELOAD_3_32)
package shun_511030a_pb_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_3_32 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_3_32(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package shun_511030a_pb_fla
Section 18
//LOGOPRELOAD_4_34 (shun_511030a_pb_fla.LOGOPRELOAD_4_34)
package shun_511030a_pb_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_4_34 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_4_34(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package shun_511030a_pb_fla
Section 19
//LOGOPRELOAD_5_36 (shun_511030a_pb_fla.LOGOPRELOAD_5_36)
package shun_511030a_pb_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_5_36 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_5_36(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package shun_511030a_pb_fla
Section 20
//LOGOPRELOAD_6_38 (shun_511030a_pb_fla.LOGOPRELOAD_6_38)
package shun_511030a_pb_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_6_38 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_6_38(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package shun_511030a_pb_fla
Section 21
//LOGOPRELOAD_7_40 (shun_511030a_pb_fla.LOGOPRELOAD_7_40)
package shun_511030a_pb_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_7_40 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_7_40(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package shun_511030a_pb_fla
Section 22
//Mgfx_base_ene_bomb_98 (shun_511030a_pb_fla.Mgfx_base_ene_bomb_98)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_base_ene_bomb_98 extends MovieClip {
public function Mgfx_base_ene_bomb_98(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 23
//Mgfx_base_ene_bomb_warning_96 (shun_511030a_pb_fla.Mgfx_base_ene_bomb_warning_96)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_base_ene_bomb_warning_96 extends MovieClip {
public function Mgfx_base_ene_bomb_warning_96(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 24
//Mgfx_base_ene_explore_94 (shun_511030a_pb_fla.Mgfx_base_ene_explore_94)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_base_ene_explore_94 extends MovieClip {
public function Mgfx_base_ene_explore_94(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 25
//Mgfx_base_shock_wave_97 (shun_511030a_pb_fla.Mgfx_base_shock_wave_97)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_base_shock_wave_97 extends MovieClip {
public function Mgfx_base_shock_wave_97(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 26
//Mgfx_ene_bomb_95 (shun_511030a_pb_fla.Mgfx_ene_bomb_95)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_ene_bomb_95 extends MovieClip {
public function Mgfx_ene_bomb_95(){
addFrameScript(69, frame70);
}
function frame70(){
parent.visible = false;
}
}
}//package shun_511030a_pb_fla
Section 27
//Mgfx_ene_explore_92 (shun_511030a_pb_fla.Mgfx_ene_explore_92)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_ene_explore_92 extends MovieClip {
public function Mgfx_ene_explore_92(){
addFrameScript(19, frame20);
}
function frame20(){
parent.visible = false;
stop();
}
}
}//package shun_511030a_pb_fla
Section 28
//Mgfx_ene_explore_flak_93 (shun_511030a_pb_fla.Mgfx_ene_explore_flak_93)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_ene_explore_flak_93 extends MovieClip {
public function Mgfx_ene_explore_flak_93(){
addFrameScript(0, frame1, 23, frame24, 44, frame45);
}
function frame1(){
if ((Math.random() * 3) < 1){
gotoAndPlay("p1");
} else {
gotoAndPlay("p0");
};
}
function frame24(){
stop();
}
function frame45(){
stop();
}
}
}//package shun_511030a_pb_fla
Section 29
//Mgfx_ene_explore2_100 (shun_511030a_pb_fla.Mgfx_ene_explore2_100)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_ene_explore2_100 extends MovieClip {
public function Mgfx_ene_explore2_100(){
addFrameScript(14, frame15);
}
function frame15(){
parent.visible = false;
stop();
}
}
}//package shun_511030a_pb_fla
Section 30
//Mgfx_ene_stopper_99 (shun_511030a_pb_fla.Mgfx_ene_stopper_99)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_ene_stopper_99 extends MovieClip {
public function Mgfx_ene_stopper_99(){
addFrameScript(75, frame76);
}
function frame76(){
parent.visible = false;
stop();
}
}
}//package shun_511030a_pb_fla
Section 31
//Mgfx_hero_barier_lv1_128 (shun_511030a_pb_fla.Mgfx_hero_barier_lv1_128)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_hero_barier_lv1_128 extends MovieClip {
public function Mgfx_hero_barier_lv1_128(){
addFrameScript(15, frame16);
}
function frame16(){
parent.visible = false;
}
}
}//package shun_511030a_pb_fla
Section 32
//Mgfx_hero_barier_lv2_129 (shun_511030a_pb_fla.Mgfx_hero_barier_lv2_129)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_hero_barier_lv2_129 extends MovieClip {
public function Mgfx_hero_barier_lv2_129(){
addFrameScript(20, frame21);
}
function frame21(){
parent.visible = false;
}
}
}//package shun_511030a_pb_fla
Section 33
//Mgfx_hero_barier_lv3_130 (shun_511030a_pb_fla.Mgfx_hero_barier_lv3_130)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_hero_barier_lv3_130 extends MovieClip {
public function Mgfx_hero_barier_lv3_130(){
addFrameScript(25, frame26);
}
function frame26(){
parent.visible = false;
}
}
}//package shun_511030a_pb_fla
Section 34
//Mgfx_hero_dodge_lv1_132 (shun_511030a_pb_fla.Mgfx_hero_dodge_lv1_132)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_hero_dodge_lv1_132 extends MovieClip {
public function Mgfx_hero_dodge_lv1_132(){
addFrameScript(24, frame25);
}
function frame25(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 35
//Mgfx_hero_explode_88 (shun_511030a_pb_fla.Mgfx_hero_explode_88)
package shun_511030a_pb_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import com.greenhermit.template.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Mgfx_hero_explode_88 extends MovieClip {
public var dlg;
public function Mgfx_hero_explode_88(){
addFrameScript(62, frame63);
}
function frame63(){
parent.visible = false;
if ((((((((((parent.parent.getChildByName("tuto") == null)) && ((parent.parent.getChildByName("clear") == null)))) && ((parent.parent.getChildByName("up") == null)))) && ((parent.parent.getChildByName("over") == null)))) && ((parent.parent.getChildByName("stop") == null)))){
dlg = new dlgover();
dlg.name = "over";
dlg.x = (dlg.px = 320);
dlg.y = (dlg.py = 240);
AvoidGame(root).addChild(dlg);
stop();
} else {
gotoAndPlay(62);
};
}
}
}//package shun_511030a_pb_fla
Section 36
//Mgfx_hero_reju_lv1_136 (shun_511030a_pb_fla.Mgfx_hero_reju_lv1_136)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_hero_reju_lv1_136 extends MovieClip {
public function Mgfx_hero_reju_lv1_136(){
addFrameScript(24, frame25);
}
function frame25(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 37
//Mgfx_hero_slow_lv1_142 (shun_511030a_pb_fla.Mgfx_hero_slow_lv1_142)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_hero_slow_lv1_142 extends MovieClip {
public function Mgfx_hero_slow_lv1_142(){
addFrameScript(20, frame21);
}
function frame21(){
parent.visible = false;
}
}
}//package shun_511030a_pb_fla
Section 38
//Mgfx_hero_slow_lv2_144 (shun_511030a_pb_fla.Mgfx_hero_slow_lv2_144)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_hero_slow_lv2_144 extends MovieClip {
public function Mgfx_hero_slow_lv2_144(){
addFrameScript(25, frame26);
}
function frame26(){
parent.visible = false;
}
}
}//package shun_511030a_pb_fla
Section 39
//Mgfx_hero_slow_lv3_145 (shun_511030a_pb_fla.Mgfx_hero_slow_lv3_145)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_hero_slow_lv3_145 extends MovieClip {
public function Mgfx_hero_slow_lv3_145(){
addFrameScript(30, frame31);
}
function frame31(){
parent.visible = false;
}
}
}//package shun_511030a_pb_fla
Section 40
//Mgfx_hero_speed_lv1_147 (shun_511030a_pb_fla.Mgfx_hero_speed_lv1_147)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_hero_speed_lv1_147 extends MovieClip {
public function Mgfx_hero_speed_lv1_147(){
addFrameScript(10, frame11);
}
function frame11(){
parent.visible = false;
}
}
}//package shun_511030a_pb_fla
Section 41
//Mgfx_hero_speed_lv2_149 (shun_511030a_pb_fla.Mgfx_hero_speed_lv2_149)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_hero_speed_lv2_149 extends MovieClip {
public function Mgfx_hero_speed_lv2_149(){
addFrameScript(10, frame11);
}
function frame11(){
parent.visible = false;
}
}
}//package shun_511030a_pb_fla
Section 42
//Mgfx_hero_speed_lv3_150 (shun_511030a_pb_fla.Mgfx_hero_speed_lv3_150)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_hero_speed_lv3_150 extends MovieClip {
public function Mgfx_hero_speed_lv3_150(){
addFrameScript(10, frame11);
}
function frame11(){
parent.visible = false;
}
}
}//package shun_511030a_pb_fla
Section 43
//Mgfx_skill_ready_169 (shun_511030a_pb_fla.Mgfx_skill_ready_169)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgfx_skill_ready_169 extends MovieClip {
public function Mgfx_skill_ready_169(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package shun_511030a_pb_fla
Section 44
//Mgui_avoid_time_163 (shun_511030a_pb_fla.Mgui_avoid_time_163)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgui_avoid_time_163 extends MovieClip {
public var av:MovieClip;
public function Mgui_avoid_time_163(){
addFrameScript(24, frame25);
}
function frame25(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 45
//Mgui_avoid_time_text_164 (shun_511030a_pb_fla.Mgui_avoid_time_text_164)
package shun_511030a_pb_fla {
import flash.display.*;
import flash.text.*;
import com.greenhermit.template.*;
public dynamic class Mgui_avoid_time_text_164 extends MovieClip {
public var avrep:TextField;
public function Mgui_avoid_time_text_164(){
addFrameScript(0, frame1);
}
function frame1(){
avrep.text = AvoidGame(root).avrep.text;
}
}
}//package shun_511030a_pb_fla
Section 46
//Mgui_gage_exp_165 (shun_511030a_pb_fla.Mgui_gage_exp_165)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgui_gage_exp_165 extends MovieClip {
public function Mgui_gage_exp_165(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shun_511030a_pb_fla
Section 47
//Mgui_gage_hp_167 (shun_511030a_pb_fla.Mgui_gage_hp_167)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgui_gage_hp_167 extends MovieClip {
public function Mgui_gage_hp_167(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shun_511030a_pb_fla
Section 48
//Mgui_skill_description_103 (shun_511030a_pb_fla.Mgui_skill_description_103)
package shun_511030a_pb_fla {
import flash.display.*;
import com.greenhermit.template.*;
public dynamic class Mgui_skill_description_103 extends MovieClip {
public function Mgui_skill_description_103(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(AvoidGame(root).playerlevel);
}
}
}//package shun_511030a_pb_fla
Section 49
//Mgui_skill_icon1_168 (shun_511030a_pb_fla.Mgui_skill_icon1_168)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgui_skill_icon1_168 extends MovieClip {
public function Mgui_skill_icon1_168(){
addFrameScript(0, frame1, 99, frame100);
}
function frame1(){
stop();
}
function frame100(){
stop();
}
}
}//package shun_511030a_pb_fla
Section 50
//Mgui_skill_icon2_171 (shun_511030a_pb_fla.Mgui_skill_icon2_171)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgui_skill_icon2_171 extends MovieClip {
public function Mgui_skill_icon2_171(){
addFrameScript(0, frame1, 99, frame100);
}
function frame1(){
stop();
}
function frame100(){
stop();
}
}
}//package shun_511030a_pb_fla
Section 51
//Mgui_skill_icon3_172 (shun_511030a_pb_fla.Mgui_skill_icon3_172)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgui_skill_icon3_172 extends MovieClip {
public function Mgui_skill_icon3_172(){
addFrameScript(0, frame1, 99, frame100);
}
function frame1(){
stop();
}
function frame100(){
stop();
}
}
}//package shun_511030a_pb_fla
Section 52
//Mgui_skill_icon4_173 (shun_511030a_pb_fla.Mgui_skill_icon4_173)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgui_skill_icon4_173 extends MovieClip {
public function Mgui_skill_icon4_173(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shun_511030a_pb_fla
Section 53
//Mgui_tutorial_enemies_126 (shun_511030a_pb_fla.Mgui_tutorial_enemies_126)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mgui_tutorial_enemies_126 extends MovieClip {
public function Mgui_tutorial_enemies_126(){
addFrameScript(0, frame1, 30, frame31, 42, frame43, 84, frame85);
}
function frame85(){
}
function frame1(){
}
function frame31(){
}
function frame43(){
}
}
}//package shun_511030a_pb_fla
Section 54
//Mim_arrow_down_111 (shun_511030a_pb_fla.Mim_arrow_down_111)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mim_arrow_down_111 extends MovieClip {
public function Mim_arrow_down_111(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndPlay((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 55
//Mim_barier_ring_121 (shun_511030a_pb_fla.Mim_barier_ring_121)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mim_barier_ring_121 extends MovieClip {
public function Mim_barier_ring_121(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 56
//Mim_green_ring_bold_animate_108 (shun_511030a_pb_fla.Mim_green_ring_bold_animate_108)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mim_green_ring_bold_animate_108 extends MovieClip {
public function Mim_green_ring_bold_animate_108(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndPlay((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 57
//mim_hero_tail_outer_51 (shun_511030a_pb_fla.mim_hero_tail_outer_51)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class mim_hero_tail_outer_51 extends MovieClip {
public function mim_hero_tail_outer_51(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 58
//Mim_slow_wave_143 (shun_511030a_pb_fla.Mim_slow_wave_143)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mim_slow_wave_143 extends MovieClip {
public function Mim_slow_wave_143(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 3)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 59
//Mim_speed_line_148 (shun_511030a_pb_fla.Mim_speed_line_148)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mim_speed_line_148 extends MovieClip {
public function Mim_speed_line_148(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 3)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 60
//Mobj_force_export_46 (shun_511030a_pb_fla.Mobj_force_export_46)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mobj_force_export_46 extends MovieClip {
public function Mobj_force_export_46(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shun_511030a_pb_fla
Section 61
//Msce_bg1_162 (shun_511030a_pb_fla.Msce_bg1_162)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Msce_bg1_162 extends MovieClip {
public function Msce_bg1_162(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shun_511030a_pb_fla
Section 62
//Msce_bg2_161 (shun_511030a_pb_fla.Msce_bg2_161)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Msce_bg2_161 extends MovieClip {
public function Msce_bg2_161(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shun_511030a_pb_fla
Section 63
//Mspr_base_ene_c_homing_67 (shun_511030a_pb_fla.Mspr_base_ene_c_homing_67)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_base_ene_c_homing_67 extends MovieClip {
public function Mspr_base_ene_c_homing_67(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 64
//Mspr_base_ene_cockroach_75 (shun_511030a_pb_fla.Mspr_base_ene_cockroach_75)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_base_ene_cockroach_75 extends MovieClip {
public function Mspr_base_ene_cockroach_75(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 65
//Mspr_base_ene_firework_a_77 (shun_511030a_pb_fla.Mspr_base_ene_firework_a_77)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_base_ene_firework_a_77 extends MovieClip {
public function Mspr_base_ene_firework_a_77(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 66
//Mspr_base_ene_firework_b_79 (shun_511030a_pb_fla.Mspr_base_ene_firework_b_79)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_base_ene_firework_b_79 extends MovieClip {
public function Mspr_base_ene_firework_b_79(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 67
//Mspr_base_ene_four_ways_71 (shun_511030a_pb_fla.Mspr_base_ene_four_ways_71)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_base_ene_four_ways_71 extends MovieClip {
public function Mspr_base_ene_four_ways_71(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 68
//Mspr_base_ene_h_laser_63 (shun_511030a_pb_fla.Mspr_base_ene_h_laser_63)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_base_ene_h_laser_63 extends MovieClip {
public function Mspr_base_ene_h_laser_63(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 69
//Mspr_base_ene_mine_69 (shun_511030a_pb_fla.Mspr_base_ene_mine_69)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_base_ene_mine_69 extends MovieClip {
public function Mspr_base_ene_mine_69(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 70
//Mspr_base_ene_stopper_73 (shun_511030a_pb_fla.Mspr_base_ene_stopper_73)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_base_ene_stopper_73 extends MovieClip {
public function Mspr_base_ene_stopper_73(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 71
//Mspr_base_ene_v_laser_65 (shun_511030a_pb_fla.Mspr_base_ene_v_laser_65)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_base_ene_v_laser_65 extends MovieClip {
public function Mspr_base_ene_v_laser_65(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 72
//Mspr_base_ene0_53 (shun_511030a_pb_fla.Mspr_base_ene0_53)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_base_ene0_53 extends MovieClip {
public function Mspr_base_ene0_53(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 73
//Mspr_base_ene1_55 (shun_511030a_pb_fla.Mspr_base_ene1_55)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_base_ene1_55 extends MovieClip {
public function Mspr_base_ene1_55(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 74
//Mspr_base_ene2_57 (shun_511030a_pb_fla.Mspr_base_ene2_57)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_base_ene2_57 extends MovieClip {
public function Mspr_base_ene2_57(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 75
//Mspr_base_ene3_59 (shun_511030a_pb_fla.Mspr_base_ene3_59)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_base_ene3_59 extends MovieClip {
public function Mspr_base_ene3_59(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 76
//Mspr_base_ene5_61 (shun_511030a_pb_fla.Mspr_base_ene5_61)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_base_ene5_61 extends MovieClip {
public function Mspr_base_ene5_61(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 77
//Mspr_bullet_bounce_84 (shun_511030a_pb_fla.Mspr_bullet_bounce_84)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_bullet_bounce_84 extends MovieClip {
public function Mspr_bullet_bounce_84(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 78
//Mspr_bullet_flak_83 (shun_511030a_pb_fla.Mspr_bullet_flak_83)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_bullet_flak_83 extends MovieClip {
public function Mspr_bullet_flak_83(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 79
//Mspr_bullet_mine_81 (shun_511030a_pb_fla.Mspr_bullet_mine_81)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_bullet_mine_81 extends MovieClip {
public function Mspr_bullet_mine_81(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 80
//Mspr_bullet_normal_80 (shun_511030a_pb_fla.Mspr_bullet_normal_80)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_bullet_normal_80 extends MovieClip {
public function Mspr_bullet_normal_80(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 81
//Mspr_bullet_shadow_82 (shun_511030a_pb_fla.Mspr_bullet_shadow_82)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_bullet_shadow_82 extends MovieClip {
public function Mspr_bullet_shadow_82(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * 4)) + 1));
}
}
}//package shun_511030a_pb_fla
Section 82
//Mspr_ene_cockroach_74 (shun_511030a_pb_fla.Mspr_ene_cockroach_74)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_ene_cockroach_74 extends MovieClip {
public function Mspr_ene_cockroach_74(){
addFrameScript(64, frame65);
}
function frame65(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 83
//Mspr_ene_firework_a_76 (shun_511030a_pb_fla.Mspr_ene_firework_a_76)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_ene_firework_a_76 extends MovieClip {
public function Mspr_ene_firework_a_76(){
addFrameScript(54, frame55);
}
function frame55(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 84
//Mspr_ene_firework_b_78 (shun_511030a_pb_fla.Mspr_ene_firework_b_78)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_ene_firework_b_78 extends MovieClip {
public function Mspr_ene_firework_b_78(){
addFrameScript(99, frame100);
}
function frame100(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 85
//Mspr_ene_four_ways_70 (shun_511030a_pb_fla.Mspr_ene_four_ways_70)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_ene_four_ways_70 extends MovieClip {
public function Mspr_ene_four_ways_70(){
addFrameScript(69, frame70);
}
function frame70(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 86
//Mspr_ene_h_sniper_62 (shun_511030a_pb_fla.Mspr_ene_h_sniper_62)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_ene_h_sniper_62 extends MovieClip {
public function Mspr_ene_h_sniper_62(){
addFrameScript(39, frame40);
}
function frame40(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 87
//Mspr_ene_stopper_72 (shun_511030a_pb_fla.Mspr_ene_stopper_72)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_ene_stopper_72 extends MovieClip {
public function Mspr_ene_stopper_72(){
addFrameScript(74, frame75);
}
function frame75(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 88
//Mspr_ene_v_sniper_64 (shun_511030a_pb_fla.Mspr_ene_v_sniper_64)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_ene_v_sniper_64 extends MovieClip {
public function Mspr_ene_v_sniper_64(){
addFrameScript(39, frame40);
}
function frame40(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 89
//Mspr_ene0_52 (shun_511030a_pb_fla.Mspr_ene0_52)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_ene0_52 extends MovieClip {
public function Mspr_ene0_52(){
addFrameScript(24, frame25);
}
function frame25(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 90
//Mspr_ene1_54 (shun_511030a_pb_fla.Mspr_ene1_54)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_ene1_54 extends MovieClip {
public function Mspr_ene1_54(){
addFrameScript(29, frame30);
}
function frame30(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 91
//Mspr_ene2_56 (shun_511030a_pb_fla.Mspr_ene2_56)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_ene2_56 extends MovieClip {
public function Mspr_ene2_56(){
addFrameScript(29, frame30);
}
function frame30(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 92
//Mspr_ene3_58 (shun_511030a_pb_fla.Mspr_ene3_58)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_ene3_58 extends MovieClip {
public function Mspr_ene3_58(){
addFrameScript(34, frame35);
}
function frame35(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 93
//Mspr_ene4_60 (shun_511030a_pb_fla.Mspr_ene4_60)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_ene4_60 extends MovieClip {
public function Mspr_ene4_60(){
addFrameScript(19, frame20);
}
function frame20(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 94
//Mspr_hero_deco_48 (shun_511030a_pb_fla.Mspr_hero_deco_48)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_hero_deco_48 extends MovieClip {
public function Mspr_hero_deco_48(){
addFrameScript(49, frame50);
}
function frame50(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 95
//Mspr_hero_tail_outer_50 (shun_511030a_pb_fla.Mspr_hero_tail_outer_50)
package shun_511030a_pb_fla {
import flash.display.*;
public dynamic class Mspr_hero_tail_outer_50 extends MovieClip {
public function Mspr_hero_tail_outer_50(){
addFrameScript(29, frame30);
}
function frame30(){
gotoAndPlay(1);
}
}
}//package shun_511030a_pb_fla
Section 96
//THEPRELOADER_1 (shun_511030a_pb_fla.THEPRELOADER_1)
package shun_511030a_pb_fla {
import flash.display.*;
import flash.events.*;
public dynamic class THEPRELOADER_1 extends MovieClip {
public var shiftamt;
public var bar:MovieClip;
public var onRelease;
public var isloaded;
public function THEPRELOADER_1(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stage.removeEventListener(MouseEvent.CLICK, onRelease);
}
function frame1(){
stop();
MovieClip(root).stop();
shiftamt = 17;
isloaded = false;
parent.loaderInfo.addEventListener(ProgressEvent.PROGRESS, PL_LOADING);
onRelease = function (){
};
stage.addEventListener(MouseEvent.CLICK, onRelease);
if (parent.loaderInfo.bytesLoaded >= parent.loaderInfo.bytesTotal){
parent.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, PL_LOADING);
gotoAndStop(10);
};
}
public function PL_LOADING(_arg1:ProgressEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = Math.round(_arg1.bytesLoaded);
_local3 = Math.round(_arg1.bytesTotal);
_local4 = (_local2 / _local3);
MovieClip(MovieClip(getChildByName("bar")).getChildByName("barmask")).scaleX = _local4;
if (_local2 == _local3){
isloaded = true;
};
}
}
}//package shun_511030a_pb_fla
Section 97
//Bgui_next (Bgui_next)
package {
import flash.display.*;
public dynamic class Bgui_next extends SimpleButton {
}
}//package
Section 98
//dlgclear (dlgclear)
package {
import flash.display.*;
import com.greenhermit.object.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import com.greenhermit.template.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class dlgclear extends GHObject {
public var dlg;
public var bnextRelease;
public function dlgclear(){
addFrameScript(34, frame35, 58, frame59, 88, frame89, 89, frame90);
}
function frame35(){
screp.text = (int(AvoidGame(root).score) + "");
borep.text = (int(((AvoidGame(root).score * 25) / 100)) + "");
ttrep.text = (int((AvoidGame(root).score + ((AvoidGame(root).score * 25) / 100))) + "");
AvoidGame(root).score = int((AvoidGame(root).score + ((AvoidGame(root).score * 25) / 100)));
}
function frame59(){
stop();
bnextRelease = function (){
play();
};
bnext.addEventListener("click", bnextRelease);
}
function frame89(){
if (AvoidGame(root).gamelevelmax < AvoidGame(root).levelcount){
visible = false;
AvoidGame(root).GH_stopgame = true;
dlg = new dlgsubmit();
dlg.name = "submit";
dlg.x = (dlg.px = 320);
dlg.y = (dlg.py = 240);
AvoidGame(root).addChild(dlg);
stop();
};
}
function frame90(){
visible = false;
AvoidGame(root).GH_stopgame = false;
stop();
}
}
}//package
Section 99
//dlglvup (dlglvup)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import com.greenhermit.object.objectex.*;
import com.greenhermit.template.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class dlglvup extends GHObjectEx {
public var bmoreRelease2;
public var b_nextRelease;
public function dlglvup(){
addFrameScript(0, frame1, 24, frame25, 79, frame80);
}
public function getURL(_arg1:String, _arg2:String){
var web:String;
var request:URLRequest;
var url = _arg1;
var method = _arg2;
web = url;
request = new URLRequest(web);
try {
navigateToURL(request, method);
} catch(e:Error) {
};
}
function frame25(){
stop();
b_nextRelease = function (){
play();
};
b_next.addEventListener("click", b_nextRelease);
bmoreRelease2 = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_more_free.addEventListener("click", bmoreRelease2);
}
function frame1(){
}
public function loadVariablesNum(_arg1:String){
var _local2:*;
var _local3:*;
_local2 = new URLRequest(_arg1);
_local3 = new URLLoader();
_local3.load(_local2);
}
function frame80(){
AvoidGame(root).GH_stopgame = false;
visible = false;
stop();
}
}
}//package
Section 100
//dlgover (dlgover)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import com.greenhermit.object.objectex.*;
import com.greenhermit.template.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class dlgover extends GHObjectEx {
public var dlg;
public function dlgover(){
addFrameScript(79, frame80);
}
function frame80(){
visible = false;
AvoidGame(root).GH_stopgame = true;
dlg = new dlgsubmit();
dlg.name = "submit";
dlg.x = (dlg.px = 320);
dlg.y = (dlg.py = 240);
AvoidGame(root).addChild(dlg);
stop();
}
}
}//package
Section 101
//dlgstop (dlgstop)
package {
import com.greenhermit.object.objectex.*;
public dynamic class dlgstop extends GHObjectEx {
}
}//package
Section 102
//dlgsubmit (dlgsubmit)
package {
import flash.display.*;
import com.greenhermit.object.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import com.greenhermit.object.objectex.*;
import com.greenhermit.template.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class dlgsubmit extends GHObjectEx {
public var bmenuRelease;
public var bmoregameRelease;
public var bsubmitRelease;
public function dlgsubmit(){
addFrameScript(0, frame1);
}
public function getURL(_arg1:String, _arg2:String){
var web:String;
var request:URLRequest;
var url = _arg1;
var method = _arg2;
web = url;
request = new URLRequest(web);
try {
navigateToURL(request, method);
} catch(e:Error) {
};
}
function frame1(){
stage.focus = playername;
playerscore.text = AvoidGame(root).score;
playerper.text = ("" + int(((AvoidGame(root).score * 100) / AvoidGame(root).maxscore)));
AvoidGame(root).GH_stopgame = true;
stop();
bmenuRelease = function (){
var _local1:*;
_local1 = 0;
while (_local1 < AvoidGame(root).numChildren) {
if (AvoidGame(root).getChildAt(_local1) != null){
if ((AvoidGame(root).getChildAt(_local1) is GHObject)){
AvoidGame(root).getChildAt(_local1).visible = false;
GHObject(AvoidGame(root).getChildAt(_local1)).stop();
};
};
_local1++;
};
AvoidGame(root).gotoAndStop(1, "Title");
};
bsubmitRelease = function (){
getURL("http://www.mofunzone.com/online_games/shun.shtml", "_blank");
};
bmoregameRelease = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
bmenu.addEventListener("mouseUp", bmenuRelease);
bsubmit.addEventListener("mouseUp", bsubmitRelease);
bmoregame.addEventListener("mouseUp", bmoregameRelease);
}
public function loadVariablesNum(_arg1:String){
var _local2:*;
var _local3:*;
_local2 = new URLRequest(_arg1);
_local3 = new URLLoader();
_local3.load(_local2);
}
}
}//package
Section 103
//fxbarier (fxbarier)
package {
import com.greenhermit.object.objectex.*;
public dynamic class fxbarier extends GHObjectEx {
public function fxbarier(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package
Section 104
//fxbarierx (fxbarierx)
package {
import com.greenhermit.object.objectex.*;
public dynamic class fxbarierx extends GHObjectEx {
public function fxbarierx(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
}
function frame21(){
visible = false;
}
}
}//package
Section 105
//fxdodge (fxdodge)
package {
import com.greenhermit.object.objectex.*;
public dynamic class fxdodge extends GHObjectEx {
public function fxdodge(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package
Section 106
//fxheal (fxheal)
package {
import com.greenhermit.object.objectex.*;
public dynamic class fxheal extends GHObjectEx {
}
}//package
Section 107
//fxheal_bak (fxheal_bak)
package {
import com.greenhermit.object.objectex.*;
public dynamic class fxheal_bak extends GHObjectEx {
public function fxheal_bak(){
addFrameScript(19, frame20);
}
function frame20(){
gotoAndPlay(1);
}
}
}//package
Section 108
//fxmiss (fxmiss)
package {
import com.greenhermit.object.objectex.*;
public dynamic class fxmiss extends GHObjectEx {
public function fxmiss(){
addFrameScript(34, frame35);
}
function frame35(){
this.visible = false;
}
}
}//package
Section 109
//fxrehp (fxrehp)
package {
import com.greenhermit.object.objectex.*;
public dynamic class fxrehp extends GHObjectEx {
public function fxrehp(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package
Section 110
//fxslow (fxslow)
package {
import com.greenhermit.object.objectex.*;
public dynamic class fxslow extends GHObjectEx {
public function fxslow(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 111
//fxslowx (fxslowx)
package {
import com.greenhermit.object.objectex.*;
public dynamic class fxslowx extends GHObjectEx {
public function fxslowx(){
addFrameScript(0, frame1, 25, frame26);
}
function frame26(){
visible = false;
}
function frame1(){
}
}
}//package
Section 112
//fxspeed (fxspeed)
package {
import com.greenhermit.object.objectex.*;
public dynamic class fxspeed extends GHObjectEx {
public function fxspeed(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 113
//fxspeedx (fxspeedx)
package {
import com.greenhermit.object.objectex.*;
public dynamic class fxspeedx extends GHObjectEx {
public function fxspeedx(){
addFrameScript(0, frame1, 35, frame36);
}
function frame1(){
}
function frame36(){
visible = false;
}
}
}//package
Section 114
//gfx_hero_hited (gfx_hero_hited)
package {
import com.greenhermit.object.objectex.*;
public dynamic class gfx_hero_hited extends GHObjectEx {
public function gfx_hero_hited(){
addFrameScript(24, frame25);
}
function frame25(){
this.visible = false;
}
}
}//package
Section 115
//gui_dia_tutorial (gui_dia_tutorial)
package {
import com.greenhermit.object.objectex.*;
import com.greenhermit.template.*;
public dynamic class gui_dia_tutorial extends GHObjectEx {
public var b_nextRelease;
public function gui_dia_tutorial(){
addFrameScript(54, frame55, 104, frame105, 154, frame155, 204, frame205, 254, frame255, 304, frame305, 354, frame355, 404, frame405, 414, frame415);
}
function frame155(){
stop();
}
function frame405(){
stop();
}
function frame415(){
AvoidGame(root).GH_stopgame = false;
visible = false;
stop();
}
function frame55(){
stop();
b_nextRelease = function (){
play();
};
b_next.addEventListener("click", b_nextRelease);
}
function frame305(){
stop();
}
function frame205(){
stop();
}
function frame105(){
stop();
}
function frame355(){
stop();
}
function frame255(){
stop();
}
}
}//package
Section 116
//heale (heale)
package {
import com.greenhermit.object.objectex.*;
public dynamic class heale extends GHObjectEx {
public function heale(){
addFrameScript(14, frame15);
}
function frame15(){
visible = false;
stop();
}
}
}//package
Section 117
//hline (hline)
package {
import com.greenhermit.object.objectex.*;
public dynamic class hline extends GHObjectEx {
}
}//package
Section 118
//mgfx_all (mgfx_all)
package {
import com.greenhermit.object.objectex.*;
public dynamic class mgfx_all extends GHObjectEx {
public function mgfx_all(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 14, frame15, 29, frame30, 30, frame31, 31, frame32, 44, frame45, 59, frame60);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame15(){
}
function frame2(){
visible = false;
}
function frame32(){
visible = false;
}
function frame30(){
visible = false;
}
function frame45(){
}
function frame31(){
visible = false;
}
function frame60(){
}
}
}//package
Section 119
//mspr_all (mspr_all)
package {
import com.greenhermit.object.objectex.*;
public dynamic class mspr_all extends GHObjectEx {
public function mspr_all(){
addFrameScript(14, frame15, 29, frame30, 44, frame45, 59, frame60);
}
function frame15(){
}
function frame30(){
}
function frame45(){
}
function frame60(){
}
}
}//package
Section 120
//sound1 (sound1)
package {
import flash.media.*;
public dynamic class sound1 extends Sound {
}
}//package
Section 121
//sound2 (sound2)
package {
import flash.media.*;
public dynamic class sound2 extends Sound {
}
}//package
Section 122
//sound3 (sound3)
package {
import flash.media.*;
public dynamic class sound3 extends Sound {
}
}//package
Section 123
//vline (vline)
package {
import com.greenhermit.object.objectex.*;
public dynamic class vline extends GHObjectEx {
}
}//package