Section 1
//Enemy (classes.game.Enemy)
package classes.game {
import flash.display.*;
import flash.events.*;
import libs.kjc.*;
import flash.utils.*;
public class Enemy extends MovieClip {
var dieAc:Boolean;
private var timer:Timer;
private var sfrm:int;
var score:int;
private var fri:Boolean;
private var friNum:int;
private var rfrm:int;
private var lfrm:int;
private var hfrm:int;
private var dfrm:int;
private var enemyMc:MovieClip;
private static var friOn0:Boolean = true;
private static var friOn1:Boolean = true;
private static var friOn2:Boolean = true;
static var deley:int;
public function Enemy():void{
KJC_general.RemoveAllChild(this);
}
private function checkFrm(_arg1:Event):void{
var _local2:int = enemyMc.currentFrame;
if (_local2 == rfrm){
removeEnemy();
} else {
if (_local2 == hfrm){
removeEnemy();
} else {
if (_local2 == lfrm){
enemyMc.gotoAndPlay("ready");
if (fri == true){
KJC_enterframe.moveToFrame(enemyMc, 1, removeEnemy);
};
} else {
if (_local2 == sfrm){
if (fri == false){
Game(this.parent).missionFail();
};
};
};
};
};
}
function setEnemy(_arg1:Array, _arg2:int, _arg3:int):void{
var _local5:Number;
if (enemyMc != null){
return;
};
dieAc = false;
fri = false;
friNum = -1;
var _local4:Number = Math.random();
if ((((_arg3 == 0)) || ((_arg3 == 1)))){
if (_local4 < (((_arg1[0] + _arg1[1]) + _arg1[2]) + _arg1[3])){
enemyMc = new Enemy4();
score = 300;
} else {
_local5 = Math.random();
if (_local5 > 0.5){
if (friOn0 == false){
return;
};
enemyMc = new Enemy9();
enemyMc.scaleX = (enemyMc.scaleY = 1.12);
friNum = 0;
friOn0 = false;
} else {
if (friOn1 == false){
return;
};
enemyMc = new Enemy10();
enemyMc.scaleX = (enemyMc.scaleY = 0.9);
friNum = 1;
friOn1 = false;
};
score = -50;
fri = true;
};
if (_arg3 == 1){
enemyMc.scaleX = -1;
};
} else {
if (_local4 < _arg1[0]){
_local5 = Math.random();
if (_local5 > 0.5){
enemyMc = new Enemy0();
} else {
enemyMc = new Enemy5();
};
score = 100;
} else {
if (_local4 < (_arg1[0] + _arg1[1])){
enemyMc = new Enemy1();
enemyMc.scaleX = -1;
score = 300;
} else {
if (_local4 < ((_arg1[0] + _arg1[1]) + _arg1[2])){
_local5 = Math.random();
if (_local5 > 0.5){
enemyMc = new Enemy2();
} else {
enemyMc = new Enemy6();
};
score = 100;
} else {
if (_local4 < (((_arg1[0] + _arg1[1]) + _arg1[2]) + _arg1[3])){
enemyMc = new Enemy3();
enemyMc.scaleX = -1;
score = 300;
} else {
_local5 = Math.random();
if (_local5 > 0.33){
if (friOn0 == false){
return;
};
enemyMc = new Enemy7();
enemyMc.scaleX = (enemyMc.scaleY = 1.12);
friNum = 0;
friOn0 = false;
} else {
if (_local5 > 0.66){
if (friOn1 == false){
return;
};
enemyMc = new Enemy8();
enemyMc.scaleX = (enemyMc.scaleY = 0.9);
friNum = 1;
friOn1 = false;
} else {
if (friOn2 == false){
return;
};
enemyMc = new Enemy11();
enemyMc.scaleX = (enemyMc.scaleY = 1.16);
friNum = 2;
friOn2 = false;
};
};
score = -50;
fri = true;
};
};
};
};
};
enemyMc.gotoAndStop("remove");
rfrm = enemyMc.currentFrame;
enemyMc.gotoAndStop("die");
dfrm = enemyMc.currentFrame;
enemyMc.gotoAndStop("live");
lfrm = enemyMc.currentFrame;
enemyMc.gotoAndStop("shot");
sfrm = enemyMc.currentFrame;
if (fri == true){
enemyMc.gotoAndStop("hide");
hfrm = enemyMc.currentFrame;
} else {
hfrm = 1000;
};
deley = (deley + KJC_general.Random(_arg2));
timer = new Timer(deley, 1);
timer.addEventListener(TimerEvent.TIMER, enemyView);
timer.start();
}
function enemyLose():void{
if (enemyMc == null){
return;
};
timer.stop();
dieAc = true;
if (fri == false){
enemyMc.gotoAndPlay("die");
} else {
enemyMc.gotoAndPlay("success");
};
}
private function enemyView(_arg1:Event):void{
if (enemyMc == null){
return;
};
this.addChild(enemyMc);
enemyMc.gotoAndPlay(1);
enemyMc.addEventListener(Event.ENTER_FRAME, checkFrm);
}
function enemyDie():void{
if (dieAc == true){
return;
};
dieAc = true;
if (enemyMc == null){
return;
};
if (fri == true){
enemyMc.gotoAndPlay("ready");
KJC_enterframe.moveToFrame(enemyMc, 1, removeEnemy);
} else {
enemyMc.gotoAndPlay(dfrm);
};
}
function removeEnemy(_arg1:MovieClip=null):void{
if (enemyMc == null){
return;
};
switch (friNum){
case 0:
friOn0 = true;
break;
case 1:
friOn1 = true;
break;
case 2:
friOn2 = true;
break;
};
enemyMc.removeEventListener(Event.ENTER_FRAME, checkFrm);
enemyMc.stop();
KJC_general.remove(enemyMc);
enemyMc = null;
}
function enemyWin():void{
if (enemyMc == null){
return;
};
enemyMc.gotoAndStop("fail");
}
}
}//package classes.game
Section 2
//Game (classes.game.Game)
package classes.game {
import flash.display.*;
import flash.events.*;
import libs.kjc.*;
import flash.media.*;
import classes.*;
import flash.utils.*;
import flash.ui.*;
public class Game extends MovieClip {
public var Cover0:MovieClip;
var tNum:int;
private var delay:int;
private var maxLife:int;
private var shot:int;
var lv:int;
private var eNumM:int;
var score:int;
private var skT:int;
var cNum:int;
private var addNum:int;
public var enemy10:Enemy;
public var enemy0:Enemy;
public var enemy1:Enemy;
public var enemy2:Enemy;
public var enemy3:Enemy;
public var enemy4:Enemy;
public var enemy5:Enemy;
public var enemy6:Enemy;
private var delayR:int;
public var enemy8:Enemy;
public var enemy9:Enemy;
var playOn:Boolean;
public var enemy7:Enemy;
public var enemy11:Enemy;
public var Target:MovieClip;
private var reLoadAc:Boolean;
private var tCNum:int;
private var cIdxA:Array;
private var timer:Timer;
private var lifeB:int;
private var eNum:int;
private var addDelay:int;
private var epctA:Array;
private var tENum:int;
public var ScoreBox:ScoreBox;
public var Cover1:MovieClip;
public var Cover2:MovieClip;
private var life:int;
private var maxShot:int;
static var reStart:Function;
public function Game():void{
playOn = false;
this.Target.visible = false;
reStart = gameReady;
tENum = 12;
lifeB = 3;
tCNum = 3;
cIdxA = new Array(2, 4, 8);
lv = 0;
score = 0;
tNum = 0;
addNum = 5;
delay = 4000;
addDelay = 100;
delayR = 1000;
eNum = 2;
eNumM = 3;
epctA = new Array();
epctA[0] = new Array(0.4, 0.1, 0.2, 0.1);
epctA[1] = new Array(0.4, 0.1, 0.3, 0.1);
epctA[2] = new Array(0.4, 0.1, 0.3, 0.1);
epctA[3] = new Array(0.4, 0.1, 0.3, 0.1);
epctA[4] = new Array(0.4, 0.1, 0.1, 0.1);
maxShot = 10;
shot = maxShot;
maxLife = 10;
life = maxLife;
reLoadAc = false;
this.ScoreBox.setScore(score);
this.ScoreBox.setLife(life);
this.ScoreBox.setLifeB(lifeB);
this.ScoreBox.setShot(shot);
this.ScoreBox.setMission(0, 0);
gameReady();
this.addEventListener(MouseEvent.MOUSE_MOVE, uiCheck);
}
private function reLoadCom(_arg1:Event):void{
this.Target.gotoAndStop(1);
reLoadAc = false;
shot = 10;
this.ScoreBox.setShot(shot);
}
private function gameStart(_arg1:MovieClip=null):void{
if (_arg1 != null){
KJC_general.remove(_arg1);
};
eNum = (eNum + lv);
if (eNum > eNumM){
eNum = eNumM;
};
delay = (delay - (lv * addDelay));
if (delay < 2000){
delay = 2000;
};
tNum = (tNum + addNum);
lv++;
this.ScoreBox.setLv(lv);
gameReStart();
}
function missionSucces(_arg1:int):void{
var _local2:MovieClip;
var _local3:int;
if (playOn == false){
return;
};
setScore(_arg1);
switch (_arg1){
case 100:
_local2 = new Add100();
cNum++;
break;
case 300:
_local2 = new Add300();
cNum++;
break;
case -50:
_local2 = new Remove50();
cNum--;
if (cNum < 0){
cNum = 0;
};
break;
};
this.addChild(_local2);
_local2.x = this.Target.x;
_local2.y = this.Target.y;
this.ScoreBox.setMission(cNum, tNum);
if (cNum == tNum){
_local3 = 0;
while (_local3 < tENum) {
this[("enemy" + _local3)].enemyLose();
_local3++;
};
levelUpFn();
};
}
private function gameReStart(_arg1:MovieClip=null):void{
var _local2:int;
while (_local2 < tENum) {
this[("enemy" + _local2)].removeEnemy();
_local2++;
};
if (_arg1 != null){
KJC_general.remove(_arg1);
};
cNum = 0;
Main.setStageFocus();
this.ScoreBox.setMission(cNum, tNum);
playOn = true;
playGame();
timer = new Timer(delay);
timer.addEventListener(TimerEvent.TIMER, playGame);
timer.start();
Mouse.hide();
this.Target.gotoAndStop(1);
this.Target.visible = true;
this.Target.startDrag(true);
this.Target.addEventListener(MouseEvent.MOUSE_DOWN, shotGun);
}
private function reLoad():void{
Main.playSound(3);
reLoadAc = true;
this.Target.gotoAndStop(2);
var _local1:* = new Timer(1000, 1);
_local1.addEventListener(TimerEvent.TIMER, reLoadCom);
_local1.start();
}
private function gamePause():void{
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, playGame);
playOn = false;
this.Target.visible = false;
Mouse.show();
}
private function shakeGame(_arg1:Event):void{
var _local2:int = (5 - KJC_general.Random(10));
var _local3:int = (5 - KJC_general.Random(10));
this.x = _local2;
this.y = _local3;
this.ScoreBox.x = -(_local2);
this.ScoreBox.y = -(_local3);
skT++;
if (skT == 7){
this.removeEventListener(Event.ENTER_FRAME, shakeGame);
this.x = 0;
this.ScoreBox.x = 0;
this.y = 0;
this.ScoreBox.y = 0;
};
}
function gameOver():void{
SoundMixer.stopAll();
var _local1:GameOver = new GameOver(score);
this.addChild(_local1);
}
function missionFail():void{
var _local1:MovieClip;
var _local3:int;
if (playOn == false){
return;
};
Main.playSound(2);
var _local2:Number = Math.random();
if (_local2 < 0.25){
_local1 = new ShotM_0();
} else {
if (_local2 < 0.5){
_local1 = new ShotM_1();
} else {
if (_local2 < 0.75){
_local1 = new ShotM_2();
} else {
_local1 = new ShotM_3();
};
};
};
this.addChildAt(_local1, (this.numChildren - 4));
_local1.x = (200 + KJC_general.Random(100));
_local1.y = (100 + KJC_general.Random(80));
Main.playSound(5);
life--;
skT = 0;
this.addEventListener(Event.ENTER_FRAME, shakeGame);
this.ScoreBox.setLife(life);
if (life == 0){
_local3 = 0;
while (_local3 < tENum) {
this[("enemy" + _local3)].enemyWin();
_local3++;
};
lifeB--;
this.ScoreBox.setLifeB(lifeB);
gamePause();
if (lifeB == 0){
gameOver();
} else {
gameReady(null, false);
};
};
}
private function uiCheck(_arg1:MouseEvent):void{
var _local2:Boolean = this.ScoreBox.hitTestPoint(this.mouseX, this.mouseY, true);
if (_local2 == true){
Mouse.show();
} else {
if (playOn == true){
Mouse.hide();
};
};
}
function setScore(_arg1:int):void{
if (playOn == false){
return;
};
score = (score + _arg1);
if (score < 0){
score = 0;
};
this.ScoreBox.setScore(score);
}
private function levelUpFn():void{
setScore(1500);
gamePause();
var _local1:LevelUp = new LevelUp();
this.addChild(_local1);
KJC_enterframe.moveToFrame(_local1, _local1.totalFrames, gameReady);
}
private function playGame(_arg1:Event=null):void{
var _local3:int;
var _local2:int = (1 + KJC_general.Random((eNum - 1)));
var _local4:int = (lv - 1);
if (_local4 >= epctA.length){
_local4 = (epctA.length - 1);
};
Enemy.deley = 0;
var _local5:int;
while (_local5 < _local2) {
_local3 = KJC_general.Random((tENum - 1));
this[("enemy" + _local3)].setEnemy(epctA[_local4], delayR, _local3);
_local5++;
};
}
private function shotGun(_arg1:MouseEvent):void{
var _local3:Boolean;
var _local5:int;
var _local6:MovieClip;
var _local7:int;
if (playOn == false){
return;
};
if (shot == 0){
if (reLoadAc == false){
reLoad();
};
return;
};
var _local2:ShotE = new ShotE();
this.addChild(_local2);
_local2.x = this.mouseX;
_local2.y = this.mouseY;
shot--;
Main.playSound(1);
this.ScoreBox.setShot(shot);
var _local4 = 100;
_local5 = 0;
while (_local5 < tCNum) {
_local3 = this[("Cover" + _local5)].hitTestPoint(this.Target.x, this.Target.y, true);
if (_local3 == true){
_local3 = this[("Cover" + _local5)].hit.hitTestPoint(this.Target.x, this.Target.y, true);
if (_local3 == true){
_local7 = KJC_general.Random(2);
switch (_local7){
case 0:
_local6 = new PB_01();
break;
case 1:
_local6 = new PB_02();
break;
case 2:
_local6 = new PB_03();
break;
};
};
_local4 = cIdxA[_local5];
};
_local5++;
};
_local5 = 0;
while (_local5 < tENum) {
_local3 = this[("enemy" + _local5)].hitTestPoint(this.Target.x, this.Target.y, true);
if ((((_local3 == true)) && ((_local4 > _local5)))){
if (this[("enemy" + _local5)].dieAc != true){
Main.playSound(4);
this[("enemy" + _local5)].enemyDie();
missionSucces(this[("enemy" + _local5)].score);
};
_local5 = tENum;
return;
};
_local5++;
};
if (_local6 != null){
this.addChild(_local6);
_local6.x = this.Target.x;
_local6.y = this.Target.y;
};
}
function gameReady(_arg1:MovieClip=null, _arg2:Boolean=true):void{
if (_arg1 != null){
KJC_general.remove(_arg1);
};
life = maxLife;
shot = maxShot;
this.ScoreBox.setShot(shot);
this.ScoreBox.setLife(life);
var _local3:StartMc = new StartMc();
this.addChild(_local3);
if (_arg2 == true){
KJC_enterframe.moveToFrame(_local3, _local3.totalFrames, gameStart);
} else {
KJC_enterframe.moveToFrame(_local3, _local3.totalFrames, gameReStart);
};
}
}
}//package classes.game
Section 3
//GameOver (classes.game.GameOver)
package classes.game {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class GameOver extends MovieClip {
private var str:String;
private var score:int;
private var vFrm:int;
public var Score:Score;
public function GameOver(_arg1:int):void{
addFrameScript(60, frame61);
score = _arg1;
this.gotoAndStop("view");
vFrm = this.currentFrame;
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, checkFrm);
str = String(score);
}
private function checkFrm(_arg1:Event):void{
if (this.currentFrame == vFrm){
this.removeEventListener(Event.ENTER_FRAME, checkFrm);
viewScore();
};
}
function frame61(){
this.stop();
}
public function viewScore():void{
var _local1:LocalConnection = new LocalConnection();
_local1.send("_user", "fnPostScore", int(str));
this.Score.setScore(score);
}
}
}//package classes.game
Section 4
//Score (classes.game.Score)
package classes.game {
import flash.display.*;
import flash.text.*;
import libs.kjc.*;
public class Score extends MovieClip {
public var s3:MovieClip;
public var s4:MovieClip;
public var s5:MovieClip;
public var s0:MovieClip;
public var s1:MovieClip;
public var s2:MovieClip;
public function Score():void{
var _local1:int;
while (_local1 < 6) {
this[("s" + _local1)].gotoAndStop(10);
_local1++;
};
}
function setScore(_arg1:int):void{
var _local4:int;
var _local2:String = KJC_general.intToText(_arg1, 6);
var _local3:int = _local2.length;
var _local5:int;
while (_local5 < _local3) {
_local4 = int(_local2.charAt(_local5));
if (_local4 == 0){
_local4 = 10;
};
this[("s" + _local5)].gotoAndStop(_local4);
_local5++;
};
}
}
}//package classes.game
Section 5
//ScoreBox (classes.game.ScoreBox)
package classes.game {
import flash.display.*;
import flash.text.*;
import libs.kjc.*;
import classes.*;
public class ScoreBox extends MovieClip {
public var shotBar:MovieClip;
public var t0:MovieClip;
public var l0:MovieClip;
public var l1:MovieClip;
public var SndBtn:SndBtn;
private var styleBg:KJC_textStyle;
public var s0:MovieClip;
public var s1:MovieClip;
public var s2:MovieClip;
public var s3:MovieClip;
public var s4:MovieClip;
public var s5:MovieClip;
public var m0:MovieClip;
public var m1:MovieClip;
private var style:KJC_textStyle;
public var lifeMc:MovieClip;
public var lifeBar:MovieClip;
public var t1:MovieClip;
public function ScoreBox():void{
this.lifeMc.gotoAndStop(1);
var _local1:int;
while (_local1 < 6) {
this[("s" + _local1)].gotoAndStop(10);
if (_local1 < 2){
this[("l" + _local1)].gotoAndStop(10);
this[("m" + _local1)].gotoAndStop(10);
this[("t" + _local1)].gotoAndStop(10);
};
_local1++;
};
}
function setLv(_arg1:int):void{
var _local2:String = KJC_general.intToText(_arg1, 2);
setNumber(_local2, "l");
}
function setLife(_arg1:int):void{
this.lifeBar.gotoAndStop((_arg1 + 1));
}
function setScore(_arg1:int):void{
var _local2:String = KJC_general.intToText(_arg1, 6);
setNumber(_local2, "s");
}
function setMission(_arg1:int, _arg2:int):void{
var _local3:String = KJC_general.intToText(_arg1, 2);
setNumber(_local3, "m");
_local3 = KJC_general.intToText(_arg2, 2);
setNumber(_local3, "t");
}
private function setNumber(_arg1:String, _arg2:String):void{
var _local4:int;
var _local3:int = _arg1.length;
var _local5:int;
while (_local5 < _local3) {
_local4 = int(_arg1.charAt(_local5));
if (_local4 == 0){
_local4 = 10;
};
this[(_arg2 + _local5)].gotoAndStop(_local4);
_local5++;
};
}
function setShot(_arg1:int):void{
this.shotBar.gotoAndStop((_arg1 + 1));
}
function setLifeB(_arg1:int):void{
this.lifeMc.gotoAndStop((4 - _arg1));
}
}
}//package classes.game
Section 6
//HowBtn (classes.HowBtn)
package classes {
import flash.display.*;
import flash.events.*;
import libs.kjc.*;
public class HowBtn extends MovieClip {
public function HowBtn():void{
this.mouseChildren = false;
this.gotoAndStop(1);
KJC_general.btnOn(this, btnClick, btnOver, btnOut);
}
private function btnOver(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function btnOut(_arg1:MouseEvent):void{
this.gotoAndStop(1);
}
private function btnClick(_arg1:MouseEvent):void{
this.gotoAndStop(2);
Main.howGame();
}
}
}//package classes
Section 7
//Main (classes.Main)
package classes {
import flash.display.*;
import flash.events.*;
import libs.kjc.*;
import flash.media.*;
import classes.game.*;
public class Main extends MovieClip {
private var mainMc:MovieClip;
private var vol:Number;
private var sndA:Array;
public static var howGame:Function;
public static var reGame:Function;
public static var startGame:Function;
public static var setSoundFn:Function;
public static var playSound:Function;
public static var setStageFocus:Function;
public function Main():void{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.showDefaultContextMenu = false;
startGame = gameStart;
howGame = howtoStart;
reGame = introStart;
playSound = soundPlay;
setSoundFn = setSound;
setStageFocus = setFocusStage;
sndA = new Array();
sndA[0] = new BtnSnd();
sndA[1] = new Gun();
sndA[2] = new Gun02();
sndA[3] = new Reload();
sndA[4] = new Ahh();
sndA[5] = new Hit();
mainMc = new MovieClip();
this.addChildAt(mainMc, 0);
introStart();
}
public function soundPlay(_arg1:int):void{
if (vol == 0){
return;
};
if (_arg1 >= sndA.length){
return;
};
Sound(sndA[_arg1]).play();
}
public function setFocusStage():void{
stage.focus = this;
}
function setSound(_arg1:Number):void{
soundPlay(0);
vol = _arg1;
this.soundTransform = new SoundTransform(_arg1, 0);
}
public function introStart():void{
SoundMixer.stopAll();
KJC_general.RemoveAllChild(mainMc);
var _local1:Intro = new Intro();
mainMc.addChild(_local1);
_local1.x = 250;
_local1.y = 187.5;
}
public function gameStart():void{
SoundMixer.stopAll();
soundPlay(0);
KJC_general.RemoveAllChild(mainMc);
var _local1:Game = new Game();
mainMc.addChild(_local1);
}
public function howtoStart():void{
SoundMixer.stopAll();
soundPlay(0);
KJC_general.RemoveAllChild(mainMc);
var _local1:HowTo = new HowTo();
mainMc.addChild(_local1);
}
}
}//package classes
Section 8
//PlayBtn (classes.PlayBtn)
package classes {
import flash.display.*;
import flash.events.*;
import libs.kjc.*;
public class PlayBtn extends MovieClip {
public function PlayBtn():void{
this.mouseChildren = false;
this.gotoAndStop(1);
KJC_general.btnOn(this, btnClick, btnOver, btnOut);
}
private function btnOver(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function btnOut(_arg1:MouseEvent):void{
this.gotoAndStop(1);
}
private function btnClick(_arg1:MouseEvent):void{
this.gotoAndStop(3);
Main.startGame();
}
}
}//package classes
Section 9
//RePlayBtn (classes.RePlayBtn)
package classes {
import flash.display.*;
import flash.events.*;
import libs.kjc.*;
public class RePlayBtn extends MovieClip {
public function RePlayBtn():void{
this.mouseChildren = false;
this.gotoAndStop(1);
KJC_general.btnOn(this, btnClick, btnOver, btnOut);
}
private function btnOver(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function btnOut(_arg1:MouseEvent):void{
this.gotoAndStop(1);
}
private function btnClick(_arg1:MouseEvent):void{
Main.reGame();
}
}
}//package classes
Section 10
//SndBtn (classes.SndBtn)
package classes {
import flash.display.*;
import flash.events.*;
import libs.kjc.*;
public class SndBtn extends MovieClip {
private static var frm:int = 1;
public function SndBtn():void{
this.mouseChildren = false;
this.gotoAndStop(frm);
KJC_general.btnOn(this, btnClick);
}
private function btnClick(_arg1:MouseEvent):void{
if (this.currentFrame == 1){
frm = 2;
Main.setSoundFn(0);
this.gotoAndStop(frm);
} else {
frm = 1;
Main.setSoundFn(1);
this.gotoAndStop(frm);
};
}
}
}//package classes
Section 11
//SonCriHench_132 (G905_0506_fla.SonCriHench_132)
package G905_0506_fla {
import flash.display.*;
public dynamic class SonCriHench_132 extends MovieClip {
public function SonCriHench_132(){
addFrameScript(0, frame1, 32, frame33, 66, frame67);
}
function frame1(){
}
function frame33(){
stop();
}
function frame67(){
stop();
}
}
}//package G905_0506_fla
Section 12
//Timeline_196 (G905_0506_fla.Timeline_196)
package G905_0506_fla {
import flash.display.*;
public dynamic class Timeline_196 extends MovieClip {
public function Timeline_196(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package G905_0506_fla
Section 13
//Timeline_244 (G905_0506_fla.Timeline_244)
package G905_0506_fla {
import flash.display.*;
public dynamic class Timeline_244 extends MovieClip {
public function Timeline_244(){
addFrameScript(44, frame45);
}
function frame45(){
stop();
}
}
}//package G905_0506_fla
Section 14
//Timeline_74 (G905_0506_fla.Timeline_74)
package G905_0506_fla {
import flash.display.*;
public dynamic class Timeline_74 extends MovieClip {
public function Timeline_74(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package G905_0506_fla
Section 15
//KJC_enterframe (libs.kjc.KJC_enterframe)
package libs.kjc {
import flash.display.*;
import flash.events.*;
public class KJC_enterframe {
private static function ELEmoveToValuex(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
var _local3:Number = _local2.x;
_local2.x = (((_local2.Sx * (_local2.x - _local2.Tx)) + (_local2.Gx * (_local2.prevx - _local2.Tx))) + _local2.Tx);
_local2.prevx = _local3;
_local2.TMx++;
if (_local2.TMx == 50){
_local2.x = _local2.Tx;
_local2.removeEventListener(Event.ENTER_FRAME, ELEmoveToValuex);
finish(_local2.Fnx, _local2);
_local2.Fnx = null;
};
}
public static function moveToFrame(_arg1:MovieClip, _arg2:int, _arg3:Function=null):void{
_arg1.removeEventListener(Event.ENTER_FRAME, EmoveToFrame);
_arg1.F = _arg2;
_arg1.D = ((_arg1.currentFrame)<_arg2) ? 1 : ((_arg1.currentFrame)>_arg2) ? -1 : 0;
_arg1.Fn = _arg3;
_arg1.addEventListener(Event.ENTER_FRAME, EmoveToFrame);
}
public static function moveToValue(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:String, _arg5:Function=null):void{
var _local6:Function = KJC_enterframe[("EmoveToValue" + _arg4)];
_arg1.removeEventListener(Event.ENTER_FRAME, _local6);
_arg1[("T" + _arg4)] = _arg2;
_arg1[("S" + _arg4)] = _arg3;
_arg1[("Fn" + _arg4)] = _arg5;
_arg1.addEventListener(Event.ENTER_FRAME, _local6);
}
private static function EmoveToValuewidth(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
var _local3:Number = (_local2.Twidth - _local2.width);
if (Math.abs(_local3) <= 1){
_local2.width = _local2.Twidth;
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToValuewidth);
finish(_local2.Fnwidth, _local2);
_local2.Fnwidth = null;
} else {
_local2.width = (_local2.width + (_local3 / _local2.Swidth));
};
}
private static function EmoveToValueheight(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
var _local3:Number = (_local2.Theight - _local2.height);
if (Math.abs(_local3) <= 1){
_local2.height = _local2.Theight;
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToValueheight);
finish(_local2.Fnheight, _local2);
_local2.Fnheight = null;
} else {
_local2.height = (_local2.height + (_local3 / _local2.Sheight));
};
}
private static function EmoveToParabolic(_arg1:Event):void{
var _local5:Number;
var _local6:Function;
var _local2:* = _arg1.currentTarget;
var _local3:Number = (_local2.TxP - _local2.x);
var _local4:Number = ((_local2.ThP - _local2.y) / _local2.SyP);
if ((((Math.abs(_local4) <= 2)) && ((_local2.DrP == 1)))){
_local2.DrP = -1;
};
if (_local2.DrP == -1){
if (_local4 < 0){
_local5 = (_local2.TyP - _local2.y);
} else {
_local5 = (_local2.y - _local2.TyP);
};
} else {
_local5 = 1;
};
if ((((Math.abs(_local3) <= _local2.SxP)) || ((_local5 < 0)))){
_local2.x = _local2.TxP;
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToParabolic);
_local6 = _local2.FnP;
_local2.FnP = null;
_local2.FnPro = null;
finish(_local6, _local2);
} else {
if (_local2.FnPro != null){
_local2.FnPro(_local2);
};
_local2.x = (_local2.x + ((_local3 / Math.abs(_local3)) * _local2.SxP));
_local2.y = (_local2.y + (_local2.DrP * _local4));
};
}
public static function moveToValueRV(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:int, _arg5:String, _arg6:Function=null):void{
var _local7:Function = KJC_enterframe[("EmoveToValueRV" + _arg5)];
_arg1.removeEventListener(Event.ENTER_FRAME, _local7);
_arg1[("T" + _arg5)] = _arg2;
_arg1[("S" + _arg5)] = _arg3;
_arg1[("G" + _arg5)] = _arg4;
if (_arg2 > _arg1[_arg5]){
_arg1[("DR" + _arg5)] = 1;
} else {
_arg1[("DR" + _arg5)] = -1;
};
_arg1[("M" + _arg5)] = Math.abs((_arg2 - _arg1[_arg5]));
_arg1[("Fn" + _arg5)] = _arg6;
_arg1.addEventListener(Event.ENTER_FRAME, _local7);
}
private static function EmoveToValueScale(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
var _local3:Number = (_local2.Tscale - (_local2.scaleX * 100));
if (Math.abs(_local3) <= 1){
_local2.scaleX = (_local2.scaleY = (_local2.Tscale / 100));
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToValueScale);
finish(_local2.Fnscale, _local2);
_local2.Fnscale = null;
} else {
_local2.scaleX = (_local2.scaleX + ((_local3 / _local2.Sscale) / 100));
_local2.scaleY = _local2.scaleX;
};
}
private static function EmoveToValueRVheight(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
var _local3:Number = (_local2.DRheight * _local2.Sheight);
_local2.Mheight = (_local2.Mheight - Math.abs(_local3));
_local2.Sheight = (_local2.Sheight + (_local2.Sheight / _local2.Gheight));
if (_local2.Mheight <= 0){
_local2.height = _local2.Theight;
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToValueRVheight);
finish(_local2.Fnheight, _local2);
_local2.Fnheight = null;
} else {
_local2.height = (_local2.height + _local3);
};
}
public static function moveToValueScale(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:Function=null):void{
_arg1.removeEventListener(Event.ENTER_FRAME, EmoveToValueScale);
_arg1.Tscale = _arg2;
_arg1.Sscale = _arg3;
_arg1.Fnscale = _arg4;
_arg1.addEventListener(Event.ENTER_FRAME, EmoveToValueScale);
}
private static function EmoveToValuerotation(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
var _local3:Number = (_local2.Trotation - _local2.rotation);
if (Math.abs(_local3) <= 1){
_local2.rotation = _local2.Trotation;
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToValuerotation);
finish(_local2.Fnrotation, _local2);
_local2.Fnrotation = null;
} else {
_local2.rotation = (_local2.rotation + (_local3 / _local2.Srotation));
};
}
private static function EmoveToValuescaleX(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
var _local3:Number = (_local2.TscaleX - (_local2.scaleX * 100));
if (Math.abs(_local3) <= 1){
_local2.scaleX = (_local2.TscaleX / 100);
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToValuescaleX);
finish(_local2.FnscaleX, _local2);
_local2.FnscaleX = null;
} else {
_local2.scaleX = (_local2.scaleX + ((_local3 / _local2.SscaleX) / 100));
};
}
private static function EmoveToValuescaleY(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
var _local3:Number = (_local2.TscaleY - (_local2.scaleY * 100));
if (Math.abs(_local3) <= 1){
_local2.scaleY = (_local2.TscaleY / 100);
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToValuescaleY);
finish(_local2.FnscaleY, _local2);
_local2.FnscaleY = null;
} else {
_local2.scaleY = (_local2.scaleY + ((_local3 / _local2.SscaleY) / 100));
};
}
private static function EmoveToValueRVwidth(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
var _local3:Number = (_local2.DRwidth * _local2.Swidth);
_local2.Mwidth = (_local2.Mwidth - Math.abs(_local3));
_local2.Swidth = (_local2.Swidth + (_local2.Swidth / _local2.Gwidth));
if (_local2.Mwidth <= 0){
_local2.width = _local2.Twidth;
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToValueRVwidth);
finish(_local2.Fnwidth, _local2);
_local2.Fnwidth = null;
} else {
_local2.width = (_local2.width + _local3);
};
}
private static function ELEmoveToValuey(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
var _local3:Number = _local2.y;
_local2.y = (((_local2.Sy * (_local2.y - _local2.Ty)) + (_local2.Gy * (_local2.prevy - _local2.Ty))) + _local2.Ty);
_local2.prevy = _local3;
_local2.TMy++;
if (_local2.TMy == 20){
_local2.y = _local2.Ty;
_local2.removeEventListener(Event.ENTER_FRAME, ELEmoveToValuey);
finish(_local2.Fny, _local2);
_local2.Fny = null;
};
}
private static function finish(_arg1:Function, _arg2:MovieClip):void{
if (_arg1 != null){
_arg1(_arg2);
};
}
private static function EmoveToValueRVx(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
var _local3:Number = (_local2.DRx * _local2.Sx);
_local2.Mx = (_local2.Mx - Math.abs(_local3));
_local2.Sx = (_local2.Sx + (_local2.Sx / _local2.Gx));
if (_local2.Mx <= 0){
_local2.x = _local2.Tx;
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToValueRVx);
finish(_local2.Fnx, _local2);
_local2.Fnx = null;
} else {
_local2.x = (_local2.x + _local3);
};
}
private static function EmoveToValueRVy(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
var _local3:Number = (_local2.DRy * _local2.Sy);
_local2.My = (_local2.My - Math.abs(_local3));
_local2.Sy = (_local2.Sy + (_local2.Sy / _local2.Gy));
if (_local2.My <= 0){
_local2.y = _local2.Ty;
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToValueRVy);
finish(_local2.Fny, _local2);
_local2.Fny = null;
} else {
_local2.y = (_local2.y + _local3);
};
}
public static function ELmoveToValue(_arg1:MovieClip, _arg2:int, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Function=null):void{
var _local7:Function = KJC_enterframe[("ELEmoveToValue" + _arg5)];
_arg1.removeEventListener(Event.ENTER_FRAME, _local7);
_arg1[("TM" + _arg5)] = 0;
_arg1[("T" + _arg5)] = _arg2;
_arg1[("S" + _arg5)] = _arg3;
_arg1[("G" + _arg5)] = _arg4;
_arg1[("prev" + _arg5)] = _arg1[_arg5];
_arg1[("Fn" + _arg5)] = _arg6;
_arg1.addEventListener(Event.ENTER_FRAME, _local7);
}
private static function EmoveToValuex(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
var _local3:Number = (_local2.Tx - _local2.x);
if (Math.abs(_local3) <= 1){
_local2.x = _local2.Tx;
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToValuex);
finish(_local2.Fnx, _local2);
_local2.Fnx = null;
} else {
_local2.x = (_local2.x + (_local3 / _local2.Sx));
};
}
private static function EmoveToValuey(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
var _local3:Number = (_local2.Ty - _local2.y);
if (Math.abs(_local3) <= 1){
_local2.y = _local2.Ty;
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToValuey);
finish(_local2.Fny, _local2);
_local2.Fny = null;
} else {
_local2.y = (_local2.y + (_local3 / _local2.Sy));
};
}
public static function moveToParabolic(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:Number, _arg5:Number, _arg6:int, _arg7:Function=null, _arg8=null):void{
_arg1.removeEventListener(Event.ENTER_FRAME, EmoveToParabolic);
_arg1.TxP = _arg2;
_arg1.ThP = _arg3;
_arg1.TyP = _arg6;
_arg1.SxP = _arg4;
_arg1.SyP = _arg5;
_arg1.DrP = 1;
_arg1.FnP = _arg7;
_arg1.FnPro = _arg8;
_arg1.addEventListener(Event.ENTER_FRAME, EmoveToParabolic);
}
private static function EmoveToFrame(_arg1:Event):void{
var _local3:Function;
var _local2:* = _arg1.currentTarget;
_local2.gotoAndStop((_local2.currentFrame + _local2.D));
if (_local2.currentFrame == _local2.F){
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToFrame);
_local3 = _local2.Fn;
_local2.Fn = null;
finish(_local3, _local2);
};
}
private static function EmoveToValuealpha(_arg1:Event):void{
var _local2:* = _arg1.currentTarget;
_local2.visible = true;
var _local3:Number = (_local2.Talpha - (_local2.alpha * 100));
if (Math.abs(_local3) <= 10){
if (_local2.Talpha == 0){
_local2.visible = false;
};
_local2.removeEventListener(Event.ENTER_FRAME, EmoveToValuealpha);
_local2.alpha = (_local2.Talpha / 100);
finish(_local2.Fnalpha, _local2);
_local2.Fnalpha = null;
} else {
_local2.alpha = (_local2.alpha + ((_local3 / _local2.Salpha) / 100));
};
}
}
}//package libs.kjc
Section 16
//KJC_general (libs.kjc.KJC_general)
package libs.kjc {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.net.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.accessibility.*;
public class KJC_general {
public static function uintToInt(_arg1:String):int{
var _local2:int;
var _local3:int = stringToInt(_arg1.slice(0, 1));
var _local4:int = stringToInt(_arg1.slice(1, 2));
_local2 = ((_local3 * 16) + _local4);
return (_local2);
}
public static function goLink(_arg1:String, _arg2:String="_self"):void{
trace(((_arg1 + "---") + _arg2));
}
public static function textStyle(_arg1:TextField, _arg2:String, _arg3:Number, _arg4:int=0):void{
var _local5:StyleSheet = new StyleSheet();
var _local6:Object = new Object();
_local6.letterSpacing = _arg3;
_local5.setStyle(".heading", _local6);
_arg1.styleSheet = _local5;
_arg1.type = TextFieldType.DYNAMIC;
switch (_arg4){
case 0:
_arg1.autoSize = TextFieldAutoSize.LEFT;
break;
case 1:
_arg1.autoSize = TextFieldAutoSize.RIGHT;
break;
case 2:
_arg1.autoSize = TextFieldAutoSize.CENTER;
break;
};
_arg1.htmlText = (("<span class='heading'>" + _arg2) + "</span>");
}
public static function textToInt(_arg1:String):int{
var _local3:String;
var _local2:int = (_arg1.length - 1);
var _local4:String = _arg1;
var _local5:int;
while (_local5 < _local2) {
_local3 = _local4.slice(_local5, (_local5 + 1));
switch (_local3){
case "0":
break;
default:
return (int(_arg1));
};
_arg1 = _local4.slice((_local5 + 1));
_local5++;
};
return (int(_arg1));
}
public static function remove(_arg1:MovieClip):void{
if (_arg1.parent != null){
_arg1.parent.removeChild(_arg1);
};
}
public static function getDays(_arg1:int, _arg2:int, _arg3:int):int{
var _local4:Date = new Date(_arg1, (_arg2 - 1), _arg3);
return (_local4.getDay());
}
public static function getDaysInMonth(_arg1:int, _arg2:int):int{
var _local3:* = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
if (isLeapYear(_arg1) == true){
_local3[1] = 29;
};
return (_local3[(_arg2 - 1)]);
}
private static function isLeapYear(_arg1:int):Boolean{
if (((((((_arg1 % 4) == 0)) && (!(((_arg1 % 100) == 0))))) || (((_arg1 % 400) == 0)))){
return (true);
};
return (false);
}
public static function TextLength(_arg1:String, _arg2:int, _arg3:int):String{
if (_arg1.length > _arg2){
_arg1 = (_arg1.slice(0, _arg3) + "...");
return (_arg1);
};
return (_arg1);
}
public static function TextLengthRV(_arg1:String, _arg2:int):String{
var _local3:int = _arg1.length;
var _local4:int = (_local3 - _arg2);
_arg1 = _arg1.slice(_local4, _local3);
return (_arg1);
}
public static function BitmapMask(_arg1:MovieClip, _arg2:MovieClip, _arg3:Boolean):void{
_arg1.cacheAsBitmap = _arg3;
_arg2.cacheAsBitmap = _arg3;
_arg2.mask = _arg1;
}
public static function makeAccessible(_arg1:InteractiveObject, _arg2:Boolean, _arg3:String=null, _arg4:int=-1, _arg5:String=null){
if (_arg1.accessibilityProperties == null){
_arg1.accessibilityProperties = new AccessibilityProperties();
};
if (_arg2){
_arg1.tabEnabled = true;
if ((_arg1 is DisplayObjectContainer)){
DisplayObjectContainer(_arg1).tabChildren = false;
};
if (_arg3 != null){
_arg1.accessibilityProperties.name = _arg3;
};
if (!isNaN(_arg4)){
_arg1.tabIndex = _arg4;
};
if (_arg5 != null){
_arg1.accessibilityProperties.description = _arg5;
};
_arg1.accessibilityProperties.forceSimple = true;
_arg1.accessibilityProperties.silent = true;
};
if (Capabilities.hasAccessibility){
Accessibility.updateProperties();
};
}
public static function intToText(_arg1:int, _arg2:int):String{
var _local5:int;
var _local3:String = String(_arg1);
var _local4:int = _local3.length;
if (_local4 >= _arg2){
} else {
_local5 = _local4;
while (_local5 < _arg2) {
_local3 = ("0" + _local3);
_local5++;
};
};
return (_local3);
}
public static function frameReset(_arg1:MovieClip):void{
_arg1.gotoAndStop(1);
}
public static function Random(_arg1:int):Number{
var _local2:Number = Math.random();
if (_arg1 < 10){
while ((_local2 * 10) > _arg1) {
_local2 = Math.random();
};
_local2 = (_local2 * 10);
} else {
if (_arg1 < 100){
while ((_local2 * 100) > _arg1) {
_local2 = Math.random();
};
_local2 = (_local2 * 100);
} else {
while ((_local2 * 1000) > _arg1) {
_local2 = Math.random();
};
_local2 = (_local2 * 1000);
};
};
_local2 = Math.round(_local2);
return (_local2);
}
public static function focusOn(_arg1:MovieClip, _arg2:Function=null, _arg3:Function=null):void{
if (_arg2 != null){
_arg1.addEventListener(FocusEvent.FOCUS_IN, _arg2);
};
if (_arg3 != null){
_arg1.addEventListener(FocusEvent.FOCUS_OUT, _arg3);
};
}
public static function DrawRect(_arg1:MovieClip, _arg2:uint, _arg3:int, _arg4:int, _arg5:Number=1):void{
_arg1.graphics.clear();
_arg1.graphics.beginFill(_arg2, _arg5);
_arg1.graphics.drawRect(0, 0, _arg3, _arg4);
}
public static function saturationFilter(_arg1:DisplayObject, _arg2:Number, _arg3:Number):void{
if ((((_arg2 == 0)) && ((_arg3 == 0)))){
_arg1.filters = null;
return;
};
var _local4:Array = new Array();
_local4 = _local4.concat([_arg3, _arg2, _arg2, 0, 0]);
_local4 = _local4.concat([_arg2, _arg3, _arg2, 0, 0]);
_local4 = _local4.concat([_arg2, _arg2, _arg3, 0, 0]);
_local4 = _local4.concat([0, 0, 0, 1, 0]);
var _local5:ColorMatrixFilter = new ColorMatrixFilter(_local4);
_arg1.filters = [_local5];
}
public static function Out(_arg1:MouseEvent):void{
_arg1.currentTarget.prevFrame();
}
public static function Click(_arg1:MouseEvent):void{
var _local2:* = _arg1.currentTarget;
if ((((((_local2.tar == undefined)) || ((_local2.tar == "")))) || ((_local2.tar == null)))){
_local2.tar = "_self";
};
navigateToURL(new URLRequest(_local2.link), _local2.tar);
}
public static function loadObj(_arg1:MovieClip, _arg2:String, _arg3:int=0, _arg4:int=0, _arg5:int=0, _arg6:Function=null, _arg7:Function=null, _arg8=null, _arg9:Boolean=true):void{
var _local10:Loader = new Loader();
var _local11:URLRequest = new URLRequest(_arg2);
var _local12:LoaderContext = new LoaderContext();
_local12.checkPolicyFile = true;
_local12.applicationDomain = ApplicationDomain.currentDomain;
_local10.load(_local11, _local12);
if (_arg9 == true){
_arg1.addChildAt(_local10, _arg5);
_local10.x = _arg3;
_local10.y = _arg4;
};
if (_arg7 != null){
_local10.contentLoaderInfo.addEventListener(Event.COMPLETE, _arg7);
};
if (_arg6 != null){
_local10.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, _arg6);
};
if (_arg8 != null){
_local10.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, _arg8);
};
}
private static function stringToInt(_arg1:String):int{
var _local2:int;
var _local3:*;
switch (_arg1){
case "a":
_local2 = 10;
break;
case "b":
_local2 = 11;
break;
case "c":
_local2 = 12;
break;
case "d":
_local2 = 13;
break;
case "e":
_local2 = 14;
break;
case "f":
_local2 = 15;
break;
case "A":
_local2 = 10;
break;
case "B":
_local2 = 11;
break;
case "C":
_local2 = 12;
break;
case "D":
_local2 = 13;
break;
case "E":
_local2 = 14;
break;
case "F":
_local2 = 15;
break;
default:
_local3 = _arg1;
_local2 = (_local3 - 0);
break;
};
return (_local2);
}
public static function btnOff(_arg1:MovieClip, _arg2:Function=null, _arg3:Function=null, _arg4:Function=null):void{
_arg1.buttonMode = false;
if (_arg3 != null){
_arg1.removeEventListener(MouseEvent.MOUSE_OVER, _arg3);
};
if (_arg4 != null){
_arg1.removeEventListener(MouseEvent.MOUSE_OUT, _arg4);
};
if (_arg2 != null){
_arg1.removeEventListener(MouseEvent.CLICK, _arg2);
};
}
public static function Over(_arg1:MouseEvent):void{
_arg1.currentTarget.nextFrame();
}
public static function ReSizeImg(_arg1:int, _arg2:int, _arg3:Bitmap):void{
var _local6:Number;
var _local4:Number = _arg3.width;
var _local5:Number = _arg3.height;
if ((((_local4 > _arg1)) || ((_local5 > _arg2)))){
_arg3.smoothing = true;
if (_local4 > _arg1){
_local6 = (_arg1 / _local4);
_local4 = _arg1;
_local5 = (_local5 * _local6);
};
if (_local5 > _arg2){
_local6 = (_arg2 / _local5);
_local5 = _arg2;
_local4 = (_local4 * _local6);
};
};
_arg3.height = _local5;
_arg3.width = _local4;
_arg3.x = Math.floor(((_arg1 - _local4) / 2));
_arg3.y = Math.floor(((_arg2 - _local5) / 2));
}
public static function focusOff(_arg1:MovieClip, _arg2:Function=null, _arg3:Function=null):void{
if (_arg2 != null){
_arg1.removeEventListener(FocusEvent.FOCUS_IN, _arg2);
};
if (_arg3 != null){
_arg1.removeEventListener(FocusEvent.FOCUS_OUT, _arg3);
};
}
public static function DrawRectGradient(_arg1:MovieClip, _arg2:uint, _arg3:int, _arg4:int, _arg5:int, _arg6:Number=0):void{
_arg1.graphics.clear();
var _local7:String = GradientType.LINEAR;
var _local8:Array = [_arg2, _arg2, _arg2, _arg2];
var _local9:Array = [0, 1, 1, 0];
var _local10:Array = [0, _arg5, (0xFF - _arg5), 0xFF];
var _local11:Matrix = new Matrix();
_local11.createGradientBox(_arg3, 25, _arg6, 0, 0);
_arg1.graphics.beginGradientFill(_local7, _local8, _local9, _local10, _local11);
_arg1.graphics.drawRect(0, 0, _arg3, _arg4);
}
public static function textDivision(_arg1:String, _arg2:String):Array{
var _local4:String;
var _local3:int = _arg1.length;
var _local5:Array = new Array();
var _local6 = "";
var _local7:int;
var _local8:int;
var _local9:int;
while (_local9 < _local3) {
_local4 = _arg1.slice(_local9, (_local9 + 1));
switch (_local4){
case _arg2:
_local5[_local7] = _arg1.slice(_local8, _local9);
_local7++;
_local8 = (_local9 + 1);
break;
default:
break;
};
_local9++;
};
_local5.push(_arg1.slice(_local8));
return (_local5);
}
public static function colorFilter(_arg1:DisplayObject, _arg2:String):void{
var _local3:int = uintToInt(_arg2.slice(2, 4));
var _local4:int = uintToInt(_arg2.slice(4, 6));
var _local5:int = uintToInt(_arg2.slice(6, 8));
var _local6:Number = (_local3 / 0xFF);
var _local7:Number = (_local4 / 0xFF);
var _local8:Number = (_local5 / 0xFF);
_arg1.transform.colorTransform = new ColorTransform(0, 0, 0, 1, _local3, _local4, _local5, 0);
}
public static function btnOn(_arg1:MovieClip, _arg2:Function=null, _arg3:Function=null, _arg4:Function=null, _arg5:Boolean=true):void{
_arg1.stop();
_arg1.buttonMode = _arg5;
if (_arg3 != null){
_arg1.addEventListener(MouseEvent.MOUSE_OVER, _arg3);
};
if (_arg4 != null){
_arg1.addEventListener(MouseEvent.MOUSE_OUT, _arg4);
};
if (_arg2 != null){
_arg1.addEventListener(MouseEvent.CLICK, _arg2);
};
}
public static function RemoveAllChild(_arg1:MovieClip, _arg2:DisplayObject=null):String{
var _local4:*;
var _local3:int = _arg1.numChildren;
var _local5:int = _local3;
while (_local5 > 0) {
_local4 = _arg1.getChildAt((_local5 - 1));
if (_local4 != _arg2){
_arg1.removeChild(_local4);
};
_local5--;
};
return ("ok");
}
}
}//package libs.kjc
Section 17
//KJC_textStyle (libs.kjc.KJC_textStyle)
package libs.kjc {
import flash.display.*;
import flash.text.*;
public class KJC_textStyle {
private var posy:int;
private var heading:Object;
private var posx:int;
private var AutoSize:String;
private var style:StyleSheet;
private var format:TextFormat;
public function KJC_textStyle(_arg1:int, _arg2:String, _arg3:Number, _arg4:String, _arg5:String, _arg6:int=0, _arg7:int=0, _arg8:Boolean=false):void{
style = new StyleSheet();
heading = new Object();
if (_arg8 == false){
heading.fontFamily = _arg4;
};
heading.letterSpacing = _arg3;
heading.fontSize = _arg1;
if (_arg2 != ""){
heading.color = _arg2;
};
style.setStyle(".heading", heading);
AutoSize = _arg5;
posx = _arg6;
posy = _arg7;
}
private function lineCheck(_arg1:TextField):Boolean{
if (_arg1.numLines == 1){
return (true);
};
return (false);
}
public function textLineDivision(_arg1:MovieClip, _arg2:String, _arg3:int, _arg4:int):void{
var _local6:String;
var _local7:String;
var _local9:Array;
var _local10:int;
var _local11:Array;
var _local12:int;
var _local13:Object;
makeImgText(_arg1, _arg2);
if (lineCheck(_arg1.txt) == true){
return;
};
_local9 = KJC_general.textDivision(_arg2, " ");
_local10 = _local9.length;
if (_local10 <= 1){
return;
};
_local11 = new Array();
_local12 = 0;
while (_local10 != _local12) {
_local13 = CheckLinePoint(_arg1, _local9, _local12, _local10);
_local11.push(_local13.str);
_local12 = _local13.num;
};
var _local5:int = _local11.length;
if (_arg3 > _local5){
_arg3 = _local5;
};
var _local8:int;
while (_local8 < _arg3) {
_local7 = _local11[_local8];
switch (_local8){
case 0:
_local6 = _local7;
break;
case (_arg3 - 1):
if (_local11[(_local8 + 1)] != null){
_local7 = (_local7 + _local11[(_local8 + 1)]);
};
_local6 = ((_local6 + "<br>") + KJC_general.TextLength(_local7, _arg4, (_arg4 - 2)));
trace("ok");
break;
default:
_local6 = ((_local6 + "<br>") + _local7);
break;
};
_local8++;
};
makeImgText(_arg1, _local6);
}
public function makeImgText(_arg1:MovieClip, _arg2:String, _arg3:String="txt"):void{
var _local4:* = _arg1[_arg3];
_local4.styleSheet = style;
_local4.type = TextFieldType.DYNAMIC;
_local4.autoSize = TextFieldAutoSize[this.AutoSize];
_local4.htmlText = (("<span class='heading'>" + _arg2) + "</span>");
_local4.x = (_local4.x + posx);
_local4.y = (_local4.y + posy);
}
private function CheckLinePoint(_arg1:MovieClip, _arg2:Array, _arg3:int, _arg4:int):Object{
var _local6:int;
var _local7:String;
var _local5:Boolean;
var _local8:Object = new Object();
while (_local5 == false) {
_local7 = "";
_local6 = _arg3;
while (_local6 < _arg4) {
if (_local6 == _arg3){
_local7 = (_local7 + _arg2[_local6]);
} else {
_local7 = ((_local7 + " ") + _arg2[_local6]);
};
_local6++;
};
makeImgText(_arg1, _local7);
_local5 = lineCheck(_arg1.txt);
_arg4--;
};
_local8.str = _local7;
_local8.num = (_arg4 + 1);
return (_local8);
}
public function makeTextField(_arg1:MovieClip, _arg2:String):void{
var _local3:* = new TextField();
_local3.styleSheet = style;
_local3.type = TextFieldType.DYNAMIC;
_local3.autoSize = TextFieldAutoSize[this.AutoSize];
_local3.htmlText = (("<span class='heading'>" + _arg2) + "</span>");
_arg1.addChild(_local3);
_local3.x = (_local3.x + posx);
_local3.y = (_local3.y + posy);
}
}
}//package libs.kjc
Section 18
//Add100 (Add100)
package {
import flash.display.*;
public dynamic class Add100 extends MovieClip {
public function Add100(){
addFrameScript(14, frame15);
}
function frame15(){
this.stop();
this.parent.removeChild(this);
}
}
}//package
Section 19
//Add300 (Add300)
package {
import flash.display.*;
public dynamic class Add300 extends MovieClip {
public function Add300(){
addFrameScript(14, frame15);
}
function frame15(){
this.stop();
this.parent.removeChild(this);
}
}
}//package
Section 20
//Ahh (Ahh)
package {
import flash.media.*;
public dynamic class Ahh extends Sound {
}
}//package
Section 21
//BtnSnd (BtnSnd)
package {
import flash.media.*;
public dynamic class BtnSnd extends Sound {
}
}//package
Section 22
//Enemy0 (Enemy0)
package {
import flash.display.*;
public dynamic class Enemy0 extends MovieClip {
}
}//package
Section 23
//Enemy1 (Enemy1)
package {
import flash.display.*;
public dynamic class Enemy1 extends MovieClip {
}
}//package
Section 24
//Enemy10 (Enemy10)
package {
import flash.display.*;
public dynamic class Enemy10 extends MovieClip {
}
}//package
Section 25
//Enemy11 (Enemy11)
package {
import flash.display.*;
public dynamic class Enemy11 extends MovieClip {
}
}//package
Section 26
//Enemy2 (Enemy2)
package {
import flash.display.*;
public dynamic class Enemy2 extends MovieClip {
}
}//package
Section 27
//Enemy3 (Enemy3)
package {
import flash.display.*;
public dynamic class Enemy3 extends MovieClip {
}
}//package
Section 28
//Enemy4 (Enemy4)
package {
import flash.display.*;
public dynamic class Enemy4 extends MovieClip {
}
}//package
Section 29
//Enemy5 (Enemy5)
package {
import flash.display.*;
public dynamic class Enemy5 extends MovieClip {
}
}//package
Section 30
//Enemy6 (Enemy6)
package {
import flash.display.*;
public dynamic class Enemy6 extends MovieClip {
}
}//package
Section 31
//Enemy7 (Enemy7)
package {
import flash.display.*;
public dynamic class Enemy7 extends MovieClip {
}
}//package
Section 32
//Enemy8 (Enemy8)
package {
import flash.display.*;
public dynamic class Enemy8 extends MovieClip {
}
}//package
Section 33
//Enemy9 (Enemy9)
package {
import flash.display.*;
public dynamic class Enemy9 extends MovieClip {
}
}//package
Section 34
//Gun (Gun)
package {
import flash.media.*;
public dynamic class Gun extends Sound {
}
}//package
Section 35
//Gun02 (Gun02)
package {
import flash.media.*;
public dynamic class Gun02 extends Sound {
}
}//package
Section 36
//Hit (Hit)
package {
import flash.media.*;
public dynamic class Hit extends Sound {
}
}//package
Section 37
//HowTo (HowTo)
package {
import flash.display.*;
public dynamic class HowTo extends MovieClip {
}
}//package
Section 38
//Intro (Intro)
package {
import flash.display.*;
public dynamic class Intro extends MovieClip {
}
}//package
Section 39
//LevelUp (LevelUp)
package {
import flash.display.*;
public dynamic class LevelUp extends MovieClip {
}
}//package
Section 40
//PB_01 (PB_01)
package {
import flash.display.*;
public dynamic class PB_01 extends MovieClip {
public function PB_01(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package
Section 41
//PB_02 (PB_02)
package {
import flash.display.*;
public dynamic class PB_02 extends MovieClip {
public function PB_02(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
}
}
}//package
Section 42
//PB_03 (PB_03)
package {
import flash.display.*;
public dynamic class PB_03 extends MovieClip {
public function PB_03(){
addFrameScript(38, frame39);
}
function frame39(){
stop();
}
}
}//package
Section 43
//Reload (Reload)
package {
import flash.media.*;
public dynamic class Reload extends Sound {
}
}//package
Section 44
//Remove50 (Remove50)
package {
import flash.display.*;
public dynamic class Remove50 extends MovieClip {
public function Remove50(){
addFrameScript(19, frame20);
}
function frame20(){
this.stop();
this.parent.removeChild(this);
}
}
}//package
Section 45
//ShotE (ShotE)
package {
import flash.display.*;
public dynamic class ShotE extends MovieClip {
public function ShotE(){
addFrameScript(11, frame12);
}
function frame12(){
this.stop();
this.parent.removeChild(this);
}
}
}//package
Section 46
//ShotM_0 (ShotM_0)
package {
import flash.display.*;
public dynamic class ShotM_0 extends MovieClip {
public function ShotM_0(){
addFrameScript(17, frame18);
}
function frame18(){
this.stop();
this.parent.removeChild(this);
}
}
}//package
Section 47
//ShotM_1 (ShotM_1)
package {
import flash.display.*;
public dynamic class ShotM_1 extends MovieClip {
public function ShotM_1(){
addFrameScript(17, frame18);
}
function frame18(){
this.stop();
this.parent.removeChild(this);
}
}
}//package
Section 48
//ShotM_2 (ShotM_2)
package {
import flash.display.*;
public dynamic class ShotM_2 extends MovieClip {
public function ShotM_2(){
addFrameScript(10, frame11);
}
function frame11(){
this.stop();
this.parent.removeChild(this);
}
}
}//package
Section 49
//ShotM_3 (ShotM_3)
package {
import flash.display.*;
public dynamic class ShotM_3 extends MovieClip {
public function ShotM_3(){
addFrameScript(11, frame12);
}
function frame12(){
this.stop();
this.parent.removeChild(this);
}
}
}//package
Section 50
//StartMc (StartMc)
package {
import flash.display.*;
public dynamic class StartMc extends MovieClip {
}
}//package