Section 1
//ActionButtonMovieClip (ActionButtonMovieClip)
package {
import flash.events.*;
public class ActionButtonMovieClip extends BaseButtonMovieClip {
public function ActionButtonMovieClip(_arg1:GameApp){
x = GameApp.ACTION_BUTTON_POS_X;
y = GameApp.ACTION_BUTTON_POS_Y;
buttonMode = true;
visible = false;
mStatus = GameApp.BUTTON_HIDE;
mChangeTime = 0;
mGameApp = _arg1;
addEventListener(MouseEvent.CLICK, mouseClick);
addEventListener(Event.ENTER_FRAME, move);
}
protected function move(_arg1:Event):void{
mChangeTime++;
if (mStatus == GameApp.BUTTON_SELECT){
if (mChangeTime == GameApp.ACTION_TIME){
if (GameApp.SoulIndex == 0){
mGameApp.sendMessage(GameApp.SoulGimmick, "core", "ready");
} else {
mGameApp.sendMessage(GameApp.SoulGimmick, ("core" + GameApp.SoulIndex), "ready");
};
};
};
commonFrameFunc();
}
protected function mouseClick(_arg1:MouseEvent):void{
if (!visible){
return;
};
if (mStatus != GameApp.BUTTON_DISP){
return;
};
if (GameApp.Pause){
return;
};
setStatus(GameApp.BUTTON_SELECT);
mGameApp.setButtonClick(GameApp.BUTTON_ACTION);
}
}
}//package
Section 2
//ActionButtonMovieClip_en (ActionButtonMovieClip_en)
package {
public class ActionButtonMovieClip_en extends ActionButtonMovieClip {
public function ActionButtonMovieClip_en(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 3
//ActionButtonMovieClip_fr (ActionButtonMovieClip_fr)
package {
public class ActionButtonMovieClip_fr extends ActionButtonMovieClip {
public function ActionButtonMovieClip_fr(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 4
//ActionButtonMovieClip_gr (ActionButtonMovieClip_gr)
package {
public class ActionButtonMovieClip_gr extends ActionButtonMovieClip {
public function ActionButtonMovieClip_gr(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 5
//ActionButtonMovieClip_it (ActionButtonMovieClip_it)
package {
public class ActionButtonMovieClip_it extends ActionButtonMovieClip {
public function ActionButtonMovieClip_it(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 6
//ActionButtonMovieClip_sp (ActionButtonMovieClip_sp)
package {
public class ActionButtonMovieClip_sp extends ActionButtonMovieClip {
public function ActionButtonMovieClip_sp(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 7
//BalloonCicel (BalloonCicel)
package {
import flash.display.*;
import flash.events.*;
public final class BalloonCicel extends MovieClip {
private var mSubScriptIndex:int;// = -1
private var mbEnd:Boolean;// = false
private var mLife:int;// = 0
private var mCounter:int;// = 0
private var mStartPosX:Number;// = 0
private var mStartPosY:Number;// = 0
private var mGameApp:GameApp;// = null
private var mbTouch:Boolean;// = false
private var mLifeTime:int;// = 0
public function BalloonCicel(_arg1:GameApp, _arg2:Number, _arg3:Number, _arg4:int, _arg5:int){
addFrameScript(8, frame9, 36, frame37, 55, frame56);
mGameApp = _arg1;
mStartPosX = _arg2;
mStartPosY = _arg3;
mCounter = 0;
mLifeTime = _arg4;
mLife = 0;
mSubScriptIndex = _arg5;
mbEnd = false;
mbTouch = false;
buttonMode = false;
x = _arg2;
y = _arg3;
addEventListener(MouseEvent.CLICK, mouseClick);
mGameApp.callSe("sys_006", false);
}
function frame56(){
mbEnd = true;
}
public function update():void{
if (mCounter <= GameApp.BALLOON_CICEL_GOTO_COUNT){
x = ((((GameApp.BALLOON_CICEL_TARGET_POS_X - mStartPosX) * mCounter) / GameApp.BALLOON_CICEL_GOTO_COUNT) + mStartPosX);
y = ((((GameApp.BALLOON_CICEL_TARGET_POS_Y - mStartPosY) * mCounter) / GameApp.BALLOON_CICEL_GOTO_COUNT) + mStartPosY);
mCounter++;
if (mCounter > GameApp.BALLOON_CICEL_GOTO_COUNT){
buttonMode = true;
gotoAndPlay("main");
};
};
if (mLifeTime >= 0){
if (mLife >= mLifeTime){
mbTouch = false;
buttonMode = false;
mLifeTime = -1;
mSubScriptIndex = -1;
gotoAndPlay("hide");
};
mLife++;
};
if (mbEnd){
if (mSubScriptIndex >= 0){
mGameApp.setSubScriptActive(mSubScriptIndex, true, true);
mSubScriptIndex = -1;
};
};
}
function frame37(){
gotoAndPlay("mainLoop");
}
public function getIsEnd():Boolean{
return (mbEnd);
}
private function mouseClick(_arg1:MouseEvent):void{
if (!buttonMode){
return;
};
mbTouch = true;
buttonMode = false;
mGameApp.setStatus(GameApp.STAT_DEMO);
mGameApp.changeGameStatus(true);
GameApp.Pause = true;
mGameApp.callSe("sys_017", false);
gotoAndPlay("hide");
}
function frame9(){
gotoAndPlay("start");
}
public function getIsTouch():Boolean{
return (mbTouch);
}
}
}//package
Section 8
//BalloonPicture (BalloonPicture)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public final class BalloonPicture extends MovieClip {
private const HIDE:uint = 3;
private const DISP2HIDE:uint = 2;
private const HIDE2DISP:uint = 0;
private const DISP:uint = 1;
private var mbInitialize:Boolean;// = false
private var mYureLevel:int;// = 0
private var mYureTime:int;// = 0
private var mPosX:int;// = 0
private var mPosY:int;// = 0
private var mPictureHeight:int;// = 0
private var mParentUnit:MotionObject;// = null
private var mLoader:Loader;// = null
private var mGameApp:GameApp;// = null
private var mPictureWidth:int;// = 0
private var mLifeTime:int;// = 0
private var mbLoaded:Boolean;// = false
private var mStatus:uint;// = 0
static var mYureTbl:Array = [-1, 1, -2, 2, -3, 3, -4, 4];
public function BalloonPicture(_arg1:GameApp, _arg2:MotionObject, _arg3:int, _arg4:int, _arg5:String, _arg6:int){
mGameApp = _arg1;
mParentUnit = _arg2;
mPosX = _arg3;
mPosY = _arg4;
mLifeTime = _arg6;
mbInitialize = false;
mbLoaded = false;
scaleX = 0;
scaleY = 0;
mStatus = HIDE2DISP;
mLoader = new Loader();
mLoader.loadBytes(mGameApp.getBinaryByteArray(_arg5));
mLoader.contentLoaderInfo.addEventListener(Event.INIT, loadInit);
}
public function update():void{
var _local1:ColorTransform;
if (!mbLoaded){
return;
};
if (!mbInitialize){
mPictureWidth = (mLoader.width / 2);
mPictureHeight = (mLoader.height / 2);
mbInitialize = true;
_local1 = mLoader.transform.colorTransform;
_local1.color = 0xF0F0F0;
mLoader.transform.colorTransform = _local1;
};
var _local2:int = mPosX;
var _local3:int = mPosY;
if (mParentUnit){
_local2 = (mParentUnit.getCenterPosX(0) + mPosX);
_local3 = (mParentUnit.getCenterPosY(0) + mPosY);
};
if (GameApp.Pause){
return;
};
switch (mStatus){
case HIDE2DISP:
scaleX = (scaleX + 0.125);
scaleY = (scaleY + 0.125);
if (scaleX >= 1){
scaleX = 1;
scaleY = 1;
mLoader.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
mLoader.alpha = 1;
mStatus = DISP;
};
break;
case DISP:
if (mLifeTime >= 0){
mLifeTime--;
if (mLifeTime <= 0){
mStatus = DISP2HIDE;
_local1 = mLoader.transform.colorTransform;
_local1.color = 0xF0F0F0;
mLoader.transform.colorTransform = _local1;
};
};
break;
case DISP2HIDE:
scaleX = (scaleX - 0.125);
scaleY = (scaleY - 0.125);
if (scaleX < 0){
scaleX = 0;
scaleY = 0;
mStatus = HIDE;
};
break;
};
x = ((_local2 - (mPictureWidth * scaleX)) - GameApp.BgPosX);
y = ((_local3 - (mPictureHeight * scaleY)) - GameApp.BgPosY);
if (mYureTime > 0){
mYureTime--;
x = (x + mYureTbl[((mYureLevel * 2) + Utility.getRandom(0, 1))]);
y = (y + mYureTbl[((mYureLevel * 2) + Utility.getRandom(0, 1))]);
};
}
public function getIsEnd():Boolean{
if (mStatus == HIDE){
return (true);
};
return (false);
}
private function loadInit(_arg1:Event):void{
mbLoaded = true;
addChild(mLoader);
}
public function setYure(_arg1:int, _arg2:int):void{
mYureTime = _arg2;
mYureLevel = _arg1;
}
}
}//package
Section 9
//BaseButtonMovieClip (BaseButtonMovieClip)
package {
import flash.display.*;
public class BaseButtonMovieClip extends MovieClip {
protected var mGameApp:GameApp;// = null
protected var mChangeTime:uint;// = 0
protected var mStatus:uint;// = 0
public function setStatus(_arg1:uint):void{
if (!visible){
return;
};
switch (_arg1){
case GameApp.BUTTON_HIDE:
case GameApp.BUTTON_DISP2HIDE:
if ((((mStatus == GameApp.BUTTON_HIDE)) || ((mStatus == GameApp.BUTTON_DISP2HIDE)))){
return;
};
mStatus = GameApp.BUTTON_DISP2HIDE;
mChangeTime = 0;
gotoAndPlay("disp2hide");
break;
case GameApp.BUTTON_DISP:
case GameApp.BUTTON_HIDE2DISP:
if ((((((mStatus == GameApp.BUTTON_DISP)) || ((mStatus == GameApp.BUTTON_HIDE2DISP)))) || ((mStatus == GameApp.BUTTON_SELECT)))){
return;
};
mStatus = GameApp.BUTTON_HIDE2DISP;
mChangeTime = 0;
gotoAndPlay("hide2disp");
break;
case GameApp.BUTTON_SELECT:
if (mStatus != GameApp.BUTTON_DISP){
return;
};
mStatus = GameApp.BUTTON_SELECT;
mChangeTime = 0;
gotoAndPlay("select");
break;
};
}
protected function commonFrameFunc():void{
if (currentFrame == 1){
mStatus = GameApp.BUTTON_HIDE;
stop();
};
if (currentFrame == 14){
mStatus = GameApp.BUTTON_DISP;
stop();
};
if (currentFrame == 27){
gotoAndPlay("disp");
};
}
}
}//package
Section 10
//BGM01 (BGM01)
package {
import flash.media.*;
public dynamic class BGM01 extends Sound {
}
}//package
Section 11
//BGM03 (BGM03)
package {
import flash.media.*;
public dynamic class BGM03 extends Sound {
}
}//package
Section 12
//BGM04 (BGM04)
package {
import flash.media.*;
public dynamic class BGM04 extends Sound {
}
}//package
Section 13
//BGM06 (BGM06)
package {
import flash.media.*;
public dynamic class BGM06 extends Sound {
}
}//package
Section 14
//BGM08 (BGM08)
package {
import flash.media.*;
public dynamic class BGM08 extends Sound {
}
}//package
Section 15
//BGM09 (BGM09)
package {
import flash.media.*;
public dynamic class BGM09 extends Sound {
}
}//package
Section 16
//BGM11 (BGM11)
package {
import flash.media.*;
public dynamic class BGM11 extends Sound {
}
}//package
Section 17
//BGM12 (BGM12)
package {
import flash.media.*;
public dynamic class BGM12 extends Sound {
}
}//package
Section 18
//BGM30 (BGM30)
package {
import flash.media.*;
public dynamic class BGM30 extends Sound {
}
}//package
Section 19
//BGM37 (BGM37)
package {
import flash.media.*;
public dynamic class BGM37 extends Sound {
}
}//package
Section 20
//BgObject (BgObject)
package {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
public class BgObject extends MovieClip {
private const TYPE_FULLCOLOR:uint = 2;
private const TYPE_COLOR256:uint = 1;
private const TYPE_COLOR16:uint = 0;
private var mBitmapAddChildArray:Array;
private var mOriginX:int;
private var mOriginY:int;
private var mCellSize:int;
private var mColorType:int;
private var mBitmapPosXArray:Array;
private var mBgData:ByteArray;
private var mCellNumX:int;
private var mCellNumY:int;
private var mBitmapDataArray:Array;
private var mBitmapPosYArray:Array;
private var mBitmapArray:Array;
public function BgObject(){
mCellSize = 0;
mCellNumX = 0;
mCellNumY = 0;
mColorType = 0;
mOriginX = 0;
mOriginY = 0;
mBitmapDataArray = [];
mBitmapArray = [];
mBitmapAddChildArray = [];
mBitmapPosXArray = [];
mBitmapPosYArray = [];
}
public function loadBg(_arg1:ByteArray):void{
mBgData = _arg1;
mBgData.position = 0;
mBgData.endian = "littleEndian";
settingBitmap();
moveBitmap();
}
public function update():void{
if (mCellNumX == 0){
return;
};
if (mCellNumY == 0){
return;
};
moveBitmap();
}
private function settingBitmap():void{
var _local6:int;
var _local7:int;
var _local8:ByteArray;
var _local9:int;
var _local10:int;
mBgData.position = 0;
mCellSize = mBgData.readInt();
mCellNumX = mBgData.readInt();
mCellNumY = mBgData.readInt();
mColorType = mBgData.readInt();
var _local1:int;
var _local2:int;
var _local3:uint;
var _local4:int;
var _local5:int;
while (_local5 < mCellNumY) {
_local6 = 0;
while (_local6 < mCellNumX) {
_local7 = (_local6 + (_local5 * mCellNumX));
_local8 = new ByteArray();
mBitmapDataArray.push(new BitmapData(mCellSize, mCellSize, true, 0));
if (mColorType == TYPE_COLOR16){
_local8.endian = Endian.LITTLE_ENDIAN;
_local1 = 0;
while (_local1 < (mCellSize / 2)) {
_local2 = 0;
while (_local2 < mCellSize) {
mBgData.position = ((((4 * 4) + (((mCellSize * mCellSize) / 2) * _local7)) + _local1) + (_local2 * mCellSize));
_local4 = mBgData.readUnsignedByte();
_local9 = (_local4 & 15);
mBgData.position = (((4 * 4) + ((((mCellSize * mCellSize) / 2) * mCellNumX) * mCellNumY)) + (_local9 * 4));
_local3 = mBgData.readUnsignedInt();
_local8.position = ((((_local2 * mCellSize) + (_local1 * 2)) + 0) * 4);
_local8.writeUnsignedInt(_local3);
_local10 = ((_local4 & 240) >> 4);
mBgData.position = (((4 * 4) + ((((mCellSize * mCellSize) / 2) * mCellNumX) * mCellNumY)) + (_local10 * 4));
_local3 = mBgData.readUnsignedInt();
_local8.position = ((((_local2 * mCellSize) + (_local1 * 2)) + 1) * 4);
_local8.writeUnsignedInt(_local3);
_local2++;
};
_local1++;
};
} else {
if (mColorType == TYPE_COLOR256){
_local8.endian = Endian.LITTLE_ENDIAN;
_local1 = 0;
while (_local1 < mCellSize) {
_local2 = 0;
while (_local2 < mCellSize) {
mBgData.position = ((((4 * 4) + ((mCellSize * mCellSize) * _local7)) + _local1) + (_local2 * mCellSize));
_local4 = mBgData.readUnsignedByte();
mBgData.position = (((4 * 4) + (((mCellSize * mCellSize) * mCellNumX) * mCellNumY)) + (_local4 * 4));
_local3 = mBgData.readUnsignedInt();
_local8.position = (((_local2 * mCellSize) + _local1) * 4);
_local8.writeUnsignedInt(_local3);
_local2++;
};
_local1++;
};
} else {
mBgData.position = ((4 * 4) + (((mCellSize * mCellSize) * 4) * _local7));
mBgData.readBytes(_local8, 0, ((mCellSize * mCellSize) * 4));
};
};
_local8.position = 0;
mBitmapDataArray[_local7].setPixels(new Rectangle(0, 0, mCellSize, mCellSize), _local8);
mBitmapArray.push(new Bitmap(mBitmapDataArray[_local7]));
mBitmapAddChildArray.push(false);
mBitmapPosXArray.push((mCellSize * _local6));
mBitmapPosYArray.push((mCellSize * _local5));
_local6++;
};
_local5++;
};
}
public function setOrigin(_arg1:int, _arg2:int){
mOriginX = _arg1;
mOriginY = _arg2;
}
private function moveBitmap():void{
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Boolean;
var _local1:Array = mBitmapPosXArray;
var _local2:Array = mBitmapPosYArray;
var _local3:Array = mBitmapArray;
var _local4:Array = mBitmapAddChildArray;
var _local5:int;
while (_local5 < mCellNumY) {
_local6 = 0;
while (_local6 < mCellNumX) {
_local7 = (_local6 + (_local5 * mCellNumX));
_local8 = (_local1[_local7] - mOriginX);
_local9 = (_local2[_local7] - mOriginY);
_local10 = false;
if (_local8 <= -(mCellSize)){
_local10 = true;
};
if (_local8 >= (mCellSize + 0x0100)){
_local10 = true;
};
if (_local9 <= -(mCellSize)){
_local10 = true;
};
if (_local9 >= (mCellSize + 192)){
_local10 = true;
};
if (_local10){
if (_local4[_local7]){
removeChild(_local3[_local7]);
_local4[_local7] = false;
};
} else {
_local3[_local7].x = _local8;
_local3[_local7].y = _local9;
if (!_local4[_local7]){
addChild(_local3[_local7]);
_local4[_local7] = true;
};
};
_local6++;
};
_local5++;
};
}
}
}//package
Section 21
//BinaryDataBitmap (BinaryDataBitmap)
package {
import flash.display.*;
public dynamic class BinaryDataBitmap extends BitmapData {
public function BinaryDataBitmap(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 22
//BinaryPackData (BinaryPackData)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class BinaryPackData extends MovieClip {
private var mUrl:URLRequest;
private var mRawData:ByteArray;
private var mBitmapData:BitmapData;// = null
private var mBytesLoad:int;
private var mDataNum:int;
private var mByteData:Array;
private var mLoader:URLStream;
private var mBytesTotal:int;
private var mPackFileName:String;
private var mFileName:Array;
private var mbLoaded:Boolean;
static var BMP_HEIGHT:int = 3863;
static var BMP_WIDTH:int = 0x0400;
static var FILENAME_LEN:int = 128;
public function BinaryPackData():void{
mDataNum = 0;
mFileName = [];
mByteData = [];
mRawData = new ByteArray();
mbLoaded = false;
mBytesLoad = 0;
mBytesTotal = 0;
addEventListener(Event.ENTER_FRAME, move);
}
public function createInfo():void{
var _local1:int;
var _local2:String;
var _local3:int;
var _local4:int;
var _local5:ByteArray;
mRawData.position = 0;
mRawData.endian = "littleEndian";
mDataNum = mRawData.readInt();
_local1 = 0;
while (_local1 < mDataNum) {
mRawData.position = (4 + (((FILENAME_LEN + 4) + 4) * _local1));
_local2 = mRawData.readMultiByte(FILENAME_LEN, "shift_jis");
mRawData.position = ((4 + (((FILENAME_LEN + 4) + 4) * _local1)) + FILENAME_LEN);
_local3 = mRawData.readInt();
_local4 = mRawData.readInt();
_local5 = new ByteArray();
mRawData.position = _local3;
mRawData.readBytes(_local5, 0, _local4);
mFileName.push(_local2);
mByteData.push(_local5);
_local1++;
};
}
public function getIsLoadEnd():Boolean{
return (mbLoaded);
}
private function move(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:uint;
var _local6:int;
var _local7:int;
var _local8:int;
if (mBitmapData == null){
return;
};
mRawData = new ByteArray();
mRawData.position = 0;
mRawData.endian = "littleEndian";
_local3 = 0;
while (_local3 < BMP_HEIGHT) {
_local2 = 0;
while (_local2 < BMP_WIDTH) {
_local4 = (_local2 + (_local3 * BMP_WIDTH));
_local5 = mBitmapData.getPixel(_local2, _local3);
_local6 = ((_local5 & 0xFF0000) >> 16);
_local7 = ((_local5 & 0xFF00) >> 8);
_local8 = ((_local5 & 0xFF) >> 0);
mRawData.writeByte(_local6);
mRawData.writeByte(_local7);
mRawData.writeByte(_local8);
_local2++;
};
_local3++;
};
createInfo();
mbLoaded = true;
mBitmapData = null;
removeEventListener(Event.ENTER_FRAME, move);
}
public function getByteArray(_arg1:String):ByteArray{
var _local2:String = _arg1.toLowerCase();
var _local3:uint = mByteData.length;
var _local4:uint = (_local3 >> 1);
var _local5:uint = _local3;
var _local6:uint;
var _local7:uint;
while (true) {
if (mFileName[_local4] == _local2){
break;
};
if (mFileName[_local4] > _local2){
if (_local7 >= _local3){
trace(("Not Found : " + _arg1));
return (null);
};
_local5 = _local4;
_local4 = ((_local6 + _local5) >> 1);
_local7++;
} else {
if (mFileName[_local4] < _local2){
if (_local7 >= _local3){
trace(("Not Found : " + _arg1));
return (null);
};
_local6 = _local4;
_local4 = ((_local6 + _local5) >> 1);
_local7++;
continue;
};
};
};
return (mByteData[_local4]);
}
public function loadData():void{
mbLoaded = false;
if (!mBitmapData){
mBitmapData = new BinaryDataBitmap(0, 0);
};
}
}
}//package
Section 23
//FadePlate (FadePlate)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
public final class FadePlate extends MovieClip {
private var mTargetAlpha:Number;
private var mFrame:int;
private var mStartAlpha:Number;
private var mCurrent:int;
public function FadePlate(){
mStartAlpha = 0;
mTargetAlpha = 0;
mCurrent = 0;
mFrame = 0;
alpha = 0;
visible = false;
addEventListener(Event.ENTER_FRAME, move);
}
public function setColor(_arg1:int):void{
var _local2:ColorTransform = transform.colorTransform;
_local2.color = _arg1;
transform.colorTransform = _local2;
}
public function setFadeIn(_arg1:int):void{
mCurrent = 0;
mFrame = _arg1;
mStartAlpha = 1;
mTargetAlpha = 0;
if (mFrame == 0){
alpha = 0;
visible = false;
} else {
alpha = 1;
visible = true;
};
}
public function setFadeOut(_arg1:int):void{
mCurrent = 0;
mFrame = _arg1;
mStartAlpha = 0;
mTargetAlpha = 1;
if (mFrame == 0){
alpha = 1;
visible = true;
} else {
alpha = 0;
visible = false;
};
}
private function move(_arg1:Event):void{
mCurrent++;
if (mCurrent > mFrame){
mCurrent = mFrame;
};
alpha = Utility.getCurrentValueStartTarget(alpha, mStartAlpha, mTargetAlpha, mFrame, mCurrent);
if (alpha == 0){
visible = false;
} else {
visible = true;
};
}
}
}//package
Section 24
//GameApp (GameApp)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.system.*;
public class GameApp extends MovieClip {
private var mSoulHandLayer:Sprite;// = null
private var mPreOneFrameStatus:uint;// = 0
private var mUnitHuman:Array;// = null
private var mEventTarget:String;// = ""
private var mBalloonCicelLayer:Sprite;// = null
private var mMainScript:GameScript;// = null
private var mBgTargetMove:Boolean;// = true
private var mSoulBGEffect:SoulBGEffect;// = null
private var mBgPosStartY:int;// = 0
private var mLoadFrame:int;
private var mBgPosStartX:int;// = 0
private var mSelectSeqStartCount:int;// = -1
private var mBgmName:String;
private var mFadeLayer:Sprite;// = null
private var mMovieLayer:SwfMovie;// = null
private var mGimmickLayer:Array;// = null
private var mBinaryPackData:BinaryPackData;// = null
private var mBgPosXMax:int;// = 0x0400
private var mSubStatus:SubStatus;// = null
private var mHumanLayer:Array;// = null
private var mSoulBg:BgObject;
private var mUnitGimmick:Array;// = null
private var mTouchArea:TouchArea;
private var mUnitEffect:Array;// = null
private var mPreStatus:uint;// = 0
private var mContinueButton:GeneralButton;// = null
private var mMouseStartX:int;// = 0
private var mMouseStartY:int;// = 0
private var mButtonLayer:Sprite;// = null
private var mBlackFadePlate:FadePlate;
private var mSoulFireLayer:Sprite;// = null
private var mTimeLimitCount:int;// = -1
private var mbFreeCameraOn:Boolean;// = false
private var mCameraFrame:int;// = 0
private var mBgPosYMax:int;// = 384
private var mStartSubScript:int;// = -1
private var mSoulBGEffectLayer:Sprite;// = null
private var mLibrarySoundDatabase:LibrarySoundDatabase;// = null
private var mStatus:uint;// = 0
private var mCameraStartX:int;// = 0
private var mButtonClick:Array;// = null
private var mCameraStartY:int;// = 0
private var mbMouseDown:Boolean;// = false
private var mActionGimmick:MotionObject;// = null
private var mMessage:MessageObject;// = null
private var mBgLayer:Sprite;// = null
private var mAnnounceLayer:Sprite;// = null
private var mBgYureLevel:int;// = 0
private var mCoreLayer:Sprite;// = null
private var mEventType:String;// = ""
private var mWorkMeter:WorkMeter;
private var mbInitialize:Boolean;
private var mEffectMostNotTouchLayer:Sprite;// = null
private var mBalloonPictureLayer:Sprite;// = null
private var mNormalBg:BgObject;
private var mMouseX:int;// = 0
private var mMouseY:int;// = 0
private var mCameraCurrent:int;// = 0
private var mContinueMainScriptPC:int;// = -1
private var mTimeLimitScript:int;// = -1
private var mMaskFadeLayer:Sprite;// = null
private var mSubScript:Array;// = null
private var mSpotLight:SpotLight;// = null
private var mBgPosXMin:int;// = 0
private var mContinueSubScript:int;// = -1
private var mUnitGimmickSV:Array;// = null
private var mUnitBalloonCicel:Array;// = null
private var mEventKind:String;// = ""
private var mStartMainScriptPC:int;// = -1
private var mBgYureTime:int;// = 0
private var mBgYureX:int;// = 0
private var mBgYureY:int;// = 0
private var mbDispPlayerMark:Boolean;
private var mStartButton:GeneralButton;// = null
private var mKakoMode:uint;// = 0
private var mEffectLayer:Sprite;// = null
private var mBgmPause:Boolean;
private var mWhiteFadePlate:FadePlate;
private var mBgPosYMin:int;// = 0
private var mSoulTentacle:SoulTentacle;// = null
private var mPointLight:PointLight;// = null
private var mbPreMouseDown:Boolean;// = false
private var mUnitBalloonPicture:Array;// = null
private var mSubShutter:SubShutter;// = null
private var mSubScriptActive:Array;// = null
private var mSelectStartContinue:int;// = -1
private var mCameraEndX:int;// = 0
private var mCameraEndY:int;// = 0
private var mBlackMaskFadePlate:FadePlate;
private var mButton:Array;// = null
static var STAT_EYECATCH_KANRYO:uint = 4;
static var STAT_NUM:uint = 7;
static var STAT_GAME:uint = 0;
static var BUTTON_HIDE2DISP:uint = 1;
static var SUBSCRIPT_NUM:int = 32;
static var ACTION_BUTTON_POS_X:int = 172;
static var ACTION_BUTTON_POS_Y:int = 173;
static var STAT_SV:uint = 2;
static var BUTTON_HIDE:uint = 0;
static var ACTION_TIME:uint = 10;
static var BUTTON_DISP2HIDE:uint = 3;
static var TRICK_BUTTON_POS_Y:int = 173;
static var STAT_GAMEOVER:uint = 6;
static var BUTTON_FLAGOFF:uint = 6;
static var CAMERA_ADJUST_SPEED:int = 16;
static var BALLOON_CICEL_GOTO_COUNT:int = 32;
static var BALLOON_CICEL_TARGET_POS_Y:int = 16;
static var BALLOON_CICEL_TARGET_POS_X:int = 128;
static var RETURN_BUTTON_POS_Y:int = 169;
static var TargetBgPosX:int = 0;
static var TargetBgPosY:int = 0;
static var SoulIndex:int = 0;
static var BgPosX:int = 0;
static var EFFECT_PRIO_MOST:uint = 0;
static var BUTTON_DISP:uint = 2;
static var BgPosY:int = 0;
static var SUBSCREEN_POS_Y:int = -285;
static var EFFECT_PRIO_MOST_NOTTOUCH:uint = 1;
static var BUTTON_SELECT:uint = 4;
static var BG_SPEED:int = 4;
static var STAT_DEADKAIWA:uint = 5;
static var EFFECT_PRIO_NORMAL:uint = 3;
static var STAT_EYECATCH:uint = 3;
static var BgTruePosX:int = 0;
static var BgTruePosY:int = 0;
static var OBJ_PRIO_NUM:uint = 4;
static var OBJ_PRIO_0:uint = 0;
static var OBJ_PRIO_1:uint = 1;
static var OBJ_PRIO_2:uint = 2;
static var OBJ_PRIO_3:uint = 3;
static var SoulGimmick:String = "";
static var DEADKAIWA_STARTWAIT:int = 60;
static var BUTTON_NUM:uint = 3;
static var Pause:Boolean = false;
static var BgYureTbl:Array = [1, 0, 0, 1, 1, 1, -1, 0, 0, -1, -1, -1, -1, 1, 1, -1];
static var BUTTON_ACTION:uint = 0;
static var BUTTON_RETURN:uint = 2;
static var BALLOON_CICEL_START_POS_X:int = 180;
static var BUTTON_TRICK:uint = 1;
static var BALLOON_CICEL_START_POS_Y:int = 182;
static var STAT_DEMO:uint = 1;
static var StatusIndex:int = -1;
static var EFFECT_PRIO_ANNOUNCE:uint = 2;
static var GAMEOVER_CONTINUE_COUNT:int = 60;
static var BUTTON_FLAGON:uint = 5;
public function GameApp(){
var _local1:uint;
var _local3:Class;
super();
mLoadFrame = 0;
mbInitialize = false;
mBlackFadePlate = new FadePlate();
mBlackFadePlate.setColor(0);
mWhiteFadePlate = new FadePlate();
mWhiteFadePlate.setColor(0xFFFFFF);
mBlackMaskFadePlate = new FadePlate();
mBlackMaskFadePlate.setColor(0);
mNormalBg = new BgObject();
mSoulBg = new BgObject();
mBgLayer = new Sprite();
mGimmickLayer = [];
_local1 = 0;
while (_local1 < OBJ_PRIO_NUM) {
mGimmickLayer.push(new Sprite());
_local1++;
};
mHumanLayer = [];
_local1 = 0;
while (_local1 < OBJ_PRIO_NUM) {
mHumanLayer.push(new Sprite());
_local1++;
};
mSoulFireLayer = new Sprite();
mSoulHandLayer = new Sprite();
mCoreLayer = new Sprite();
mBalloonPictureLayer = new Sprite();
mBalloonCicelLayer = new Sprite();
mEffectLayer = new Sprite();
mSoulBGEffectLayer = new Sprite();
mAnnounceLayer = new Sprite();
mMaskFadeLayer = new Sprite();
mButtonLayer = new Sprite();
mMovieLayer = new SwfMovie();
mEffectMostNotTouchLayer = new Sprite();
mFadeLayer = new Sprite();
mSpotLight = new SpotLight(this);
mPointLight = new PointLight(this);
mMessage = new MessageObject(this);
mSubShutter = new SubShutter();
mSubStatus = new SubStatus(this);
mEffectMostNotTouchLayer.mouseEnabled = false;
mEffectMostNotTouchLayer.mouseChildren = false;
mButton = [];
mButtonClick = [];
var _local2:Array = ["Action", "Trick", "Return"];
_local1 = 0;
while (_local1 < BUTTON_NUM) {
mButtonClick[_local1] = false;
_local3 = (getDefinitionByName(((_local2[_local1] + "ButtonMovieClip") + LanguageType.LanguageType)) as Class);
mButton[_local1] = new _local3(this);
_local1++;
};
addChild(mBgLayer);
_local1 = 0;
while (_local1 < OBJ_PRIO_NUM) {
addChild(mGimmickLayer[((OBJ_PRIO_NUM - 1) - _local1)]);
addChild(mHumanLayer[((OBJ_PRIO_NUM - 1) - _local1)]);
_local1++;
};
addChild(mSoulFireLayer);
addChild(mSoulHandLayer);
addChild(mCoreLayer);
addChild(mBalloonPictureLayer);
addChild(mBalloonCicelLayer);
addChild(mEffectLayer);
addChild(mSoulBGEffectLayer);
addChild(mAnnounceLayer);
addChild(mMaskFadeLayer);
addChild(mSpotLight);
addChild(mPointLight);
addChild(mMessage);
addChild(mButtonLayer);
_local1 = 0;
while (_local1 < BUTTON_NUM) {
mButtonLayer.addChild(mButton[_local1]);
_local1++;
};
addChild(mMovieLayer);
addChild(mEffectMostNotTouchLayer);
addChild(mFadeLayer);
addChild(mSubStatus);
addChild(mSubShutter);
openInstantShutter();
reset();
addEventListener(Event.ENTER_FRAME, move);
addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
addEventListener(MouseEvent.MOUSE_UP, mouseUp);
}
public function setPointLightParam(_arg1:String, _arg2:Number, _arg3:Number, _arg4:int):void{
mPointLight.setLightParam(_arg1, _arg2, _arg3, _arg4);
}
public function finishEffect(_arg1:String):void{
var _local3:int;
var _local4:uint;
var _local2:int = mUnitEffect.length;
_local3 = 0;
while (_local3 < _local2) {
if (((!((mUnitEffect[_local3].name == _arg1))) && (!((_arg1 == "*"))))){
} else {
_local4 = mUnitEffect[_local3].getPriority();
if (_local4 == EFFECT_PRIO_MOST){
mFadeLayer.removeChild(mUnitEffect[_local3]);
} else {
if (_local4 == EFFECT_PRIO_MOST_NOTTOUCH){
mEffectMostNotTouchLayer.removeChild(mUnitEffect[_local3]);
} else {
if (_local4 == EFFECT_PRIO_ANNOUNCE){
mAnnounceLayer.removeChild(mUnitEffect[_local3]);
} else {
if (_local4 == EFFECT_PRIO_NORMAL){
mEffectLayer.removeChild(mUnitEffect[_local3]);
};
};
};
};
mUnitEffect[_local3].preFinish();
mUnitEffect.splice(_local3, 1);
_local2--;
_local3--;
};
_local3++;
};
}
public function addCore(_arg1:Sprite):void{
mCoreLayer.addChild(_arg1);
}
public function bgmPause(_arg1:Boolean):void{
var _local2:LibrarySound;
if (mBgmPause != _arg1){
mBgmPause = _arg1;
if (mBgmName == ""){
return;
};
_local2 = getSoundData(mBgmName);
if (!_local2){
return;
};
if (mBgmPause){
_local2.fadeOut(0);
} else {
_local2.fadeIn(true, 0);
};
};
}
public function dispBalloonCicel(_arg1:Boolean, _arg2:Boolean):void{
var _local4:int;
var _local3:int = mUnitBalloonCicel.length;
_local4 = 0;
while (_local4 < _local3) {
if (((((!(_arg1)) && (_arg2))) && (mUnitBalloonCicel[_local4].getIsTouch()))){
} else {
mUnitBalloonCicel[_local4].visible = _arg1;
};
_local4++;
};
}
private function mouseUp(_arg1:MouseEvent):void{
mbMouseDown = false;
}
public function bgmPlay(_arg1:String, _arg2:int):void{
if (mBgmName == _arg1){
return;
};
if (mBgmPause){
return;
};
bgmStop(0);
mBgmName = _arg1;
var _local3:LibrarySound = getSoundData(mBgmName);
if (!_local3){
trace(("Not Found Bgm : " + _arg1));
return;
};
_local3.fadeIn(true, _arg2);
}
public function setMotionPause(_arg1:String, _arg2:Boolean):void{
var _local3:MotionObject = searchMotionObject(_arg1);
if (_local3 == null){
return;
};
_local3.setPause(_arg2);
}
public function getEyeCatchEnd():Boolean{
if (((!((mStatus == STAT_EYECATCH))) && (!((mStatus == STAT_EYECATCH_KANRYO))))){
return (true);
};
if (!mMovieLayer.getIsEnd()){
return (false);
};
return (true);
}
public function getEventType():String{
return (mEventType);
}
public function balloonKill():void{
Utility.removeAllChildren(mBalloonPictureLayer);
Utility.removeAllChildren(mBalloonCicelLayer);
mUnitBalloonPicture = [];
mUnitBalloonCicel = [];
}
public function openShutter():void{
var _local1:Boolean = mSubShutter.setOpen();
var _local2:MotionObject = searchMotionObject(SoulGimmick);
StatusIndex = _local2.getStatusIndex(SoulIndex);
mSubStatus.setPause(false, _local1);
}
public function setStartPoint(_arg1:int, _arg2:int):void{
mStartMainScriptPC = _arg1;
mStartSubScript = _arg2;
}
public function bgPosAdd(_arg1:String, _arg2:int, _arg3:int):void{
var _local4:MotionObject = searchMotionObject(_arg1);
if (_local4 == null){
return;
};
_local4.bgPosAdd(_arg2, _arg3);
}
public function changeGameStatus(_arg1:Boolean):void{
var _local6:MotionObject;
var _local7:int;
var _local8:int;
if (mStatus == mPreOneFrameStatus){
return;
};
var _local2:uint;
var _local3:uint = mUnitHuman.length;
var _local4:uint = mUnitGimmick.length;
var _local5:uint = mUnitGimmickSV.length;
if (mPreStatus == STAT_SV){
sendMessage("*", "SYSTEM", "SV_FINAL");
};
switch (mStatus){
case STAT_SV:
sendMessage("*", "SYSTEM", "SV_START");
_local2 = 0;
while (_local2 < _local3) {
mUnitHuman[_local2].setDisp(true);
mUnitHuman[_local2].setCoreDisp(_arg1);
mUnitHuman[_local2].setSoulColorHuman();
_local2++;
};
_local2 = 0;
while (_local2 < _local4) {
mUnitGimmick[_local2].setDisp(true);
mUnitGimmick[_local2].setCoreDisp(_arg1);
mUnitGimmick[_local2].setSoulColorGimmick();
_local2++;
};
_local2 = 0;
while (_local2 < _local5) {
mUnitGimmickSV[_local2].setDisp(true);
mUnitGimmickSV[_local2].setCoreDisp(_arg1);
mUnitGimmickSV[_local2].setSoulColorGimmick();
_local2++;
};
mBgLayer.removeChild(mNormalBg);
mBgLayer.addChild(mSoulBg);
mButton[BUTTON_ACTION].setStatus(BUTTON_DISP2HIDE);
mButton[BUTTON_TRICK].setStatus(BUTTON_DISP2HIDE);
if (_arg1){
mButton[BUTTON_RETURN].setStatus(BUTTON_HIDE2DISP);
};
if ((((mSoulTentacle == null)) && (_arg1))){
mSoulTentacle = new SoulTentacle(this);
mSoulTentacle.loadByteArray(getBinaryByteArray("soultentacle"));
mSoulHandLayer.addChild(mSoulTentacle);
setSoulCoreInfo(SoulGimmick, SoulIndex);
};
if (_arg1){
mSoulBGEffect.startSoul();
openShutter();
} else {
closeShutter();
};
_local6 = searchMotionObject(SoulGimmick);
_local7 = _local6.getCorePosX(SoulIndex);
_local8 = _local6.getCorePosY(SoulIndex);
setBgPosAdjust((_local7 - 128), (_local8 - 96));
break;
case STAT_GAME:
case STAT_DEMO:
_local2 = 0;
while (_local2 < _local3) {
mUnitHuman[_local2].setDisp(true);
mUnitHuman[_local2].setCoreDisp(true);
mUnitHuman[_local2].setNormalColor();
_local2++;
};
_local2 = 0;
while (_local2 < _local4) {
mUnitGimmick[_local2].setDisp(true);
mUnitGimmick[_local2].setCoreDisp(true);
mUnitGimmick[_local2].setNormalColor();
_local2++;
};
_local2 = 0;
while (_local2 < _local5) {
mUnitGimmickSV[_local2].setDisp(false);
mUnitGimmickSV[_local2].setCoreDisp(true);
mUnitGimmickSV[_local2].setNormalColor();
_local2++;
};
if (mPreStatus == STAT_SV){
mBgLayer.removeChild(mSoulBg);
mBgLayer.addChild(mNormalBg);
mSoulBGEffect.exitSoul();
};
if ((((mPreStatus == STAT_DEADKAIWA)) || ((mPreStatus == STAT_GAMEOVER)))){
finishEffect("shishahaikei");
mBgLayer.addChild(mNormalBg);
};
if ((((mPreStatus == STAT_SV)) || ((mPreStatus == STAT_EYECATCH)))){
dispPlayerMark(true);
};
if (mStatus == STAT_GAME){
mButton[BUTTON_ACTION].setStatus(BUTTON_HIDE2DISP);
mButton[BUTTON_TRICK].setStatus(BUTTON_HIDE2DISP);
mButton[BUTTON_RETURN].setStatus(BUTTON_DISP2HIDE);
openShutter();
} else {
mButton[BUTTON_ACTION].setStatus(BUTTON_DISP2HIDE);
mButton[BUTTON_TRICK].setStatus(BUTTON_DISP2HIDE);
mButton[BUTTON_RETURN].setStatus(BUTTON_DISP2HIDE);
closeShutter();
};
killSoulHand();
break;
case STAT_DEADKAIWA:
case STAT_GAMEOVER:
_local2 = 0;
while (_local2 < _local3) {
mUnitHuman[_local2].setDisp(false);
mUnitHuman[_local2].setCoreDisp(true);
mUnitHuman[_local2].setNormalColor();
_local2++;
};
_local2 = 0;
while (_local2 < _local4) {
mUnitGimmick[_local2].setDisp(false);
mUnitGimmick[_local2].setCoreDisp(true);
mUnitGimmick[_local2].setNormalColor();
_local2++;
};
_local2 = 0;
while (_local2 < _local5) {
mUnitGimmickSV[_local2].setDisp(false);
mUnitGimmickSV[_local2].setCoreDisp(true);
mUnitGimmickSV[_local2].setNormalColor();
_local2++;
};
if (mPreStatus == STAT_SV){
mBgLayer.removeChild(mSoulBg);
} else {
mBgLayer.removeChild(mNormalBg);
};
killSoulHand();
addEffect("cmn_shisha_00", "shishahaikei", 0, 0, false, true, true, "", -1, -1, false, GameApp.EFFECT_PRIO_NORMAL, -1, false);
mSoulBGEffect.start(0xFF, 0, 0);
callSe("sys_014", false);
mButton[BUTTON_ACTION].setStatus(BUTTON_DISP2HIDE);
mButton[BUTTON_TRICK].setStatus(BUTTON_DISP2HIDE);
mButton[BUTTON_RETURN].setStatus(BUTTON_DISP2HIDE);
closeShutter();
if (mStatus == STAT_GAMEOVER){
mSelectSeqStartCount = 0;
};
break;
default:
closeShutter();
break;
};
mPreOneFrameStatus = mStatus;
}
public function addGimmickSoulRed(_arg1:String, _arg2:uint):void{
var _local3:MotionObject = new MotionObject(this, true);
_local3.name = _arg1;
_local3.setPriority(_arg2);
mUnitGimmick.push(_local3);
mGimmickLayer[_arg2].addChild(_local3);
}
public function addGimmickSV(_arg1:String, _arg2:uint):void{
var _local3:MotionObject = new MotionObject(this, false);
_local3.name = _arg1;
_local3.setPriority(_arg2);
_local3.setDisp(false);
mUnitGimmickSV.push(_local3);
mGimmickLayer[_arg2].addChild(_local3);
}
private function searchMotionObject(_arg1:String):MotionObject{
var _local2:int;
var _local3:Array = mUnitHuman;
var _local4:int = _local3.length;
var _local5:Array = mUnitGimmick;
var _local6:int = _local5.length;
var _local7:Array = mUnitGimmickSV;
var _local8:int = _local7.length;
_local2 = 0;
while (_local2 < _local4) {
if (_local3[_local2].name == _arg1){
return (_local3[_local2]);
};
_local2++;
};
_local2 = 0;
while (_local2 < _local6) {
if (_local5[_local2].name == _arg1){
return (_local5[_local2]);
};
_local2++;
};
_local2 = 0;
while (_local2 < _local8) {
if (_local7[_local2].name == _arg1){
return (_local7[_local2]);
};
_local2++;
};
return (null);
}
public function setCenterFlip(_arg1:String, _arg2:Boolean):void{
var _local3:MotionObject = searchMotionObject(_arg1);
if (_local3 == null){
return;
};
_local3.setFlipH(_arg2);
}
private function initialSetting():void{
mBgLayer.addChild(mNormalBg);
mSoulBGEffect = new SoulBGEffect(this);
mSoulBGEffectLayer.addChild(mSoulBGEffect);
mMaskFadeLayer.addChild(mBlackMaskFadePlate);
mFadeLayer.addChild(mBlackFadePlate);
mFadeLayer.addChild(mWhiteFadePlate);
mMessage.loadFontData();
mSubStatus.changeSetting();
}
public function getBgYureX():int{
return (mBgYureX);
}
public function getBgYureY():int{
return (mBgYureY);
}
public function addBalloonCicel(_arg1:String, _arg2:int, _arg3:int, _arg4:int):void{
var _local5:MotionObject;
var _local6:Number = BALLOON_CICEL_START_POS_X;
var _local7:Number = BALLOON_CICEL_START_POS_Y;
if (((!((_arg1 == ""))) && ((_arg2 >= 0)))){
_local5 = searchMotionObject(_arg1);
if (_local5 != null){
_local6 = (_local5.getCorePosX(_arg2) - BgPosX);
_local7 = (_local5.getCorePosY(_arg2) - BgPosY);
};
};
var _local8:BalloonCicel = new BalloonCicel(this, _local6, _local7, _arg3, _arg4);
mUnitBalloonCicel.push(_local8);
mBalloonCicelLayer.addChild(_local8);
}
public function setFadeOut(_arg1:int):void{
mBlackFadePlate.setFadeOut(_arg1);
}
public function setMotionDisp(_arg1:String, _arg2:Boolean):void{
var _local3:MotionObject = searchMotionObject(_arg1);
if (_local3 == null){
return;
};
_local3.setScriptDisp(_arg2);
}
public function killSoulHand():void{
if (mSoulTentacle){
mSoulHandLayer.removeChild(mSoulTentacle);
mSoulTentacle.preFinish();
mSoulTentacle = null;
};
}
public function setBgPosAdjust(_arg1:int, _arg2:int):void{
TargetBgPosX = (BgPosX = (BgTruePosX = getAdjustBgPosX(_arg1)));
TargetBgPosY = (BgPosY = (BgTruePosY = getAdjustBgPosY(_arg2)));
mNormalBg.setOrigin(BgPosX, BgPosY);
mSoulBg.setOrigin(BgPosX, BgPosY);
}
public function setWhiteIn(_arg1:int):void{
mWhiteFadePlate.setFadeIn(_arg1);
}
public function addSoulFire(_arg1:Sprite):void{
mSoulFireLayer.addChild(_arg1);
}
public function getMotionObjectNum():uint{
return (((mUnitHuman.length + mUnitGimmick.length) + mUnitGimmickSV.length));
}
public function setBgPos(_arg1:int, _arg2:int):void{
TargetBgPosX = (BgPosX = (BgTruePosX = _arg1));
TargetBgPosY = (BgPosY = (BgTruePosY = _arg2));
mNormalBg.setOrigin(BgPosX, BgPosY);
mSoulBg.setOrigin(BgPosX, BgPosY);
}
public function setCameraAdjust(_arg1:Number):void{
var _local2:MotionObject = searchMotionObject(SoulGimmick);
var _local3:int = _local2.getCorePosX(SoulIndex);
var _local4:int = _local2.getCorePosY(SoulIndex);
mCameraStartX = BgPosX;
mCameraStartY = BgPosY;
mCameraEndX = getAdjustBgPosX((_local3 - 128));
mCameraEndY = getAdjustBgPosY((_local4 - 96));
if (_arg1 < 0){
_arg1 = 1;
};
var _local5:Number = Utility.getLength(mCameraStartX, mCameraStartY, mCameraEndX, mCameraEndY);
mCameraFrame = (_local5 / _arg1);
mCameraCurrent = 0;
}
public function setCameraMove(_arg1:int, _arg2:int, _arg3:Number):void{
mCameraStartX = BgPosX;
mCameraStartY = BgPosY;
mCameraEndX = _arg1;
mCameraEndY = _arg2;
if (_arg3 < 0){
_arg3 = 1;
};
var _local4:Number = Utility.getLength(mCameraStartX, mCameraStartY, mCameraEndX, mCameraEndY);
mCameraFrame = (_local4 / _arg3);
mCameraCurrent = 0;
}
public function getEventKind():String{
return (mEventKind);
}
public function setKakoMode(_arg1:uint):void{
if (mKakoMode == _arg1){
return;
};
mKakoMode = _arg1;
mSubStatus.changeSetting();
}
public function getSoundData(_arg1:String):LibrarySound{
return (mLibrarySoundDatabase.getSoundData(_arg1));
}
public function getMotionEnd(_arg1:String):Boolean{
var _local2:MotionObject = searchMotionObject(_arg1);
if (_local2 == null){
return (true);
};
return (_local2.getIsEnd());
}
public function dispPlayerMark(_arg1:Boolean):void{
if (!mbDispPlayerMark){
return;
};
var _local2:MotionObject = searchMotionObject(SoulGimmick);
var _local3:int = _local2.getCorePosX(SoulIndex);
var _local4:int = _local2.getCorePosY(SoulIndex);
finishEffect("playerMark");
if ((_local3 - BgPosX) < 128){
addEffect(("PlayerHereL" + LanguageType.LanguageType), "playerMark", _local3, _local4, true, false, false, "", -1, -1, false, EFFECT_PRIO_NORMAL, -1, false);
} else {
addEffect(("PlayerHereR" + LanguageType.LanguageType), "playerMark", _local3, _local4, true, false, false, "", -1, -1, false, EFFECT_PRIO_NORMAL, -1, false);
};
if (_arg1){
setCameraAdjust(CAMERA_ADJUST_SPEED);
};
callSe("sys_018", false);
}
public function setBgTargetMove(_arg1:Boolean):void{
mBgTargetMove = _arg1;
}
public function setTimeLimit(_arg1:int, _arg2:int):void{
mTimeLimitScript = _arg2;
if ((((((_arg1 >= 0)) && ((mTimeLimitCount >= 0)))) && ((mTimeLimitCount < _arg1)))){
return;
};
mTimeLimitCount = _arg1;
}
public function setCenterBgPos(_arg1:String, _arg2:int, _arg3:int):void{
var _local4:MotionObject = searchMotionObject(_arg1);
if (_local4 == null){
return;
};
_local4.setCenterBgPos(_arg2, _arg3);
}
public function dataDump():void{
var _local1:int;
trace(((("Camera : " + BgPosX) + " : ") + BgPosY));
_local1 = 0;
while (_local1 < mUnitHuman.length) {
mUnitHuman[_local1].dump();
_local1++;
};
_local1 = 0;
while (_local1 < mUnitGimmick.length) {
mUnitGimmick[_local1].dump();
_local1++;
};
_local1 = 0;
while (_local1 < mUnitGimmickSV.length) {
mUnitGimmickSV[_local1].dump();
_local1++;
};
}
public function setBalloonPictureYure(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:int = mUnitBalloonPicture.length;
_local3 = 0;
while (_local3 < _local4) {
mUnitBalloonPicture[_local3].setYure(_arg1, _arg2);
_local3++;
};
}
public function getIsMessageEnd():Boolean{
return (mMessage.getIsMessageEnd());
}
public function setBgRect(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{
mBgPosXMin = _arg1;
mBgPosYMin = _arg2;
mBgPosXMax = _arg3;
mBgPosYMax = _arg4;
}
public function setMaskFadeIn(_arg1:int):void{
mBlackMaskFadePlate.setFadeIn(_arg1);
}
public function closeShutter():void{
mSubShutter.setClose();
mSubStatus.setPause(true, false);
}
public function addBalloonPicture(_arg1:String, _arg2:String, _arg3:int, _arg4:int, _arg5:int):void{
var _local6:MotionObject = searchMotionObject(_arg2);
var _local7:BalloonPicture = new BalloonPicture(this, _local6, _arg3, _arg4, _arg1, _arg5);
mUnitBalloonPicture.push(_local7);
mBalloonPictureLayer.addChild(_local7);
}
public function setTargetBgPosY(_arg1:int):void{
TargetBgPosY = getAdjustBgPosY(_arg1);
}
public function setTargetBgPosX(_arg1:int):void{
TargetBgPosX = getAdjustBgPosX(_arg1);
}
public function setSoulHandControlOK(_arg1:Boolean):void{
if (mSoulTentacle){
mSoulTentacle.setControlOK(_arg1);
};
}
private function mouseDown(_arg1:MouseEvent):void{
if (mouseX < 0){
return;
};
if (mouseX > 0x0100){
return;
};
if (mouseY < 0){
return;
};
if (mouseY > 192){
return;
};
mbMouseDown = true;
mMouseStartX = (mMouseX = mouseX);
mMouseStartY = (mMouseY = mouseY);
}
public function getStatus():uint{
return (mStatus);
}
public function bgmStop(_arg1:int):void{
if (mBgmName == ""){
return;
};
if (mBgmPause){
return;
};
var _local2:LibrarySound = getSoundData(mBgmName);
if (!_local2){
trace(("Not Found Bgm : " + mBgmName));
return;
};
_local2.fadeOut(_arg1);
mBgmName = "";
}
public function setMaskFadeOut(_arg1:int):void{
mBlackMaskFadePlate.setFadeOut(_arg1);
}
public function callSePos(_arg1:String, _arg2:Boolean, _arg3:int, _arg4:int):void{
var _local5:LibrarySound = getSoundData(_arg1);
if (!_local5){
trace(("Not Found Se : " + _arg1));
return;
};
_local5.callSoundPos(_arg2, _arg3, _arg4);
}
public function setStatus(_arg1:uint):void{
mPreStatus = mStatus;
mStatus = _arg1;
}
public function setWhiteOut(_arg1:int):void{
mWhiteFadePlate.setFadeOut(_arg1);
}
public function getBinaryByteArray(_arg1:String):ByteArray{
return (mBinaryPackData.getByteArray(_arg1));
}
public function setSpotLightParam(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:int):void{
mSpotLight.setLightParam(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function setStatusGame(_arg1:uint):void{
if (((((!((mStatus == STAT_SV))) && (!((mStatus == STAT_DEADKAIWA))))) && (!((mStatus == STAT_GAMEOVER))))){
setStatus(_arg1);
};
}
public function removePointLight():void{
mPointLight.removeLight();
}
public function getMotionObject(_arg1:uint):MotionObject{
if (_arg1 < 0){
return (null);
};
if (_arg1 < mUnitHuman.length){
return (mUnitHuman[_arg1]);
};
if (_arg1 < (mUnitHuman.length + mUnitGimmick.length)){
return (mUnitGimmick[(_arg1 - mUnitHuman.length)]);
};
if (_arg1 < ((mUnitHuman.length + mUnitGimmick.length) + mUnitGimmickSV.length)){
return (mUnitGimmickSV[((_arg1 - mUnitHuman.length) - mUnitGimmick.length)]);
};
return (null);
}
public function messageCall(_arg1:String):void{
setSoulHandControlOK(false);
mMessage.loadMessage(_arg1, -1);
}
public function removeSpotLight(_arg1:String):void{
mSpotLight.removeLight(_arg1);
}
public function bgmChangeVol(_arg1:int, _arg2:int):void{
if (mBgmName == ""){
return;
};
if (mBgmPause){
return;
};
var _local3:LibrarySound = getSoundData(mBgmName);
if (!_local3){
trace(("Not Found Bgm : " + mBgmName));
return;
};
if (_arg1 == 0){
_local3.fadeOut(_arg2);
} else {
_local3.fadeIn(true, _arg2);
};
}
public function getIsCameraMoveEnd():Boolean{
if (mCameraFrame == mCameraCurrent){
return (true);
};
if (mCameraFrame == 0){
return (true);
};
return (false);
}
public function setPlayerMarkDisp(_arg1:Boolean):void{
mbDispPlayerMark = _arg1;
}
public function updateMotionInfo(_arg1:String):void{
var _local2:MotionObject = searchMotionObject(_arg1);
if (_local2 == null){
return;
};
_local2.updateCurrentCenterPosInfo();
}
public function addHuman(_arg1:String, _arg2:uint):void{
var _local3:MotionObject = new MotionObject(this, false);
_local3.name = _arg1;
_local3.setPriority(_arg2);
mUnitHuman.push(_local3);
mHumanLayer[_arg2].addChild(_local3);
}
public function getBgYureTime():int{
return (mBgYureTime);
}
public function callSeMotion(_arg1:String, _arg2:Boolean, _arg3:String, _arg4:int):void{
var _local5:MotionObject = searchMotionObject(_arg3);
var _local6:int = _local5.getCenterPosX(_arg4);
var _local7:int = _local5.getCenterPosY(_arg4);
var _local8:LibrarySound = getSoundData(_arg1);
if (!_local8){
trace(("Not Found Se : " + _arg1));
return;
};
_local8.callSoundPos(_arg2, _local6, _local7);
}
public function setGameClear():void{
root.dispatchEvent(new Event("GameClear"));
}
public function setButtonStatus(_arg1:uint, _arg2:uint):void{
if (_arg2 == BUTTON_DISP2HIDE){
mButton[_arg1].setStatus(_arg2);
} else {
if (_arg2 == BUTTON_HIDE2DISP){
mButton[_arg1].visible = true;
mButton[_arg1].setStatus(_arg2);
} else {
if (_arg2 == BUTTON_FLAGON){
mButton[_arg1].visible = true;
} else {
if (_arg2 == BUTTON_FLAGOFF){
mButton[_arg1].visible = false;
};
};
};
};
}
public function reset(){
var _local1:uint;
mBgmName = "";
mBgmPause = false;
mbFreeCameraOn = false;
mbDispPlayerMark = true;
mStatus = STAT_DEMO;
mPreStatus = STAT_DEMO;
mPreOneFrameStatus = STAT_DEMO;
mKakoMode = 0;
_local1 = 0;
while (_local1 < OBJ_PRIO_NUM) {
Utility.removeAllChildren(mGimmickLayer[_local1]);
Utility.removeAllChildren(mHumanLayer[_local1]);
_local1++;
};
Utility.removeAllChildren(mSoulFireLayer);
Utility.removeAllChildren(mSoulHandLayer);
Utility.removeAllChildren(mCoreLayer);
Utility.removeAllChildren(mBalloonPictureLayer);
Utility.removeAllChildren(mBalloonCicelLayer);
Utility.removeAllChildren(mEffectLayer);
Utility.removeAllChildren(mAnnounceLayer);
Utility.removeAllChildren(mEffectMostNotTouchLayer);
mUnitHuman = [];
mUnitGimmick = [];
mUnitGimmickSV = [];
mUnitBalloonPicture = [];
mUnitBalloonCicel = [];
mUnitEffect = [];
mSpotLight.reset();
_local1 = 0;
while (_local1 < BUTTON_NUM) {
mButton[_local1].visible = false;
mButton[_local1].gotoAndPlay("hide");
_local1++;
};
setScriptReset();
mTimeLimitCount = -1;
mTimeLimitScript = -1;
mBgTargetMove = true;
if (mSubStatus){
mSubStatus.changeSetting();
};
}
public function callSe(_arg1:String, _arg2:Boolean):void{
if (_arg1 == ""){
return;
};
var _local3:LibrarySound = getSoundData(_arg1);
if (!_local3){
trace(("Not Found Se : " + _arg1));
return;
};
_local3.callSound(_arg2);
}
public function getBinaryDataIsLoadEnd():Boolean{
if (mBinaryPackData == null){
return (false);
};
return (mBinaryPackData.getIsLoadEnd());
}
public function getAdjustBgPosX(_arg1:int):int{
var _local2:int = _arg1;
if (_local2 > (mBgPosXMax - 0x0100)){
_local2 = (mBgPosXMax - 0x0100);
};
if (_local2 < mBgPosXMin){
_local2 = mBgPosXMin;
};
return (_local2);
}
public function setSubScriptActive(_arg1:int, _arg2:Boolean, _arg3:Boolean):void{
if (mSubScript == null){
return;
};
if (mSubScript[_arg1] == null){
return;
};
if (mSubScriptActive[_arg1]){
if (!_arg2){
mSubScriptActive[_arg1] = false;
mSubScript[_arg1].reset();
};
} else {
if (_arg2){
mSubScriptActive[_arg1] = true;
mSubScript[_arg1].reset();
mSubScript[_arg1].setThroughMode(_arg3);
};
};
}
public function setBgYure(_arg1:int, _arg2:int):void{
mBgYureLevel = _arg1;
mBgYureTime = _arg2;
}
public function getAdjustBgPosY(_arg1:int):int{
var _local2:int = _arg1;
if (_local2 > (mBgPosYMax - 192)){
_local2 = (mBgPosYMax - 192);
};
if (_local2 < mBgPosYMin){
_local2 = mBgPosYMin;
};
return (_local2);
}
public function sendMessage(_arg1:String, _arg2:String, _arg3:String):void{
mEventTarget = _arg1;
mEventType = _arg2;
mEventKind = _arg3;
}
public function checkFrameEffect(_arg1:String, _arg2:int):Boolean{
var _local4:int;
var _local5:Boolean;
var _local3:int = mUnitEffect.length;
_local4 = 0;
while (_local4 < _local3) {
if (mUnitEffect[_local4].name != _arg1){
} else {
_local5 = mUnitEffect[_local4].getIsMovieReachFrame(_arg2);
return (_local5);
};
_local4++;
};
return (false);
}
public function setBgPosX(_arg1:int):void{
TargetBgPosX = (BgPosX = (BgTruePosX = getAdjustBgPosX(_arg1)));
mNormalBg.setOrigin(BgPosX, BgPosY);
mSoulBg.setOrigin(BgPosX, BgPosY);
}
public function setPointLight(_arg1:int, _arg2:int, _arg3:int, _arg4:Number):void{
mPointLight.setLight(_arg1, _arg2, _arg3, _arg4);
}
public function removeSoulFire(_arg1:Sprite):void{
mSoulFireLayer.removeChild(_arg1);
}
public function addGimmick(_arg1:String, _arg2:uint):void{
var _local3:MotionObject = new MotionObject(this, false);
_local3.name = _arg1;
_local3.setPriority(_arg2);
mUnitGimmick.push(_local3);
mGimmickLayer[_arg2].addChild(_local3);
}
public function setBgPosY(_arg1:int):void{
TargetBgPosY = (BgPosY = (BgTruePosY = getAdjustBgPosX(_arg1)));
mNormalBg.setOrigin(BgPosX, BgPosY);
mSoulBg.setOrigin(BgPosX, BgPosY);
}
public function isKAKO():uint{
return (mKakoMode);
}
public function setObjPrio(_arg1:String, _arg2:uint):void{
var _local3:int;
_local3 = 0;
while (_local3 < mUnitHuman.length) {
if (mUnitHuman[_local3].name == _arg1){
mHumanLayer[mUnitHuman[_local3].getPriority()].removeChild(mUnitHuman[_local3]);
mHumanLayer[_arg2].addChild(mUnitHuman[_local3]);
mUnitHuman[_local3].setPriority(_arg2);
return;
};
_local3++;
};
_local3 = 0;
while (_local3 < mUnitGimmick.length) {
if (mUnitGimmick[_local3].name == _arg1){
mGimmickLayer[mUnitGimmick[_local3].getPriority()].removeChild(mUnitGimmick[_local3]);
mGimmickLayer[_arg2].addChild(mUnitGimmick[_local3]);
mUnitGimmick[_local3].setPriority(_arg2);
return;
};
_local3++;
};
_local3 = 0;
while (_local3 < mUnitGimmickSV.length) {
if (mUnitGimmickSV[_local3].name == _arg1){
mGimmickLayer[mUnitGimmickSV[_local3].getPriority()].removeChild(mUnitGimmickSV[_local3]);
mGimmickLayer[_arg2].addChild(mUnitGimmickSV[_local3]);
mUnitGimmickSV[_local3].setPriority(_arg2);
return;
};
_local3++;
};
}
public function setScriptReset():void{
var _local1:int;
if (mMainScript){
mMainScript.reset();
};
_local1 = 0;
while (_local1 < SUBSCRIPT_NUM) {
if (mSubScript){
if (mSubScript[_local1]){
mSubScript[_local1].reset();
mSubScriptActive[_local1] = false;
};
};
_local1++;
};
}
public function adjustEndEffect():void{
var _local2:int;
var _local3:uint;
var _local1:int = mUnitEffect.length;
_local2 = 0;
while (_local2 < _local1) {
if (!mUnitEffect[_local2].getIsEnd()){
} else {
_local3 = mUnitEffect[_local2].getPriority();
if (_local3 == EFFECT_PRIO_MOST){
mFadeLayer.removeChild(mUnitEffect[_local2]);
} else {
if (_local3 == EFFECT_PRIO_MOST_NOTTOUCH){
mEffectMostNotTouchLayer.removeChild(mUnitEffect[_local2]);
} else {
if (_local3 == EFFECT_PRIO_ANNOUNCE){
mAnnounceLayer.removeChild(mUnitEffect[_local2]);
} else {
if (_local3 == EFFECT_PRIO_NORMAL){
mEffectLayer.removeChild(mUnitEffect[_local2]);
};
};
};
};
mUnitEffect[_local2].preFinish();
mUnitEffect.splice(_local2, 1);
_local1--;
_local2--;
};
_local2++;
};
}
public function setSoulCoreInfo(_arg1:String, _arg2:int):void{
var _local4:int;
var _local5:int;
SoulGimmick = _arg1;
SoulIndex = _arg2;
var _local3:MotionObject = searchMotionObject(SoulGimmick);
if (_local3 == null){
return;
};
StatusIndex = _local3.getStatusIndex(SoulIndex);
if (mSoulTentacle){
_local4 = _local3.getCorePosX(SoulIndex);
_local5 = _local3.getCorePosY(SoulIndex);
mSoulTentacle.setPos(_local4, _local5);
};
}
public function loadMonologue(_arg1:String):void{
setSoulHandControlOK(false);
mMessage.loadMonologue(_arg1);
}
public function setEyeCatch(_arg1:String):void{
mMovieLayer.loadSwf(this, (_arg1 + LanguageType.LanguageType), "eyeCatch", 0, 0, true, true, false, 0, -1);
if (_arg1 == "unmei"){
callSe("sys_012", false);
setStatus(STAT_EYECATCH);
} else {
if (_arg1 == "trick"){
callSe("sys_011", false);
setStatus(STAT_EYECATCH);
} else {
if (_arg1 == "kanryo"){
callSe("sys_011", false);
setStatus(STAT_EYECATCH_KANRYO);
};
};
};
}
public function getEventTarget():String{
return (mEventTarget);
}
public function setObjStatusIndex(_arg1:String, _arg2:int, _arg3:int):void{
var _local4:MotionObject = searchMotionObject(_arg1);
if (_local4 == null){
return;
};
_local4.setStatusIndex(_arg2, _arg3);
}
public function setMotionFrame(_arg1:String, _arg2:uint):void{
var _local3:MotionObject = searchMotionObject(_arg1);
if (_local3 == null){
return;
};
_local3.setFrame(_arg2);
}
public function addEffect(_arg1:String, _arg2:String, _arg3:int, _arg4:int, _arg5:Boolean, _arg6:Boolean, _arg7:Boolean, _arg8:String, _arg9:int, _arg10:int, _arg11:Boolean, _arg12:uint, _arg13:int, _arg14:Boolean):void{
var _local15:String = _arg1;
var _local16:SwfMovie = new SwfMovie();
var _local17:MotionObject = searchMotionObject(_arg8);
var _local18:int = (Utility.getMotionPosXByIndexPos(_local17, _arg9, 0) + _arg3);
var _local19:int = (Utility.getMotionPosYByIndexPos(_local17, _arg9, 0) + _arg4);
var _local20:Number = Utility.getMotionRotationByIndexPos(_local17, _arg9, _arg10, 0);
if (_arg14){
_local16.loadSwf(this, _local15, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg12, _arg13);
_local16.setParentInfo(_local17, _arg9);
} else {
_local16.loadSwf(this, _local15, _arg2, _local18, _local19, _arg5, _arg6, _arg7, _arg12, _arg13);
};
_local16.rotation = _local20;
mUnitEffect.push(_local16);
if (_arg12 == EFFECT_PRIO_MOST){
mFadeLayer.addChild(_local16);
} else {
if (_arg12 == EFFECT_PRIO_MOST_NOTTOUCH){
mEffectMostNotTouchLayer.addChild(_local16);
} else {
if (_arg12 == EFFECT_PRIO_ANNOUNCE){
mAnnounceLayer.addChild(_local16);
} else {
if (_arg12 == EFFECT_PRIO_NORMAL){
mEffectLayer.addChild(_local16);
};
};
};
};
}
public function openShutterNotStatus():void{
mSubShutter.setOpen();
mSubStatus.setSystemDisp(false);
}
public function addSpotLight(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:Number):void{
mSpotLight.addLight(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7);
}
public function openInstantShutter():void{
mSubShutter.setInstantOpen();
mSubStatus.setSystemDisp(false);
}
public function setBgId(_arg1:String):void{
var _local2:ByteArray = getBinaryByteArray(_arg1);
mNormalBg.loadBg(_local2);
var _local3:ByteArray = getBinaryByteArray((_arg1 + "sv"));
mSoulBg.loadBg(_local3);
}
public function setFadeIn(_arg1:int):void{
mBlackFadePlate.setFadeIn(_arg1);
}
public function adjustEndBalloon():void{
var _local1:int;
var _local2:int = mUnitBalloonPicture.length;
_local1 = 0;
while (_local1 < _local2) {
if (!mUnitBalloonPicture[_local1].getIsEnd()){
} else {
mBalloonPictureLayer.removeChild(mUnitBalloonPicture[_local1]);
mUnitBalloonPicture.splice(_local1, 1);
_local2--;
_local1--;
};
_local1++;
};
var _local3:int = mUnitBalloonCicel.length;
_local1 = 0;
while (_local1 < _local3) {
if (!mUnitBalloonCicel[_local1].getIsEnd()){
} else {
mBalloonCicelLayer.removeChild(mUnitBalloonCicel[_local1]);
mUnitBalloonCicel.splice(_local1, 1);
_local3--;
_local1--;
};
_local1++;
};
}
public function setButtonClick(_arg1:uint):void{
mButtonClick[_arg1] = true;
}
private function move(_arg1:Event):void{
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:*;
var _local14:MotionObject;
var _local15:Boolean;
var _local16:Array;
var _local2:uint;
if (!visible){
return;
};
if (mLoadFrame >= 0){
mLoadFrame++;
if (!mBinaryPackData){
mBinaryPackData = new BinaryPackData();
addChild(mBinaryPackData);
};
if (mLoadFrame > 5){
mBinaryPackData.loadData();
mLoadFrame = -1;
return;
};
return;
};
if (!mBinaryPackData.getIsLoadEnd()){
return;
};
if (!mMainScript){
mMainScript = new GameScript();
mMainScript.loadSt01_000_MainScript();
return;
};
if (!mSubScript){
mSubScript = [];
mSubScriptActive = [];
_local2 = 0;
while (_local2 < SUBSCRIPT_NUM) {
mSubScript.push(new GameScript());
mSubScriptActive.push(false);
mSubScript[_local2].loadSt01_000_SubScript(_local2);
_local2++;
};
return;
};
if (!mLibrarySoundDatabase){
mLibrarySoundDatabase = new LibrarySoundDatabase();
mLibrarySoundDatabase.loadSystemSe();
mLibrarySoundDatabase.loadSt01GimmickSe();
mLibrarySoundDatabase.loadSt01Bgm();
return;
};
if (!mbInitialize){
mbInitialize = true;
initialSetting();
};
if (!mMessage.getLoadEnd()){
return;
};
if (mMainScript.getIsEnd()){
reset();
return;
};
mMainScript.move(this);
_local2 = 0;
while (_local2 < SUBSCRIPT_NUM) {
if (mSubScriptActive[_local2]){
mSubScript[_local2].move(this);
if (mSubScript[_local2].getIsEnd()){
mSubScriptActive[_local2] = false;
};
};
_local2++;
};
if (mSubShutter.getIsClosed()){
mSubStatus.setShutterDisp(false);
mSubStatus.setSystemDisp(true);
} else {
mSubStatus.setShutterDisp(true);
};
if (mCameraCurrent < mCameraFrame){
mCameraCurrent++;
_local8 = (mCameraStartX + (((mCameraEndX - mCameraStartX) * mCameraCurrent) / mCameraFrame));
_local9 = (mCameraStartY + (((mCameraEndY - mCameraStartY) * mCameraCurrent) / mCameraFrame));
setBgPos(_local8, _local9);
if (mCameraCurrent >= mCameraFrame){
mCameraCurrent = 0;
mCameraFrame = 0;
};
};
if (mBgYureTime > 0){
mBgYureTime--;
if ((mBgYureTime & 3) == 1){
_local10 = (Utility.getRandom(0, 7) * 2);
_local11 = BgYureTbl[(_local10 + 0)];
_local12 = BgYureTbl[(_local10 + 1)];
BgPosX = (BgTruePosX + (_local11 * (mBgYureLevel + 1)));
BgPosY = (BgTruePosY + (_local12 * (mBgYureLevel + 1)));
if (BgPosX < 0){
BgPosX = 0;
};
if (BgPosY < 0){
BgPosY = 0;
};
if (BgPosX > 0x0400){
BgPosX = 0x0400;
};
if (BgPosY > 0x0300){
BgPosY = 0x0300;
};
mBgYureX = (BgPosX - BgTruePosX);
mBgYureY = (BgPosY - BgTruePosY);
} else {
if (mBgYureTime == 0){
BgPosX = BgTruePosX;
BgPosY = BgTruePosY;
mBgYureX = 0;
mBgYureY = 0;
};
};
mNormalBg.setOrigin(BgPosX, BgPosY);
mSoulBg.setOrigin(BgPosX, BgPosY);
};
changeGameStatus(true);
if ((((mStatus == STAT_GAME)) && (!(Pause)))){
mAnnounceLayer.visible = true;
dispBalloonCicel(true, true);
} else {
mAnnounceLayer.visible = false;
dispBalloonCicel(false, true);
};
if ((((mStatus == STAT_GAME)) || ((mStatus == STAT_DEMO)))){
mBalloonPictureLayer.visible = true;
} else {
mBalloonPictureLayer.visible = false;
};
if (mStatus == STAT_GAME){
if (mbFreeCameraOn){
if (mbMouseDown){
if (!mbPreMouseDown){
mBgPosStartX = BgPosX;
mBgPosStartY = BgPosY;
} else {
setBgPosAdjust((mBgPosStartX - (mMouseX - mMouseStartX)), (mBgPosStartY - (mMouseY - mMouseStartY)));
};
};
};
if (mButtonClick[BUTTON_ACTION]){
dispCoreAction();
};
if (mButtonClick[BUTTON_TRICK]){
setStatus(STAT_SV);
};
if ((((mTimeLimitCount >= 0)) && (!(Pause)))){
_local13 = "";
mTimeLimitCount--;
if (mTimeLimitCount == 1380){
_local13 = ("deathcount-3" + LanguageType.LanguageType);
};
if (mTimeLimitCount == 1080){
_local13 = ("deathcount-2" + LanguageType.LanguageType);
};
if (mTimeLimitCount == 780){
_local13 = ("deathcount-1" + LanguageType.LanguageType);
};
if (mTimeLimitCount == 480){
_local13 = ("deathcount-0" + LanguageType.LanguageType);
};
if (mTimeLimitCount == 0){
setSubScriptActive(mTimeLimitScript, true, false);
};
if (_local13 != ""){
addEffect(_local13, _local13, 0, 0, true, true, false, "", -1, -1, false, EFFECT_PRIO_ANNOUNCE, -1, false);
};
};
if ((((((mEventType == "core")) || ((mEventType == "core1")))) && ((mEventKind == "ready")))){
_local14 = searchMotionObject(mEventTarget);
if (_local14){
if (mEventTarget == "bed"){
if (_local14.getCurrentFrame() == 0){
_local14.setPause(false);
setCameraMove(361, 535, 3);
addEffect("st01_bed_00", "st01_bed_00", -10, -19, true, false, false, "bed", 0, -1, false, GameApp.EFFECT_PRIO_NORMAL, -1, false);
callSe("gim_053", false);
setObjStatusIndex("bed", 0, SubStatus.BED_01);
} else {
if (_local14.getMotionName() == "st01_bed_000_mtbl"){
_local14.loadMotion("st01_bed_001_mtbl", false, false);
setCameraMove(249, 498, 3);
callSe("gim_054", false);
setObjStatusIndex("bed", 0, SubStatus.BED_00);
} else {
_local14.loadMotion("st01_bed_000_mtbl", false, false);
setCameraMove(361, 535, 3);
addEffect("st01_bed_00", "st01_bed_00", -10, -19, true, false, false, "bed", 0, -1, false, GameApp.EFFECT_PRIO_NORMAL, -1, false);
callSe("gim_053", false);
setObjStatusIndex("bed", 0, SubStatus.BED_01);
};
};
mActionGimmick = _local14;
setStatus(STAT_DEMO);
};
if ((((mEventTarget == "bycicle")) && ((mEventType == "core1")))){
if (_local14.getMotionName() == "st01_bicycle_000_002_mtbl"){
if (_local14.getCurrentFrame() == 0){
_local14.setPause(false);
setCameraMove(382, 192, 3);
setObjStatusIndex("bycicle", 1, SubStatus.BICYCLE_03);
} else {
_local14.loadMotion("st01_bicycle_000_003_mtbl", false, false);
setCameraMove(248, 192, 3);
setObjStatusIndex("bycicle", 1, SubStatus.BICYCLE_02);
};
mActionGimmick = _local14;
setStatus(STAT_DEMO);
callSe("gim_031", false);
} else {
if (_local14.getMotionName() == "st01_bicycle_000_003_mtbl"){
if (_local14.getCurrentFrame() == 0){
_local14.setPause(false);
setCameraMove(248, 192, 3);
setObjStatusIndex("bycicle", 1, SubStatus.BICYCLE_02);
} else {
_local14.loadMotion("st01_bicycle_000_002_mtbl", false, false);
setCameraMove(382, 192, 3);
setObjStatusIndex("bycicle", 1, SubStatus.BICYCLE_03);
};
mActionGimmick = _local14;
setStatus(STAT_DEMO);
callSe("gim_031", false);
};
};
};
if (mEventTarget == "hashigo"){
if (_local14.getCurrentFrame() == 0){
_local14.setPause(false);
setObjStatusIndex("hashigo", 0, SubStatus.LADDER_01);
} else {
if (_local14.getMotionName() == "st01_hasigo_000_mtbl"){
_local14.loadMotion("st01_hasigo_000_00a_mtbl", false, false);
setObjStatusIndex("hashigo", 0, SubStatus.LADDER_00);
} else {
_local14.loadMotion("st01_hasigo_000_mtbl", false, false);
setObjStatusIndex("hashigo", 0, SubStatus.LADDER_01);
};
};
callSe("gim_032", false);
mActionGimmick = _local14;
setStatus(STAT_DEMO);
};
};
sendMessage("", "", "");
};
} else {
if (mStatus == STAT_DEMO){
if (mButtonClick[BUTTON_ACTION]){
dispCoreAction();
};
if (mActionGimmick){
if (mActionGimmick.getIsEnd()){
mActionGimmick = null;
setStatus(STAT_GAME);
};
};
} else {
if (mStatus == STAT_SV){
if (mButtonClick[BUTTON_RETURN]){
setStatus(STAT_GAME);
};
if (mSoulTentacle){
mSoulTentacle.mouseSequence(mbMouseDown, mMouseX, mMouseY);
};
} else {
if ((((mStatus == STAT_EYECATCH)) || ((mStatus == STAT_EYECATCH_KANRYO)))){
} else {
if (mStatus == STAT_DEADKAIWA){
} else {
if (mStatus == STAT_GAMEOVER){
if (mSelectSeqStartCount < DEADKAIWA_STARTWAIT){
mSelectSeqStartCount++;
if (mSelectSeqStartCount >= DEADKAIWA_STARTWAIT){
mStartButton = new GeneralButton(this, ("cmn_ba_00_00" + LanguageType.LanguageType), ("cmn_ba_00_01" + LanguageType.LanguageType), ("cmn_ba_00_02" + LanguageType.LanguageType), GeneralButton.STAT_NORMAL);
mStartButton.setMoveTarget((322 - 56), (60 - 20), (184 - 56), (60 - 20), 32);
mButtonLayer.addChild(mStartButton);
if (0){
mContinueButton = new GeneralButton(this, ("cmn_ba_01_00" + LanguageType.LanguageType), ("cmn_ba_01_01" + LanguageType.LanguageType), ("cmn_ba_01_02" + LanguageType.LanguageType), GeneralButton.STAT_FOCUS);
mContinueButton.setMoveTarget((322 - 56), (104 - 20), (184 - 56), (104 - 20), 32);
mButtonLayer.addChild(mContinueButton);
} else {
mStartButton.setStatus(GeneralButton.STAT_FOCUS);
};
mMessage.loadMessage("rollback_00", 27);
mSelectStartContinue = -1;
};
} else {
if (mSelectStartContinue == -1){
if (mStartButton.getIsReached()){
_local15 = false;
if (mStartButton.getIsTouch()){
mSelectStartContinue = 0;
_local15 = true;
} else {
if (((!((mContinueButton == null))) && (mContinueButton.getIsTouch()))){
mSelectStartContinue = 1;
_local15 = true;
};
};
if (_local15){
_local16 = [GeneralButton.STAT_NORMAL, GeneralButton.STAT_SELECT];
mStartButton.setStatus(_local16[(1 - mSelectStartContinue)]);
mStartButton.setFadeOut(GAMEOVER_CONTINUE_COUNT);
if (mContinueButton){
mContinueButton.setStatus(_local16[mSelectStartContinue]);
mContinueButton.setFadeOut(GAMEOVER_CONTINUE_COUNT);
};
callSe("sys_026", false);
setFadeOut(GAMEOVER_CONTINUE_COUNT);
};
};
} else {
if (mStartButton){
if (mStartButton.getIsReached()){
setScriptReset();
if (mSelectStartContinue == 0){
mMainScript.resetEventRoutineAndSetPC(mStartMainScriptPC);
} else {
mMainScript.resetEventRoutineAndSetPC(mContinueMainScriptPC);
};
mStartButton = (Utility.removeChildAndRelease(mButtonLayer, mStartButton) as GeneralButton);
mContinueButton = (Utility.removeChildAndRelease(mButtonLayer, mContinueButton) as GeneralButton);
setStatus(STAT_DEMO);
changeGameStatus(false);
mMessage.setMessageEnd();
setFadeIn(GAMEOVER_CONTINUE_COUNT);
};
};
};
};
};
};
};
};
};
};
if ((((mTimeLimitCount > 0)) && ((mTimeLimitCount <= 1380)))){
if (mBgmName != "BGM06"){
bgmStop(0);
};
bgmPlay("BGM06", 0);
} else {
if (mBgmName == "BGM06"){
bgmStop(0);
};
};
if ((((mBgYureTime <= 0)) && (mBgTargetMove))){
if (TargetBgPosX > BgPosX){
BgPosX = (BgPosX + BG_SPEED);
if (TargetBgPosX < BgPosX){
BgPosX = TargetBgPosX;
};
};
if (TargetBgPosX < BgPosX){
BgPosX = (BgPosX - BG_SPEED);
if (TargetBgPosX > BgPosX){
BgPosX = TargetBgPosX;
};
};
if (TargetBgPosY > BgPosY){
BgPosY = (BgPosY + BG_SPEED);
if (TargetBgPosY < BgPosY){
BgPosY = TargetBgPosY;
};
};
if (TargetBgPosY < BgPosY){
BgPosY = (BgPosY - BG_SPEED);
if (TargetBgPosY > BgPosY){
BgPosY = TargetBgPosY;
};
};
BgTruePosX = (BgPosX = getAdjustBgPosX(BgPosX));
BgTruePosY = (BgPosY = getAdjustBgPosX(BgPosY));
mNormalBg.setOrigin(BgPosX, BgPosY);
mSoulBg.setOrigin(BgPosX, BgPosY);
};
_local2 = 0;
while (_local2 < BUTTON_NUM) {
mButtonClick[_local2] = false;
_local2++;
};
if (((mbMouseDown) && (!(mbPreMouseDown)))){
mMessage.setClick();
};
mMessage.setMouseDown(mbMouseDown);
mMouseX = mouseX;
mMouseY = mouseY;
if (mMouseX < 0){
mMouseX = 0;
};
if (mMouseX > 0xFF){
mMouseX = 0xFF;
};
if (mMouseY < 0){
mMouseY = 0;
};
if (mMouseY > 191){
mMouseY = 191;
};
mbPreMouseDown = mbMouseDown;
var _local3:int = mUnitHuman.length;
_local2 = 0;
while (_local2 < _local3) {
mUnitHuman[_local2].update();
_local2++;
};
var _local4:int = mUnitGimmick.length;
_local2 = 0;
while (_local2 < _local4) {
mUnitGimmick[_local2].update();
_local2++;
};
var _local5:int = mUnitGimmickSV.length;
_local2 = 0;
while (_local2 < _local5) {
mUnitGimmickSV[_local2].update();
_local2++;
};
var _local6:int = mUnitBalloonPicture.length;
_local2 = 0;
while (_local2 < _local6) {
mUnitBalloonPicture[_local2].update();
_local2++;
};
var _local7:int = mUnitBalloonCicel.length;
_local2 = 0;
while (_local2 < _local7) {
mUnitBalloonCicel[_local2].update();
_local2++;
};
adjustEndEffect();
adjustEndBalloon();
if (mNormalBg){
mNormalBg.update();
};
if (mSoulBg){
mSoulBg.update();
};
}
public function getMouseClick():Boolean{
if (!mbMouseDown){
return (false);
};
if (mbPreMouseDown){
return (false);
};
return (true);
}
public function setMotionTbl(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:Boolean):void{
var _local5:MotionObject = searchMotionObject(_arg1);
if (_local5 == null){
return;
};
_local5.loadMotion(_arg2, _arg3, _arg4);
}
public function setContinuePoint(_arg1:int, _arg2:int):void{
mContinueMainScriptPC = _arg1;
mContinueSubScript = _arg2;
}
public function setFreeCameraOn(_arg1:Boolean):void{
mbFreeCameraOn = _arg1;
}
public function dispCoreAction():void{
var _local3:int;
if (!mbDispPlayerMark){
return;
};
var _local1:Boolean;
var _local2:MotionObject = searchMotionObject(SoulGimmick);
if (_local2){
_local3 = _local2.getStatusIndex(SoulIndex);
if (_local3 >= 0){
if (mSubStatus){
_local1 = mSubStatus.getIsAction(_local3);
};
};
};
if (_local1){
finishEffect("playerMark");
addEffect("CoreAction", "playerMark", 0, 0, true, false, false, SoulGimmick, (SoulIndex + 10), -1, false, EFFECT_PRIO_NORMAL, -1, false);
callSe("sys_017", false);
} else {
callSe("sys_004", false);
};
setCameraAdjust(CAMERA_ADJUST_SPEED);
}
}
}//package
Section 25
//GameScript (GameScript)
package {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
import flash.system.*;
public class GameScript {
private var mAction:String;// = ""
private var mRoutine:int;// = 0
private var mNum:int;// = 0
private var mPC:int;// = 0
private var mNextStep:int;// = 0
private var mWaitTime:int;// = 0
private var mbThrough:Boolean;// = false
private var mData:Array;
private var mSubRoutine:int;// = 0
public function GameScript(){
mData = [];
super();
}
public function setThroughMode(_arg1:Boolean):void{
mbThrough = _arg1;
}
public function reset():void{
mPC = 0;
mbThrough = false;
resetEventRoutine();
}
public function move(_arg1:GameApp){
var _local2:int;
var _local3:String;
var _local4:String;
var _local5:String;
while (mPC < mNum) {
if (((GameApp.Pause) && (!(mbThrough)))){
return;
};
switch (mData[mPC]){
case "demo_mode":
_arg1.setStatus(GameApp.STAT_DEMO);
_arg1.changeGameStatus(true);
mPC++;
return;
case "game_mode":
_arg1.setStatus(GameApp.STAT_GAME);
_arg1.changeGameStatus(true);
resetEventRoutineAndNext(1);
return;
case "soulvision":
_arg1.setStatus(GameApp.STAT_SV);
_arg1.changeGameStatus(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
return;
case "deadkaiwa":
_arg1.setStatus(GameApp.STAT_DEADKAIWA);
_arg1.changeGameStatus(true);
resetEventRoutineAndNext(1);
return;
case "gameover":
_arg1.setStatus(GameApp.STAT_GAMEOVER);
_arg1.changeGameStatus(true);
resetEventRoutineAndNext(1);
break;
case "wait":
if (mRoutine == 0){
if (mData[(mPC + 1)] < 0){
return;
};
mRoutine = 1;
mSubRoutine = 1;
mNextStep = 2;
mWaitTime = mData[(mPC + 1)];
return;
} else {
mSubRoutine++;
if (mSubRoutine >= mWaitTime){
resetEventRoutineAndNext(mNextStep);
} else {
return;
};
};
break;
case "event_loop":
mPC = 0;
resetEventRoutine();
return;
case "through_on":
mbThrough = true;
resetEventRoutineAndNext(1);
break;
case "through_off":
mbThrough = false;
resetEventRoutineAndNext(1);
break;
case "subscript":
_arg1.setSubScriptActive(mData[(mPC + 1)], mData[(mPC + 2)], false);
resetEventRoutineAndNext(3);
break;
case "gameclear":
_arg1.setGameClear();
resetEventRoutineAndNext(1);
break;
case "kill_soulhand":
_arg1.killSoulHand();
resetEventRoutineAndNext(1);
break;
case "soulhand_control_ok":
_arg1.setSoulHandControlOK(true);
resetEventRoutineAndNext(1);
break;
case "soulhand_control_ng":
_arg1.setSoulHandControlOK(false);
resetEventRoutineAndNext(1);
break;
case "set_pause":
GameApp.Pause = mData[(mPC + 1)];
resetEventRoutineAndNext(2);
break;
case "open_instant_shutter":
_arg1.openInstantShutter();
resetEventRoutineAndNext(1);
break;
case "open_shutter_not_status":
_arg1.openShutterNotStatus();
resetEventRoutineAndNext(1);
break;
case "close_shutter":
_arg1.closeShutter();
resetEventRoutineAndNext(1);
break;
case "datadump":
_arg1.dataDump();
resetEventRoutineAndNext(1);
break;
case "wait_event":
_local3 = _arg1.getEventTarget();
_local4 = _arg1.getEventType();
_local5 = _arg1.getEventKind();
if ((((((((((_local3 == mData[(mPC + 1)])) || ((mData[(mPC + 1)] == "*")))) || ((_local3 == "*")))) && ((((((_local4 == mData[(mPC + 2)])) || ((mData[(mPC + 2)] == "*")))) || ((_local4 == "*")))))) && ((((((_local5 == mData[(mPC + 3)])) || ((mData[(mPC + 3)] == "*")))) || ((_local5 == "*")))))){
resetEventRoutineAndNext(4);
} else {
return;
};
break;
case "sendmsg":
_arg1.sendMessage(mData[(mPC + 1)], mData[(mPC + 2)], mData[(mPC + 3)]);
resetEventRoutineAndNext(4);
break;
case "unmei":
case "trick":
case "kanryo":
if (mRoutine == 0){
_arg1.setEyeCatch(mData[mPC]);
mRoutine = 1;
return;
};
if (_arg1.getEyeCatchEnd()){
resetEventRoutineAndNext(1);
} else {
return;
};
break;
case "bgset":
_arg1.setBgId(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "bg_set_rect":
_arg1.setBgRect(mData[(mPC + 1)], mData[(mPC + 2)], mData[(mPC + 3)], mData[(mPC + 4)]);
resetEventRoutineAndNext(5);
break;
case "quake":
_arg1.setBgYure(mData[(mPC + 1)], mData[(mPC + 2)]);
resetEventRoutineAndNext(3);
break;
case "coreset":
_arg1.setSoulCoreInfo(mData[(mPC + 1)], mData[(mPC + 2)]);
resetEventRoutineAndNext(3);
break;
case "camera_move":
_arg1.setCameraMove(mData[(mPC + 1)], mData[(mPC + 2)], mData[(mPC + 3)]);
resetEventRoutineAndNext(4);
break;
case "camera_wait":
if (_arg1.getIsCameraMoveEnd()){
resetEventRoutineAndNext(1);
} else {
return;
};
break;
case "camera_set":
_arg1.setBgPos(mData[(mPC + 1)], mData[(mPC + 2)]);
resetEventRoutineAndNext(3);
break;
case "freecamera_on":
_arg1.setFreeCameraOn(true);
resetEventRoutineAndNext(1);
break;
case "freecamera_off":
_arg1.setFreeCameraOn(false);
resetEventRoutineAndNext(1);
break;
case "camera_move_on":
_arg1.setBgTargetMove(true);
resetEventRoutineAndNext(1);
break;
case "camera_move_off":
_arg1.setBgTargetMove(false);
resetEventRoutineAndNext(1);
break;
case "fade_in":
_arg1.setFadeIn(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "fade_out":
_arg1.setFadeOut(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "white_in":
_arg1.setWhiteIn(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "white_out":
_arg1.setWhiteOut(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "mask_fade_in":
_arg1.setMaskFadeIn(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "mask_fade_out":
_arg1.setMaskFadeOut(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "button_status":
_arg1.setButtonStatus(mData[(mPC + 1)], mData[(mPC + 2)]);
resetEventRoutineAndNext(3);
break;
case "timelimit":
_arg1.setTimeLimit(mData[(mPC + 1)], mData[(mPC + 2)]);
resetEventRoutineAndNext(3);
break;
case "startpoint":
_arg1.setStartPoint((mPC + 2), mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "continuepoint":
_arg1.setContinuePoint((mPC + 2), mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "kakomode_on":
_arg1.setKakoMode(1);
resetEventRoutineAndNext(1);
break;
case "kakomode_off":
_arg1.setKakoMode(0);
resetEventRoutineAndNext(1);
break;
case "monologue":
_arg1.loadMonologue(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
return;
case "mescall":
_arg1.messageCall(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "meswait":
if (_arg1.getIsMessageEnd()){
resetEventRoutineAndNext(1);
} else {
return;
};
break;
case "human":
case "gimmick":
case "gimmickSoulRed":
case "gimmickSV":
if (mData[mPC] == "human"){
_arg1.addHuman(mData[(mPC + 1)], mData[(mPC + 5)]);
};
if (mData[mPC] == "gimmick"){
_arg1.addGimmick(mData[(mPC + 1)], mData[(mPC + 5)]);
};
if (mData[mPC] == "gimmickSoulRed"){
_arg1.addGimmickSoulRed(mData[(mPC + 1)], mData[(mPC + 5)]);
};
if (mData[mPC] == "gimmickSV"){
_arg1.addGimmickSV(mData[(mPC + 1)], mData[(mPC + 5)]);
};
_arg1.setMotionTbl(mData[(mPC + 1)], mData[(mPC + 2)], false, false);
_arg1.setCenterBgPos(mData[(mPC + 1)], mData[(mPC + 3)], mData[(mPC + 4)]);
_arg1.setMotionPause(mData[(mPC + 1)], true);
_local2 = 0;
while (_local2 < 4) {
_arg1.setObjStatusIndex(mData[(mPC + 1)], _local2, mData[((mPC + 6) + _local2)]);
_local2++;
};
resetEventRoutineAndNext(10);
break;
case "motiontbl":
_arg1.setMotionTbl(mData[(mPC + 1)], mData[(mPC + 2)], mData[(mPC + 3)], mData[(mPC + 4)]);
resetEventRoutineAndNext(5);
break;
case "motion_wait":
if (_arg1.getMotionEnd(mData[(mPC + 1)])){
resetEventRoutineAndNext(2);
} else {
return;
};
break;
case "center_bgpos":
_arg1.setCenterBgPos(mData[(mPC + 1)], mData[(mPC + 2)], mData[(mPC + 3)]);
resetEventRoutineAndNext(4);
break;
case "bgpos_add":
_arg1.bgPosAdd(mData[(mPC + 1)], mData[(mPC + 2)], mData[(mPC + 3)]);
resetEventRoutineAndNext(4);
break;
case "center_flip":
_arg1.setCenterFlip(mData[(mPC + 1)], mData[(mPC + 2)]);
resetEventRoutineAndNext(3);
break;
case "motion_frame":
_arg1.setMotionFrame(mData[(mPC + 1)], mData[(mPC + 2)]);
resetEventRoutineAndNext(3);
break;
case "objprio":
_arg1.setObjPrio(mData[(mPC + 1)], mData[(mPC + 2)]);
resetEventRoutineAndNext(3);
break;
case "disp_on":
_arg1.setMotionDisp(mData[(mPC + 1)], true);
resetEventRoutineAndNext(2);
break;
case "disp_off":
_arg1.setMotionDisp(mData[(mPC + 1)], false);
resetEventRoutineAndNext(2);
break;
case "motion_pause":
_arg1.setMotionPause(mData[(mPC + 1)], true);
resetEventRoutineAndNext(2);
break;
case "motion_play":
_arg1.setMotionPause(mData[(mPC + 1)], false);
resetEventRoutineAndNext(2);
break;
case "coreinfo":
_arg1.setObjStatusIndex(mData[(mPC + 1)], mData[(mPC + 2)], mData[(mPC + 3)]);
resetEventRoutineAndNext(4);
break;
case "motion_reinit":
_arg1.setMotionTbl(mData[(mPC + 1)], mData[(mPC + 2)], false, false);
_arg1.updateMotionInfo(mData[(mPC + 1)]);
_arg1.setMotionFrame(mData[(mPC + 1)], mData[(mPC + 6)]);
_arg1.setCenterBgPos(mData[(mPC + 1)], mData[(mPC + 3)], mData[(mPC + 4)]);
_arg1.setCenterFlip(mData[(mPC + 1)], mData[(mPC + 5)]);
_arg1.setMotionPause(mData[(mPC + 1)], true);
resetEventRoutineAndNext(7);
break;
case "effect":
_arg1.addEffect(mData[(mPC + 1)], mData[(mPC + 2)], mData[(mPC + 3)], mData[(mPC + 4)], mData[(mPC + 5)], mData[(mPC + 6)], mData[(mPC + 7)], mData[(mPC + 8)], mData[(mPC + 9)], mData[(mPC + 10)], mData[(mPC + 11)], mData[(mPC + 12)], mData[(mPC + 13)], false);
resetEventRoutineAndNext(14);
break;
case "effect_finish":
_arg1.finishEffect(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "effect_wait":
if (!_arg1.checkFrameEffect(mData[(mPC + 1)], mData[(mPC + 2)])){
return;
};
resetEventRoutineAndNext(3);
break;
case "playermark_flagon":
_arg1.setPlayerMarkDisp(true);
resetEventRoutineAndNext(1);
break;
case "playermark_flagoff":
_arg1.setPlayerMarkDisp(false);
resetEventRoutineAndNext(1);
break;
case "playerhere":
_arg1.dispPlayerMark(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "movie":
if (mRoutine == 0){
_arg1.addEffect(mData[(mPC + 1)], "specialMovie", 0, 0, true, true, false, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST, -1, false);
mRoutine = 1;
mWaitTime = 0;
return;
};
if (_arg1.checkFrameEffect("specialMovie", 0)){
mWaitTime++;
if (mWaitTime >= mData[(mPC + 2)]){
mWaitTime = mData[(mPC + 2)];
if ((((mWaitTime >= 0)) && (_arg1.getMouseClick()))){
_arg1.finishEffect("specialMovie");
};
};
return;
} else {
resetEventRoutineAndNext(3);
};
break;
case "bgm_play":
_arg1.bgmPlay(mData[(mPC + 1)], 0);
resetEventRoutineAndNext(2);
break;
case "bgm_stop":
_arg1.bgmStop(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "bgm_pause":
_arg1.bgmPause(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "se_play":
_arg1.callSe(mData[(mPC + 1)], false);
resetEventRoutineAndNext(2);
break;
case "se_play_pos":
_arg1.callSePos(mData[(mPC + 1)], false, mData[(mPC + 2)], mData[(mPC + 3)]);
resetEventRoutineAndNext(4);
break;
case "se_play_motion":
_arg1.callSeMotion(mData[(mPC + 1)], false, mData[(mPC + 2)], mData[(mPC + 3)]);
resetEventRoutineAndNext(4);
break;
case "balloon_picture":
_arg1.addBalloonPicture((mData[(mPC + 1)] + LanguageType.LanguageType), mData[(mPC + 2)], mData[(mPC + 3)], mData[(mPC + 4)], mData[(mPC + 5)]);
resetEventRoutineAndNext(6);
break;
case "balloon_cicel":
_arg1.addBalloonCicel(mData[(mPC + 1)], mData[(mPC + 2)], mData[(mPC + 3)], mData[(mPC + 4)]);
resetEventRoutineAndNext(5);
break;
case "balloon_exclamation":
_arg1.addEffect("st06_ef_exclamation", "st06_ef_exclamation", mData[(mPC + 2)], mData[(mPC + 3)], true, false, false, mData[(mPC + 1)], 0, -1, false, GameApp.EFFECT_PRIO_NORMAL, 39, true);
_arg1.callSeMotion("sys_021", false, mData[(mPC + 1)], 0);
resetEventRoutineAndNext(4);
break;
case "balloon_yure":
_arg1.setBalloonPictureYure(mData[(mPC + 1)], mData[(mPC + 2)]);
resetEventRoutineAndNext(3);
break;
case "balloon_kill":
_arg1.balloonKill();
resetEventRoutineAndNext(1);
break;
case "spot_light":
_arg1.addSpotLight(mData[(mPC + 1)], mData[(mPC + 2)], mData[(mPC + 3)], mData[(mPC + 4)], mData[(mPC + 5)], mData[(mPC + 6)], mData[(mPC + 7)]);
resetEventRoutineAndNext(8);
break;
case "spot_light_param":
_arg1.setSpotLightParam(mData[(mPC + 1)], mData[(mPC + 2)], mData[(mPC + 3)], mData[(mPC + 4)], mData[(mPC + 5)]);
resetEventRoutineAndNext(6);
break;
case "spot_light_kill":
_arg1.removeSpotLight(mData[(mPC + 1)]);
resetEventRoutineAndNext(2);
break;
case "point_light":
_arg1.setPointLight(mData[(mPC + 1)], mData[(mPC + 2)], mData[(mPC + 3)], mData[(mPC + 4)]);
resetEventRoutineAndNext(5);
break;
case "point_light_param":
_arg1.setPointLightParam(mData[(mPC + 1)], mData[(mPC + 2)], mData[(mPC + 3)], mData[(mPC + 4)]);
resetEventRoutineAndNext(5);
break;
case "point_light_kill":
_arg1.removePointLight();
resetEventRoutineAndNext(1);
break;
default:
trace(("Not Support Command : " + mData[mPC]));
break;
};
};
}
public function getIsEnd():Boolean{
if (mPC < mNum){
return (false);
};
return (true);
}
public function resetEventRoutineAndSetPC(_arg1:int):void{
mPC = _arg1;
resetEventRoutine();
}
public function setEventData(_arg1:Array, _arg2:int){
mData = _arg1;
mNum = _arg2;
mPC = 0;
mRoutine = 0;
mSubRoutine = 0;
mWaitTime = 0;
mbThrough = false;
}
public function loadSt01_000_MainScript():void{
setEventData(St01Script.mSt01_000_MainScript, St01Script.mSt01_000_MainScript.length);
}
public function resetEventRoutineAndNext(_arg1:int):void{
mNextStep = _arg1;
mPC = (mPC + mNextStep);
resetEventRoutine();
}
public function loadSt01_000_SubScript(_arg1:int):void{
var _local2:String = Utility.numberToString(_arg1, 3);
if (_arg1 >= St01Script.ST01_000_SUBSCRIPT_NUM){
setEventData(null, 0);
} else {
setEventData(St01Script[("mSt01_000_SubScript" + _local2)], St01Script[("mSt01_000_SubScript" + _local2)].length);
};
}
public function resetEventRoutine():void{
mRoutine = 0;
mSubRoutine = 0;
mNextStep = 0;
mWaitTime = 0;
}
}
}//package
Section 26
//GeneralButton (GeneralButton)
package {
import flash.display.*;
import flash.events.*;
public class GeneralButton extends MovieClip {
protected var mStartX:Number;// = 0
protected var mMoveTotalFrame:int;// = 0
protected var mStartY:Number;// = 0
protected var mFadeInFrame:int;// = 0
protected var mGameApp:GameApp;// = null
protected var mFadeOutFrame:int;// = 0
protected var mbTouch:Boolean;// = false
protected var mFadeFrame:int;// = 0
protected var mMoveFrame:int;// = 0
protected var mButtonLoader:Array;// = null
protected var mTargetX:Number;// = 0
protected var mTargetY:Number;// = 0
protected var mStatus:uint;// = 4294967295
static var STAT_NORMAL:uint = 0;
static var STAT_SELECT:uint = 2;
static var STAT_NUM:uint = 3;
static var STAT_FOCUS:uint = 1;
public function GeneralButton(_arg1:GameApp, _arg2:String, _arg3:String, _arg4:String, _arg5:uint){
var _local6:uint;
super();
mGameApp = _arg1;
buttonMode = false;
mButtonLoader = [];
var _local7:Array = [_arg2, _arg3, _arg4];
_local6 = 0;
while (_local6 < STAT_NUM) {
mButtonLoader.push(new Loader());
mButtonLoader[_local6].loadBytes(mGameApp.getBinaryByteArray(_local7[_local6]));
addChild(mButtonLoader[_local6]);
_local6++;
};
setStatus(_arg5);
addEventListener(MouseEvent.CLICK, mouseClick);
addEventListener(Event.ENTER_FRAME, move);
}
public function setFadeIn(_arg1:int):void{
buttonMode = false;
mFadeInFrame = _arg1;
mFadeFrame = 0;
}
public function setStatus(_arg1:uint):void{
var _local2:uint;
if (mStatus == _arg1){
return;
};
mStatus = _arg1;
_local2 = 0;
while (_local2 < STAT_NUM) {
if (mStatus == _local2){
mButtonLoader[_local2].visible = true;
} else {
mButtonLoader[_local2].visible = false;
};
_local2++;
};
}
protected function move(_arg1:Event):void{
buttonMode = true;
if (mFadeInFrame > 0){
buttonMode = false;
alpha = (mFadeFrame / mFadeInFrame);
mFadeFrame++;
if (mFadeFrame > mFadeInFrame){
mFadeInFrame = 0;
};
};
if (mFadeOutFrame > 0){
buttonMode = false;
alpha = (1 - ((1 * mFadeFrame) / mFadeOutFrame));
mFadeFrame++;
if (mFadeFrame > mFadeOutFrame){
mFadeOutFrame = 0;
};
};
if (mMoveTotalFrame > 0){
buttonMode = false;
x = (mStartX + (((mTargetX - mStartX) * mMoveFrame) / mMoveTotalFrame));
y = (mStartY + (((mTargetY - mStartY) * mMoveFrame) / mMoveTotalFrame));
mMoveFrame++;
if (mMoveFrame > mMoveTotalFrame){
mMoveTotalFrame = 0;
};
};
}
public function getIsReached():Boolean{
if (mFadeInFrame > 0){
return (false);
};
if (mFadeOutFrame > 0){
return (false);
};
if (mMoveTotalFrame > 0){
return (false);
};
return (true);
}
public function setMoveTarget(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int):void{
buttonMode = false;
mStartX = _arg1;
mStartY = _arg2;
mTargetX = _arg3;
mTargetY = _arg4;
mMoveTotalFrame = _arg5;
mMoveFrame = 0;
}
public function getIsTouch():Boolean{
return (mbTouch);
}
private function mouseClick(_arg1:MouseEvent):void{
if (!visible){
return;
};
if (!buttonMode){
return;
};
mbTouch = true;
}
public function setFadeOut(_arg1:int):void{
buttonMode = false;
mFadeOutFrame = _arg1;
mFadeFrame = 0;
}
}
}//package
Section 27
//gim_021 (gim_021)
package {
import flash.media.*;
public dynamic class gim_021 extends Sound {
}
}//package
Section 28
//gim_022 (gim_022)
package {
import flash.media.*;
public dynamic class gim_022 extends Sound {
}
}//package
Section 29
//gim_026 (gim_026)
package {
import flash.media.*;
public dynamic class gim_026 extends Sound {
}
}//package
Section 30
//gim_027 (gim_027)
package {
import flash.media.*;
public dynamic class gim_027 extends Sound {
}
}//package
Section 31
//gim_028 (gim_028)
package {
import flash.media.*;
public dynamic class gim_028 extends Sound {
}
}//package
Section 32
//gim_029 (gim_029)
package {
import flash.media.*;
public dynamic class gim_029 extends Sound {
}
}//package
Section 33
//gim_030 (gim_030)
package {
import flash.media.*;
public dynamic class gim_030 extends Sound {
}
}//package
Section 34
//gim_031 (gim_031)
package {
import flash.media.*;
public dynamic class gim_031 extends Sound {
}
}//package
Section 35
//gim_032 (gim_032)
package {
import flash.media.*;
public dynamic class gim_032 extends Sound {
}
}//package
Section 36
//gim_035 (gim_035)
package {
import flash.media.*;
public dynamic class gim_035 extends Sound {
}
}//package
Section 37
//gim_036 (gim_036)
package {
import flash.media.*;
public dynamic class gim_036 extends Sound {
}
}//package
Section 38
//gim_037 (gim_037)
package {
import flash.media.*;
public dynamic class gim_037 extends Sound {
}
}//package
Section 39
//gim_038 (gim_038)
package {
import flash.media.*;
public dynamic class gim_038 extends Sound {
}
}//package
Section 40
//gim_039 (gim_039)
package {
import flash.media.*;
public dynamic class gim_039 extends Sound {
}
}//package
Section 41
//gim_040 (gim_040)
package {
import flash.media.*;
public dynamic class gim_040 extends Sound {
}
}//package
Section 42
//gim_042 (gim_042)
package {
import flash.media.*;
public dynamic class gim_042 extends Sound {
}
}//package
Section 43
//gim_043 (gim_043)
package {
import flash.media.*;
public dynamic class gim_043 extends Sound {
}
}//package
Section 44
//gim_044 (gim_044)
package {
import flash.media.*;
public dynamic class gim_044 extends Sound {
}
}//package
Section 45
//gim_045 (gim_045)
package {
import flash.media.*;
public dynamic class gim_045 extends Sound {
}
}//package
Section 46
//gim_046 (gim_046)
package {
import flash.media.*;
public dynamic class gim_046 extends Sound {
}
}//package
Section 47
//gim_050 (gim_050)
package {
import flash.media.*;
public dynamic class gim_050 extends Sound {
}
}//package
Section 48
//gim_051 (gim_051)
package {
import flash.media.*;
public dynamic class gim_051 extends Sound {
}
}//package
Section 49
//gim_052 (gim_052)
package {
import flash.media.*;
public dynamic class gim_052 extends Sound {
}
}//package
Section 50
//gim_053 (gim_053)
package {
import flash.media.*;
public dynamic class gim_053 extends Sound {
}
}//package
Section 51
//gim_054 (gim_054)
package {
import flash.media.*;
public dynamic class gim_054 extends Sound {
}
}//package
Section 52
//gim_055 (gim_055)
package {
import flash.media.*;
public dynamic class gim_055 extends Sound {
}
}//package
Section 53
//gim_056 (gim_056)
package {
import flash.media.*;
public dynamic class gim_056 extends Sound {
}
}//package
Section 54
//gim_057 (gim_057)
package {
import flash.media.*;
public dynamic class gim_057 extends Sound {
}
}//package
Section 55
//gim_060 (gim_060)
package {
import flash.media.*;
public dynamic class gim_060 extends Sound {
}
}//package
Section 56
//gim_061 (gim_061)
package {
import flash.media.*;
public dynamic class gim_061 extends Sound {
}
}//package
Section 57
//gim_064 (gim_064)
package {
import flash.media.*;
public dynamic class gim_064 extends Sound {
}
}//package
Section 58
//gim_065 (gim_065)
package {
import flash.media.*;
public dynamic class gim_065 extends Sound {
}
}//package
Section 59
//gim_067 (gim_067)
package {
import flash.media.*;
public dynamic class gim_067 extends Sound {
}
}//package
Section 60
//gim_075 (gim_075)
package {
import flash.media.*;
public dynamic class gim_075 extends Sound {
}
}//package
Section 61
//gim_108 (gim_108)
package {
import flash.media.*;
public dynamic class gim_108 extends Sound {
}
}//package
Section 62
//gim_116 (gim_116)
package {
import flash.media.*;
public dynamic class gim_116 extends Sound {
}
}//package
Section 63
//gim_139 (gim_139)
package {
import flash.media.*;
public dynamic class gim_139 extends Sound {
}
}//package
Section 64
//gim_140 (gim_140)
package {
import flash.media.*;
public dynamic class gim_140 extends Sound {
}
}//package
Section 65
//gim_141 (gim_141)
package {
import flash.media.*;
public dynamic class gim_141 extends Sound {
}
}//package
Section 66
//gim_142 (gim_142)
package {
import flash.media.*;
public dynamic class gim_142 extends Sound {
}
}//package
Section 67
//gim_143 (gim_143)
package {
import flash.media.*;
public dynamic class gim_143 extends Sound {
}
}//package
Section 68
//gim_144 (gim_144)
package {
import flash.media.*;
public dynamic class gim_144 extends Sound {
}
}//package
Section 69
//gim_146 (gim_146)
package {
import flash.media.*;
public dynamic class gim_146 extends Sound {
}
}//package
Section 70
//gim_166 (gim_166)
package {
import flash.media.*;
public dynamic class gim_166 extends Sound {
}
}//package
Section 71
//gim_193 (gim_193)
package {
import flash.media.*;
public dynamic class gim_193 extends Sound {
}
}//package
Section 72
//gim_194 (gim_194)
package {
import flash.media.*;
public dynamic class gim_194 extends Sound {
}
}//package
Section 73
//GimmickCore (GimmickCore)
package {
import flash.display.*;
public final class GimmickCore extends MovieClip {
private var mbScriptDisp:Boolean;
private var mbDisp:Boolean;
private var mbSoulDisp:Boolean;
public function GimmickCore(){
mbScriptDisp = true;
mbDisp = true;
mbSoulDisp = false;
visible = false;
}
public function update(_arg1:Boolean, _arg2:Boolean, _arg3:Boolean):void{
mbScriptDisp = _arg1;
mbDisp = _arg2;
mbSoulDisp = _arg3;
visible = false;
if (((((mbScriptDisp) && (mbDisp))) && (mbSoulDisp))){
visible = true;
};
if ((((((((x < -16)) || ((x > 272)))) || ((y < -16)))) || ((y > 208)))){
visible = false;
};
}
}
}//package
Section 74
//LanguageType (LanguageType)
package {
public final class LanguageType {
static var LanguageType:String = "_en";
}
}//package
Section 75
//LibrarySound (LibrarySound)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
public final class LibrarySound extends Sprite {
private var mSoundChannel:SoundChannel;// = null
private var mbLoop:Boolean;// = false
private var mBaseVolume:Number;// = 1
private var mBasePan:Number;// = 0
private var mFadeOutFrame:int;// = -1
private var mFileName:String;// = ""
private var mSoundObj:Sound;// = null
private var mFadeCurrent:int;// = 0
private var mFadeInFrame:int;// = -1
public function LibrarySound(){
addEventListener(Event.ENTER_FRAME, move);
}
public function callSoundPos(_arg1:Boolean, _arg2:int, _arg3:int):void{
var _local4:int = ((_arg2 - GameApp.BgPosX) - 128);
var _local5:int = ((_arg3 - GameApp.BgPosY) - 96);
var _local6:Number = Utility.getLength(0, 0, _local4, _local5);
var _local7:int = (((_arg3 - GameApp.BgPosY) << 1) - 96);
var _local8:Number = Utility.getLength(0, 0, _local4, _local7);
var _local9:Number = 1;
if (_local8 > 0){
_local9 = (_local4 / _local8);
if (_local9 < 0){
_local9 = -(_local9);
};
};
var _local10:Number = (_local4 * _local9);
if (_local10 < -288){
_local10 = -64;
} else {
if (_local10 < -32){
_local10 = ((_local10 / 4) + 8);
} else {
if (_local10 < 32){
_local10 = 0;
} else {
if (_local10 < 288){
_local10 = ((_local10 / 4) - 8);
} else {
_local10 = 64;
};
};
};
};
mBasePan = (_local10 / 64);
var _local11:Number = (((0x0200 - _local6) * 4) / 7);
var _local12:Number = ((0x0800 - _local6) / 32);
if (_local6 < 64){
mBaseVolume = 0x0100;
} else {
if (_local6 < 0x0200){
mBaseVolume = _local12;
if (_local11 > _local12){
mBaseVolume = _local11;
};
} else {
if (_local6 < 0x0800){
mBaseVolume = _local12;
} else {
mBaseVolume = 0;
};
};
};
mBaseVolume = (mBaseVolume / 0x0100);
callSoundData(_arg1);
}
private function callSoundSetting():void{
removeSoundChannel();
mSoundChannel = mSoundObj.play(0, 1);
mSoundChannel.addEventListener(Event.SOUND_COMPLETE, soundCompleteCallback);
}
public function fadeIn(_arg1:Boolean, _arg2:int):void{
callSound(_arg1);
mFadeCurrent = 0;
mFadeInFrame = _arg2;
mFadeOutFrame = -1;
if (mFadeInFrame == 0){
setVolume(1);
} else {
setVolume(0);
};
}
private function soundCompleteCallback(_arg1:Event):void{
removeSoundChannel();
if (mbLoop){
callSoundSetting();
};
}
public function attachData(_arg1:String):void{
mbLoop = false;
mFileName = _arg1;
mFadeCurrent = 0;
mFadeInFrame = -1;
mFadeOutFrame = -1;
removeSoundChannel();
var _local2:Class = (getDefinitionByName(_arg1) as Class);
mSoundObj = new (_local2);
}
public function callSound(_arg1:Boolean):void{
mBaseVolume = 1;
mBasePan = 0;
callSoundData(_arg1);
}
private function move(_arg1:Event):void{
var _local2:Number;
if (mFadeInFrame > 0){
_local2 = ((mBaseVolume * mFadeCurrent) / mFadeInFrame);
setVolume(_local2);
mFadeCurrent++;
if (mFadeCurrent > mFadeInFrame){
mFadeCurrent = 0;
mFadeInFrame = -1;
};
};
if (mFadeOutFrame > 0){
_local2 = (mBaseVolume * (1 - (mFadeCurrent / mFadeOutFrame)));
setVolume(_local2);
mFadeCurrent++;
if (mFadeCurrent > mFadeOutFrame){
mFadeCurrent = 0;
mFadeOutFrame = -1;
stopSound();
};
};
}
private function callSoundData(_arg1:Boolean):void{
mFadeCurrent = 0;
mFadeInFrame = -1;
mFadeOutFrame = -1;
mbLoop = _arg1;
callSoundSetting();
setVolume(mBaseVolume);
setPan(mBasePan);
}
public function setVolume(_arg1:Number):void{
if (!mSoundChannel){
return;
};
var _local2:SoundTransform = mSoundChannel.soundTransform;
_local2.volume = _arg1;
mSoundChannel.soundTransform = _local2;
}
public function getFileName():String{
return (mFileName);
}
public function setPan(_arg1:Number):void{
if (!mSoundChannel){
return;
};
var _local2:SoundTransform = mSoundChannel.soundTransform;
_local2.pan = _arg1;
mSoundChannel.soundTransform = _local2;
}
private function removeSoundChannel():void{
if (!mSoundChannel){
return;
};
mSoundChannel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteCallback);
mSoundChannel = null;
}
private function stopSound():void{
if (mSoundChannel){
mSoundChannel.stop();
};
removeSoundChannel();
}
public function fadeOut(_arg1:int):void{
mFadeCurrent = 0;
mFadeInFrame = -1;
mFadeOutFrame = _arg1;
if (mFadeOutFrame == 0){
setVolume(0);
stopSound();
} else {
setVolume(1);
};
}
}
}//package
Section 76
//LibrarySoundDatabase (LibrarySoundDatabase)
package {
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class LibrarySoundDatabase extends Sprite {
private const SYSTEM_SE_NUM:uint = 28;
private var mSystemSe:Array;// = null
private var mGimmickSe:Array;// = null
private var mBgm:Array;// = null
public function LibrarySoundDatabase(){
mSystemSe = [];
mGimmickSe = [];
mBgm = [];
}
public function loadSt01Bgm():void{
var _local2:uint;
var _local3:LibrarySound;
mBgm = [];
var _local1:Array = ["01", "03", "04", "06", "09", "11", "12", "30", "37"];
_local2 = 0;
while (_local2 < _local1.length) {
_local3 = new LibrarySound();
_local3.attachData(("BGM" + _local1[_local2]));
mBgm.push(_local3);
_local2++;
};
}
public function getSoundData(_arg1:String):LibrarySound{
var _local2:int;
var _local3:Array = mSystemSe;
var _local4:int = _local3.length;
var _local5:Array = mGimmickSe;
var _local6:int = _local5.length;
var _local7:Array = mBgm;
var _local8:int = _local7.length;
_local2 = 0;
while (_local2 < _local4) {
if (_local3[_local2].getFileName() == _arg1){
return (_local3[_local2]);
};
_local2++;
};
_local2 = 0;
while (_local2 < _local6) {
if (_local5[_local2].getFileName() == _arg1){
return (_local5[_local2]);
};
_local2++;
};
_local2 = 0;
while (_local2 < _local8) {
if (_local7[_local2].getFileName() == _arg1){
return (_local7[_local2]);
};
_local2++;
};
return (null);
}
public function loadSystemSe():void{
var _local1:uint;
var _local2:LibrarySound;
var _local3:String;
mSystemSe = [];
_local1 = 1;
while (_local1 < SYSTEM_SE_NUM) {
_local2 = new LibrarySound();
_local3 = Utility.numberToString(_local1, 3);
_local2.attachData(("sys_" + _local3));
mSystemSe.push(_local2);
_local1++;
};
}
public function loadSt01GimmickSe():void{
var _local2:uint;
var _local3:LibrarySound;
mGimmickSe = [];
var _local1:Array = ["021", "022", "026", "027", "028", "029", "030", "031", "032", "035", "036", "037", "038", "039", "040", "042", "043", "044", "045", "046", "050", "051", "052", "053", "054", "055", "056", "057", "060", "061", "064", "065", "067", "075", "108", "116", "139", "140", "141", "142", "143", "144", "146", "166", "193", "194"];
_local2 = 0;
while (_local2 < _local1.length) {
_local3 = new LibrarySound();
_local3.attachData(("gim_" + _local1[_local2]));
mGimmickSe.push(_local3);
_local2++;
};
}
}
}//package
Section 77
//MessageConfig (MessageConfig)
package {
public final class MessageConfig {
static const CUTIN_INFO_SE:uint = 2;
static const TEXMESSAGE_INFO_HEIGHT:uint = 3;
static const TEXMESSAGE_INFO_HEIGHT_JP:uint = 5;
static const FACE_INFO_FILE:uint = 0;
static const TEXMESSAGE_INFO_SIZE_JP_OFS:uint = 2;
static const CUTIN_INFO_DIRECT:uint = 1;
static const MONOLOGUE_DEFAULT_WAITTIMER:int = 60;
static const MONOLOGUE_START_INIT:int = -1000;
static const NOPERSON:uint = 2;
static const PANELFACE:uint = 1;
static const TEXMESSAGE_INFO_FILENAME:uint = 1;
static const TEXMESSAGE_INFO_WIDTH:uint = 2;
static const MONO_MESSAGE_ALPHACNT:uint = 64;
static const TEXMESSAGE_INFO_INDEX:uint = 0;
static const MONO_BLACK_ALPHACNT:uint = 16;
static const MONO_BLACK_ALPHA:Number = 0.5;
static const FACE_INFO_SE:uint = 1;
static const MONO_PARAGRAPH_WAIT:int = 30;
static const MONOLOGUE:uint = 0;
static const TEXMESSAGE_INFO_NUM:uint = 6;
static const CUTIN:uint = 3;
static const CUTIN_INFO_NUM:uint = 3;
static const MONO_MESSAGE_ALPHASPEED:Number = 0.015625;
static const MONO_BLACK_ALPHASPEED:Number = 0.03125;
static const CUTIN_INFO_FILE:uint = 0;
static const FACE_INFO_NUM:uint = 2;
static const TEXMESSAGE_INFO_WIDTH_JP:uint = 4;
static var SC_MESFLASH:uint = (SC_COMMAND_START + 28);
static var SC_MONOLOGUE_FADEIN:uint = (SC_COMMAND_START + 100);
static var SC_MES_WAIT_SET:uint = (SC_COMMAND_START + 27);
static var mScriptArgNum:Array = [1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 2, 1, 1, 0];
static var SC_MES_SE_PLAY:uint = (SC_COMMAND_START + 33);
static var SC_MONOLOGUE_MESSAGE_FADEOUT:uint = (SC_COMMAND_START + 102);
static var SC_CUTIN:uint = (SC_COMMAND_START + 9);
static var SC_MES_PAUSE:uint = (SC_COMMAND_START + 6);
static var SC_CENTER:uint = (SC_COMMAND_START + 2);
static var SC_AUTO_END:uint = (SC_COMMAND_START + 8);
static var SC_PF:uint = (SC_COMMAND_START + 5);
static var mFaceData:Array = ["noperson", "", "cmn_do_10_01", "sys_006", "cmn_do_10_03", "sys_007", "cmn_do_10_06", "sys_006", "noperson", "sys_006", "noperson", "sys_006"];
static var mCutinData:Array = ["cmn_cu_02_00", true, "sys_007", "cmn_cu_02_00", false, "sys_007", "cmn_cu_02_02", true, "sys_007", "cmn_cu_02_02", false, "sys_007", "cmn_cu_02_03", true, "sys_007", "cmn_cu_02_03", false, "sys_007", "cmn_cu_02_04", true, "sys_007", "cmn_cu_02_04", false, "sys_007", "cmn_cu_02_05", true, "sys_007", "cmn_cu_02_05", false, "sys_007", "cmn_cu_02_06", true, "sys_007", "cmn_cu_02_06", false, "sys_007", "cmn_cu_02_07", true, "sys_007", "cmn_cu_02_07", false, "sys_007", "cmn_cu_02_08", true, "sys_007", "cmn_cu_02_08", false, "sys_007", "cmn_cu_02_09", true, "sys_007", "cmn_cu_02_09", false, "sys_007", "cmn_cu_02_10", true, "sys_007", "cmn_cu_02_10", false, "sys_007", "cmn_cu_02_11", true, "sys_007", "cmn_cu_02_11", false, "sys_007", "cmn_cu_02_12", true, "sys_007", "cmn_cu_02_12", false, "sys_007", "cmn_cu_02_13", true, "sys_007", "cmn_cu_02_13", false, "sys_007", "nocutin", true, "sys_007", "cmn_cu_00_00", true, "sys_006", "cmn_cu_00_00", false, "sys_006", "cmn_cu_00_01", true, "sys_006", "cmn_cu_00_01", false, "sys_006", "cmn_cu_00_02", true, "sys_006", "cmn_cu_00_02", false, "sys_006", "cmn_cu_00_03", true, "sys_006", "cmn_cu_00_03", false, "sys_006", "cmn_cu_00_04", true, "sys_006", "cmn_cu_00_04", false, "sys_006", "cmn_cu_00_08", true, "sys_006", "cmn_cu_00_08", false, "sys_006", "cmn_cu_00_09", true, "sys_006", "cmn_cu_00_09", false, "sys_006", "cmn_cu_00_10", true, "sys_006", "cmn_cu_00_10", false, "sys_006", "cmn_cu_00_11", true, "sys_006", "cmn_cu_00_11", false, "sys_006", "nocutin", true, "sys_006", "cmn_cu_08_01", true, "sys_006", "cmn_cu_08_01", false, "sys_006", "cmn_cu_08_00", true, "sys_006", "cmn_cu_08_00", false, "sys_006", "nocutin", true, "sys_006", "cmn_cu_09_00", true, "sys_006", "cmn_cu_09_00", false, "sys_006", "nocutin", true, "sys_006"];
static var mTexMessage:Array = [275, "font_tu_004", 16, 24, 24, 24, 276, "font_tu_005", 16, 24, 24, 24, 277, "font_tu_006", 16, 24, 24, 24, 278, "font_tu_000", 48, 24, 48, 24, 279, "font_tu_001", 56, 24, 64, 24, 280, "font_tu_002", 56, 24, 64, 24, 281, "font_tu_003", 16, 24, 24, 24, 282, "font_tu_007", 16, 24, 24, 24, 283, "font_tu_008", 56, 24, 64, 24, 284, "font_tu_009", 32, 24, 32, 24, 285, "font_tu_010", 32, 24, 32, 24, 286, "font_tu_011", 56, 24, 56, 24, 299, "tgs-msg01", 0x0100, 40, 0x0100, 40];
static var SC_MONOLOGUE_FADEOUT:uint = (SC_COMMAND_START + 101);
static var SC_COMMAND_START:uint = 0xF000;
static var SC_S0:uint = (SC_COMMAND_START + 17);
static var SC_S1:uint = (SC_COMMAND_START + 18);
static var SC_S2:uint = (SC_COMMAND_START + 19);
static var SC_S3:uint = (SC_COMMAND_START + 20);
static var SC_S4:uint = (SC_COMMAND_START + 21);
static var SC_S5:uint = (SC_COMMAND_START + 22);
static var SC_S6:uint = (SC_COMMAND_START + 23);
static var SC_S7:uint = (SC_COMMAND_START + 24);
static var SC_AUTO_PF:uint = (SC_COMMAND_START + 7);
static var SC_PARAGRAPH_END:uint = (SC_COMMAND_START + 3);
static var SC_C0:uint = (SC_COMMAND_START + 12);
static var SC_C1:uint = (SC_COMMAND_START + 13);
static var SC_C2:uint = (SC_COMMAND_START + 14);
static var SC_BR:uint = (SC_COMMAND_START + 4);
static var SC_C4:uint = (SC_COMMAND_START + 16);
static var SC_C3:uint = (SC_COMMAND_START + 15);
static var SC_CUTIN_FADEIN:uint = (SC_COMMAND_START + 10);
static var SC_MES_WHITE_IN:uint = (SC_COMMAND_START + 25);
static var SC_MES_WHITE_OUT:uint = (SC_COMMAND_START + 26);
static var SC_MES_BGM_STOP:uint = (SC_COMMAND_START + 32);
static var SC_MONO_TYPE_SET:uint = (SC_COMMAND_START + 1);
static var SC_MESQUAKE:uint = (SC_COMMAND_START + 29);
static var SC_FACE:uint = (SC_COMMAND_START + 11);
static var SC_MES_BGM_CHANGE_VOL:uint = (SC_COMMAND_START + 31);
static var SC_MONO_POS_SET:uint = (SC_COMMAND_START + 0);
static var SC_MESSAGE_END:uint = (SC_COMMAND_START + 34);
static var SC_MES_BGM_PLAY:uint = (SC_COMMAND_START + 30);
}
}//package
Section 78
//MessageCursor (MessageCursor)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
public final class MessageCursor extends MovieClip {
private const MOVE_TOTAL_FRAME:int = 5;
private const STEP_POSY:int = 4;
private const INFO_NUM:int = 7;
private const INFO_BASEX:int = 1;
private const INFO_BASEY:int = 2;
private const STEP_POSX:int = 3;
private const INFO_FILENAME:int = 0;
private const STEP_TOTAL_FRAME:int = 6;
private var mBasePosX:int;// = 0
private var mBasePosY:int;// = 0
private var mStepPosY:int;// = 0
private var mStepTotalFrame:int;// = 0
private var mStepPosX:int;// = 0
private var mMoveTotalFrame:int;// = 0
private var mStepFrame:int;// = 0
private var mMoveFrameSpeed:int;// = 0
private var mLoader:Loader;// = null
private var mGameApp:GameApp;// = null
private var mMoveFrame:int;// = 0
private var mCursorType:int;// = 0
public function MessageCursor(_arg1:GameApp, _arg2:uint){
mGameApp = _arg1;
mCursorType = _arg2;
mLoader = new Loader();
var _local3:Array = ["cmn_do_04", (112 - 0), (171 - 0), 0, 1, 4, 3, "mes_arrow", (246 - 4), (39 - 4), 1, 0, 3, 8, "mes_arrow", (222 - 4), (39 - 4), 1, 0, 3, 8, "mes_arrow", (246 - 4), (183 - 4), 1, 0, 3, 8];
mLoader.loadBytes(mGameApp.getBinaryByteArray(_local3[((mCursorType * INFO_NUM) + INFO_FILENAME)]));
addChild(mLoader);
mBasePosX = _local3[((mCursorType * INFO_NUM) + INFO_BASEX)];
mBasePosY = _local3[((mCursorType * INFO_NUM) + INFO_BASEY)];
mStepPosX = _local3[((mCursorType * INFO_NUM) + STEP_POSX)];
mStepPosY = _local3[((mCursorType * INFO_NUM) + STEP_POSY)];
mMoveTotalFrame = _local3[((mCursorType * INFO_NUM) + MOVE_TOTAL_FRAME)];
mStepTotalFrame = _local3[((mCursorType * INFO_NUM) + STEP_TOTAL_FRAME)];
mMoveFrame = 0;
mStepFrame = 0;
mMoveFrameSpeed = 1;
addEventListener(Event.ENTER_FRAME, move);
}
private function move(_arg1:Event):void{
x = (mBasePosX + (mStepPosX * mMoveFrame));
y = (mBasePosY + (mStepPosY * mMoveFrame));
mStepFrame++;
if (mStepFrame >= mStepTotalFrame){
mMoveFrame = (mMoveFrame + mMoveFrameSpeed);
mStepFrame = 0;
if (mMoveFrame >= mMoveTotalFrame){
if (mCursorType == MessageConfig.MONOLOGUE){
mMoveFrameSpeed = -1;
} else {
mMoveFrame = 0;
mMoveFrameSpeed = 1;
};
};
if (mMoveFrame < 0){
mMoveFrame = 0;
mMoveFrameSpeed = 1;
};
};
}
}
}//package
Section 79
//MessageFaceObject (MessageFaceObject)
package {
import flash.display.*;
import flash.events.*;
public class MessageFaceObject extends MovieClip {
private var mFaceStartX:Number;// = 0
private var mFaceStartY:Number;// = 0
private var mbIsLeft:Boolean;// = false
private var mFaceLayer:Sprite;// = null
private var mbIsCutin:Boolean;// = false
private var mFaceEndAlpha:Number;// = 0
private var mCounter:int;// = 0
private var mFaceImage:Loader;// = null
private var mWindowLayer:Sprite;// = null
private var mCounterMax:int;// = 0
private var mFadeInSpeed:int;// = -1
private var mWindowStartX:Number;// = 0
private var mWindowStartY:Number;// = 0
private var mGameApp:GameApp;// = null
private var mWindowImage:Loader;// = null
private var mFaceStartAlpha:Number;// = 0
private var mFaceEndX:Number;// = 0
private var mFaceEndY:Number;// = 0
private var mWindowEndX:Number;// = 0
private var mWindowEndY:Number;// = 0
private var mStatus:uint;// = 0
static var STAT_DISP2HIDE:uint = 3;
static var COUNTERMAX:int = 8;
static var STAT_HIDE:uint = 0;
static var STAT_CUTIN_FADEOUT:uint = 4;
static var STAT_DISP:uint = 2;
static var STAT_HIDE2DISP:uint = 1;
public function MessageFaceObject(_arg1:GameApp){
mGameApp = _arg1;
mFaceImage = null;
mWindowImage = null;
mFaceLayer = new Sprite();
mWindowLayer = new Sprite();
addChild(mFaceLayer);
addChild(mWindowLayer);
addEventListener(Event.ENTER_FRAME, move);
}
public function getStatus():uint{
return (mStatus);
}
public function setHide():void{
mStatus = STAT_DISP2HIDE;
mFaceStartAlpha = 1;
mFaceEndAlpha = 1;
if (mbIsCutin){
mFaceStartX = (128 + (128 * mFaceImage.scaleX));
mWindowStartY = 206;
} else {
mFaceStartY = -64;
mWindowStartY = -64;
};
mCounter = (mCounterMax = COUNTERMAX);
calcPos();
}
public function setFadeOut():void{
mStatus = STAT_CUTIN_FADEOUT;
mFaceStartAlpha = 0;
mFaceEndAlpha = 1;
mFaceStartX = mFaceEndX;
mFaceStartY = mFaceEndY;
mWindowStartX = mWindowEndX;
mWindowStartY = mWindowEndY;
mCounter = (mCounterMax = COUNTERMAX);
calcPos();
}
private function move(_arg1:Event):void{
if (mStatus == STAT_HIDE2DISP){
mCounter++;
if (mCounter >= mCounterMax){
mStatus = STAT_DISP;
};
calcPos();
return;
};
if ((((mStatus == STAT_DISP2HIDE)) || ((mStatus == STAT_CUTIN_FADEOUT)))){
mCounter--;
if (mCounter <= 0){
if (mStatus == STAT_DISP2HIDE){
mWindowImage = (Utility.removeChildAndRelease(mWindowLayer, mWindowImage) as Loader);
};
mStatus = STAT_HIDE;
mFaceImage = (Utility.removeChildAndRelease(mFaceLayer, mFaceImage) as Loader);
};
calcPos();
return;
};
if ((((mGameApp.getBgYureTime() > 0)) && (mbIsCutin))){
if (mFaceImage){
mFaceImage.x = (mGameApp.getBgYureX() + 128);
mFaceImage.y = mGameApp.getBgYureY();
if (((mbIsLeft) && ((mFaceImage.x > 128)))){
mFaceImage.x = 128;
};
if (((!(mbIsLeft)) && ((mFaceImage.x < 128)))){
mFaceImage.x = 128;
};
};
};
}
public function loadFace(_arg1:String):void{
mbIsCutin = false;
mStatus = STAT_HIDE2DISP;
mCounter = 0;
mCounterMax = COUNTERMAX;
mFaceImage = (Utility.removeChildAndRelease(mFaceLayer, mFaceImage) as Loader);
mFaceImage = new Loader();
mFaceImage.loadBytes(mGameApp.getBinaryByteArray(_arg1));
mFaceLayer.addChild(mFaceImage);
mFaceImage.scaleX = 1;
mFaceImage.scaleY = 1;
mFaceStartX = (mFaceEndX = 0);
mFaceStartY = -64;
mFaceEndY = 0;
mFaceStartAlpha = (mFaceEndAlpha = 1);
mWindowImage = (Utility.removeChildAndRelease(mWindowLayer, mWindowImage) as Loader);
mWindowImage = new Loader();
mWindowImage.loadBytes(mGameApp.getBinaryByteArray("cmn_do_1a"));
mWindowLayer.addChild(mWindowImage);
mWindowImage.scaleX = 1;
mWindowImage.scaleY = 1;
mWindowImage.alpha = 1;
mWindowStartY = -64;
mWindowEndY = 0;
if (_arg1 == "noperson"){
mWindowStartX = (mWindowEndX = 24);
} else {
mWindowStartX = (mWindowEndX = 48);
};
calcPos();
}
private function calcPos():void{
var _local1:Number = (mCounter / mCounterMax);
if (mFaceImage){
mFaceImage.x = (((mFaceEndX - mFaceStartX) * _local1) + mFaceStartX);
mFaceImage.y = (((mFaceEndY - mFaceStartY) * _local1) + mFaceStartY);
mFaceImage.alpha = (((mFaceEndAlpha - mFaceStartAlpha) * _local1) + mFaceStartAlpha);
};
if (mWindowImage){
mWindowImage.x = (((mWindowEndX - mWindowStartX) * _local1) + mWindowStartX);
mWindowImage.y = (((mWindowEndY - mWindowStartY) * _local1) + mWindowStartY);
};
}
public function loadCutin(_arg1:String, _arg2:Boolean, _arg3:int):void{
mbIsCutin = true;
mStatus = STAT_HIDE2DISP;
mCounter = 0;
mCounterMax = COUNTERMAX;
mFaceImage = (Utility.removeChildAndRelease(mFaceLayer, mFaceImage) as Loader);
mFaceImage = new Loader();
mFaceImage.loadBytes(mGameApp.getBinaryByteArray(_arg1));
mFaceLayer.addChild(mFaceImage);
mFadeInSpeed = _arg3;
mbIsLeft = _arg2;
mFaceImage.scaleX = 1;
mFaceImage.scaleY = 1;
if (mbIsLeft){
mFaceImage.scaleX = -1;
};
mFaceStartY = (mFaceEndY = 0);
mFaceEndX = 128;
mFaceEndAlpha = 1;
if (mFadeInSpeed > 0){
mFaceStartX = 128;
mFaceStartAlpha = 0;
mCounterMax = mFadeInSpeed;
} else {
mFaceStartX = (128 + (128 * mFaceImage.scaleX));
mFaceStartAlpha = 1;
};
if (!mWindowImage){
mWindowImage = new Loader();
mWindowImage.loadBytes(mGameApp.getBinaryByteArray("cmn_do_0a"));
mWindowLayer.addChild(mWindowImage);
};
mWindowImage.scaleX = 1;
mWindowImage.scaleY = 1;
mWindowImage.alpha = 1;
mWindowStartX = (mWindowEndX = 0);
mWindowEndY = 142;
if (mFadeInSpeed > 0){
mWindowStartY = 142;
} else {
mWindowStartY = 206;
};
calcPos();
}
}
}//package
Section 80
//MessageObject (MessageObject)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
public class MessageObject extends MovieClip {
private const SKIP_WAIT:uint = 60;
private const MESSAGE_WIDTH:uint = 0x0100;
private const FONT_DATA_HEADER_SIZE:uint = 16;
private const MESSAGE_HEIGHT:uint = 192;
private const SKIP_CLICK_WAIT:uint = 16;
private var mFaceLayer:Sprite;// = null
private var mMessageWidth:int;// = 0
private var mDispStartPosX:int;// = 0
private var mDispStartPosY:int;// = 0
private var mFontColorNumShift:uint;// = 0
private var mSkipIcon:Loader;// = null
private var mbPlaceSkipIcon:Boolean;// = false
private var mSkipIconLayer:Sprite;// = null
private var mWhiteFadeFrameMax:int;// = -1
private var mMessageType:uint;// = 0
private var mMonologueType:uint;// = 0
private var mFontDataSize:uint;// = 0
private var mFaceObject:MessageFaceObject;// = null
private var mMonologueDispPosY:int;// = 0
private var mMonologueDispPosX:int;// = 0
private var mBlackMaskLayer:Sprite;// = null
private var mNextCodeData:uint;// = 0
private var mBlackMaskImage:Loader;// = null
private var mWaitTime:int;// = 0
private var mFontPaletteByteArray:ByteArray;// = null
private var mWaitTimeMax:int;// = 0
private var mMessageByteArray:ByteArray;// = null
private var mCutinIndex:int;// = 0
private var mFontGapHi:uint;// = 0
private var mFontCharWidthByteArray:ByteArray;// = null
private var mFontDataNum:uint;// = 0
private var mColorIndex:uint;// = 0
private var mFontColorByteArray:ByteArray;// = null
private var mFaceFilename:String;// = ""
private var mTouchTimer:uint;// = 0
private var mMessageLayer:Sprite;// = null
private var mMonologueMessageAlpha:int;// = 0
private var mGameApp:GameApp;// = null
private var mCodeDataBak:uint;// = 0
private var mFontHeight:uint;// = 0
private var mbLoadBlackMask:Boolean;// = false
private var mCutinSound:String;// = ""
private var mCodeData:uint;// = 0
private var mLineNum:uint;// = 0
private var mBitmapData:BitmapData;// = null
private var mbMessageEnd:Boolean;// = true
private var mFontWidth:uint;// = 0
private var mWhiteFadeSpeed:int;// = 0
private var mMessageCursor:MessageCursor;// = null
private var mbMouseDown:Boolean;// = false
private var mDispPosX:int;// = 0
private var mDispPosY:int;// = 0
private var mbLoadSkipIcon:Boolean;// = false
private var mMonologueStart:int;// = -1000
private var mRno0:int;// = 0
private var mRno1:int;// = 0
private var mRno2:int;// = 0
private var mRno3:int;// = 0
private var mbClick:Boolean;// = false
private var mWhiteFadeFrame:int;// = -1
private var mBitmap:Bitmap;// = null
public function MessageObject(_arg1:GameApp){
mGameApp = _arg1;
mBitmapData = new BitmapData(MESSAGE_WIDTH, MESSAGE_HEIGHT, true, 0);
clearBitmap();
mFaceLayer = new Sprite();
mBlackMaskLayer = new Sprite();
mSkipIconLayer = new Sprite();
mMessageLayer = new Sprite();
addChild(mFaceLayer);
addChild(mBlackMaskLayer);
addChild(mSkipIconLayer);
addChild(mMessageLayer);
addEventListener(Event.ENTER_FRAME, move);
}
private function getFontLeftSpace(_arg1:uint, _arg2:uint):int{
if (LanguageType.LanguageType == ""){
return (0);
};
mFontCharWidthByteArray.position = (2 * _arg1);
var _local3:int = mFontCharWidthByteArray.readByte();
switch (_arg1){
case 48:
case 49:
if (60 != _arg2){
_local3++;
};
break;
};
return (_local3);
}
private function makeTextNormal():void{
var _local1:int;
var _local2:int;
var _local7:uint;
var _local8:uint;
var _local9:int;
var _local10:int;
var _local11:String;
var _local12:ByteArray;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:uint;
var _local17:uint;
var _local18:uint;
var _local19:uint;
var _local20:uint;
var _local21:uint;
var _local22:uint;
var _local3:int = getTexMessageIndex(mCodeData);
if (_local3 >= 0){
_local8 = 0;
if (LanguageType.LanguageType == ""){
_local8 = MessageConfig.TEXMESSAGE_INFO_SIZE_JP_OFS;
};
_local9 = MessageConfig.mTexMessage[(((_local3 * MessageConfig.TEXMESSAGE_INFO_NUM) + MessageConfig.TEXMESSAGE_INFO_WIDTH) + _local8)];
_local10 = MessageConfig.mTexMessage[(((_local3 * MessageConfig.TEXMESSAGE_INFO_NUM) + MessageConfig.TEXMESSAGE_INFO_HEIGHT) + _local8)];
_local11 = MessageConfig.mTexMessage[((_local3 * MessageConfig.TEXMESSAGE_INFO_NUM) + MessageConfig.TEXMESSAGE_INFO_FILENAME)];
_local12 = mGameApp.getBinaryByteArray((_local11 + LanguageType.LanguageType));
_local12.position = 0;
_local12.endian = "littleEndian";
_local2 = 0;
while (_local2 < _local10) {
_local1 = 0;
while (_local1 < _local9) {
_local13 = _local12.readUnsignedInt();
_local14 = (_local13 & 4278190080);
if (_local14 == 0){
} else {
mBitmapData.setPixel32((mDispPosX + _local1), ((mDispPosY + 5) + _local2), _local13);
};
_local1++;
};
_local2++;
};
mDispPosX = (mDispPosX + (_local9 + 1));
return;
};
mFontColorByteArray.position = (FONT_DATA_HEADER_SIZE + (mCodeData * mFontDataSize));
var _local4:int = getFontLeftSpace(mCodeData, mCodeDataBak);
var _local5:int = getFontCharWidth(mCodeData, mCodeDataBak);
var _local6:int = getFontOffsetY(mCodeData, mCodeDataBak);
if (mCodeData == 0xFF){
mDispPosX = (mDispPosX + 3);
return;
};
mDispPosX = (mDispPosX - _local4);
_local2 = 0;
while (_local2 < mFontHeight) {
_local1 = 0;
while (_local1 < (mFontWidth / 8)) {
_local15 = mFontColorByteArray.readUnsignedInt();
_local7 = 0;
while (_local7 < 8) {
_local16 = (15 << (4 * _local7));
_local17 = ((_local15 & _local16) >> (4 * _local7));
_local18 = (_local7 & 1);
_local19 = (_local7 >> 1);
_local20 = (((_local1 * 8) + (1 - _local18)) + (_local19 * 2));
if ((mDispPosX + _local20) < 0){
} else {
if ((mDispPosX + _local20) >= 0x0100){
} else {
if (((mDispPosY + _local6) + _local2) < 0){
} else {
if (((mDispPosY + _local6) + _local2) >= 192){
} else {
if (_local17 == 0){
} else {
mFontPaletteByteArray.position = ((mColorIndex + _local17) * 4);
_local21 = mFontPaletteByteArray.readUnsignedInt();
if ((((mMessageType == MessageConfig.MONOLOGUE)) && (!((mMonologueType & 1))))){
_local22 = (_local21 & 0xFFFFFF);
_local21 = (_local22 | (mMonologueMessageAlpha << 24));
};
mBitmapData.setPixel32((mDispPosX + _local20), ((mDispPosY + _local6) + _local2), _local21);
};
};
};
};
};
_local7++;
};
_local1++;
};
_local2++;
};
if (LanguageType.LanguageType != ""){
mDispPosX = (mDispPosX + ((_local5 + _local4) + 1));
} else {
mDispPosX = (mDispPosX + (_local5 + _local4));
};
}
private function getFontCharWidth(_arg1:uint, _arg2:uint):int{
if (LanguageType.LanguageType == ""){
return (14);
};
mFontCharWidthByteArray.position = ((2 * _arg1) + 1);
var _local3:int = mFontCharWidthByteArray.readByte();
switch (_arg1){
case 42:
_local3--;
break;
case 48:
case 49:
if (60 != _arg2){
_local3--;
};
break;
case 115:
case 116:
_local3++;
break;
};
return (_local3);
}
private function messageWhiteFade():Boolean{
mWhiteFadeFrame = (mWhiteFadeFrame + mWhiteFadeSpeed);
if (getIsMessageSkip()){
mWhiteFadeFrame = (mWhiteFadeFrame + mWhiteFadeSpeed);
};
if (mWhiteFadeFrame < 0){
mWhiteFadeSpeed = 0;
mWhiteFadeFrame = 0;
};
if (mWhiteFadeFrame >= mWhiteFadeFrameMax){
mWhiteFadeSpeed = 0;
mWhiteFadeFrame = mWhiteFadeFrameMax;
};
if (mBitmap){
mBitmap.alpha = ((1 * mWhiteFadeFrame) / mWhiteFadeFrameMax);
};
if (mWhiteFadeSpeed == 0){
return (true);
};
return (false);
}
public function getIsMessageSkip():Boolean{
return ((mTouchTimer >= SKIP_WAIT));
}
private function setNextCode():void{
mCodeDataBak = mCodeData;
mCodeData = mMessageByteArray.readUnsignedShort();
mRno0 = 0;
mRno1 = 0;
mRno2 = 0;
mRno3 = 0;
}
private function calcSkipMessage():void{
if (mMessageType != MessageConfig.MONOLOGUE){
if (((getIsMessageSkip()) && ((((mWaitTime >= SKIP_CLICK_WAIT)) || (!((mWhiteFadeSpeed == 0))))))){
mbClick = true;
};
};
}
private function settingMessageInfo():void{
mLineNum = getLineNum();
mFontGapHi = ((21 + getMsgLineSpace(mLineNum)) + 1);
if (LanguageType.LanguageType == ""){
mFontGapHi = 21;
};
if (mMessageType == MessageConfig.MONOLOGUE){
mFontGapHi = (mFontGapHi - 1);
};
mDispStartPosX = getDispTopX(mMessageType);
mDispStartPosY = getDispTopY(mLineNum, mMessageType);
mMessageWidth = getMessageWidth(mMessageType);
mDispPosX = mDispStartPosX;
mDispPosY = mDispStartPosY;
mWhiteFadeFrameMax = -1;
mWhiteFadeFrame = -1;
mWhiteFadeSpeed = 0;
}
private function loadInitBlackMask(_arg1:Event):void{
mbLoadBlackMask = true;
mBlackMaskImage.contentLoaderInfo.removeEventListener(Event.INIT, loadInitBlackMask);
}
private function commandMesWhiteOut():void{
mMessageByteArray.position = (mMessageByteArray.position + (MessageConfig.mScriptArgNum[(mCodeData - MessageConfig.SC_COMMAND_START)] * 2));
}
private function commandMonologueFadeIn():Boolean{
if ((mMonologueType & 1)){
mBlackMaskImage.alpha = MessageConfig.MONO_BLACK_ALPHA;
};
mBlackMaskImage.alpha = (mBlackMaskImage.alpha + MessageConfig.MONO_BLACK_ALPHASPEED);
if (mBlackMaskImage.alpha >= MessageConfig.MONO_BLACK_ALPHA){
mBlackMaskImage.alpha = MessageConfig.MONO_BLACK_ALPHA;
return (true);
};
return (false);
}
private function getFontOffsetY(_arg1:uint, _arg2:uint):int{
var _local3:int;
switch (_arg1){
case 42:
case 45:
case 51:
case 52:
_local3 = 1;
break;
case 243:
case 0x0101:
case 239:
_local3 = 2;
break;
case 233:
case 234:
_local3 = 3;
break;
default:
break;
};
return (_local3);
}
private function commandMesBgmStop():void{
var _local1:int = mMessageByteArray.readUnsignedShort();
mGameApp.bgmStop(_local1);
}
private function getIsKeyCommand(_arg1:uint):Boolean{
if ((((((((((_arg1 == MessageConfig.SC_MES_PAUSE)) || ((_arg1 == MessageConfig.SC_AUTO_PF)))) || ((_arg1 == MessageConfig.SC_AUTO_END)))) || ((_arg1 == MessageConfig.SC_PF)))) || ((_arg1 == MessageConfig.SC_MESSAGE_END)))){
return (true);
};
return (false);
}
public function loadMessage(_arg1:String, _arg2:int):void{
var _local3:ByteArray;
mMessageByteArray = mGameApp.getBinaryByteArray((_arg1 + LanguageType.LanguageType));
if (mMessageByteArray == null){
mMessageByteArray = mGameApp.getBinaryByteArray(("sys_error_msg" + LanguageType.LanguageType));
};
mMessageByteArray.endian = "littleEndian";
mMessageByteArray.position = 0;
if (_arg2 >= 0){
_local3 = new ByteArray();
_local3.endian = "littleEndian";
_local3.position = 0;
mMessageByteArray.readBytes(_local3, 4, mMessageByteArray.length);
_local3.position = 0;
_local3.writeShort(MessageConfig.SC_CUTIN);
_local3.writeShort(_arg2);
_local3.position = (_local3.length - 2);
_local3.writeShort(MessageConfig.SC_MES_PAUSE);
_local3.writeShort(MessageConfig.SC_MESSAGE_END);
_local3.position = 0;
mMessageByteArray = _local3;
mMessageByteArray.position = 0;
};
mColorIndex = 12;
mDispPosX = 0;
mDispPosY = 0;
mWhiteFadeFrameMax = -1;
mWhiteFadeFrame = -1;
mWhiteFadeSpeed = 0;
mbMessageEnd = false;
GameApp.Pause = true;
mBitmap = (Utility.removeChildAndRelease(mMessageLayer, mBitmap) as Bitmap);
setNextCode();
}
private function getNearestKeyCommand():uint{
var _local3:uint;
var _local4:uint;
if (!mMessageByteArray){
return (MessageConfig.SC_AUTO_END);
};
if (getIsKeyCommand(mCodeData)){
return (mCodeData);
};
var _local1:uint = mMessageByteArray.position;
var _local2:uint = MessageConfig.SC_MESSAGE_END;
while (mMessageByteArray.position < mMessageByteArray.length) {
_local3 = mMessageByteArray.readUnsignedShort();
if (_local3 >= MessageConfig.SC_COMMAND_START){
if (getIsKeyCommand(_local3)){
_local2 = _local3;
break;
};
mMessageByteArray.position = (mMessageByteArray.position + (MessageConfig.mScriptArgNum[(_local3 - MessageConfig.SC_COMMAND_START)] * 2));
};
};
if (_local2 == MessageConfig.SC_MESSAGE_END){
if (mMessageByteArray.position >= 2){
mMessageByteArray.position = (mMessageByteArray.position - 2);
_local4 = mMessageByteArray.readUnsignedShort();
if (_local4 == MessageConfig.SC_AUTO_END){
_local2 = _local4;
};
};
};
mMessageByteArray.position = _local1;
return (_local2);
}
private function createMessageCursorRno1Wait():void{
if (mRno1 == 0){
mMessageCursor = new MessageCursor(mGameApp, mMessageType);
mMessageLayer.addChild(mMessageCursor);
mRno0 = 1;
} else {
mRno1--;
};
mWaitTime = 0;
}
public function setMessageEnd():void{
clearBitmap();
mFaceObject = (Utility.removeChildAndRelease(mFaceLayer, mFaceObject) as MessageFaceObject);
mMessageCursor = (Utility.removeChildAndRelease(mMessageLayer, mMessageCursor) as MessageCursor);
mBitmap = (Utility.removeChildAndRelease(mMessageLayer, mBitmap) as Bitmap);
Utility.removeAllChildren(mBlackMaskLayer);
deleteSkipIcon();
mbMessageEnd = true;
mMessageByteArray = null;
GameApp.Pause = false;
mRno0 = 0;
mRno1 = 0;
mRno2 = 0;
mRno3 = 0;
settingMessageInfo();
}
private function deleteSkipIcon():void{
if (!mbPlaceSkipIcon){
return;
};
Utility.removeAllChildren(mSkipIconLayer);
mbPlaceSkipIcon = false;
}
private function commandMesSePlay():void{
var _local1:int = mMessageByteArray.readUnsignedShort();
var _local2:String = getMesCallSeSound(_local1);
mGameApp.callSe(_local2, false);
}
private function calcFadeInMonologueFunc():Boolean{
if (mMessageType != MessageConfig.MONOLOGUE){
return (true);
};
if (mMonologueMessageAlpha >= 0xFF){
return (true);
};
var _local1:Boolean = fadeInMonologueMessage();
if (!_local1){
mMessageByteArray.position = mMonologueStart;
mDispPosX = mMonologueDispPosX;
mDispPosY = mMonologueDispPosY;
commandCenter();
setNextCode();
mRno1 = 60;
return (false);
};
return (true);
}
private function getMsgLineSpace(_arg1:uint):int{
if (_arg1 > 2){
return (-7);
};
return (-1);
}
private function commandMesBgmPlay():void{
var _local1:int = mMessageByteArray.readUnsignedShort();
var _local2:String = getMesBgmPlaySound(_local1);
mGameApp.bgmPlay(_local2, 0);
}
private function calcMonologueType():void{
var _local2:uint;
mMonologueType = 0;
var _local1:uint = mMessageByteArray.position;
while (mMessageByteArray.position < mMessageByteArray.length) {
_local2 = mMessageByteArray.readUnsignedShort();
if (_local2 == MessageConfig.SC_MONO_TYPE_SET){
mMonologueType = mMessageByteArray.readUnsignedShort();
break;
};
if (_local2 == MessageConfig.SC_PF){
break;
};
if (_local2 == MessageConfig.SC_AUTO_PF){
break;
};
if (_local2 == MessageConfig.SC_AUTO_END){
break;
};
if (_local2 == MessageConfig.SC_MESSAGE_END){
break;
};
if (_local2 >= MessageConfig.SC_COMMAND_START){
mMessageByteArray.position = (mMessageByteArray.position + (MessageConfig.mScriptArgNum[(_local2 - MessageConfig.SC_COMMAND_START)] * 2));
};
};
mMessageByteArray.position = _local1;
}
public function setClick():void{
mbClick = true;
}
private function commandDefault():Boolean{
if (mCodeData >= MessageConfig.SC_COMMAND_START){
mMessageByteArray.position = (mMessageByteArray.position + (MessageConfig.mScriptArgNum[(mCodeData - MessageConfig.SC_COMMAND_START)] * 2));
return (true);
};
if (mMonologueStart == MessageConfig.MONOLOGUE_START_INIT){
mMonologueStart = (mMessageByteArray.position - 2);
mMonologueDispPosX = mDispPosX;
mMonologueDispPosY = mDispPosY;
mMonologueMessageAlpha = 0;
};
makeTextNormal();
setNextCode();
return (false);
}
private function execCommand():void{
var _local1:Boolean;
while (true) {
_local1 = true;
switch (true){
case (((((mCodeData == MessageConfig.SC_CUTIN)) || ((mCodeData == MessageConfig.SC_CUTIN_FADEIN)))) || ((mCodeData == MessageConfig.SC_FACE))):
_local1 = commandCutinFace();
break;
case (mCodeData == MessageConfig.SC_MES_WHITE_IN):
commandMesWhiteIn();
break;
case (mCodeData == MessageConfig.SC_MES_WHITE_OUT):
commandMesWhiteOut();
break;
case (mCodeData == MessageConfig.SC_MESFLASH):
mGameApp.setWhiteIn(4);
break;
case (mCodeData == MessageConfig.SC_MESQUAKE):
mGameApp.setBgYure(1, 40);
break;
case (mCodeData == MessageConfig.SC_MES_SE_PLAY):
commandMesSePlay();
break;
case (mCodeData == MessageConfig.SC_MES_BGM_PLAY):
commandMesBgmPlay();
break;
case (mCodeData == MessageConfig.SC_MES_BGM_CHANGE_VOL):
commandMesBgmChangeVol();
break;
case (mCodeData == MessageConfig.SC_MES_BGM_STOP):
commandMesBgmStop();
break;
case (mCodeData == MessageConfig.SC_BR):
_local1 = commandBr();
break;
case (mCodeData == MessageConfig.SC_CENTER):
_local1 = commandCenter();
break;
case (((mCodeData >= MessageConfig.SC_C0)) && ((mCodeData <= MessageConfig.SC_C4))):
mColorIndex = (3 * (mCodeData - MessageConfig.SC_C0));
break;
case (((mCodeData >= MessageConfig.SC_S0)) && ((mCodeData <= MessageConfig.SC_S7))):
break;
case (((mCodeData == MessageConfig.SC_PF)) || ((mCodeData == MessageConfig.SC_AUTO_PF))):
_local1 = commandPf();
return;
case (mCodeData == MessageConfig.SC_PARAGRAPH_END):
_local1 = commandParagraphEnd();
break;
case (mCodeData == MessageConfig.SC_MONO_POS_SET):
_local1 = commandMonoPosSet();
break;
case (mCodeData == MessageConfig.SC_MONOLOGUE_FADEIN):
_local1 = commandMonologueFadeIn();
break;
case (mCodeData == MessageConfig.SC_MONOLOGUE_FADEOUT):
_local1 = commandMonologueFadeOut();
break;
case (mCodeData == MessageConfig.SC_MONOLOGUE_MESSAGE_FADEOUT):
_local1 = commandMonologueMessageFadeOut();
break;
case (mCodeData == MessageConfig.SC_MES_PAUSE):
_local1 = commandMesPause();
return;
case (mCodeData == MessageConfig.SC_MES_WAIT_SET):
_local1 = commandMesWaitSet();
break;
case (((mCodeData == MessageConfig.SC_AUTO_END)) || ((mCodeData == MessageConfig.SC_MESSAGE_END))):
_local1 = commandEnd();
return;
default:
_local1 = commandDefault();
break;
};
if (!_local1){
if ((((((mMessageType == MessageConfig.MONOLOGUE)) || (getIsMessageSkip()))) || (!((mWhiteFadeSpeed == 0))))){
if (mCodeData < MessageConfig.SC_COMMAND_START){
continue;
};
};
return;
};
setNextCode();
};
}
private function commandMesWhiteIn():void{
mBitmap.alpha = 0;
mWhiteFadeSpeed = 1;
mWhiteFadeFrameMax = mMessageByteArray.readUnsignedShort();
mWhiteFadeFrame = 0;
}
private function getMessageWidth(_arg1:uint):int{
if (_arg1 == MessageConfig.CUTIN){
return (0x0100);
};
return (192);
}
private function setCode(_arg1:uint):void{
mCodeDataBak = mCodeData;
mCodeData = _arg1;
mRno0 = 0;
mRno1 = 0;
mRno2 = 0;
mRno3 = 0;
}
private function commandCenter():Boolean{
var _local1:int = getLineWidth();
var _local2 = ((mDispStartPosX + mMessageWidth) >> 1);
mDispPosX = (_local2 - (_local1 >> 1));
return (true);
}
public function loadMonologue(_arg1:String):void{
mMessageByteArray = mGameApp.getBinaryByteArray((_arg1 + LanguageType.LanguageType));
if (mMessageByteArray == null){
mMessageByteArray = mGameApp.getBinaryByteArray(("sys_dead_connect_00" + LanguageType.LanguageType));
};
mMessageByteArray.endian = "littleEndian";
mMessageByteArray.position = 0;
mColorIndex = 0;
mMessageType = MessageConfig.MONOLOGUE;
mMonologueStart = MessageConfig.MONOLOGUE_START_INIT;
mNextCodeData = 0;
mWhiteFadeFrameMax = -1;
mWhiteFadeFrame = -1;
mWhiteFadeSpeed = 0;
mFontGapHi = 22;
mDispStartPosX = 0;
mDispStartPosY = 8;
mMessageWidth = 0x0100;
mDispPosX = mDispStartPosX;
mDispPosY = mDispStartPosY;
mbMessageEnd = false;
GameApp.Pause = true;
mBitmap = (Utility.removeChildAndRelease(mMessageLayer, mBitmap) as Bitmap);
mBitmap = new Bitmap(mBitmapData, PixelSnapping.NEVER, true);
mMessageLayer.addChild(mBitmap);
setCode(MessageConfig.SC_MONOLOGUE_FADEIN);
mBlackMaskImage.alpha = 0;
mBlackMaskLayer.addChild(mBlackMaskImage);
commandCenter();
calcMonologueType();
}
private function commandParagraphEnd():Boolean{
var _local1:Boolean;
if (mMessageType == MessageConfig.MONOLOGUE){
_local1 = fadeInMonologueMessage();
if (!_local1){
mMessageByteArray.position = mMonologueStart;
mDispPosX = mMonologueDispPosX;
mDispPosY = mMonologueDispPosY;
setNextCode();
return (false);
};
};
mDispPosX = mDispStartPosX;
mDispPosY = (mDispPosY + (mFontGapHi + 15));
if (mMessageType == MessageConfig.MONOLOGUE){
if (mCodeDataBak == MessageConfig.SC_BR){
mDispPosY = (mDispPosY - mFontGapHi);
};
commandCenter();
};
return (true);
}
private function commandMonologueMessageFadeOut():Boolean{
if ((mMonologueType & 2)){
mBitmap.alpha = 0;
};
mBitmap.alpha = (mBitmap.alpha - MessageConfig.MONO_MESSAGE_ALPHASPEED);
if (mBitmap.alpha <= 0){
mBitmap.alpha = 0;
if (mNextCodeData == MessageConfig.SC_MESSAGE_END){
setCode(MessageConfig.SC_MONOLOGUE_FADEOUT);
return (false);
};
clearBitmap();
mBitmap.alpha = 1;
mDispPosX = mDispStartPosX;
mDispPosY = mDispStartPosY;
mMonologueMessageAlpha = 0;
setCode(mNextCodeData);
return (false);
};
return (false);
}
private function commandMesPause():Boolean{
var _local1:Boolean = messageWhiteFade();
if (!_local1){
return (false);
};
if ((((((((mGameApp.getEventTarget() == "GameApp")) && ((mGameApp.getEventType() == "Message")))) && ((mGameApp.getEventKind() == "Forward")))) && (!((mRno0 == 0))))){
setNextCode();
} else {
if (mRno0 == 0){
mRno0 = 1;
mGameApp.sendMessage("*", "message", "pause in");
};
};
return (false);
}
public function loadFontData():void{
var _local1 = "fontColorData_en";
if (LanguageType.LanguageType == ""){
_local1 = "fontColorData_jp";
};
mFontColorByteArray = mGameApp.getBinaryByteArray(_local1);
mFontColorByteArray.position = 0;
mFontColorByteArray.endian = "littleEndian";
mFontPaletteByteArray = mGameApp.getBinaryByteArray("fontPaletteData");
mFontPaletteByteArray.position = 0;
mFontPaletteByteArray.endian = "littleEndian";
mFontCharWidthByteArray = mGameApp.getBinaryByteArray("CharWidth");
mFontCharWidthByteArray.position = 0;
mFontCharWidthByteArray.endian = "littleEndian";
mFontDataNum = mFontColorByteArray.readUnsignedInt();
mFontColorNumShift = mFontColorByteArray.readUnsignedInt();
mFontWidth = mFontColorByteArray.readUnsignedInt();
mFontHeight = mFontColorByteArray.readUnsignedInt();
mFontDataSize = (((mFontWidth * mFontHeight) * mFontColorNumShift) / 8);
mbLoadBlackMask = false;
mBlackMaskImage = new Loader();
mBlackMaskImage.loadBytes(mGameApp.getBinaryByteArray("blackback"));
mBlackMaskImage.contentLoaderInfo.addEventListener(Event.INIT, loadInitBlackMask);
mbLoadSkipIcon = false;
mSkipIcon = new Loader();
mSkipIcon.loadBytes(mGameApp.getBinaryByteArray("massp"));
mSkipIcon.contentLoaderInfo.addEventListener(Event.INIT, loadInitSkipIcon);
}
private function commandPf():Boolean{
var _local1:Boolean = calcFadeInMonologueFunc();
if (!_local1){
return (false);
};
var _local2:Boolean = messageWhiteFade();
if (!_local2){
return (false);
};
if (mRno0 == 0){
if (mCodeData == MessageConfig.SC_AUTO_PF){
readWaitTime();
} else {
createMessageCursorRno1Wait();
};
return (false);
};
calcSkipMessage();
mWaitTime++;
if (((((((mbClick) && ((mCodeData == MessageConfig.SC_PF)))) && (mMessageCursor))) || ((((mCodeData == MessageConfig.SC_AUTO_PF)) && ((mWaitTime >= mWaitTimeMax)))))){
if (mCodeData == MessageConfig.SC_PF){
mGameApp.callSe("sys_005", false);
};
setNextCode();
mMessageCursor = (Utility.removeChildAndRelease(mMessageLayer, mMessageCursor) as MessageCursor);
if (mCodeData == MessageConfig.SC_MESSAGE_END){
if (mMessageType == MessageConfig.MONOLOGUE){
setCode(MessageConfig.SC_MONOLOGUE_MESSAGE_FADEOUT);
mNextCodeData = MessageConfig.SC_MESSAGE_END;
};
return (false);
};
if (mMessageType == MessageConfig.MONOLOGUE){
mNextCodeData = mCodeData;
setCode(MessageConfig.SC_MONOLOGUE_MESSAGE_FADEOUT);
return (false);
};
settingMessageInfo();
clearBitmap();
};
return (false);
}
public function setMouseDown(_arg1:Boolean):void{
mbMouseDown = _arg1;
}
private function readWaitTime():void{
mWaitTimeMax = mMessageByteArray.readUnsignedShort();
mWaitTime = 0;
mRno0 = 1;
}
private function setCutinFace():void{
var _local4:int;
var _local1:int;
mCutinIndex = mMessageByteArray.readUnsignedShort();
if (mCodeData == MessageConfig.SC_CUTIN_FADEIN){
_local1 = mMessageByteArray.readUnsignedShort();
};
if (!mFaceObject){
mFaceObject = new MessageFaceObject(mGameApp);
mFaceLayer.addChild(mFaceObject);
};
if (mCodeData == MessageConfig.SC_FACE){
mFaceFilename = MessageConfig.mFaceData[((mCutinIndex * MessageConfig.FACE_INFO_NUM) + MessageConfig.FACE_INFO_FILE)];
mFaceObject.loadFace(mFaceFilename);
if (mFaceFilename == "noperson"){
mMessageType = MessageConfig.NOPERSON;
} else {
mMessageType = MessageConfig.PANELFACE;
};
mCutinSound = MessageConfig.mFaceData[((mCutinIndex * MessageConfig.FACE_INFO_NUM) + MessageConfig.FACE_INFO_SE)];
} else {
mFaceFilename = MessageConfig.mCutinData[((mCutinIndex * MessageConfig.CUTIN_INFO_NUM) + MessageConfig.CUTIN_INFO_FILE)];
mFaceObject.loadCutin(mFaceFilename, MessageConfig.mCutinData[((mCutinIndex * MessageConfig.CUTIN_INFO_NUM) + MessageConfig.CUTIN_INFO_DIRECT)], _local1);
mMessageType = MessageConfig.CUTIN;
mCutinSound = MessageConfig.mCutinData[((mCutinIndex * MessageConfig.CUTIN_INFO_NUM) + MessageConfig.CUTIN_INFO_SE)];
};
var _local2:int = mMessageByteArray.position;
var _local3:int = mMessageByteArray.readUnsignedShort();
if (_local3 == MessageConfig.SC_MES_SE_PLAY){
_local4 = mMessageByteArray.readUnsignedShort();
mCutinSound = getMesCallSeSound(_local4);
} else {
mMessageByteArray.position = _local2;
};
}
private function getTexMessageIndex(_arg1:int):int{
var _local3:int;
var _local2:int = (MessageConfig.mTexMessage.length / MessageConfig.TEXMESSAGE_INFO_NUM);
_local3 = 0;
while (_local3 < _local2) {
if (MessageConfig.mTexMessage[((_local3 * MessageConfig.TEXMESSAGE_INFO_NUM) + MessageConfig.TEXMESSAGE_INFO_INDEX)] == _arg1){
return (_local3);
};
_local3++;
};
return (-1);
}
private function commandEnd():Boolean{
var _local1:Boolean = calcFadeInMonologueFunc();
if (!_local1){
return (false);
};
var _local2:Boolean = messageWhiteFade();
if (!_local2){
return (false);
};
if (mRno0 == 0){
if (mCodeData == MessageConfig.SC_MESSAGE_END){
createMessageCursorRno1Wait();
} else {
mRno0 = 1;
};
return (false);
};
calcSkipMessage();
mWaitTime++;
if (((((((((mbClick) && ((mCodeData == MessageConfig.SC_MESSAGE_END)))) && (mMessageCursor))) || ((mCodeData == MessageConfig.SC_AUTO_END)))) && ((mRno0 == 1)))){
if (mCodeData == MessageConfig.SC_MESSAGE_END){
mGameApp.callSe("sys_005", false);
};
if (mMessageType == MessageConfig.MONOLOGUE){
mMessageCursor = (Utility.removeChildAndRelease(mMessageLayer, mMessageCursor) as MessageCursor);
mNextCodeData = MessageConfig.SC_MESSAGE_END;
setCode(MessageConfig.SC_MONOLOGUE_MESSAGE_FADEOUT);
return (false);
};
clearBitmap();
mBitmap = (Utility.removeChildAndRelease(mMessageLayer, mBitmap) as Bitmap);
if (mFaceObject){
mFaceObject.setHide();
mRno0 = 2;
} else {
setMessageEnd();
};
return (false);
};
if (mRno0 == 2){
if (mFaceObject.getStatus() == MessageFaceObject.STAT_HIDE){
setMessageEnd();
};
return (false);
};
return (false);
}
private function createSkipIcon():void{
if (mbPlaceSkipIcon){
return;
};
mSkipIconLayer.addChild(mSkipIcon);
if (mMessageType == MessageConfig.PANELFACE){
mSkipIcon.x = (158 - 32);
mSkipIcon.y = (26 - 16);
};
if (mMessageType == MessageConfig.NOPERSON){
mSkipIcon.x = (128 - 32);
mSkipIcon.y = (26 - 16);
};
if (mMessageType == MessageConfig.CUTIN){
mSkipIcon.x = (128 - 32);
mSkipIcon.y = (170 - 16);
};
mbPlaceSkipIcon = true;
}
private function commandMonologueFadeOut():Boolean{
if ((mMonologueType & 2)){
mBlackMaskImage.alpha = 0;
};
mBlackMaskImage.alpha = (mBlackMaskImage.alpha - MessageConfig.MONO_BLACK_ALPHASPEED);
if (mBlackMaskImage.alpha <= 0){
mBlackMaskImage.alpha = 0;
if (mNextCodeData == MessageConfig.SC_MESSAGE_END){
setMessageEnd();
return (false);
};
return (true);
};
return (false);
}
public function getIsMessageEnd():Boolean{
return (mbMessageEnd);
}
private function getLineWidth():uint{
var _local3:uint;
var _local4:int;
var _local1:uint = mMessageByteArray.position;
var _local2:uint;
while (mMessageByteArray.position < mMessageByteArray.length) {
_local3 = mMessageByteArray.readUnsignedShort();
if (_local3 < MessageConfig.SC_COMMAND_START){
if (_local3 == 0xFF){
_local2 = (_local2 + 3);
continue;
};
_local4 = getFontCharWidth(_local3, mCodeDataBak);
_local2 = (_local2 + _local4);
if (LanguageType.LanguageType != ""){
_local2 = (_local2 + 1);
};
} else {
mMessageByteArray.position = (mMessageByteArray.position + (MessageConfig.mScriptArgNum[(_local3 - MessageConfig.SC_COMMAND_START)] * 2));
if (_local3 == MessageConfig.SC_BR){
break;
};
if (_local3 == MessageConfig.SC_PARAGRAPH_END){
break;
};
if (_local3 == MessageConfig.SC_PF){
break;
};
if (_local3 == MessageConfig.SC_AUTO_PF){
break;
};
if (_local3 == MessageConfig.SC_AUTO_END){
break;
};
if (_local3 == MessageConfig.SC_MESSAGE_END){
break;
};
};
};
mMessageByteArray.position = _local1;
return (_local2);
}
private function getLineNum():uint{
var _local3:uint;
if (mMessageByteArray == null){
return (0);
};
var _local1:uint = mMessageByteArray.position;
var _local2:uint;
while (mMessageByteArray.position < mMessageByteArray.length) {
_local3 = mMessageByteArray.readUnsignedShort();
if (_local3 < MessageConfig.SC_COMMAND_START){
} else {
mMessageByteArray.position = (mMessageByteArray.position + (MessageConfig.mScriptArgNum[(_local3 - MessageConfig.SC_COMMAND_START)] * 2));
if (_local3 == MessageConfig.SC_BR){
_local2++;
} else {
if (_local3 == MessageConfig.SC_PARAGRAPH_END){
_local2++;
} else {
if (_local3 == MessageConfig.SC_PF){
_local2++;
break;
};
if (_local3 == MessageConfig.SC_AUTO_PF){
_local2++;
break;
};
if (_local3 == MessageConfig.SC_AUTO_END){
_local2++;
break;
};
if (_local3 == MessageConfig.SC_MESSAGE_END){
_local2++;
break;
};
};
};
};
};
mMessageByteArray.position = _local1;
return (_local2);
}
private function getMesBgmPlaySound(_arg1:int):String{
var _local3:String;
var _local2 = "";
if (_arg1 > 0){
_local3 = Utility.numberToString(_arg1, 2);
_local2 = ("BGM" + _local3);
};
return (_local2);
}
private function commandMesBgmChangeVol():void{
var _local1:int = mMessageByteArray.readUnsignedShort();
var _local2:int = mMessageByteArray.readUnsignedShort();
mGameApp.bgmChangeVol(_local1, _local2);
}
private function loadInitSkipIcon(_arg1:Event):void{
mbLoadSkipIcon = true;
mSkipIcon.contentLoaderInfo.removeEventListener(Event.INIT, loadInitSkipIcon);
}
private function move(_arg1:Event):void{
if (!mMessageByteArray){
mbClick = false;
return;
};
execCommand();
var _local2:uint = getNearestKeyCommand();
var _local3:uint = MessageFaceObject.STAT_HIDE;
if (mFaceObject){
_local3 = mFaceObject.getStatus();
};
if (mbPlaceSkipIcon){
if (((((((!((_local3 == MessageFaceObject.STAT_DISP))) || (!(getIsMessageSkip())))) || ((mMessageType == MessageConfig.MONOLOGUE)))) || ((((((_local2 == MessageConfig.SC_AUTO_PF)) || ((_local2 == MessageConfig.SC_AUTO_END)))) || ((_local2 == MessageConfig.SC_MES_PAUSE)))))){
deleteSkipIcon();
};
} else {
if ((((((((_local3 == MessageFaceObject.STAT_DISP)) && (getIsMessageSkip()))) && (!((mMessageType == MessageConfig.MONOLOGUE))))) && (((((!((_local2 == MessageConfig.SC_AUTO_PF))) && (!((_local2 == MessageConfig.SC_AUTO_END))))) && (!((_local2 == MessageConfig.SC_MES_PAUSE))))))){
createSkipIcon();
};
};
mbClick = false;
}
private function fadeInMonologueMessage():Boolean{
if ((mMonologueType & 1)){
mMonologueMessageAlpha = 0xFF;
};
mMonologueMessageAlpha = (mMonologueMessageAlpha + (0x0100 * MessageConfig.MONO_MESSAGE_ALPHASPEED));
if (mMonologueMessageAlpha >= 0xFF){
mMonologueMessageAlpha = 0xFF;
mMonologueStart = MessageConfig.MONOLOGUE_START_INIT;
calcMonologueType();
return (true);
};
return (false);
}
private function commandCutinFace():Boolean{
if (mRno0 == 0){
clearBitmap();
if (mFaceObject){
if (mCodeData == MessageConfig.SC_CUTIN_FADEIN){
mFaceObject.setFadeOut();
} else {
mFaceObject.setHide();
};
mBitmap = (Utility.removeChildAndRelease(mMessageLayer, mBitmap) as Bitmap);
mRno0 = 1;
} else {
setCutinFace();
mRno0 = 2;
};
return (false);
};
if (mRno0 == 1){
if (mFaceObject.getStatus() == MessageFaceObject.STAT_HIDE){
setCutinFace();
mRno0 = 2;
};
return (false);
};
if (mFaceObject.getStatus() != MessageFaceObject.STAT_DISP){
return (false);
};
mBitmap = (Utility.removeChildAndRelease(mMessageLayer, mBitmap) as Bitmap);
mBitmap = new Bitmap(mBitmapData, PixelSnapping.NEVER, true);
mMessageLayer.addChild(mBitmap);
mGameApp.callSe(mCutinSound, false);
settingMessageInfo();
return (true);
}
private function commandMonoPosSet():Boolean{
var _local1:int = mMessageByteArray.readUnsignedShort();
mDispPosY = _local1;
if (mMessageType == MessageConfig.MONOLOGUE){
commandCenter();
};
return (true);
}
public function getLoadEnd():Boolean{
if (!mbLoadSkipIcon){
return (false);
};
if (!mbLoadBlackMask){
return (false);
};
return (true);
}
private function getDispTopX(_arg1:uint):int{
if (_arg1 == MessageConfig.CUTIN){
return ((6 + 0));
};
if (_arg1 == MessageConfig.NOPERSON){
return ((8 + 24));
};
return ((8 + 48));
}
private function clearBitmap():void{
var _local1:uint;
var _local2:uint;
_local1 = 0;
while (_local1 < MESSAGE_WIDTH) {
_local2 = 0;
while (_local2 < MESSAGE_HEIGHT) {
mBitmapData.setPixel32(_local1, _local2, 0);
_local2++;
};
_local1++;
};
}
private function getMesCallSeSound(_arg1:int):String{
var _local3:String;
var _local2 = "";
if (_arg1 > 0){
_local3 = Utility.numberToString(_arg1, 3);
_local2 = ("sys_" + _local3);
};
return (_local2);
}
private function getDispTopY(_arg1:uint, _arg2:uint):int{
var _local3:int;
var _local4:int;
var _local5:int;
if (LanguageType.LanguageType == ""){
_local3 = 1;
_local4 = 2;
_local5 = 3;
};
if (_arg1 == 1){
if (_arg2 == MessageConfig.CUTIN){
return ((((144 + 8) - 4) + _local5));
};
return (((0 + 8) + _local3));
};
if (_arg1 == 2){
if (_arg2 == MessageConfig.CUTIN){
return ((((144 - 1) - 4) + _local4));
};
return ((((0 - 1) - 1) + _local3));
};
if (_arg2 == MessageConfig.CUTIN){
return ((((144 - 6) - 3) + _local4));
};
return (((0 - 6) + _local3));
}
private function commandBr():Boolean{
mDispPosX = mDispStartPosX;
mDispPosY = (mDispPosY + mFontGapHi);
if (mMessageType == MessageConfig.MONOLOGUE){
commandCenter();
};
return (true);
}
private function commandMesWaitSet():Boolean{
if (mRno0 == 0){
readWaitTime();
return (false);
};
mWaitTime++;
if (mWaitTime >= mWaitTimeMax){
return (true);
};
return (false);
}
}
}//package
Section 81
//MotionObject (MotionObject)
package {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.text.*;
public final class MotionObject extends MovieClip {
private const TYPE_FULLCOLOR:uint = 2;
private const INFO_NUM:uint = 4;
private const ERROR_POS:int = 0x0800;
private const TYPE_COLOR256:uint = 1;
private const TYPE_COLOR16:uint = 0;
private const SOUND_STR_NUM:uint = 12;
private var mCoreArray:Array;
private var mPreCenterPosX:int;
private var mCenterNum:uint;// = 0
private var mbUpdateMotion:Boolean;
private var mPreCenterPosY:int;
private var mCenterBgPosX:int;
private var mbChain:Boolean;
private var mbSoulVision:Boolean;
private var mPriority:uint;// = 0
private var mBitmapPosYArray:Array;
private var mBitmapDataArray:Array;
private var mCoreNum:uint;// = 0
private var mCenterPosXArray:Array;
private var mCenterBgPosY:int;
private var mChainFy:int;
private var mbSoulRed:Boolean;
private var mChainFx:int;
private var mStatusIndex:Array;
private var mbPause:Boolean;
private var mFrameNum:uint;
private var mMotionMovie:MovieClip;
private var mCurrentFrame:uint;
private var mBitmapAddChildArray:Array;
private var mCorePosYArray:Array;
private var mbScriptDisp:Boolean;
private var mPosX:int;
private var mBitmapPosXArray:Array;
private var mbCoreDisp:Boolean;
private var mPosY:int;
private var mGameApp:GameApp;// = null
private var mMotionName:String;
private var mbIsEnd:Boolean;
private var mBitmapArray:Array;
private var mChainBx:int;
private var mChainBy:int;
private var mMotionData:ByteArray;
private var mCenterPosYArray:Array;
private var mbDisp:Boolean;
private var mbLoop:Boolean;
private var mbUpdateCenterBgPos:Boolean;
private var mbFlipH:Boolean;
private var mCorePosXArray:Array;
private var mFrameStep:uint;
public function MotionObject(_arg1:GameApp, _arg2:Boolean){
var _local3:uint;
mCenterPosXArray = [0, 0, 0, 0];
mCenterPosYArray = [0, 0, 0, 0];
mCorePosXArray = [0, 0, 0, 0];
mCorePosYArray = [0, 0, 0, 0];
super();
mGameApp = _arg1;
mMotionName = "";
mbPause = true;
mbSoulVision = false;
mbFlipH = false;
mbIsEnd = false;
mbLoop = false;
mbChain = false;
mbSoulRed = _arg2;
mbScriptDisp = true;
mbDisp = true;
mbCoreDisp = true;
mbUpdateMotion = false;
mbUpdateCenterBgPos = false;
mFrameStep = 0;
mCurrentFrame = 0;
mMotionMovie = new MovieClip();
addChild(mMotionMovie);
mPosX = 0;
mPosY = 0;
mCenterNum = 0;
mCoreNum = 0;
mCoreArray = [];
mStatusIndex = [];
mBitmapDataArray = [];
mBitmapArray = [];
mBitmapAddChildArray = [];
mBitmapPosXArray = [];
mBitmapPosYArray = [];
_local3 = 0;
while (_local3 < INFO_NUM) {
mCoreArray.push(new GimmickCore());
mGameApp.addCore(mCoreArray[_local3]);
_local3++;
};
}
private function settingDisp():void{
var _local1:uint;
var _local2:Boolean;
if (((mbScriptDisp) && (mbDisp))){
visible = true;
} else {
visible = false;
};
_local1 = 0;
while (_local1 < INFO_NUM) {
_local2 = true;
if (((((!(mbCoreDisp)) || (!(mbSoulVision)))) || ((_local1 >= mCoreNum)))){
_local2 = false;
};
mCoreArray[_local1].update(mbScriptDisp, mbDisp, _local2);
_local1++;
};
}
public function setScriptDisp(_arg1:Boolean):void{
mbScriptDisp = _arg1;
}
private function placeBitmap():void{
var _local1:uint;
var _local2:int;
var _local3:int;
var _local4:Array = mBitmapArray;
var _local5:Array = mBitmapAddChildArray;
var _local6:Array = mBitmapPosXArray;
var _local7:Array = mBitmapPosYArray;
var _local8:int = _local4.length;
if (!visible){
_local1 = 0;
while (_local1 < _local8) {
if (_local5[_local1]){
mMotionMovie.removeChild(_local4[_local1]);
_local5[_local1] = false;
};
_local1++;
};
return;
};
_local1 = 0;
while (_local1 < _local8) {
if (mbFlipH){
_local2 = ((x - _local6[_local1]) - 4);
_local3 = ((y + _local7[_local1]) + 4);
} else {
_local2 = ((x + _local6[_local1]) + 4);
_local3 = ((y + _local7[_local1]) + 4);
};
if ((((((((_local2 < -4)) || ((_local2 > 260)))) || ((_local3 < -4)))) || ((_local3 > 196)))){
if (_local5[_local1]){
mMotionMovie.removeChild(_local4[_local1]);
_local5[_local1] = false;
};
} else {
_local4[_local1].x = _local6[_local1];
_local4[_local1].y = _local7[_local1];
if (!_local5[_local1]){
mMotionMovie.addChild(_local4[_local1]);
_local5[_local1] = true;
};
};
_local1++;
};
}
public function getPriority():uint{
return (mPriority);
}
public function setPriority(_arg1:uint):void{
mPriority = _arg1;
}
public function getCorePosX(_arg1:int):int{
return ((mPosX + mCorePosXArray[_arg1]));
}
public function loadMotion(_arg1:String, _arg2:Boolean, _arg3:Boolean):void{
var _local4:ByteArray = mGameApp.getBinaryByteArray(_arg1);
mMotionName = _arg1;
mCurrentFrame = 0;
mFrameStep = 0;
mbPause = false;
mbSoulVision = false;
mbUpdateMotion = true;
mbIsEnd = false;
mbLoop = _arg3;
mbChain = _arg2;
mMotionData = _local4;
mMotionData.position = 0;
mMotionData.endian = "littleEndian";
mFrameNum = mMotionData.readUnsignedInt();
mChainFx = mMotionData.readInt();
mChainFy = mMotionData.readInt();
mChainBx = mMotionData.readInt();
mChainBy = mMotionData.readInt();
}
public function setStatusIndex(_arg1:int, _arg2:int):void{
mStatusIndex[_arg1] = _arg2;
}
public function getCoreNum():int{
return (mCoreNum);
}
public function setFrame(_arg1:uint):void{
mCurrentFrame = _arg1;
mFrameStep = 0;
if (mCurrentFrame >= mFrameNum){
mCurrentFrame = (mFrameNum - 1);
};
mbUpdateMotion = true;
}
public function setFlipH(_arg1:Boolean):void{
var _local2:int;
if (mbFlipH){
if (!_arg1){
mPosX = (mPosX + (2 * mCenterPosXArray[0]));
_local2 = 0;
while (_local2 < mCenterNum) {
mCenterPosXArray[_local2] = -(mCenterPosXArray[_local2]);
_local2++;
};
_local2 = 0;
while (_local2 < mCoreNum) {
mCorePosXArray[_local2] = -(mCorePosXArray[_local2]);
_local2++;
};
scaleX = 1;
mbUpdateMotion = true;
};
} else {
if (_arg1){
mPosX = (mPosX + (2 * mCenterPosXArray[0]));
_local2 = 0;
while (_local2 < mCenterNum) {
mCenterPosXArray[_local2] = -(mCenterPosXArray[_local2]);
_local2++;
};
_local2 = 0;
while (_local2 < mCoreNum) {
mCorePosXArray[_local2] = -(mCorePosXArray[_local2]);
_local2++;
};
scaleX = -1;
mbUpdateMotion = true;
};
};
mbFlipH = _arg1;
}
public function getCenterNum():int{
return (mCenterNum);
}
public function setDisp(_arg1:Boolean):void{
mbDisp = _arg1;
}
public function bgPosAdd(_arg1:int, _arg2:int):void{
mPosX = (mPosX + _arg1);
mPosY = (mPosY + _arg2);
}
public function getMotionName():String{
return (mMotionName);
}
public function setCoreDisp(_arg1:Boolean):void{
mbCoreDisp = _arg1;
}
public function getCorePosY(_arg1:int):int{
return ((mPosY + mCorePosYArray[_arg1]));
}
public function getCenterPosX(_arg1:uint):int{
return ((mPosX + mCenterPosXArray[_arg1]));
}
public function setCorePos(_arg1:uint, _arg2:int, _arg3:int):void{
if (mbFlipH){
mCorePosXArray[_arg1] = -(_arg2);
} else {
mCorePosXArray[_arg1] = _arg2;
};
mCorePosYArray[_arg1] = _arg3;
}
public function getCenterPosY(_arg1:uint):int{
return ((mPosY + mCenterPosYArray[_arg1]));
}
public function setCenterPos(_arg1:uint, _arg2:int, _arg3:int):void{
if (mbFlipH){
mCenterPosXArray[_arg1] = -(_arg2);
} else {
mCenterPosXArray[_arg1] = _arg2;
};
mCenterPosYArray[_arg1] = _arg3;
}
public function updateCurrentCenterPosInfo():void{
var _local4:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local1:ByteArray = mMotionData;
_local1.position = ((4 + (4 * 4)) + (4 * mCurrentFrame));
var _local2:uint = _local1.readUnsignedInt();
mPreCenterPosX = mCenterPosXArray[0];
mPreCenterPosY = mCenterPosYArray[0];
mCenterNum = 0;
var _local3:uint = _local2;
_local4 = 0;
while (_local4 < INFO_NUM) {
_local1.position = (_local3 + (_local4 * 8));
_local6 = _local1.readInt();
if ((((_local6 < -(ERROR_POS))) || ((_local6 > ERROR_POS)))){
} else {
_local1.position = ((_local3 + (_local4 * 8)) + 4);
_local7 = _local1.readInt();
if ((((_local7 < -(ERROR_POS))) || ((_local7 > ERROR_POS)))){
} else {
setCenterPos(mCenterNum, _local6, _local7);
mCenterNum++;
};
};
_local4++;
};
mCoreNum = 0;
var _local5:uint = (_local2 + (8 * INFO_NUM));
_local4 = 0;
while (_local4 < INFO_NUM) {
_local1.position = (_local5 + (_local4 * 8));
_local8 = _local1.readInt();
if ((((_local8 < -(ERROR_POS))) || ((_local8 > ERROR_POS)))){
} else {
_local1.position = ((_local5 + (_local4 * 8)) + 4);
_local9 = _local1.readInt();
if ((((_local9 < -(ERROR_POS))) || ((_local9 > ERROR_POS)))){
} else {
setCorePos(mCoreNum, _local8, _local9);
mCoreNum++;
};
};
_local4++;
};
}
public function setSoulColorGimmick():void{
var _local1:ColorTransform = mMotionMovie.transform.colorTransform;
if (mbSoulRed){
_local1.color = 10030086;
} else {
_local1.color = 1593472;
};
mMotionMovie.transform.colorTransform = _local1;
mMotionMovie.alpha = 1;
mbSoulVision = true;
}
public function getIsEnd():Boolean{
return (mbIsEnd);
}
private function settingBitmap(_arg1:Boolean):void{
var _local2:uint;
var _local21:String;
var _local22:BitmapData;
var _local23:uint;
var _local24:uint;
var _local25:int;
var _local26:int;
var _local27:ByteArray;
Utility.removeAllChildren(mMotionMovie);
mBitmapArray = [];
mBitmapAddChildArray = [];
mBitmapDataArray = [];
mBitmapPosXArray = [];
mBitmapPosYArray = [];
var _local3:ByteArray = mMotionData;
var _local4:Array = mBitmapArray;
var _local5:Array = mBitmapAddChildArray;
var _local6:Array = mBitmapDataArray;
var _local7:Array = mBitmapPosXArray;
var _local8:Array = mBitmapPosYArray;
_local3.position = ((4 + (4 * 4)) + (4 * mCurrentFrame));
var _local9:uint = _local3.readUnsignedInt();
updateCurrentCenterPosInfo();
var _local10:uint = (_local9 + (INFO_NUM * ((4 * 2) + (4 * 2))));
_local3.position = _local10;
var _local11:int = _local3.readInt();
if (_local11){
_local3.position = (_local10 + 4);
_local21 = _local3.readMultiByte(SOUND_STR_NUM, "shift_jis");
mGameApp.callSePos(_local21, false, (mPosX + mCenterPosXArray[0]), (mPosY + mCenterPosYArray[0]));
};
var _local12:uint = (((_local9 + (INFO_NUM * ((4 * 2) + (4 * 2)))) + 4) + SOUND_STR_NUM);
_local3.position = _local12;
var _local13:uint = _local3.readUnsignedInt();
var _local14:uint = _local3.readUnsignedInt();
var _local15:uint = _local3.readUnsignedInt();
var _local16:uint = _local3.readUnsignedInt();
var _local17:uint;
var _local18:uint;
var _local19:uint;
var _local20:uint;
_local2 = 0;
while (_local2 < _local13) {
_local22 = new BitmapData(8, 8, true, 0);
_local3.position = ((_local12 + (4 * 4)) + ((4 * 2) * _local2));
_local23 = _local3.readUnsignedInt();
_local24 = _local3.readUnsignedInt();
if (_local16 == TYPE_COLOR16){
_local3.position = (((_local12 + (4 * 4)) + ((4 * 2) * _local13)) + ((8 * 4) * _local2));
_local22.lock();
_local17 = 0;
while (_local17 < 4) {
_local18 = 0;
while (_local18 < 8) {
_local3.position = (((((_local12 + (4 * 4)) + ((4 * 2) * _local13)) + ((8 * 4) * _local2)) + (4 * _local18)) + _local17);
_local20 = _local3.readUnsignedByte();
_local25 = (_local20 & 15);
_local3.position = ((((_local12 + (4 * 4)) + ((4 * 2) * _local13)) + ((8 * 4) * _local13)) + (_local25 * 4));
_local19 = _local3.readUnsignedInt();
_local22.setPixel32(((_local17 * 2) + 0), _local18, _local19);
_local26 = ((_local20 & 240) >> 4);
_local3.position = ((((_local12 + (4 * 4)) + ((4 * 2) * _local13)) + ((8 * 4) * _local13)) + (_local26 * 4));
_local19 = _local3.readUnsignedInt();
_local22.setPixel32(((_local17 * 2) + 1), _local18, _local19);
_local18++;
};
_local17++;
};
_local22.unlock();
} else {
if (_local16 == TYPE_COLOR256){
_local3.position = (((_local12 + (4 * 4)) + ((4 * 2) * _local13)) + ((8 * 8) * _local2));
_local22.lock();
_local17 = 0;
while (_local17 < 8) {
_local18 = 0;
while (_local18 < 8) {
_local3.position = (((((_local12 + (4 * 4)) + ((4 * 2) * _local13)) + ((8 * 8) * _local2)) + (8 * _local18)) + _local17);
_local20 = _local3.readUnsignedByte();
_local3.position = ((((_local12 + (4 * 4)) + ((4 * 2) * _local13)) + ((8 * 8) * _local13)) + (_local20 * 4));
_local19 = _local3.readUnsignedInt();
_local22.setPixel32(_local17, _local18, _local19);
_local18++;
};
_local17++;
};
_local22.unlock();
} else {
_local27 = null;
_local3.position = (((_local12 + (4 * 4)) + ((4 * 2) * _local13)) + (((8 * 8) * 4) * _local2));
_local27 = new ByteArray();
_local3.readBytes(_local27, 0, ((8 * 8) * 4));
_local27.position = 0;
_local22.setPixels(new Rectangle(0, 0, 8, 8), _local27);
};
};
_local4[_local2] = new Bitmap(_local22, PixelSnapping.NEVER, true);
_local5[_local2] = false;
_local7[_local2] = ((8 * _local23) - 0x0100);
_local8[_local2] = ((8 * _local24) - 128);
_local6[_local2] = _local22;
_local2++;
};
if (mCurrentFrame == 0){
if (mbChain){
if (_arg1){
if (mbFlipH){
mPosX = ((mPosX - mCenterPosXArray[0]) - mChainBx);
mPosY = ((mPosY - mCenterPosYArray[0]) + mChainBy);
} else {
mPosX = ((mPosX - mCenterPosXArray[0]) + mChainBx);
mPosY = ((mPosY - mCenterPosYArray[0]) + mChainBy);
};
} else {
if (mbFlipH){
mPosX = ((mPosX + mPreCenterPosX) + mChainFx);
mPosY = ((mPosY + mPreCenterPosY) - mChainFy);
setCenterPos(0, mChainFx, mChainFy);
} else {
mPosX = ((mPosX + mPreCenterPosX) - mChainFx);
mPosY = ((mPosY + mPreCenterPosY) - mChainFy);
};
};
mbChain = false;
};
};
}
public function setPause(_arg1:Boolean):void{
mbPause = _arg1;
}
public function setCenterBgPos(_arg1:int, _arg2:int):void{
mbUpdateCenterBgPos = true;
mCenterBgPosX = _arg1;
mCenterBgPosY = _arg2;
}
public function update():void{
var _local1:int;
if (((((!(GameApp.Pause)) && (!(mbPause)))) && (!((mGameApp.getStatus() == GameApp.STAT_SV))))){
mFrameStep++;
};
if ((((mFrameStep >= 4)) || (mbUpdateMotion))){
if (!mbUpdateMotion){
mCurrentFrame++;
};
mbIsEnd = false;
mFrameStep = 0;
mbUpdateMotion = false;
if (mCurrentFrame >= mFrameNum){
mbIsEnd = true;
if (mbLoop){
mCurrentFrame = 0;
mbChain = true;
settingBitmap(true);
} else {
mCurrentFrame = (mFrameNum - 1);
};
} else {
settingBitmap(false);
};
};
if (mbUpdateCenterBgPos){
mPosX = (mCenterBgPosX - mCenterPosXArray[0]);
mPosY = (mCenterBgPosY - mCenterPosYArray[0]);
mbUpdateCenterBgPos = false;
};
x = (mPosX - GameApp.BgPosX);
y = (mPosY - GameApp.BgPosY);
_local1 = 0;
while (_local1 < mCoreNum) {
mCoreArray[_local1].x = ((mPosX + mCorePosXArray[_local1]) - GameApp.BgPosX);
mCoreArray[_local1].y = ((mPosY + mCorePosYArray[_local1]) - GameApp.BgPosY);
_local1++;
};
settingDisp();
placeBitmap();
}
public function getStatusIndex(_arg1:int):int{
return (mStatusIndex[_arg1]);
}
public function setSoulColorHuman():void{
var _local1:ColorTransform = mMotionMovie.transform.colorTransform;
_local1.color = 16752664;
mMotionMovie.transform.colorTransform = _local1;
mMotionMovie.alpha = 0.5;
mbSoulVision = true;
}
public function getCurrentFrame():uint{
return (mCurrentFrame);
}
public function dump():void{
var _local1:int = getCenterPosX(0);
var _local2:int = getCenterPosY(0);
trace(((((((((((name + " : ") + mMotionName) + " : ") + mCurrentFrame) + " : ") + mbFlipH) + " : ") + _local1) + " : ") + _local2));
}
public function setNormalColor():void{
mMotionMovie.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
mMotionMovie.alpha = 1;
mbSoulVision = false;
}
}
}//package
Section 82
//PointLight (PointLight)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class PointLight extends MovieClip {
private const CIRCLE_DIV_NUM:uint = 32;
private const CIRCLE_RADIUS:Number = 400;
private const CIRCLE_DIV_RATE:Number = 0.03125;
private var mPosFrame:int;// = 0
private var mVertexX:Array;// = null
private var mVertexY:Array;// = null
private var mWidthStart:int;// = 0
private var mPosXEnd:int;// = 0
private var mGradientColors:Array;
private var mPosX:int;// = 0
private var mPosY:int;// = 0
private var mWidthFrame:int;// = 0
private var mGameApp:GameApp;// = null
private var mAlphaEnd:Number;// = 0
private var mVertexBaseX:Array;// = null
private var mVertexBaseY:Array;// = null
private var mVertexAtan:Array;// = null
private var mAlphaCurrent:int;// = 0
private var mWidthEnd:int;// = 0
private var mPosXStart:int;// = 0
private var mWidth:int;// = 0
private var mWidthCurrent:int;// = 0
private var mPosYEnd:int;// = 0
private var mPosYStart:int;// = 0
private var mAlphaStart:Number;// = 0
private var mGradientAlphas:Array;
private var mPosCurrent:int;// = 0
private var mbActive:Boolean;// = false
private var mAlphaFrame:int;// = 0
public function PointLight(_arg1:GameApp){
var _local2:uint;
var _local3:Number;
var _local4:Number;
mGradientColors = [0, 0];
mGradientAlphas = [1, 0];
super();
mGameApp = _arg1;
mbActive = false;
mVertexX = [];
mVertexY = [];
mVertexBaseX = [];
mVertexBaseY = [];
mVertexAtan = [];
alpha = 0;
_local2 = 0;
while (_local2 < CIRCLE_DIV_NUM) {
mVertexBaseX[((_local2 * 3) + 0)] = (CIRCLE_RADIUS * Math.cos((((Math.PI * 2) * _local2) * CIRCLE_DIV_RATE)));
mVertexBaseY[((_local2 * 3) + 0)] = (CIRCLE_RADIUS * Math.sin((((Math.PI * 2) * _local2) * CIRCLE_DIV_RATE)));
mVertexBaseX[((_local2 * 3) + 1)] = 0;
mVertexBaseY[((_local2 * 3) + 1)] = 0;
mVertexBaseX[((_local2 * 3) + 2)] = (CIRCLE_RADIUS * Math.cos(((((Math.PI * 2) * (_local2 + 1)) * CIRCLE_DIV_RATE) + 0.001)));
mVertexBaseY[((_local2 * 3) + 2)] = (CIRCLE_RADIUS * Math.sin(((((Math.PI * 2) * (_local2 + 1)) * CIRCLE_DIV_RATE) + 0.001)));
_local3 = (mVertexBaseX[((_local2 * 3) + 1)] - ((mVertexBaseX[((_local2 * 3) + 0)] + mVertexBaseX[((_local2 * 3) + 2)]) * 0.5));
_local4 = (mVertexBaseY[((_local2 * 3) + 1)] - ((mVertexBaseY[((_local2 * 3) + 0)] + mVertexBaseY[((_local2 * 3) + 2)]) * 0.5));
mVertexAtan[_local2] = Math.atan2(_local4, _local3);
_local2++;
};
addEventListener(Event.ENTER_FRAME, move);
}
public function setLightParam(_arg1:String, _arg2:Number, _arg3:Number, _arg4:int):void{
if (_arg1 == "alpha"){
mAlphaStart = alpha;
mAlphaEnd = _arg2;
mAlphaCurrent = 0;
mAlphaFrame = _arg4;
};
if (_arg1 == "pos"){
mPosXStart = mPosX;
mPosYStart = mPosY;
mPosXEnd = _arg2;
mPosYEnd = _arg3;
mPosCurrent = 0;
mPosFrame = _arg4;
};
if (_arg1 == "width"){
mWidthStart = mWidth;
mWidthEnd = _arg2;
mWidthCurrent = 0;
mWidthFrame = _arg4;
};
}
public function move(_arg1:Event):void{
var _local2:uint;
var _local6:Matrix;
graphics.clear();
if (!mbActive){
return;
};
mPosCurrent++;
if (mPosCurrent > mPosFrame){
mPosCurrent = mPosFrame;
};
mPosX = Utility.getCurrentValueStartTarget(mPosX, mPosXStart, mPosXEnd, mPosFrame, mPosCurrent);
mPosY = Utility.getCurrentValueStartTarget(mPosY, mPosYStart, mPosYEnd, mPosFrame, mPosCurrent);
mWidthCurrent++;
if (mWidthCurrent > mWidthFrame){
mWidthCurrent = mWidthFrame;
};
mWidth = Utility.getCurrentValueStartTarget(mWidth, mWidthStart, mWidthEnd, mWidthFrame, mWidthCurrent);
mAlphaCurrent++;
if (mAlphaCurrent > mAlphaFrame){
mAlphaCurrent = mAlphaFrame;
};
alpha = Utility.getCurrentValueStartTarget(alpha, mAlphaStart, mAlphaEnd, mAlphaFrame, mAlphaCurrent);
_local2 = 0;
while (_local2 < CIRCLE_DIV_NUM) {
mVertexX[((_local2 * 3) + 0)] = ((mPosX - GameApp.BgPosX) + mVertexBaseX[((_local2 * 3) + 0)]);
mVertexY[((_local2 * 3) + 0)] = ((mPosY - GameApp.BgPosY) + mVertexBaseY[((_local2 * 3) + 0)]);
mVertexX[((_local2 * 3) + 1)] = ((mPosX - GameApp.BgPosX) + mVertexBaseX[((_local2 * 3) + 1)]);
mVertexY[((_local2 * 3) + 1)] = ((mPosY - GameApp.BgPosY) + mVertexBaseY[((_local2 * 3) + 1)]);
mVertexX[((_local2 * 3) + 2)] = ((mPosX - GameApp.BgPosX) + mVertexBaseX[((_local2 * 3) + 2)]);
mVertexY[((_local2 * 3) + 2)] = ((mPosY - GameApp.BgPosY) + mVertexBaseY[((_local2 * 3) + 2)]);
_local2++;
};
var _local3:int = (400 - mWidth);
var _local4:int = (0xFF - mWidth);
if (_local3 > 0xFF){
_local3 = 0xFF;
};
if (_local4 > 0xFF){
_local4 = 0xFF;
};
if (_local3 < 0){
_local3 = 0;
};
if (_local4 < 0){
_local4 = 0;
};
var _local5:Array = [_local4, _local3];
_local2 = 0;
while (_local2 < CIRCLE_DIV_NUM) {
_local6 = new Matrix();
_local6.createGradientBox(CIRCLE_RADIUS, CIRCLE_RADIUS, mVertexAtan[_local2], (((mVertexX[((_local2 * 3) + 1)] + mVertexX[((_local2 * 3) + 0)]) - CIRCLE_RADIUS) * 0.5), (((mVertexY[((_local2 * 3) + 1)] + mVertexY[((_local2 * 3) + 0)]) - CIRCLE_RADIUS) * 0.5));
graphics.beginGradientFill(GradientType.LINEAR, mGradientColors, mGradientAlphas, _local5, _local6, SpreadMethod.PAD);
graphics.moveTo(mVertexX[((_local2 * 3) + 0)], mVertexY[((_local2 * 3) + 0)]);
graphics.lineTo(mVertexX[((_local2 * 3) + 1)], mVertexY[((_local2 * 3) + 1)]);
graphics.lineTo(mVertexX[((_local2 * 3) + 2)], mVertexY[((_local2 * 3) + 2)]);
graphics.lineTo(mVertexX[((_local2 * 3) + 0)], mVertexY[((_local2 * 3) + 0)]);
graphics.endFill();
_local2++;
};
}
public function setLight(_arg1:int, _arg2:int, _arg3:int, _arg4:Number):void{
mbActive = true;
mPosX = _arg1;
mPosY = _arg2;
mWidth = _arg3;
alpha = _arg4;
}
public function removeLight():void{
mbActive = false;
}
}
}//package
Section 83
//ReturnButtonMovieClip (ReturnButtonMovieClip)
package {
import flash.events.*;
public class ReturnButtonMovieClip extends BaseButtonMovieClip {
public function ReturnButtonMovieClip(_arg1:GameApp){
y = GameApp.RETURN_BUTTON_POS_Y;
buttonMode = true;
visible = false;
mStatus = GameApp.BUTTON_HIDE;
mChangeTime = 0;
mGameApp = _arg1;
addEventListener(MouseEvent.CLICK, mouseClick);
addEventListener(Event.ENTER_FRAME, move);
}
protected function move(_arg1:Event):void{
mChangeTime++;
if (mStatus == GameApp.BUTTON_SELECT){
if (mChangeTime == GameApp.ACTION_TIME){
mGameApp.setButtonClick(GameApp.BUTTON_RETURN);
};
};
commonFrameFunc();
}
protected function mouseClick(_arg1:MouseEvent):void{
if (!visible){
return;
};
if (mStatus != GameApp.BUTTON_DISP){
return;
};
if (GameApp.Pause){
return;
};
setStatus(GameApp.BUTTON_SELECT);
}
}
}//package
Section 84
//ReturnButtonMovieClip_en (ReturnButtonMovieClip_en)
package {
public class ReturnButtonMovieClip_en extends ReturnButtonMovieClip {
public function ReturnButtonMovieClip_en(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 85
//ReturnButtonMovieClip_fr (ReturnButtonMovieClip_fr)
package {
public class ReturnButtonMovieClip_fr extends ReturnButtonMovieClip {
public function ReturnButtonMovieClip_fr(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 86
//ReturnButtonMovieClip_gr (ReturnButtonMovieClip_gr)
package {
public class ReturnButtonMovieClip_gr extends ReturnButtonMovieClip {
public function ReturnButtonMovieClip_gr(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 87
//ReturnButtonMovieClip_it (ReturnButtonMovieClip_it)
package {
public class ReturnButtonMovieClip_it extends ReturnButtonMovieClip {
public function ReturnButtonMovieClip_it(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 88
//ReturnButtonMovieClip_sp (ReturnButtonMovieClip_sp)
package {
public class ReturnButtonMovieClip_sp extends ReturnButtonMovieClip {
public function ReturnButtonMovieClip_sp(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 89
//SoulBGEffect (SoulBGEffect)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class SoulBGEffect extends MovieClip {
private const CIRCLE_START:int = 10;
private const GRADIATION_NUM:int = 8;
private const CIRCLE_RADIUS:Number = 160;
private const CIRCLE_DIV_NUM:uint = 32;
private const CIRCLE_COUNTER:int = 16;
private const CIRCLE_DIV_RATE:Number = 0.03125;
private var mVertexX:Array;// = null
private var mVertexY:Array;// = null
private var mGradientColors:Array;
private var mCounter:int;// = 0
private var mGameApp:GameApp;// = null
private var mGradientRatios:Array;
private var mColorBlue:int;// = 0
private var mVertexAtan:Array;// = null
private var mColorGreen:int;// = 0
private var mVertexLength:Array;// = null
private var mGradientAlphas:Array;
private var mColorRed:int;// = 0
public function SoulBGEffect(_arg1:GameApp){
var _local2:uint;
var _local3:Number;
var _local4:Number;
mGradientAlphas = [];
mGradientColors = [];
mGradientRatios = [];
super();
mCounter = 0;
mGameApp = _arg1;
mVertexX = [];
mVertexY = [];
mVertexAtan = [];
mVertexLength = [];
_local2 = 0;
while (_local2 < CIRCLE_DIV_NUM) {
mVertexX[((_local2 * 3) + 0)] = (128 + (CIRCLE_RADIUS * Math.cos((((Math.PI * 2) * _local2) * CIRCLE_DIV_RATE))));
mVertexY[((_local2 * 3) + 0)] = (96 + (CIRCLE_RADIUS * Math.sin((((Math.PI * 2) * _local2) * CIRCLE_DIV_RATE))));
mVertexX[((_local2 * 3) + 1)] = (128 + 0);
mVertexY[((_local2 * 3) + 1)] = (96 + 0);
mVertexX[((_local2 * 3) + 2)] = (128 + (CIRCLE_RADIUS * Math.cos((((Math.PI * 2) * (_local2 + 1)) * CIRCLE_DIV_RATE))));
mVertexY[((_local2 * 3) + 2)] = (96 + (CIRCLE_RADIUS * Math.sin((((Math.PI * 2) * (_local2 + 1)) * CIRCLE_DIV_RATE))));
_local3 = (mVertexX[((_local2 * 3) + 2)] - mVertexX[((_local2 * 3) + 0)]);
_local4 = (mVertexY[((_local2 * 3) + 2)] - mVertexY[((_local2 * 3) + 0)]);
mVertexAtan[_local2] = Math.atan2(_local4, _local3);
mVertexLength[_local2] = Math.sqrt((((mVertexX[((_local2 * 3) + 2)] - mVertexX[((_local2 * 3) + 0)]) * (mVertexX[((_local2 * 3) + 2)] - mVertexX[((_local2 * 3) + 0)])) + ((mVertexY[((_local2 * 3) + 2)] - mVertexY[((_local2 * 3) + 0)]) * (mVertexY[((_local2 * 3) + 2)] - mVertexY[((_local2 * 3) + 0)]))));
_local2++;
};
mCounter = (CIRCLE_START + CIRCLE_COUNTER);
_local2 = 0;
while (_local2 < GRADIATION_NUM) {
if (_local2 == 0){
mGradientRatios[_local2] = 0;
} else {
mGradientRatios[_local2] = 0xFF;
};
if ((_local2 & 1)){
mGradientAlphas[_local2] = 0;
} else {
mGradientAlphas[_local2] = 1;
};
_local2++;
};
}
public function start(_arg1:int, _arg2:int, _arg3:int):void{
var _local5:int;
mCounter = 0;
mColorRed = _arg1;
mColorGreen = _arg2;
mColorBlue = _arg3;
var _local4:int = (((mColorRed * 65536) + (mColorGreen * 0x0100)) + mColorBlue);
_local5 = 0;
while (_local5 < GRADIATION_NUM) {
mGradientColors[_local5] = _local4;
_local5++;
};
addEventListener(Event.ENTER_FRAME, move);
}
public function move(_arg1:Event):void{
var _local2:int;
var _local4:Matrix;
if (mCounter >= (CIRCLE_START + CIRCLE_COUNTER)){
graphics.clear();
removeEventListener(Event.ENTER_FRAME, move);
return;
};
graphics.clear();
var _local3:Number = (mCounter / (CIRCLE_START + CIRCLE_COUNTER));
alpha = ((1 - _local3) * 2);
if (alpha > 1){
alpha = 1;
};
if (alpha < 0.1){
alpha = 0.5;
};
mGradientRatios[0] = (0xFF * (1 - _local3));
_local2 = 1;
while (_local2 < GRADIATION_NUM) {
mGradientRatios[_local2] = ((mGradientRatios[0] * (1 + (0.25 * _local2))) + (12 * _local2));
if (mGradientRatios[_local2] > 0xFF){
mGradientRatios[_local2] = 0xFF;
};
_local2++;
};
_local2 = 0;
while (_local2 < CIRCLE_DIV_NUM) {
_local4 = new Matrix();
_local4.createGradientBox(mVertexLength[_local2], mVertexLength[_local2], mVertexAtan[_local2], (((mVertexX[((_local2 * 3) + 2)] + mVertexX[((_local2 * 3) + 0)]) - mVertexLength[_local2]) * 0.5), (((mVertexY[((_local2 * 3) + 2)] + mVertexY[((_local2 * 3) + 0)]) - mVertexLength[_local2]) * 0.5));
graphics.beginGradientFill(GradientType.LINEAR, mGradientColors, mGradientAlphas, mGradientRatios, _local4, SpreadMethod.REFLECT);
graphics.moveTo(mVertexX[((_local2 * 3) + 0)], mVertexY[((_local2 * 3) + 0)]);
graphics.lineTo(mVertexX[((_local2 * 3) + 2)], mVertexY[((_local2 * 3) + 2)]);
graphics.lineTo(mVertexX[((_local2 * 3) + 1)], mVertexY[((_local2 * 3) + 1)]);
graphics.lineTo(mVertexX[((_local2 * 3) + 0)], mVertexY[((_local2 * 3) + 0)]);
graphics.endFill();
_local2++;
};
mCounter++;
}
public function startSoul():void{
start(0xFF, 0, 0);
mGameApp.callSe("sys_014", false);
}
public function exitSoul():void{
start(0, 0, 0);
mGameApp.callSe("sys_015", false);
}
}
}//package
Section 90
//SoulFire (SoulFire)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public final class SoulFire extends MovieClip {
const SCALE_SPEED:Number = 0.35;
private var mJointPosX:Array;// = null
private var mSpeedX:Number;// = 0
private var mBasePosX:Number;// = 0
private var mJointNo:uint;// = 0
private var mPosX:Number;// = 0
private var mPosY:Number;// = 0
private var mJointPosY:Array;// = null
private var mScale:Number;// = 0
private var mSpeedY:Number;// = 0
public function SoulFire(_arg1:Array, _arg2:Array){
var _local3:ColorTransform = transform.colorTransform;
_local3.color = 45288;
transform.colorTransform = _local3;
addEventListener(Event.ENTER_FRAME, move);
mJointNo = ((SoulTentacle.JOINT_NUM - 1) * Math.random());
if (mJointNo >= (SoulTentacle.JOINT_NUM - 2)){
mJointNo = (SoulTentacle.JOINT_NUM - 2);
};
mJointPosX = _arg1;
mJointPosY = _arg2;
mPosX = mJointPosX[mJointNo];
mPosY = mJointPosY[mJointNo];
mBasePosX = mPosX;
mSpeedX = ((8 * Math.random()) - 4);
mSpeedY = (-2 * Math.random());
mScale = (8 * Math.random());
x = (mPosX - GameApp.BgPosX);
y = (mPosY - GameApp.BgPosY);
scaleX = (scaleY = (mScale * 0.1125));
visible = true;
}
public function preFinish(){
visible = false;
removeEventListener(Event.ENTER_FRAME, move);
}
public function move(_arg1:Event):void{
mPosX = (mPosX + mSpeedX);
mPosY = (mPosY + mSpeedY);
mSpeedX = (mSpeedX + ((mBasePosX - mPosX) * 0.5));
mScale = (mScale - SCALE_SPEED);
x = (mPosX - GameApp.BgPosX);
y = (mPosY - GameApp.BgPosY);
scaleX = (scaleY = ((mScale * 3.6) / 32));
}
}
}//package
Section 91
//SoulTentacle (SoulTentacle)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class SoulTentacle extends MovieClip {
private const MOVE_COUNT:int = 16;
private const JOINT_RATE:Number;
private const HALF_WIDTH:Number = 3;
private const ALL_HEIGHT:Number = 16;
private const ONE_BLOCK_SIZE:Number = 8;
private const TOUCH_RADIUS:int = 16;
private const TENTACLE_LENGTH:int = 48;
private const HALF_HEIGHT:Number = 8;
private const ALL_WIDTH:Number = 64;
private var mbReturned:Boolean;// = false
private var mbSetPos:Boolean;// = false
private var mMatrix:Matrix;// = null
private var mPosX:int;// = 0
private var mTipPosY:int;// = 0
private var mPosY:int;// = 0
private var mTexUV:Array;// = null
private var mStartPosX:int;// = 0
private var mStartPosY:int;// = 0
private var mbMoved:Boolean;// = false
private var mJointSpeedRate:Array;// = null
private var mLength:Number;// = 0
private var mTipPosX:int;// = 0
private var mJointPosX:Array;// = null
private var mBitmapData:BitmapData;// = null
private var mbTouched:Boolean;// = false
private var mCounter:uint;
private var mMoveCount:int;// = 0
private var mSoulFire:Array;// = null
private var mJointPosY:Array;// = null
private var mGameApp:GameApp;// = null
private var mLoader:Loader;// = null
private var mbControlOK:Boolean;// = false
private var mVertex:Array;// = null
static var JOINT_NUM:uint = 8;
public function SoulTentacle(_arg1:GameApp){
var _local2:uint;
JOINT_RATE = (1 / JOINT_NUM);
super();
mCounter = 0;
mGameApp = _arg1;
mbSetPos = false;
mbControlOK = true;
mLength = 0;
mMatrix = new Matrix();
mSoulFire = [];
mJointPosX = [];
mJointPosY = [];
mJointSpeedRate = [];
mVertex = [];
mTexUV = [];
_local2 = 0;
while (_local2 < ((JOINT_NUM + 1) * 2)) {
mVertex[_local2] = new Point(0, 0);
mTexUV[_local2] = new Point(0, 0);
_local2++;
};
_local2 = 0;
while (_local2 < (JOINT_NUM + 1)) {
mTexUV[((_local2 * 2) + 0)].x = (mTexUV[((_local2 * 2) + 1)].x = (ONE_BLOCK_SIZE * _local2));
mTexUV[((_local2 * 2) + 0)].y = 0;
mTexUV[((_local2 * 2) + 1)].y = (ONE_BLOCK_SIZE * 2);
_local2++;
};
mJointSpeedRate[0] = 0.025;
mJointSpeedRate[1] = 0.06;
mJointSpeedRate[2] = 0.095;
mJointSpeedRate[3] = 0.125;
mJointSpeedRate[4] = 0.18;
mJointSpeedRate[5] = 0.245;
mJointSpeedRate[6] = 0.6;
mLoader = null;
mBitmapData = null;
addEventListener(Event.ENTER_FRAME, move);
}
public function setPos(_arg1:int, _arg2:int):void{
mPosX = (mTipPosX = _arg1);
mPosY = (mTipPosY = _arg2);
setJointNewtral();
mbSetPos = true;
}
public function mouseSequence(_arg1:Boolean, _arg2:int, _arg3:int):void{
var _local11:MotionObject;
var _local12:int;
var _local13:int;
var _local14:int;
var _local4:int;
var _local5:int;
if (!mbControlOK){
setJointNewtral();
return;
};
if (mbMoved){
return;
};
if (mbReturned){
return;
};
var _local6:int = _arg2;
var _local7:int = _arg3;
var _local8:int = (mPosX - GameApp.BgPosX);
var _local9:int = (mPosY - GameApp.BgPosY);
var _local10:int = Utility.getLength(_local8, _local9, _local6, _local7);
if (_local10 > TENTACLE_LENGTH){
_local6 = ((((_arg2 - _local8) * TENTACLE_LENGTH) / _local10) + _local8);
_local7 = ((((_arg3 - _local9) * TENTACLE_LENGTH) / _local10) + _local9);
_local10 = TENTACLE_LENGTH;
};
if (!mbTouched){
if (_arg1){
if (_local10 < TOUCH_RADIUS){
mbTouched = true;
mGameApp.sendMessage(GameApp.SoulGimmick, "SYSTEM", "SV_TOUCHCORE");
};
};
} else {
if (!_arg1){
mbReturned = true;
mbTouched = false;
mMoveCount = 0;
mStartPosX = mTipPosX;
mStartPosY = mTipPosY;
} else {
mTipPosX = (_local6 + GameApp.BgPosX);
mTipPosY = (_local7 + GameApp.BgPosY);
_local4 = 0;
while (_local4 < mGameApp.getMotionObjectNum()) {
_local11 = mGameApp.getMotionObject(_local4);
if (!_local11.visible){
} else {
_local5 = 0;
while (_local5 < _local11.getCoreNum()) {
if ((((_local11.name == GameApp.SoulGimmick)) && ((_local5 == GameApp.SoulIndex)))){
} else {
_local12 = _local11.getCorePosX(_local5);
_local13 = _local11.getCorePosY(_local5);
_local14 = Utility.getLength(mTipPosX, mTipPosY, _local12, _local13);
if (_local14 > TOUCH_RADIUS){
} else {
mbMoved = true;
mTipPosX = _local12;
mTipPosY = _local13;
mStartPosX = mPosX;
mStartPosY = mPosY;
mMoveCount = 0;
GameApp.SoulGimmick = _local11.name;
GameApp.StatusIndex = _local11.getStatusIndex(_local5);
GameApp.SoulIndex = _local5;
return;
};
};
_local5++;
};
};
_local4++;
};
};
};
}
private function loadInit(_arg1:Event):void{
mBitmapData = new BitmapData(mLoader.width, mLoader.height, true, 0);
mBitmapData.draw(mLoader);
mLoader.contentLoaderInfo.removeEventListener(Event.INIT, loadInit);
}
public function preFinish():void{
var _local1:uint;
mLoader = null;
mBitmapData = null;
_local1 = 0;
while (_local1 < mSoulFire.length) {
mGameApp.removeSoulFire(mSoulFire[_local1]);
mSoulFire[_local1].preFinish();
_local1++;
};
mSoulFire = null;
removeEventListener(Event.ENTER_FRAME, move);
}
public function setControlOK(_arg1:Boolean):void{
mbControlOK = _arg1;
if (!mbControlOK){
setJointNewtral();
};
}
private function drawAll():void{
var _local1:uint;
graphics.clear();
if (mLength == 0){
return;
};
if (!mbControlOK){
return;
};
_local1 = 0;
while (_local1 < JOINT_NUM) {
Utility.drawBitmapTriangle(graphics, mBitmapData, mTexUV[((2 * _local1) + 0)], mTexUV[((2 * _local1) + 2)], mTexUV[((2 * _local1) + 1)], mVertex[((2 * _local1) + 0)], mVertex[((2 * _local1) + 2)], mVertex[((2 * _local1) + 1)]);
Utility.drawBitmapTriangle(graphics, mBitmapData, mTexUV[((2 * _local1) + 2)], mTexUV[((2 * _local1) + 1)], mTexUV[((2 * _local1) + 3)], mVertex[((2 * _local1) + 2)], mVertex[((2 * _local1) + 1)], mVertex[((2 * _local1) + 3)]);
_local1++;
};
}
private function calcVertexUV():void{
var _local1:uint;
var _local2:uint;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local3:int = (mPosX - GameApp.BgPosX);
var _local4:int = (mPosY - GameApp.BgPosY);
var _local5:int = (mTipPosX - GameApp.BgPosX);
var _local6:int = (mTipPosY - GameApp.BgPosY);
var _local7:Number = (mTipPosX - mPosX);
var _local8:Number = (mTipPosY - mPosY);
mLength = Math.sqrt(((_local7 * _local7) + (_local8 * _local8)));
if (mLength == 0){
setJointNewtral();
return;
};
_local1 = 0;
while (_local1 < (JOINT_NUM - 1)) {
if (_local1 < (JOINT_NUM - 2)){
_local9 = (mJointPosX[(_local1 + 1)] - mJointPosX[_local1]);
_local10 = (mJointPosY[(_local1 + 1)] - mJointPosY[_local1]);
} else {
_local9 = (mJointPosX[_local1] - mJointPosX[(_local1 - 1)]);
_local10 = (mJointPosY[_local1] - mJointPosY[(_local1 - 1)]);
};
_local11 = Math.sqrt(((_local9 * _local9) + (_local10 * _local10)));
_local12 = (_local9 / _local11);
_local13 = (_local10 / _local11);
mVertex[(((_local1 + 1) * 2) + 0)].x = ((mJointPosX[_local1] + (_local13 * ONE_BLOCK_SIZE)) - GameApp.BgPosX);
mVertex[(((_local1 + 1) * 2) + 0)].y = ((mJointPosY[_local1] - (_local12 * ONE_BLOCK_SIZE)) - GameApp.BgPosY);
mVertex[(((_local1 + 1) * 2) + 1)].x = ((mJointPosX[_local1] - (_local13 * ONE_BLOCK_SIZE)) - GameApp.BgPosX);
mVertex[(((_local1 + 1) * 2) + 1)].y = ((mJointPosY[_local1] + (_local12 * ONE_BLOCK_SIZE)) - GameApp.BgPosY);
if (_local1 == 0){
mVertex[(((_local1 + 0) * 2) + 0)].x = (mVertex[(((_local1 + 1) * 2) + 0)].x - (_local12 * ONE_BLOCK_SIZE));
mVertex[(((_local1 + 0) * 2) + 0)].y = (mVertex[(((_local1 + 1) * 2) + 0)].y - (_local13 * ONE_BLOCK_SIZE));
mVertex[(((_local1 + 0) * 2) + 1)].x = (mVertex[(((_local1 + 1) * 2) + 1)].x - (_local12 * ONE_BLOCK_SIZE));
mVertex[(((_local1 + 0) * 2) + 1)].y = (mVertex[(((_local1 + 1) * 2) + 1)].y - (_local13 * ONE_BLOCK_SIZE));
};
if (_local1 == (JOINT_NUM - 2)){
mVertex[(((_local1 + 2) * 2) + 0)].x = (mVertex[(((_local1 + 1) * 2) + 0)].x + (_local12 * ONE_BLOCK_SIZE));
mVertex[(((_local1 + 2) * 2) + 0)].y = (mVertex[(((_local1 + 1) * 2) + 0)].y + (_local13 * ONE_BLOCK_SIZE));
mVertex[(((_local1 + 2) * 2) + 1)].x = (mVertex[(((_local1 + 1) * 2) + 1)].x + (_local12 * ONE_BLOCK_SIZE));
mVertex[(((_local1 + 2) * 2) + 1)].y = (mVertex[(((_local1 + 1) * 2) + 1)].y + (_local13 * ONE_BLOCK_SIZE));
};
_local1++;
};
}
private function calcPosition():void{
var _local4:uint;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local1:Boolean;
if (mbMoved){
if (mMoveCount > MOVE_COUNT){
mbMoved = false;
mPosX = mTipPosX;
mPosY = mTipPosY;
mGameApp.sendMessage(GameApp.SoulGimmick, "SYSTEM", "SV_CHGCORE");
mGameApp.callSe("sys_016", false);
} else {
mPosX = ((((mTipPosX - mStartPosX) * mMoveCount) / MOVE_COUNT) + mStartPosX);
mPosY = ((((mTipPosY - mStartPosY) * mMoveCount) / MOVE_COUNT) + mStartPosY);
mMoveCount++;
};
_local1 = true;
};
if (mbReturned){
if (mMoveCount > MOVE_COUNT){
mbReturned = false;
mTipPosX = mPosX;
mTipPosY = mPosY;
} else {
mTipPosX = ((((mPosX - mStartPosX) * mMoveCount) / MOVE_COUNT) + mStartPosX);
mTipPosY = ((((mPosY - mStartPosY) * mMoveCount) / MOVE_COUNT) + mStartPosY);
mMoveCount++;
};
_local1 = true;
};
if (_local1){
if ((mTipPosX - GameApp.BgPosX) > (128 + 32)){
mGameApp.setTargetBgPosX((mTipPosX - 128));
};
if ((mTipPosX - GameApp.BgPosX) < (128 - 32)){
mGameApp.setTargetBgPosX((mTipPosX - 128));
};
if ((mTipPosY - GameApp.BgPosY) > (96 + 32)){
mGameApp.setTargetBgPosY((mTipPosY - 96));
};
if ((mTipPosY - GameApp.BgPosY) < (96 - 32)){
mGameApp.setTargetBgPosY((mTipPosY - 96));
};
};
var _local2:Number = ((mTipPosX - mPosX) / (JOINT_NUM - 1));
var _local3:Number = ((mTipPosY - mPosY) / (JOINT_NUM - 1));
_local4 = 0;
while (_local4 < (JOINT_NUM - 1)) {
_local5 = mJointSpeedRate[_local4];
if (((mbReturned) || (mbMoved))){
_local5 = mJointSpeedRate[(JOINT_NUM - 2)];
};
_local6 = (mPosX + (_local2 * _local4));
_local7 = (mPosY + (_local3 * _local4));
_local8 = ((_local6 - mJointPosX[_local4]) * _local5);
_local9 = ((_local7 - mJointPosY[_local4]) * _local5);
_local10 = Math.sqrt(((_local8 * _local8) + (_local9 * _local9)));
if (_local10 == 0){
mJointPosX[_local4] = _local6;
mJointPosY[_local4] = _local7;
} else {
if (_local10 < 0.002){
_local8 = ((_local8 / _local10) * 0.002);
_local9 = ((_local9 / _local10) * 0.002);
};
mJointPosX[_local4] = (mJointPosX[_local4] + _local8);
mJointPosY[_local4] = (mJointPosY[_local4] + _local9);
};
_local4++;
};
}
private function setJointNewtral(){
var _local1:uint;
_local1 = 0;
while (_local1 < (JOINT_NUM - 1)) {
mJointPosX[_local1] = mPosX;
mJointPosY[_local1] = mPosY;
_local1++;
};
}
public function move(_arg1:Event):void{
var _local3:int;
var _local4:SoulFire;
if (!mLoader){
return;
};
if (!mBitmapData){
return;
};
calcPosition();
calcVertexUV();
if (mbSetPos){
_local4 = new SoulFire(mJointPosX, mJointPosY);
mSoulFire.push(_local4);
mGameApp.addSoulFire(_local4);
};
var _local2:int = mSoulFire.length;
_local3 = 0;
while (_local3 < _local2) {
if (mSoulFire[_local3].scaleX > 0){
} else {
mGameApp.removeSoulFire(mSoulFire[_local3]);
mSoulFire[_local3].preFinish();
mSoulFire.splice(_local3, 1);
_local2--;
_local3--;
};
_local3++;
};
drawAll();
}
public function loadByteArray(_arg1:ByteArray):void{
if (mLoader){
mLoader = null;
};
if (mBitmapData){
mBitmapData = null;
};
mLoader = new Loader();
mLoader.loadBytes(_arg1);
mLoader.contentLoaderInfo.addEventListener(Event.INIT, loadInit);
}
}
}//package
Section 92
//SpotLight (SpotLight)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class SpotLight extends MovieClip {
private var mLightPosCurrent:Array;// = null
private var mLightPosXStart:Array;// = null
private var mLightWidthCurrent:Array;// = null
private var mLightWidth:Array;// = null
private var mGameApp:GameApp;// = null
private var mLightTipXEnd:Array;// = null
private var mLightTipXStart:Array;// = null
private var mLightPosYEnd:Array;// = null
private var mAlphaEnd:Number;// = 0
private var mLightPosYStart:Array;// = null
private var mLightPosFrame:Array;// = null
private var mLightWidthStart:Array;// = null
private var mAlphaCurrent:int;// = 0
private var mLightTipYStart:Array;// = null
private var mLightPosX:Array;// = null
private var mLightWidthFrame:Array;// = null
private var mLightPosY:Array;// = null
private var mLightName:Array;// = null
private var mLightPosXEnd:Array;// = null
private var mLightTipFrame:Array;// = null
private var mLightTipX:Array;// = null
private var mLightTipY:Array;// = null
private var mLightTipCurrent:Array;// = null
private var mAlphaStart:Number;// = 0
private var mLightTipYEnd:Array;// = null
private var mAlphaFrame:int;// = 0
private var mLightWidthEnd:Array;// = null
public function SpotLight(_arg1:GameApp){
mGameApp = _arg1;
reset();
addEventListener(Event.ENTER_FRAME, move);
}
public function setLightParam(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:int):void{
var _local7:uint;
if (_arg2 == "alpha"){
mAlphaStart = alpha;
mAlphaEnd = (_arg3 / 31);
mAlphaCurrent = 0;
mAlphaFrame = _arg5;
};
var _local6:uint = mLightName.length;
_local7 = 0;
while (_local7 < _local6) {
if (mLightName[_local7] != _arg1){
} else {
if (_arg2 == "pos"){
mLightPosXStart[_local7] = mLightPosX[_local7];
mLightPosYStart[_local7] = mLightPosY[_local7];
mLightPosXEnd[_local7] = _arg3;
mLightPosYEnd[_local7] = _arg4;
mLightPosCurrent[_local7] = 0;
mLightPosFrame[_local7] = _arg5;
};
if (_arg2 == "tip"){
mLightTipXStart[_local7] = mLightTipX[_local7];
mLightTipYStart[_local7] = mLightTipY[_local7];
mLightTipXEnd[_local7] = _arg3;
mLightTipYEnd[_local7] = _arg4;
mLightTipCurrent[_local7] = 0;
mLightTipFrame[_local7] = _arg5;
};
if (_arg2 == "width"){
mLightWidthStart[_local7] = mLightWidth[_local7];
mLightWidthEnd[_local7] = _arg3;
mLightWidthCurrent[_local7] = 0;
mLightWidthFrame[_local7] = _arg5;
};
};
_local7++;
};
}
public function reset():void{
mLightName = [];
mLightPosX = [];
mLightPosXStart = [];
mLightPosXEnd = [];
mLightPosY = [];
mLightPosYStart = [];
mLightPosYEnd = [];
mLightPosFrame = [];
mLightPosCurrent = [];
mLightTipX = [];
mLightTipXStart = [];
mLightTipXEnd = [];
mLightTipY = [];
mLightTipYStart = [];
mLightTipYEnd = [];
mLightTipFrame = [];
mLightTipCurrent = [];
mLightWidth = [];
mLightWidthStart = [];
mLightWidthEnd = [];
mLightWidthFrame = [];
mLightWidthCurrent = [];
alpha = 0;
mAlphaStart = 0;
mAlphaEnd = 0;
mAlphaFrame = 0;
mAlphaCurrent = 0;
}
public function move(_arg1:Event):void{
var _local2:uint;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
graphics.clear();
if (mLightName.length <= 0){
return;
};
_local2 = 0;
while (_local2 < mLightName.length) {
var _local16 = mLightPosCurrent;
var _local17 = _local2;
var _local18 = (_local16[_local17] + 1);
_local16[_local17] = _local18;
if (mLightPosCurrent[_local2] > mLightPosFrame[_local2]){
mLightPosCurrent[_local2] = mLightPosFrame[_local2];
};
mLightPosX[_local2] = Utility.getCurrentValueStartTarget(mLightPosX[_local2], mLightPosXStart[_local2], mLightPosXEnd[_local2], mLightPosFrame[_local2], mLightPosCurrent[_local2]);
mLightPosY[_local2] = Utility.getCurrentValueStartTarget(mLightPosY[_local2], mLightPosYStart[_local2], mLightPosYEnd[_local2], mLightPosFrame[_local2], mLightPosCurrent[_local2]);
_local16 = mLightTipCurrent;
_local17 = _local2;
_local18 = (_local16[_local17] + 1);
_local16[_local17] = _local18;
if (mLightTipCurrent[_local2] > mLightTipFrame[_local2]){
mLightTipCurrent[_local2] = mLightTipFrame[_local2];
};
mLightTipX[_local2] = Utility.getCurrentValueStartTarget(mLightTipX[_local2], mLightTipXStart[_local2], mLightTipXEnd[_local2], mLightTipFrame[_local2], mLightTipCurrent[_local2]);
mLightTipY[_local2] = Utility.getCurrentValueStartTarget(mLightTipY[_local2], mLightTipYStart[_local2], mLightTipYEnd[_local2], mLightTipFrame[_local2], mLightTipCurrent[_local2]);
_local16 = mLightWidthCurrent;
_local17 = _local2;
_local18 = (_local16[_local17] + 1);
_local16[_local17] = _local18;
if (mLightWidthCurrent[_local2] > mLightWidthFrame[_local2]){
mLightWidthCurrent[_local2] = mLightWidthFrame[_local2];
};
mLightWidth[_local2] = Utility.getCurrentValueStartTarget(mLightWidth[_local2], mLightWidthStart[_local2], mLightWidthEnd[_local2], mLightWidthFrame[_local2], mLightWidthCurrent[_local2]);
_local2++;
};
mAlphaCurrent++;
if (mAlphaCurrent > mAlphaFrame){
mAlphaCurrent = mAlphaFrame;
};
alpha = Utility.getCurrentValueStartTarget(alpha, mAlphaStart, mAlphaEnd, mAlphaFrame, mAlphaCurrent);
graphics.beginFill(0);
graphics.drawRect(0, 0, 0x0100, 192);
if ((((mLightName.length == 2)) && (((mLightTipX[0] + mLightWidth[0]) > (mLightTipX[1] - mLightWidth[1]))))){
_local3 = mLightPosX[0];
_local4 = (mLightTipX[0] + mLightWidth[0]);
_local5 = mLightPosX[1];
_local6 = (mLightTipX[1] - mLightWidth[1]);
_local7 = mLightPosY[0];
_local8 = mLightTipY[0];
_local9 = mLightPosY[1];
_local10 = mLightTipY[1];
_local11 = (((_local4 - _local3) * (_local9 - _local7)) - ((_local8 - _local7) * (_local5 - _local3)));
_local12 = (((_local8 - _local7) * (_local6 - _local5)) - ((_local4 - _local3) * (_local10 - _local9)));
_local13 = (_local11 / _local12);
_local14 = (((_local6 - _local5) * _local13) + _local5);
_local15 = (((_local10 - _local9) * _local13) + _local9);
graphics.moveTo((mLightPosX[0] - GameApp.BgPosX), (mLightPosY[0] - GameApp.BgPosY));
graphics.lineTo(((mLightTipX[0] - mLightWidth[0]) - GameApp.BgPosX), (mLightTipY[0] - GameApp.BgPosY));
graphics.lineTo(((mLightTipX[1] + mLightWidth[1]) - GameApp.BgPosX), (mLightTipY[1] - GameApp.BgPosY));
graphics.lineTo((mLightPosX[1] - GameApp.BgPosX), (mLightPosY[1] - GameApp.BgPosY));
graphics.lineTo((_local14 - GameApp.BgPosX), (_local15 - GameApp.BgPosY));
graphics.lineTo((mLightPosX[0] - GameApp.BgPosX), (mLightPosY[0] - GameApp.BgPosY));
} else {
_local2 = 0;
while (_local2 < mLightName.length) {
if (mLightWidth[_local2] <= 0){
} else {
graphics.moveTo((mLightPosX[_local2] - GameApp.BgPosX), (mLightPosY[_local2] - GameApp.BgPosY));
graphics.lineTo(((mLightTipX[_local2] - mLightWidth[_local2]) - GameApp.BgPosX), (mLightTipY[_local2] - GameApp.BgPosY));
graphics.lineTo(((mLightTipX[_local2] + mLightWidth[_local2]) - GameApp.BgPosX), (mLightTipY[_local2] - GameApp.BgPosY));
graphics.lineTo((mLightPosX[_local2] - GameApp.BgPosX), (mLightPosY[_local2] - GameApp.BgPosY));
};
_local2++;
};
};
graphics.endFill();
}
public function removeLight(_arg1:String):void{
var _local3:uint;
var _local2:uint = mLightName.length;
_local3 = 0;
while (_local3 < _local2) {
if (mLightName[_local3] != _arg1){
} else {
mLightName.splice(_local3, 1);
mLightPosX.splice(_local3, 1);
mLightPosXStart.splice(_local3, 1);
mLightPosXEnd.splice(_local3, 1);
mLightPosY.splice(_local3, 1);
mLightPosYStart.splice(_local3, 1);
mLightPosYEnd.splice(_local3, 1);
mLightPosFrame.splice(_local3, 1);
mLightPosCurrent.splice(_local3, 1);
mLightTipX.splice(_local3, 1);
mLightTipXStart.splice(_local3, 1);
mLightTipXEnd.splice(_local3, 1);
mLightTipY.splice(_local3, 1);
mLightTipYStart.splice(_local3, 1);
mLightTipYEnd.splice(_local3, 1);
mLightTipFrame.splice(_local3, 1);
mLightTipCurrent.splice(_local3, 1);
mLightWidth.splice(_local3, 1);
mLightWidthStart.splice(_local3, 1);
mLightWidthEnd.splice(_local3, 1);
mLightWidthFrame.splice(_local3, 1);
mLightWidthCurrent.splice(_local3, 1);
_local2--;
_local3--;
};
_local3++;
};
}
public function addLight(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:Number):void{
if (mLightName.length >= 2){
trace("addLight Light Num Over");
return;
};
if ((((alpha < _arg7)) || ((mLightName.length <= 0)))){
alpha = _arg7;
};
mLightName.push(_arg1);
mLightPosX.push(_arg2);
mLightPosXStart.push(0);
mLightPosXEnd.push(0);
mLightPosY.push(_arg3);
mLightPosYStart.push(0);
mLightPosYEnd.push(0);
mLightPosFrame.push(0);
mLightPosCurrent.push(0);
mLightTipX.push(_arg4);
mLightTipXStart.push(0);
mLightTipXEnd.push(0);
mLightTipY.push(_arg5);
mLightTipYStart.push(0);
mLightTipYEnd.push(0);
mLightTipFrame.push(0);
mLightTipCurrent.push(0);
mLightWidth.push(_arg6);
mLightWidthStart.push(0);
mLightWidthEnd.push(0);
mLightWidthFrame.push(0);
mLightWidthCurrent.push(0);
}
}
}//package
Section 93
//St01Script (St01Script)
package {
public final class St01Script {
static var mSt01_000_MainScript:Array = ["effect", ("GameTitle" + LanguageType.LanguageType), "gameTitle", 0, GameApp.SUBSCREEN_POS_Y, true, true, false, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST, -1, "effect_wait", "gameTitle", 0, "freecamera_off", "bgset", "st01", "human", "linne", "st01_linne_004_mtbl", 56, 360, GameApp.OBJ_PRIO_1, SubStatus.LINNE_00, -1, -1, -1, "human", "killer", "st01_killerA_011_mtbl", 201, 360, GameApp.OBJ_PRIO_1, -1, -1, -1, -1, "human", "kuneri2", "st01_kuneri_101_mtbl", 532, 671, GameApp.OBJ_PRIO_1, SubStatus.KUNERI_00, -1, -1, -1, "human", "kuneri", "st01_kuneri_001_mtbl", 532, 671, GameApp.OBJ_PRIO_1, SubStatus.KUNERI_00, -1, -1, -1, "gimmick", "cicel", "st01_cicel_000_mtbl", 144, 360, GameApp.OBJ_PRIO_0, SubStatus.CICEL_00, -1, -1, -1, "gimmick", "guitar", "st01_guitar_000_mtbl", 298, 213, GameApp.OBJ_PRIO_1, SubStatus.GUITAR_00, -1, -1, -1, "gimmick", "shadanki", "st01_shadanki_000_000_mtbl", 272, 352, GameApp.OBJ_PRIO_2, SubStatus.SHADANKI_00, -1, -1, -1, "gimmick", "bed", "st01_bed_000_mtbl", 432, 612, GameApp.OBJ_PRIO_2, SubStatus.BED_00, -1, -1, -1, "gimmick", "cbag", "st01_cbag_000_mtbl", 135, 351, GameApp.OBJ_PRIO_3, -1, -1, -1, -1, "gimmick", "ltel", "st01_ltel_000_mtbl", 278, 720, GameApp.OBJ_PRIO_3, -1, -1, -1, -1, "gimmickSV", "cardoor", "st01_cardoor_000_mtbl", 374, 707, GameApp.OBJ_PRIO_2, SubStatus.DOOR_00, -1, -1, -1, "gimmickSV", "hyousiki", "st01_hyousiki_000_mtbl", 344, 637, GameApp.OBJ_PRIO_2, SubStatus.HYOUSHIKI_00, -1, -1, -1, "gimmickSV", "telephone", "st01_telephone_000_mtbl", 215, 660, GameApp.OBJ_PRIO_2, -1, -1, -1, -1, "gimmick", "bycicle", "st01_bicycle_000_000_mtbl", 375, 356, GameApp.OBJ_PRIO_2, SubStatus.BICYCLE_00, SubStatus.BICYCLE_04, -1, -1, "gimmick", "hashigo", "st01_hasigo_000_mtbl", 552, 358, GameApp.OBJ_PRIO_3, SubStatus.LADDER_00, -1, -1, -1, "gimmick", "ironBall", "st01_ironball_000_mtbl", 439, 341, GameApp.OBJ_PRIO_0, SubStatus.IRONBALL_00, -1, -1, -1, "gimmick", "ironBall2", "st01_ironball_000_mtbl", 439, 341, GameApp.OBJ_PRIO_0, SubStatus.IRONBALL_00, -1, -1, -1, "gimmick", "hand", "st01_hand_000_mtbl", 439, 341, GameApp.OBJ_PRIO_2, SubStatus.ARM_00, -1, -1, -1, "gimmickSV", "light", "st01_light_000_mtbl", 673, 224, GameApp.OBJ_PRIO_2, SubStatus.LIGHT_00, -1, -1, -1, "gimmickSoulRed", "craneTopA", "st01_topA_000_mtbl", 439, 341, GameApp.OBJ_PRIO_2, -1, -1, -1, -1, "gimmickSoulRed", "craneBottomA", "st01_votomA_000_mtbl", 439, 341, GameApp.OBJ_PRIO_2, -1, -1, -1, -1, "gimmickSoulRed", "craneTopB", "st01_topB_000_mtbl", 439, 341, GameApp.OBJ_PRIO_2, -1, -1, -1, -1, "gimmickSoulRed", "switchA", "st01_switchA_000_mtbl", 478, 321, GameApp.OBJ_PRIO_2, SubStatus.SWITCH_00, -1, -1, -1, "gimmick", "switchB", "st01_switchB_000_mtbl", 478, 321, GameApp.OBJ_PRIO_3, SubStatus.SWITCH_00, -1, -1, -1, "gimmick", "s_crane_a", "st01_scraneA_000_mtbl", 426, (340 + 96), GameApp.OBJ_PRIO_2, -1, -1, -1, -1, "gimmick", "s_crane_b", "st01_scraneB_000_mtbl", 426, (724 + 384), GameApp.OBJ_PRIO_2, -1, -1, -1, -1, "gimmick", "s_crane_c", "st01_scraneC_000_mtbl", 548, (557 + 384), GameApp.OBJ_PRIO_2, -1, -1, -1, -1, "coreset", "cicel", 0, "kakomode_off", "disp_off", "ironBall2", "disp_off", "kuneri", "disp_off", "s_crane_a", "disp_off", "s_crane_b", "disp_off", "s_crane_c", "bg_set_rect", 0, 0, 0x0400, 384, "kakomode_off", "camera_set", 0, 192, "camera_wait", "close_shutter", "spot_light", "linneLight", 56, 128, 56, 367, 0, 1, "spot_light", "killerLight", 200, 128, 200, 367, 0, 1, "mask_fade_out", 0, "wait", 1, "fade_in", 0, "bgm_play", "BGM30", "monologue", "m01_0000", "mask_fade_in", 1, "spot_light_param", "linneLight", "width", 30, 0, 5, "se_play", "gim_046", "wait", 30, "monologue", "m01_0010", "spot_light_param", "killerLight", "width", 30, 0, 5, "se_play", "gim_046", "wait", 30, "monologue", "m01_0020", "motion_play", "killer", "motion_wait", "killer", "motiontbl", "linne", "st01_linne_005_mtbl", true, false, "wait", 19, "balloon_exclamation", "linne", -10, -120, "motion_wait", "linne", "wait", 60, "monologue", "m01_0030", "spot_light_param", "linneLight", "tip", 118, 367, 60, "spot_light_param", "killerLight", "tip", 138, 367, 60, "wait", (60 + 30), "se_play", "sys_022", "monologue", "m01_0040", "wait", 30, "effect", "cicelzoomup", "cicelzoomup", 0, 0, false, true, false, "", -1, -1, false, GameApp.EFFECT_PRIO_NORMAL, -1, "spot_light_param", "linneLight", "width", 60, 0, 30, "spot_light_param", "linneLight", "pos", -22, -130, 30, "spot_light_param", "linneLight", "tip", 102, 348, 30, "spot_light_param", "killerLight", "width", 60, 0, 30, "spot_light_param", "killerLight", "pos", 266, -130, 30, "spot_light_param", "killerLight", "tip", 142, 348, 30, "wait", 90, "monologue", "m01_0041", "wait", 60, "spot_light_param", "linneLight", "width", 0, 0, 8, "spot_light_param", "killerLight", "width", 0, 0, 8, "se_play", "gim_046", "wait", 40, "point_light", 144, 360, 0, 1, "point_light_param", "width", 400, 0, 180, "wait", 1, "effect_finish", "cicelzoomup", "spot_light_kill", "linneLight", "spot_light_kill", "killerLight", "wait", 180, "point_light_kill", "balloon_picture", "m01_0050", "killer", -40, -98, 80, "wait", 78, "monologue", "m01_0060", "bgm_stop", 0, "wait", 4, "through_on", "mask_fade_out", 0, "se_play", "sys_027", "monologue", "m01_0070", "white_out", 0, "wait", 2, "white_in", 8, "wait", 8, "white_out", 0, "wait", 2, "white_in", 8, "wait", 8, "meswait", "se_play", "sys_027", "monologue", "m01_0071", "white_out", 0, "wait", 2, "white_in", 8, "wait", 8, "white_out", 0, "wait", 2, "white_in", 8, "wait", 8, "meswait", "mask_fade_in", 0, "through_off", "soulvision", true, "camera_set", 0, 224, "soulhand_control_ng", "wait", 66, "bgm_play", "BGM37", "wait", 60, "mescall", "m01_0090", "effect", "CoreAction", "coreAction", 0, 0, false, false, true, "cicel", 10, -1, false, GameApp.EFFECT_PRIO_NORMAL, -1, "mescall", "m01_0099", "effect_finish", "coreAction", "effect", "CoreAction", "coreAction", 0, 0, false, false, true, "shadanki", 10, -1, false, GameApp.EFFECT_PRIO_NORMAL, -1, "mescall", "m01_0100", "effect_finish", "coreAction", "through_on", "mescall", "m01_0110", "wait_event", "*", "message", "pause in", "effect", ("TouchPlayerHere" + LanguageType.LanguageType), "touchPlayerHere", 0, 0, false, false, true, "cicel", 10, -1, false, GameApp.EFFECT_PRIO_NORMAL, -1, "soulhand_control_ok", "wait_event", "cicel", "SYSTEM", "SV_TOUCHCORE", "effect_finish", "touchPlayerHere", "soulhand_control_ng", "sendmsg", "GameApp", "Message", "Forward", "wait_event", "*", "message", "pause in", "soulhand_control_ok", "effect", "TouchChainHere", "touchChainHere", 136, 320, false, false, true, "", -1, -1, false, GameApp.EFFECT_PRIO_NORMAL, -1, "wait_event", "shadanki", "SYSTEM", "SV_CHGCORE", "sendmsg", "GameApp", "Message", "Forward", "soulhand_control_ng", "effect_finish", "touchChainHere", "meswait", "through_off", "mescall", "m01_0130", "game_mode", "camera_move", 54, 192, 1, "through_on", "mescall", "m01_0150", "set_pause", false, "effect", ("TouchPlayerHereD" + LanguageType.LanguageType), "touchMeD", 92, 86, false, true, true, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST_NOTTOUCH, -1, "button_status", GameApp.BUTTON_ACTION, GameApp.BUTTON_HIDE2DISP, "wait_event", "shadanki", "core", "ready", "effect_finish", "touchMeD", "sendmsg", "GameApp", "Message", "Forward", "set_pause", true, "through_off", "coreinfo", "shadanki", 0, SubStatus.SHADANKI_01, "demo_mode", "button_status", GameApp.BUTTON_ACTION, GameApp.BUTTON_DISP2HIDE, "bgm_stop", 0, "motion_play", "shadanki", "se_play", "gim_026", "wait", 21, "motiontbl", "killer", "st01_killerA_019_mtbl", true, false, "balloon_exclamation", "killer", 0, -120, "wait", 4, "motiontbl", "linne", "st01_linne_009_mtbl", true, false, "wait", 60, "camera_move", 96, 192, 2, "wait", 4, "balloon_picture", "m01_0160", "killer", 0, -128, 60, "wait", 156, "camera_move", 232, 192, 6, "motiontbl", "linne", "st01_linne_011_mtbl", false, false, "center_bgpos", "linne", 390, 360, "balloon_picture", "m01_0170", "killer", 0, -128, 60, "se_play", "sys_024", "balloon_yure", 1, 30, "wait", (90 + 30), "bgm_play", "BGM01", "mescall", "m01_0180", "soulvision", true, "soulhand_control_ng", "camera_move_off", "camera_move", 128, 96, 3, "through_on", "mescall", "m01_0190", "wait_event", "*", "message", "pause in", "soulhand_control_ok", "wait_event", "guitar", "SYSTEM", "SV_CHGCORE", "soulhand_control_ng", "camera_move_on", "sendmsg", "GameApp", "Message", "Forward", "through_off", "mescall", "m01_0191", "demo_mode", "through_on", "mescall", "m01_0220", "set_pause", false, "effect", ("TouchPlayerHereD" + LanguageType.LanguageType), "touchMeD", 92, 86, false, true, true, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST_NOTTOUCH, -1, "button_status", GameApp.BUTTON_ACTION, GameApp.BUTTON_HIDE2DISP, "wait_event", "guitar", "core", "ready", "effect_finish", "touchMeD", "sendmsg", "GameApp", "Message", "Forward", "button_status", GameApp.BUTTON_ACTION, GameApp.BUTTON_DISP2HIDE, "set_pause", true, "through_off", "coreinfo", "guitar", 0, SubStatus.GUITAR_01, "demo_mode", "bgm_stop", 0, "effect", "st01_onpu", "st01_onpu", 0, 0, true, false, false, "guitar", 0, -1, false, GameApp.EFFECT_PRIO_NORMAL, 99, "se_play_motion", "gim_027", "guitar", 0, "wait", 12, "camera_move", 200, 160, 2, "wait", 8, "motiontbl", "killer", "st01_killerA_020_mtbl", true, false, "balloon_picture", "m01_0230", "killer", 80, -112, 30, "wait", 8, "effect", "st01_guiter_00", "hitGuitar", -170, -253, true, false, false, "killer", 0, -1, false, GameApp.EFFECT_PRIO_NORMAL, -1, "wait", 4, "motiontbl", "linne", "st01_linne_012_mtbl", true, false, "wait", 28, "motiontbl", "linne", "st01_linne_010_mtbl", true, true, "wait", 12, "motiontbl", "guitar", "st01_guitar_001_mtbl", false, false, "wait", 64, "camera_move", 200, 192, 1, "wait", 16, "balloon_exclamation", "killer", 0, -120, "wait", 92, "camera_move", 344, 192, 6, "motiontbl", "linne", "st01_linne_011_mtbl", false, false, "center_bgpos", "linne", 518, 360, "balloon_picture", "m01_0170", "killer", 0, -120, 60, "se_play", "sys_024", "balloon_yure", 1, 30, "wait", 90, "bgm_play", "BGM01", "wait", 30, "mescall", "m01_0240", "camera_move", 80, 192, 4, "camera_wait", "soulvision", true, "soulhand_control_ng", "camera_set", 0, 224, "through_on", "camera_move_off", "mescall", "m01_0241", "wait_event", "*", "message", "pause in", "soulhand_control_ok", "wait_event", "cicel", "SYSTEM", "SV_CHGCORE", "soulhand_control_ng", "sendmsg", "GameApp", "Message", "Forward", "meswait", "mescall", "m01_0250", "meswait", "demo_mode", "camera_move_on", "mescall", "m01_0251", "set_pause", false, "wait_event", "*", "message", "pause in", "effect", ("TouchPlayerHereD" + LanguageType.LanguageType), "touchMeD", 92, 86, false, true, true, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST_NOTTOUCH, -1, "button_status", GameApp.BUTTON_ACTION, GameApp.BUTTON_HIDE2DISP, "wait_event", "cicel", "core", "ready", "wait", 120, "sendmsg", "GameApp", "Message", "Forward", "button_status", GameApp.BUTTON_ACTION, GameApp.BUTTON_DISP2HIDE, "effect_finish", "touchMeD", "set_pause", true, "meswait", "through_off", "bgm_stop", 180, "demo_mode", "mescall", "m01_0261", "camera_move", 344, 192, 4, "camera_wait", "mescall", "m01_0279", "balloon_picture", "m01_0280", "killer", 16, -128, 90, "se_play", "sys_024", "balloon_yure", 1, 30, "wait", 120, "effect", "white_filter", "white_filter", 0, 0, true, true, false, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST, 199, "wait", 44, "center_flip", "killer", true, "motiontbl", "killer", "st01_killerA_013_mtbl", true, false, "wait", 4, "motiontbl", "linne", "st01_linne_030_mtbl", true, false, "wait", 4, "motion_pause", "linne", "camera_move", 360, 192, 4, "wait", 64, "motion_play", "linne", "wait", 32, "camera_move", 432, 192, 2, "wait", 48, "camera_move", 432, 224, 2, "wait", 140, "camera_move", 432, 272, 0.5, "wait", 32, "fade_out", 90, "wait", 40, "se_play_pos", "gim_056", 540, 720, "wait", 60, "fade_in", 60, "camera_set", 344, 192, "center_flip", "killer", false, "motiontbl", "killer", "st01_killerA_026_mtbl", false, false, "center_bgpos", "killer", 378, 360, "wait", 224, "motion_pause", "killer", "wait", 60, "subscript", ST01_000_TELEPHONE_EVENT, true, "wait", 60, "bg_set_rect", 0, 0, 0x0400, 0x0300, "camera_move", 80, 552, 16, "wait", 208, "camera_set", 344, 192, "motion_play", "killer", "wait", 80, "center_flip", "killer", true, "motiontbl", "killer", "st01_killerA_014_mtbl", true, true, "camera_move", 0, 192, 2, "wait", 220, "center_flip", "killer", false, "motiontbl", "killer", "st01_killerA_000_mtbl", true, false, "wait", 20, "motion_pause", "killer", "wait", 12, "balloon_picture", "m01_0281", "killer", -48, -128, 120, "wait", 48, "motion_play", "killer", "wait", 32, "motiontbl", "cicel", "st01_cicel_002_00a_mtbl", true, false, "wait", 60, "se_play_pos", "gim_056", 400, 720, "wait", 268, "motiontbl", "killer", "st01_killerA_001_mtbl", true, true, "wait", 72, "subscript", ST01_000_TELEPHONE_EVENT, false, "fade_out", 60, "wait", 60, "bg_set_rect", 0, 0, 0x0400, 0x0300, "fade_in", 60, "camera_set", 0, 0x0200, "motiontbl", "cicel", "st01_cicel_003_00a_mtbl", false, false, "center_bgpos", "cicel", 435, 715, "center_flip", "linne", false, "motiontbl", "linne", "st01_linne_000_mtbl", false, false, "center_bgpos", "linne", 651, 720, "center_flip", "killer", true, "motiontbl", "killer", "st01_killerA_001_mtbl", false, true, "center_bgpos", "killer", 153, (540 - 1), "wait", 60, "subscript", ST01_000_TELEPHONE_EVENT, true, "wait", 112, "motiontbl", "killer", "st01_killerA_002_mtbl", true, false, "wait", 56, "motiontbl", "killer", "st01_killerA_003_mtbl", true, true, "wait", 4, "camera_move", 0, 552, 1, "wait", 224, "center_flip", "killer", false, "motiontbl", "killer", "st01_killerA_005_mtbl", true, false, "wait", 144, "subscript", ST01_000_TELEPHONE_EVENT, false, "wait", 64, "se_play", "sys_020", "disp_off", "ltel", "wait", 144, "balloon_picture", "m01_0340", "killer", -48, -108, 90, "wait", 120, "balloon_picture", "m01_0350", "killer", -48, -108, 90, "wait", 120, "motiontbl", "killer", "st01_killerA_006_mtbl", true, false, "bgpos_add", "killer", 0, -1, "wait", 8, "camera_move", 0x0100, 552, 2, "se_play", "sys_020", "disp_on", "ltel", "wait", 68, "motiontbl", "killer", "st01_killerA_007_mtbl", true, true, "wait", 72, "motiontbl", "killer", "st01_killerA_008_mtbl", true, false, "wait", 308, "center_flip", "killer", true, "motiontbl", "killer", "st01_killerA_007_mtbl", true, true, "wait", 100, "camera_move", 314, 552, 1, "wait", 80, "monologue", "m01_0290", "wait", 60, "spot_light", "spot_kuneri", 416, 320, 556, 720, 0, 0, "spot_light_param", "spot_kuneri", "width", 48, 0, 90, "spot_light_param", "spot_kuneri", "alpha", 24, 0, 90, "wait", 170, "motion_play", "kuneri", "motion_play", "kuneri2", "wait", 240, "spot_light_kill", "spot_kuneri", "disp_on", "kuneri", "effect", "ef01_light_000", "kuneri_light", 0, 0, false, false, false, "kuneri", 1, 2, true, GameApp.EFFECT_PRIO_NORMAL, -1, "se_play_motion", "gim_050", "kuneri", 0, "wait", 16, "bgm_play", "BGM11", "wait", 8, "camera_move", 314, 576, 2, "mescall", "m01_0360", "wait", 50, "camera_move", 416, 576, 1, "wait", 157, "disp_off", "kuneri", "effect_finish", "kuneri_light", "se_play_motion", "gim_050", "kuneri", 0, "wait", 1, "spot_light", "spot_linne", 616, 464, 616, 728, 0, 0, "spot_light_param", "spot_linne", "width", 60, 0, 10, "spot_light_param", "spot_linne", "alpha", 24, 0, 10, "wait", 30, "mescall", "m01_0370", "wait", 19, "spot_light_param", "spot_linne", "width", 0, 0, 10, "spot_light_param", "spot_linne", "alpha", 0, 0, 10, "wait", 11, "spot_light_kill", "spot_linne", "wait", 20, "camera_move", 300, 576, 2, "wait", 74, "disp_on", "kuneri", "effect", "ef01_light_000", "kuneri_light", 0, 0, false, false, false, "kuneri", 1, 2, true, GameApp.EFFECT_PRIO_NORMAL, -1, "se_play_motion", "gim_050", "kuneri", 0, "wait", 10, "mescall", "m01_0381", "wait", 50, "disp_off", "kuneri", "effect_finish", "kuneri_light", "se_play_motion", "gim_050", "kuneri", 0, "wait", 22, "camera_move", 416, 576, 2, "motiontbl", "kuneri2", "st01_kuneri_123_mtbl", true, false, "wait", 94, "motiontbl", "kuneri", "st01_kuneri_124_mtbl", true, false, "disp_on", "kuneri", "motion_pause", "kuneri", "wait", 0, "effect", "ef01_light_000", "kuneri_light", 0, 0, false, false, false, "kuneri", 1, 2, true, GameApp.EFFECT_PRIO_NORMAL, -1, "se_play_motion", "gim_050", "kuneri", 0, "wait", 30, "mescall", "m01_0410", "wait", 8, "disp_off", "kuneri", "effect_finish", "kuneri_light", "se_play_motion", "gim_050", "kuneri", 0, "wait", 22, "camera_move", 300, 576, 2, "motiontbl", "kuneri2", "st01_kuneri_125_mtbl", true, false, "wait", 64, "mescall", "m01_0420", "wait", 30, "spot_light", "spot_cicel", 428, 464, 428, 728, 0, 0, "spot_light_param", "spot_cicel", "width", 48, 0, 90, "spot_light_param", "spot_cicel", "alpha", 31, 0, 90, "wait", 110, "monologue", "m01_0430", "wait", 8, "spot_light_param", "spot_cicel", "width", 0, 0, 40, "spot_light_param", "spot_cicel", "alpha", 0, 0, 40, "wait", 41, "spot_light_kill", "spot_cicel", "button_status", GameApp.BUTTON_ACTION, GameApp.BUTTON_FLAGOFF, "trick", "game_mode", "balloon_cicel", "cicel", 0, -1, ST01_000_FIRST_BALLOON, "motiontbl", "kuneri2", "st01_kuneri_108_mtbl", true, false, "motion_wait", "kuneri2", "motiontbl", "kuneri2", "st01_kuneri_107_mtbl", true, true, "wait", 30, "effect", ("TouchPlayerHereC" + LanguageType.LanguageType), "touchMeC", 0, -82, false, true, true, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST_NOTTOUCH, -1, "wait", 1, "wait_event", "*", "firstBalloon", "Touch", "sendmsg", "", "", "", "effect_finish", "touchMeC", "effect", ("TouchPlayerHereB" + LanguageType.LanguageType), "touchMeB", -92, 86, false, true, true, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST_NOTTOUCH, -1, "button_status", GameApp.BUTTON_ACTION, GameApp.BUTTON_FLAGON, "button_status", GameApp.BUTTON_ACTION, GameApp.BUTTON_HIDE2DISP, "button_status", GameApp.BUTTON_TRICK, GameApp.BUTTON_FLAGON, "button_status", GameApp.BUTTON_TRICK, GameApp.BUTTON_HIDE2DISP, "wait_event", "*", "SYSTEM", "SV_START", "sendmsg", "", "", "", "effect_finish", "touchMeB", "wait_event", "bed", "SYSTEM", "SV_CHGCORE", "soulhand_control_ng", "through_on", "mescall", "m01_0460", "wait_event", "*", "message", "pause in", "wait", 12, "button_status", GameApp.BUTTON_RETURN, GameApp.BUTTON_HIDE2DISP, "wait", 12, "effect", "CoreAction-tu", "coreActionTutorial", -92, 85, true, true, false, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST, -1, "wait", 60, "sendmsg", "GameApp", "Message", "Forward", "wait_event", "*", "message", "pause in", "wait", 30, "sendmsg", "GameApp", "Message", "Forward", "meswait", "through_off", "effect", ("TouchPlayerHereB" + LanguageType.LanguageType), "touchMeB", -92, 86, false, true, true, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST_NOTTOUCH, -1, "wait_event", "*", "SYSTEM", "SV_FINAL", "sendmsg", "", "", "", "effect_finish", "touchMeB", "wait_event", "kuneri2", "SYSTEM", "SV_CHGCORE", "soulhand_control_ng", "playermark_flagoff", "demo_mode", "playermark_flagon", "motion_wait", "kuneri2", "motiontbl", "kuneri2", "st01_kuneri_109_mtbl", true, false, "motion_wait", "kuneri2", "mescall", "m01_0500", "camera_move", 437, 574, 1, "motiontbl", "kuneri2", "st01_kuneri_123_mtbl", true, false, "camera_wait", "mescall", "m01_0510", "mescall", "m01_0511", "motiontbl", "kuneri2", "st01_kuneri_113_mtbl", true, false, "motion_wait", "kuneri2", "mescall", "m01_0515", "trick", "game_mode", "wait_event", "linne", "SYSTEM", "SV_CHGCORE", "soulhand_control_ng", "close_shutter", "button_status", GameApp.BUTTON_RETURN, GameApp.BUTTON_DISP2HIDE, "kill_soulhand", "effect", "DeadTrickLight", "deadTrickLight", 0, 0, true, false, false, "linne", 10, -1, false, GameApp.EFFECT_PRIO_NORMAL, -1, "effect_wait", "deadTrickLight", 0, "bgm_play", "BGM09", "deadkaiwa", "wait", GameApp.DEADKAIWA_STARTWAIT, "mescall", "m01_0521", "effect", ("RollBackCurpse" + LanguageType.LanguageType), "rollback", 0, 0, true, true, false, "", -1, -1, false, GameApp.EFFECT_PRIO_NORMAL, -1, "effect_wait", "rollback", 2, "button_status", GameApp.BUTTON_ACTION, GameApp.BUTTON_FLAGON, "button_status", GameApp.BUTTON_TRICK, GameApp.BUTTON_FLAGON, "button_status", GameApp.BUTTON_RETURN, GameApp.BUTTON_FLAGON, "kakomode_on", "mask_fade_out", 0, "bgm_stop", 0, "demo_mode", "wait", 60, "fade_in", 0, "wait", 1, "soulvision", false, "bg_set_rect", 0, 0, 0x0400, 384, "camera_set", 8, 192, "fade_in", 32, "wait", 1, "bgm_play", "BGM04", "mask_fade_in", 0, "center_flip", "linne", false, "motiontbl", "linne", "st01_linne_002_mtbl", false, true, "center_bgpos", "linne", 165, 360, "motiontbl", "cicel", "st01_cicel_001_mtbl", false, true, "center_bgpos", "cicel", 144, 359, "center_flip", "killer", false, "motiontbl", "killer", "st01_killerA_009_mtbl", false, false, "center_bgpos", "killer", 365, 360, "motiontbl", "shadanki", "st01_shadanki_000_000_mtbl", false, false, "motion_pause", "shadanki", "motiontbl", "guitar", "st01_guitar_000_mtbl", false, false, "center_bgpos", "guitar", 298, 213, "motion_pause", "guitar", "coreset", "shadanki", 0, "effect", "te_wat", "te_wat", 0, 0, true, true, false, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST, -1, "wait", 24, "effect", ("tero" + LanguageType.LanguageType), "tero", 0, 0, true, true, false, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST, -1, "wait", 150, "effect_finish", "tero", "playermark_flagoff", "demo_mode", "freecamera_on", "playermark_flagon", "wait", 120, "mescall", "m01_0550", "wait", 104, "motiontbl", "linne", "st01_linne_003_mtbl", true, false, "motiontbl", "cicel", "st01_cicel_000_mtbl", true, false, "wait", 8, "balloon_exclamation", "linne", 0, -80, "wait", 166, "balloon_picture", "m01_0560", "linne", 0, -120, 90, "se_play", "sys_024", "wait", 90, "center_flip", "killer", true, "motiontbl", "killer", "st01_killerA_014_mtbl", true, true, "wait", 144, "motiontbl", "killer", "st01_killerA_016_mtbl", true, false, "wait", 40, "center_flip", "killer", false, "motiontbl", "killer", "st01_killerA_009_mtbl", true, false, "bgpos_add", "killer", -5, 0, "wait", 108, "motiontbl", "killer", "st01_killerA_010_mtbl", true, false, "wait", 68, "motion_pause", "killer", "mescall", "m01_0570", "wait", 30, "motiontbl", "linne", "st01_linne_004_mtbl", true, false, "wait", 2, "motion_play", "killer", "wait", 2, "motiontbl", "killer", "st01_killerA_011_mtbl", true, false, "wait", 64, "motiontbl", "linne", "st01_linne_005_mtbl", true, false, "wait", 20, "balloon_exclamation", "linne", 0, -120, "wait", 42, "mescall", "m01_0580", "wait", 4, "motiontbl", "killer", "st01_killerA_027_mtbl", true, false, "wait", 8, "camera_move", 8, 64, 2, "wait", 96, "mescall", "m01_0590", "wait", 16, "camera_move", 8, 192, 2, "wait", 80, "mescall", "m01_0600", "wait", 30, "motiontbl", "linne", "st01_linne_006_mtbl", true, false, "motiontbl", "killer", "st01_killerA_012_mtbl", true, false, "wait", 180, "balloon_picture", "m01_0050", "killer", -40, -98, 90, "wait", 143, "motion_play", "shadanki", "se_play", "gim_026", "wait", 21, "motiontbl", "killer", "st01_killerA_019_mtbl", true, false, "balloon_exclamation", "killer", 0, -120, "wait", 4, "motiontbl", "linne", "st01_linne_009_mtbl", true, false, "wait", 60, "camera_move", 96, 192, 2, "wait", 4, "balloon_picture", "m01_0160", "killer", 0, -128, 60, "wait", 156, "camera_move", 232, 192, 6, "motiontbl", "linne", "st01_linne_011_mtbl", false, false, "center_bgpos", "linne", 390, 360, "balloon_picture", "m01_0170", "killer", 0, -128, 60, "se_play", "sys_024", "balloon_yure", 1, 30, "wait", 90, "wait", 60, "effect", "st01_onpu", "st01_onpu", 0, 0, true, false, false, "guitar", 0, -1, false, GameApp.EFFECT_PRIO_NORMAL, 99, "se_play_motion", "gim_027", "guitar", 0, "wait", 12, "camera_move", 200, 160, 2, "wait", 8, "motiontbl", "killer", "st01_killerA_020_mtbl", true, false, "balloon_picture", "m01_0230", "killer", 80, -112, 30, "wait", 8, "effect", "st01_guiter_00", "hitGuitar", -170, -253, true, false, false, "killer", 0, -1, false, GameApp.EFFECT_PRIO_NORMAL, -1, "wait", 4, "motiontbl", "linne", "st01_linne_012_mtbl", true, false, "wait", 28, "motiontbl", "linne", "st01_linne_010_mtbl", true, true, "wait", 12, "motiontbl", "guitar", "st01_guitar_001_mtbl", false, false, "wait", 64, "camera_move", 200, 192, 1, "wait", 16, "balloon_exclamation", "killer", 0, -120, "wait", 92, "camera_move", 344, 192, 6, "motiontbl", "linne", "st01_linne_011_mtbl", false, false, "center_bgpos", "linne", 518, 360, "balloon_picture", "m01_0170", "killer", 0, -120, 60, "se_play", "sys_024", "balloon_yure", 1, 30, "wait", 90, "bgm_stop", 0, "wait", 30, "mescall", "m01_0699", "camera_move", 160, 192, 4, "camera_wait", "wait", 30, "effect", "BalloonRippleExecute", "BalloonRippleExecute", 0, 0, true, false, false, "guitar", 10, -1, false, GameApp.EFFECT_PRIO_NORMAL, 65, "se_play", "gim_108", "wait", 90, "motiontbl", "guitar", "st01_guitar_999_00a_mtbl", true, false, "se_play", "gim_116", "se_play", "gim_166", "motion_wait", "guitar", "coreset", "guitar", 0, "wait", 30, "camera_move", 344, 192, 6, "camera_wait", "playerhere", false, "wait", 60, "mescall", "m01_0701", "startpoint", -1, "coreset", "guitar", 0, "camera_set", 344, 192, "wait", 0, "motion_reinit", "linne", "st01_linne_011_mtbl", 556, 360, false, 16, "motion_reinit", "killer", "st01_killerA_020_mtbl", 401, 360, false, 56, "motion_reinit", "bycicle", "st01_bicycle_000_000_mtbl", 375, 356, false, 0, "motion_reinit", "hashigo", "st01_hasigo_000_mtbl", 552, 358, false, 0, "motion_reinit", "ironBall", "st01_ironball_000_mtbl", 439, 341, false, 0, "motion_reinit", "ironBall2", "st01_ironball_000_mtbl", 439, 341, false, 0, "motion_reinit", "hand", "st01_hand_000_mtbl", 439, 341, false, 0, "motion_reinit", "craneTopA", "st01_topA_000_mtbl", 439, 341, false, 0, "motion_reinit", "craneBottomA", "st01_votomA_000_mtbl", 439, 341, false, 0, "motion_reinit", "craneTopB", "st01_topB_000_mtbl", 439, 341, false, 0, "motion_reinit", "switchA", "st01_switchA_000_mtbl", 478, 321, false, 0, "motion_reinit", "switchB", "st01_switchB_000_mtbl", 478, 321, false, 0, "motion_reinit", "s_crane_a", "st01_scraneA_000_mtbl", 426, (340 + 96), false, 0, "motion_reinit", "s_crane_b", "st01_scraneB_000_mtbl", 426, (724 + 384), false, 0, "motion_reinit", "s_crane_c", "st01_scraneC_000_mtbl", 548, (557 + 384), false, 0, "coreinfo", "bycicle", 0, SubStatus.BICYCLE_00, "coreinfo", "bycicle", 1, SubStatus.BICYCLE_04, "coreinfo", "switchB", 0, SubStatus.SWITCH_00, "coreinfo", "hashigo", 0, SubStatus.LADDER_00, "coreinfo", "hand", 0, SubStatus.ARM_00, "trick", "game_mode", "timelimit", 1381, ST01_000_FIRST_DEATH, "balloon_cicel", "", -1, 1080, ST01_000_MESSAGE_01_0711, "wait_event", "bycicle", "core", "ready", "sendmsg", "", "", "", "coreinfo", "bycicle", 0, SubStatus.BICYCLE_01, "coreinfo", "bycicle", 1, SubStatus.BICYCLE_02, "balloon_kill", "timelimit", -1, -1, "demo_mode", "effect", "st01_BicycleBell", "st01_BicycleBell", 0, 0, true, false, false, "bycicle", 10, -1, false, GameApp.EFFECT_PRIO_NORMAL, 49, "se_play", "gim_029", "wait", 20, "camera_move", 320, 192, 6, "wait", 10, "wait", 2, "motiontbl", "killer", "st01_killerA_021_mtbl", true, false, "balloon_exclamation", "killer", 0, -120, "wait", 10, "motiontbl", "linne", "st01_linne_013_mtbl", true, false, "wait", 32, "motiontbl", "killer", "st01_killerA_013_mtbl", true, false, "effect", "st01_mazl01", "st01_mazl01", 455, 290, true, false, false, "", 0, -1, false, GameApp.EFFECT_PRIO_NORMAL, -1, "motiontbl", "bycicle", "st01_bicycle_000_001_mtbl", false, false, "motion_pause", "linne", "motion_wait", "killer", "motiontbl", "killer", "st01_killerA_022_mtbl", true, false, "wait", 64, "mescall", "m01_0715", "motion_wait", "killer", "motiontbl", "killer", "st01_killerA_014_mtbl", true, true, "wait", 120, "motion_pause", "killer", "wait", 40, "mescall", "m01_0721", "motiontbl", "bycicle", "st01_bicycle_000_002_mtbl", false, false, "motion_pause", "bycicle", "playermark_flagoff", "unmei", "continuepoint", -1, "wait", 0, "coreset", "bycicle", 0, "camera_set", 320, 192, "wait", 0, "motion_reinit", "linne", "st01_linne_013_mtbl", 628, 360, false, 7, "motion_reinit", "killer", "st01_killerA_014_mtbl", 610, 360, false, 11, "motion_reinit", "bycicle", "st01_bicycle_000_002_mtbl", 375, 359, false, 0, "motion_reinit", "hashigo", "st01_hasigo_000_mtbl", 552, 358, false, 0, "motion_reinit", "ironBall", "st01_ironball_000_mtbl", 439, 341, false, 0, "motion_reinit", "ironBall2", "st01_ironball_000_mtbl", 439, 341, false, 0, "motion_reinit", "hand", "st01_hand_000_mtbl", 439, 341, false, 0, "motion_reinit", "craneTopA", "st01_topA_000_mtbl", 439, 341, false, 0, "motion_reinit", "craneBottomA", "st01_votomA_000_mtbl", 439, 341, false, 0, "motion_reinit", "craneTopB", "st01_topB_000_mtbl", 439, 341, false, 0, "motion_reinit", "switchA", "st01_switchA_000_mtbl", 478, 321, false, 0, "motion_reinit", "switchB", "st01_switchB_000_mtbl", 478, 321, false, 0, "motion_reinit", "s_crane_a", "st01_scraneA_000_mtbl", 426, (340 + 96), false, 0, "motion_reinit", "s_crane_b", "st01_scraneB_000_mtbl", 426, (724 + 384), false, 0, "motion_reinit", "s_crane_c", "st01_scraneC_000_mtbl", 548, (557 + 384), false, 0, "coreinfo", "bycicle", 1, SubStatus.BICYCLE_02, "coreinfo", "switchB", 0, SubStatus.SWITCH_00, "coreinfo", "hashigo", 0, SubStatus.LADDER_00, "coreinfo", "hand", 0, SubStatus.ARM_00, "bgm_play", "BGM03", "demo_mode", "camera_set", 664, 192, "camera_wait", "motion_play", "linne", "wait", 48, "balloon_exclamation", "linne", 0, -120, "wait", 160, "mescall", "m01_0750", "camera_move", 0x0300, 224, 4, "camera_wait", "wait", 32, "mescall", "m01_0760", "motiontbl", "killer", "st01_killerA_016_mtbl", false, false, "center_bgpos", "killer", 661, 360, "camera_move", 268, 192, 8, "camera_wait", "playermark_flagon", "trick", "motiontbl", "linne", "st01_linne_004_mtbl", true, false, "center_flip", "linne", true, "motion_pause", "linne", "game_mode", "balloon_cicel", "bicycle", 0, 1200, ST01_000_SECOND_BALLOON, "timelimit", (1381 + (30 * 60)), ST01_000_SECOND_DEATH, "subscript", ST01_000_SECOND_TIMELIMIT, true, "wait_event", "switchB", "core", "ready", "sendmsg", "", "", "", "coreinfo", "switchB", 0, SubStatus.SWITCH_01, "bgm_pause", true, "balloon_kill", "subscript", ST01_000_SECOND_TIMELIMIT, false, "demo_mode", "motion_play", "switchB", "wait", 16, "bg_set_rect", 0, 0, 0x0400, 960, "camera_set", 64, 0x0300, "disp_on", "s_crane_a", "disp_on", "s_crane_b", "disp_on", "s_crane_c", "motion_play", "s_crane_a", "motion_play", "s_crane_b", "motion_play", "s_crane_c", "motion_play", "ironBall", "motion_play", "hand", "motion_play", "craneTopA", "motion_play", "craneTopB", "wait", 30, "se_play", "gim_035", "motion_wait", "s_crane_a", "bg_set_rect", 0, 0, 0x0400, 384, "camera_set", 356, 24, "wait", 1, "camera_move", 548, 24, 3, "disp_off", "s_crane_a", "disp_off", "s_crane_b", "disp_off", "s_crane_c", "wait", 12, "se_play", "gim_036", "wait", 50, "motiontbl", "ironBall", "st01_ironball_001_mtbl", true, false, "wait", 47, "se_play", "gim_037", "quake", 1, 60, "motion_wait", "ironBall", "center_flip", "linne", true, "motiontbl", "linne", "st01_linne_004_mtbl", false, false, "center_bgpos", "linne", 836, 360, "center_flip", "killer", true, "motiontbl", "killer", "st01_killerA_028_mtbl", false, false, "center_bgpos", "killer", 664, 360, "camera_move", 548, 192, 4, "camera_wait", "center_flip", "killer", false, "motiontbl", "killer", "st01_killerA_023_mtbl", true, false, "balloon_exclamation", "killer", 0, -120, "wait", 90, "camera_move", 624, 192, 4, "motion_wait", "killer", "wait", 45, "balloon_picture", "m01_0830", "killer", 48, -112, 120, "bgm_pause", false, "bgm_play", "BGM03", "wait", 150, "balloon_picture", "m01_0840", "linne", -48, -112, 90, "wait", 90, "game_mode", "playerhere", true, "timelimit", (1381 + (10 * 60)), ST01_000_SECOND_DEATH, "subscript", ST01_000_THIRD_TIMELIMIT, true, "wait_event", "hand", "core", "ready", "sendmsg", "", "", "", "coreinfo", "hand", 0, SubStatus.ARM_01, "bgm_stop", 0, "timelimit", -1, -1, "subscript", ST01_000_THIRD_TIMELIMIT, false, "demo_mode", "center_flip", "linne", false, "motiontbl", "linne", "st01_linne_014_mtbl", true, false, "motion_pause", "linne", "motiontbl", "hand", "st01_hand_001_mtbl", true, false, "motiontbl", "ironBall", "st01_ironball_002_mtbl", true, false, "camera_set", 540, 56, "se_play", "gim_038", "wait", 36, "camera_move", 540, 192, 4, "wait", 60, "wait", 40, "motiontbl", "ironBall2", "st01_ironball_003_mtbl", true, false, "disp_on", "ironBall2", "effect", "st01_dosun_00", "st01_dosun_00", 230, -60, true, false, false, "ironBall", 0, -1, false, GameApp.EFFECT_PRIO_NORMAL, -1, "se_play", "gim_039", "wait", 7, "disp_off", "killer", "wait", 20, "wait", 108, "motiontbl", "ironBall", "st01_ironball_004_mtbl", true, false, "disp_off", "ironBall2", "wait", 19, "se_play_motion", "gim_040", "killer", 0, "wait", 41, "camera_move", 700, 192, 1, "wait", 60, "wait", 19, "se_play_motion", "gim_040", "killer", 0, "wait", 64, "wait", 8, "objprio", "killer", GameApp.OBJ_PRIO_0, "center_flip", "killer", false, "motiontbl", "killer", "st01_rollkiller_000_mtbl", true, false, "disp_on", "killer", "center_bgpos", "killer", 439, 341, "wait", 120, "se_play_pos", "gim_039", 800, 700, "wait", 8, "quake", 1, 16, "wait", 120, "motion_play", "linne", "motion_wait", "linne", "wait", 120, "mescall", "m01_0882", "bgm_stop", 0, "kanryo", "camera_move_off", "wait", 20, "demo_mode", "mescall", "m01_0883", "monologue", "m01_0884", "spot_light", "linneLight", 824, 120, 824, 368, 0, 31, "spot_light_param", "linneLight", "width", 30, 0, 30, "motiontbl", "linne", "st01_linne_015_mtbl", true, false, "motion_wait", "linne", "monologue", "m01_0885", "spot_light_param", "linneLight", "width", 0, 0, 60, "wait", 60, "fade_out", 0, "wait", 3, "spot_light_kill", "linneLight", "open_shutter_not_status", "wait", 6, "effect", ("GameClear" + LanguageType.LanguageType), "gameClear", 0, GameApp.SUBSCREEN_POS_Y, true, true, false, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST, -1, "effect_wait", "gameClear", 60, "bgm_stop", 60, "wait", 60, "gameclear", "wait", -1];
static var mSt01_000_SubScript000:Array = ["effect", "Telephone001", "Telephone001", 0, 0, true, false, false, "telephone", 0, -1, false, GameApp.EFFECT_PRIO_NORMAL, 49, "se_play_motion", "sys_019", "telephone", 0, "wait", 150, "event_loop"];
static var mSt01_000_SubScript001:Array = ["effect_finish", "touchMeC", "mescall", "m01_0450", "wait_event", "*", "message", "pause in", "wait", 12, "button_status", GameApp.BUTTON_TRICK, GameApp.BUTTON_HIDE2DISP, "wait", 12, "effect", "CoreAction-tu", "coreActionTutorial", -92, 87, true, true, false, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST, -1, "wait", 60, "sendmsg", "GameApp", "Message", "Forward", "wait_event", "*", "message", "pause in", "wait", 30, "sendmsg", "GameApp", "Message", "Forward", "meswait", "sendmsg", "*", "firstBalloon", "Touch", "game_mode"];
static var mSt01_000_SubScript003:Array = ["mescall", "m01_0711", "meswait", "game_mode"];
static var mSt01_000_SubScript005:Array = ["wait", 180, "balloon_picture", "m01_0770", "killer", -48, -112, 240, "wait", 120, "balloon_exclamation", "linne", 0, -120, "wait", 240, "balloon_picture", "m01_0780", "killer", 48, -112, 120, "wait", 180, "balloon_picture", "m01_0790", "linne", -48, -112, 120, "wait", 180, "balloon_picture", "m01_0800", "killer", 48, -112, 120, "center_flip", "killer", true, "motiontbl", "killer", "st01_killerA_010_mtbl", true, false, "wait", 72, "motiontbl", "killer", "st01_killerA_011_mtbl", true, false, "motion_wait", "killer", "center_flip", "linne", true, "motiontbl", "linne", "st01_linne_005_mtbl", true, false, "balloon_exclamation", "linne", 0, -120, "wait", 144, "balloon_picture", "m01_0810", "killer", 48, -112, 120, "motiontbl", "killer", "st01_killerA_012_mtbl", true, false, "motiontbl", "linne", "st01_linne_006_mtbl", true, false, "wait", 60];
static var ST01_000_THIRD_TIMELIMIT:int = 6;
static var mSt01_000_SubScript007:Array = ["demo_mode", "camera_move", 600, 192, 8, "camera_wait", "effect", "white_filter", "white_filter", 0, 0, true, true, false, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST, 199, "wait", 44, "center_flip", "killer", true, "motiontbl", "killer", "st01_killerA_013_mtbl", true, false, "center_flip", "killer", true, "motiontbl", "linne", "st01_linne_032_mtbl", true, false, "center_bgpos", "linne", 840, 359, "wait", 120, "mescall", "m01_0900", "gameover"];
static var mSt01_000_SubScript002:Array = ["demo_mode", "balloon_picture", "m01_0280", "killer", 16, -128, 90, "se_play", "sys_024", "balloon_yure", 1, 30, "wait", 120, "demo_mode", "camera_move", 344, 192, 8, "camera_wait", "effect", "white_filter", "white_filter", 0, 0, true, true, false, "", -1, -1, false, GameApp.EFFECT_PRIO_MOST, 199, "wait", 44, "center_flip", "killer", true, "motiontbl", "killer", "st01_killerA_013_mtbl", true, false, "center_flip", "linne", false, "motiontbl", "linne", "st01_linne_032_mtbl", true, false, "center_bgpos", "linne", 500, 359, "wait", 120, "mescall", "m01_0900", "gameover"];
static var ST01_000_SECOND_TIMELIMIT:int = 5;
static var mSt01_000_SubScript004:Array = ["mescall", "m01_0731", "meswait", "game_mode"];
static var mSt01_000_SubScript006:Array = ["balloon_picture", "m01_0861", "killer", 48, -112, 180, "wait", 480, "balloon_picture", "m01_0800", "killer", 48, -112, 120, "wait", 180, "balloon_picture", "m01_0050", "killer", 48, -112, 120, "center_flip", "killer", true, "motiontbl", "killer", "st01_killerA_012_mtbl", true, false, "motiontbl", "linne", "st01_linne_005_mtbl", true, false, "wait", 60];
static var ST01_000_MESSAGE_01_0711:int = 3;
static var ST01_000_SUBSCRIPT_NUM:int = 8;
static var ST01_000_SECOND_BALLOON:int = 4;
static var ST01_000_TELEPHONE_EVENT:int = 0;
static var ST01_000_FIRST_BALLOON:int = 1;
static var ST01_000_SECOND_DEATH:int = 7;
static var ST01_000_FIRST_DEATH:int = 2;
}
}//package
Section 94
//SubShutter (SubShutter)
package {
import flash.display.*;
public final class SubShutter extends MovieClip {
private var mbClosed:Boolean;// = true
private var mbClose:Boolean;// = true
public function SubShutter(){
addFrameScript(1, frame2, 9, frame10, 16, frame17);
y = GameApp.SUBSCREEN_POS_Y;
}
function frame17(){
mbClosed = true;
gotoAndPlay("start");
}
function frame10(){
stop();
}
function frame2(){
stop();
}
public function setInstantOpen():void{
mbClose = false;
mbClosed = false;
gotoAndPlay("instantOpen");
}
public function getIsClosed():Boolean{
return (mbClosed);
}
public function setOpen():Boolean{
if (!mbClose){
return (false);
};
mbClose = false;
mbClosed = false;
gotoAndPlay("open");
return (true);
}
public function setClose():void{
if (mbClose){
return;
};
mbClose = true;
gotoAndPlay("close");
}
}
}//package
Section 95
//SubStatus (SubStatus)
package {
import flash.display.*;
import flash.events.*;
public class SubStatus extends MovieClip {
private const AMPM_OFFSET_Y:int = 88;
private const TIME_MINUTE_00:int = 2;
private const ACTION:int = 2;
private const TIME_KARA:int = 6;
private const ITEM_NUM:int = 3;
private const TIME_HOUR_0:int = 1;
private const TIME_COLON:int = 5;
private const TIME_AMPM:int = 4;
private const TIME_FRAME:int = 60;
private const OBJ_CHANGE_FRAME:int = 32;
private const NAME:int = 1;
private const SAND_FRAME_SHIFT:int = 2;
private const TIME_HOUR_00:int = 0;
private const THUMBNAIL:int = 0;
private const SAND_FRAME:int = 4;
private const SAND_PATTERN_NUM:int = 8;
private const TIME_OFFSET_Y:int = -36;
private const TIME_NUM:int = 7;
private const TIME_MINUTE_0:int = 3;
private var mStatusData:Array;
private var mSubThumb:Loader;// = null
private var mGimmickBase:Loader;// = null
private var mSandGlassAnim:int;// = -1
private var mAmPmData:Array;
private var mActionNameTemp:Loader;// = null
private var mObjLayer:Sprite;// = null
private var mActionName:Loader;// = null
private var mGimmickNameLoaded:Boolean;// = false
private var mKakoModeString:Array;
private var mGimmickNameTemp:Loader;// = null
private var mThumbNailPosX:Array;
private var mStatusIndex:int;// = -1
private var mDigitalTime:Array;// = null
private var mbShutterDisp:Boolean;// = true
private var mObjLine:Loader;// = null
private var mSandGlassCount:int;// = 0
private var mActionBase:Loader;// = null
private var mSandGlassBasePosX:Array;
private var mSandGlassBaseSand:Loader;// = null
private var mBeforeDeath:Loader;// = null
private var mSandGlassSand:Array;// = null
private var mTimeLayer:Sprite;// = null
private var mbMoveFlag:Boolean;// = true
private var mGameApp:GameApp;// = null
private var mMainBg:Loader;// = null
private var mMainThumb:Loader;// = null
private var mTimePosYTbl:Array;// = null
private var mGimmickName:Loader;// = null
private var mMoveCount:int;// = -1
private var mActionNamePosX:int;// = 88
private var mActionNameLoaded:Boolean;// = false
private var mActionNamePosY:int;// = 168
private var mActionControl:Loader;// = null
private var mSandGlassBase:Loader;// = null
private var mBgLayer:Sprite;// = null
private var mDigitalCount:int;// = 0
private var mbSystemDisp:Boolean;// = true
private var mGimmickNamePosX:int;// = 8
private var mGimmickNamePosY:int;// = 152
static var KUNERI_00:int = 6;
static var CICEL_00:int = 0;
static var CICEL_01:int = 1;
static var BED_00:int = 4;
static var BED_01:int = 5;
static var HYOUSHIKI_00:int = 3;
static var DOOR_00:int = 2;
static var LINNE_00:int = 17;
static var SHADANKI_01:int = 19;
static var LADDER_01:int = 10;
static var SHADANKI_00:int = 18;
static var STATUS_OBJ_NUM:int = 25;
static var LADDER_00:int = 9;
static var GUITAR_00:int = 15;
static var GUITAR_01:int = 16;
static var BICYCLE_00:int = 20;
static var BICYCLE_01:int = 21;
static var BICYCLE_02:int = 22;
static var ARM_00:int = 13;
static var BICYCLE_04:int = 24;
static var LIGHT_00:int = 11;
static var BICYCLE_03:int = 23;
static var SWITCH_00:int = 7;
static var SWITCH_01:int = 8;
static var ARM_01:int = 14;
static var IRONBALL_00:int = 12;
public function SubStatus(_arg1:GameApp){
var _local2:int;
mStatusData = ["st01a_th_00", "cmn_gn_00", "cmn_acn_00_1", "st01b_th_04", "cmn_gn_00", "cmn_acn_00_1", "st01a_th_01", "st06_gn_05", "cmn_acn_00_0", "st01a_th_02", "st01a_gn_02", "cmn_acn_00_0", "st01a_th_03", "st01a_gn_03", "st01a_acn_03_0", "st01a_th_03", "st01a_gn_03", "st01a_acn_03_1", "st01a_th_04", "cmn_gn_00", "cmn_acn_00_0", "st01a_th_10", "st01a_gn_10", "st01a_acn_10_0", "st01a_th_10", "st01a_gn_10", "cmn_acn_00_0", "st01a_th_11", "st01a_gn_11", "st01a_acn_11_0", "st01a_th_11", "st01a_gn_11", "st01a_acn_11_1", "st01a_th_12", "st01a_gn_12", "cmn_acn_00_0", "st01a_th_13", "st01a_gn_13", "cmn_acn_00_0", "st01a_th_14", "st01a_gn_14", "st06_acn_05_0", "st01a_th_14", "st01a_gn_14", "cmn_acn_00_0", "st01a_th_0d", "st01a_gn_0d", "st01a_acn_0d_0", "st01a_th_16", "st01a_gn_0d", "cmn_acn_00_0", "st01a_th_0b", "cmn_gn_00", "cmn_acn_00_0", "st01a_th_0c", "st01a_gn_0c", "st01a_acn_0c_0", "st01a_th_0c", "st01a_gn_0c", "st01a_acn_0c_1", "st01a_th_0e", "st01a_gn_0e", "st01a_acn_0e_0", "st01a_th_0e", "st01a_gn_0e", "cmn_acn_00_0", "st01a_th_0e", "st01a_gn_0e", "st01a_acn_0e_2", "st01a_th_0e", "st01a_gn_0e", "st01a_acn_0e_2", "st01a_th_0e", "st01a_gn_0e", "cmn_acn_00_0"];
mKakoModeString = ["", "_mono"];
mSandGlassBasePosX = [216, 200];
mThumbNailPosX = [40, 32];
mAmPmData = ["cmn_upn_06_01", "cmn_upn_06_02"];
super();
mGameApp = _arg1;
mStatusIndex = -1;
mMoveCount = -1;
y = GameApp.SUBSCREEN_POS_Y;
mBgLayer = new Sprite();
mObjLayer = new Sprite();
mTimeLayer = new Sprite();
addChild(mBgLayer);
addChild(mObjLayer);
addChild(mTimeLayer);
mTimePosYTbl = [];
mTimePosYTbl[0] = 72;
mTimePosYTbl[1] = 88;
mTimePosYTbl[2] = 112;
mTimePosYTbl[3] = 128;
mGimmickNamePosX = 8;
mGimmickNamePosY = 152;
mActionNamePosX = 88;
mActionNamePosY = 168;
if (LanguageType.LanguageType != ""){
_local2 = 0;
while (_local2 < 4) {
mTimePosYTbl[_local2] = (mTimePosYTbl[_local2] + TIME_OFFSET_Y);
_local2++;
};
mGimmickNamePosX = 0;
mActionNamePosX = 8;
};
addEventListener(Event.ENTER_FRAME, move);
}
private function setSandAnimation():void{
var _local1:int;
if (mSandGlassSand == null){
mSandGlassSand = [];
_local1 = 0;
while (_local1 < SAND_PATTERN_NUM) {
mSandGlassSand[_local1] = Utility.createLoaderAndPlace(mTimeLayer, mGameApp, ("cmn_upp_0b_07_0" + _local1.toString()), 222, 99);
_local1++;
};
mSandGlassCount = 0;
mSandGlassAnim = -1;
};
var _local2 = (mSandGlassCount >> SAND_FRAME_SHIFT);
if (_local2 == mSandGlassAnim){
return;
};
mSandGlassAnim = _local2;
_local1 = 0;
while (_local1 < SAND_PATTERN_NUM) {
if (_local1 == mSandGlassAnim){
mSandGlassSand[_local1].visible = true;
} else {
mSandGlassSand[_local1].visible = false;
};
_local1++;
};
}
private function setMainObject():void{
var _local1:uint = mGameApp.isKAKO();
mStatusIndex = GameApp.StatusIndex;
mMainThumb = Utility.removeAndCreateLoaderAndPlace(mMainThumb, mObjLayer, mGameApp, (mStatusData[((mStatusIndex * ITEM_NUM) + THUMBNAIL)] + mKakoModeString[_local1]), mThumbNailPosX[_local1], 24);
mGimmickName.loadBytes(mGameApp.getBinaryByteArray((mStatusData[((mStatusIndex * ITEM_NUM) + NAME)] + LanguageType.LanguageType)));
mActionName.loadBytes(mGameApp.getBinaryByteArray((mStatusData[((mStatusIndex * ITEM_NUM) + ACTION)] + LanguageType.LanguageType)));
}
public function setShutterDisp(_arg1:Boolean):void{
mbShutterDisp = _arg1;
}
public function setSystemDisp(_arg1:Boolean):void{
mbSystemDisp = _arg1;
}
public function getIsAction(_arg1:int):Boolean{
if (_arg1 < 0){
return (false);
};
if (_arg1 >= STATUS_OBJ_NUM){
return (false);
};
if (mStatusData[((_arg1 * ITEM_NUM) + ACTION)] == "cmn_acn_00_0"){
return (false);
};
if (mStatusData[((_arg1 * ITEM_NUM) + ACTION)] == "cmn_acn_00_1"){
return (false);
};
return (true);
}
private function loadInitGimmickName(_arg1:Event):void{
mGimmickNameLoaded = true;
mGimmickNameTemp.contentLoaderInfo.removeEventListener(Event.INIT, loadInitGimmickName);
}
private function loadInitActionName(_arg1:Event):void{
mActionNameLoaded = true;
mActionNameTemp.contentLoaderInfo.removeEventListener(Event.INIT, loadInitActionName);
}
public function changeSetting():void{
var _local2:int;
if (!mGameApp.getBinaryDataIsLoadEnd()){
return;
};
var _local1:* = mGameApp.isKAKO();
mSandGlassCount = 0;
mSandGlassAnim = -1;
mDigitalCount = 0;
mMainBg = Utility.removeAndCreateLoaderAndPlace(mMainBg, mBgLayer, mGameApp, ("cmn_upn_00" + mKakoModeString[_local1]), 0, 0);
mObjLine = Utility.removeAndCreateLoaderAndPlace(mObjLine, mBgLayer, mGameApp, ("cmn_upn_01" + mKakoModeString[_local1]), 0, 76);
mBeforeDeath = (Utility.removeChildAndRelease(mBgLayer, mBeforeDeath) as Loader);
if (_local1){
mBeforeDeath = Utility.createLoaderAndPlace(mBgLayer, mGameApp, ("cmn_upp_05" + LanguageType.LanguageType), 0, 0);
};
var _local3:Array = ["cmn_upn_05", "cmn_upp_0b_00"];
mSandGlassBase = Utility.removeAndCreateLoaderAndPlace(mSandGlassBase, mTimeLayer, mGameApp, _local3[_local1], mSandGlassBasePosX[_local1], 0);
mSandGlassBaseSand = (Utility.removeChildAndRelease(mTimeLayer, mSandGlassBaseSand) as Loader);
if (mSandGlassSand){
_local2 = 0;
while (_local2 < SAND_PATTERN_NUM) {
mSandGlassSand[_local2] = (Utility.removeChildAndRelease(mTimeLayer, mSandGlassSand[_local2]) as Loader);
_local2++;
};
mSandGlassSand = null;
};
if (_local1){
setSandAnimation();
mSandGlassBaseSand = Utility.createLoaderAndPlace(mTimeLayer, mGameApp, "cmn_upp_0b_04", 200, 0);
};
if (mDigitalTime){
_local2 = 0;
while (_local2 < TIME_NUM) {
mDigitalTime[_local2] = (Utility.removeChildAndRelease(mTimeLayer, mDigitalTime[_local2]) as Loader);
_local2++;
};
mDigitalTime = null;
};
if (!_local1){
setDigitalTimeAnim();
};
var _local4:Array = ["cmn_upn_03", "cmn_upp_03"];
var _local5:Array = ["cmn_upn_02", "cmn_upp_02"];
mActionBase = Utility.removeAndCreateLoaderAndPlace(mActionBase, mBgLayer, mGameApp, _local4[_local1], 0, 160);
mGimmickBase = Utility.removeAndCreateLoaderAndPlace(mGimmickBase, mBgLayer, mGameApp, (_local5[_local1] + LanguageType.LanguageType), 0, 152);
if (LanguageType.LanguageType == ""){
mActionControl = Utility.removeAndCreateLoaderAndPlace(mActionControl, mBgLayer, mGameApp, ("cmn_up_01" + LanguageType.LanguageType), 0, 172);
};
mMainThumb = Utility.removeAndCreateLoaderAndPlace(mMainThumb, mObjLayer, mGameApp, ("st01a_th_00" + mKakoModeString[_local1]), mThumbNailPosX[_local1], 24);
mGimmickName = Utility.removeAndCreateLoaderAndPlace(mGimmickName, mObjLayer, mGameApp, ("st01a_gn_00" + LanguageType.LanguageType), mGimmickNamePosX, mGimmickNamePosY);
mActionName = Utility.removeAndCreateLoaderAndPlace(mActionName, mObjLayer, mGameApp, ("cmn_acn_00_0" + LanguageType.LanguageType), mActionNamePosX, mActionNamePosY);
mGimmickNameTemp = (Utility.removeChildAndRelease(mObjLayer, mGimmickNameTemp) as Loader);
mGimmickNameLoaded = false;
mActionNameTemp = (Utility.removeChildAndRelease(mObjLayer, mActionNameTemp) as Loader);
mActionNameLoaded = false;
}
public function setPause(_arg1:Boolean, _arg2:Boolean):void{
if (_arg1){
mbMoveFlag = false;
return;
};
if (_arg2){
setMainObject();
};
mSubThumb = (Utility.removeChildAndRelease(mObjLayer, mSubThumb) as Loader);
mMoveCount = -1;
mbMoveFlag = true;
}
private function move(_arg1:Event):void{
if (((mbShutterDisp) && (mbSystemDisp))){
visible = true;
} else {
visible = false;
};
if (!mGameApp.getBinaryDataIsLoadEnd()){
return;
};
if (!mbMoveFlag){
return;
};
var _local2:uint = mGameApp.isKAKO();
if (mGimmickNameLoaded){
Utility.removeChildAndRelease(mObjLayer, mGimmickName);
mGimmickName = mGimmickNameTemp;
mGimmickName.x = mGimmickNamePosX;
mGimmickName.y = mGimmickNamePosY;
mObjLayer.addChild(mGimmickName);
mGimmickNameTemp = null;
mGimmickNameLoaded = false;
};
if (mActionNameLoaded){
Utility.removeChildAndRelease(mObjLayer, mActionName);
mActionName = mActionNameTemp;
mActionName.x = mActionNamePosX;
mActionName.y = mActionNamePosY;
mObjLayer.addChild(mActionName);
mActionNameTemp = null;
mActionNameLoaded = false;
};
if (((((((!((mStatusIndex == GameApp.StatusIndex))) && ((mMoveCount == -1)))) && (!((GameApp.StatusIndex == -1))))) && (!((GameApp.StatusIndex == LINNE_00))))){
if (mStatusIndex == -1){
setMainObject();
} else {
mMoveCount = 0;
mStatusIndex = GameApp.StatusIndex;
mSubThumb = Utility.removeAndCreateLoaderAndPlace(mSubThumb, mObjLayer, mGameApp, (mStatusData[((mStatusIndex * ITEM_NUM) + THUMBNAIL)] + mKakoModeString[_local2]), (mThumbNailPosX[_local2] + 0x0100), 24);
if (mGimmickNameTemp == null){
mGimmickNameTemp = new Loader();
};
mGimmickNameTemp.loadBytes(mGameApp.getBinaryByteArray((mStatusData[((mStatusIndex * ITEM_NUM) + NAME)] + LanguageType.LanguageType)));
mGimmickNameLoaded = false;
mGimmickNameTemp.contentLoaderInfo.addEventListener(Event.INIT, loadInitGimmickName);
if (mActionNameTemp == null){
mActionNameTemp = new Loader();
};
mActionNameTemp.loadBytes(mGameApp.getBinaryByteArray((mStatusData[((mStatusIndex * ITEM_NUM) + ACTION)] + LanguageType.LanguageType)));
mActionNameLoaded = false;
mActionNameTemp.contentLoaderInfo.addEventListener(Event.INIT, loadInitActionName);
};
};
if (mMoveCount >= 0){
mMainThumb.x = (mThumbNailPosX[_local2] - (mMoveCount * 8));
if (mMainThumb.x < -128){
mMainThumb.x = -128;
};
mSubThumb.x = ((mThumbNailPosX[_local2] + 0x0100) - (mMoveCount * 8));
mMoveCount++;
if (mMoveCount > OBJ_CHANGE_FRAME){
Utility.removeChildAndRelease(mObjLayer, mMainThumb);
mMainThumb = mSubThumb;
mMainThumb.x = mThumbNailPosX[_local2];
mMainThumb.y = 24;
mSubThumb = null;
mMoveCount = -1;
};
};
if (_local2){
mSandGlassCount++;
if (mSandGlassCount >= (SAND_PATTERN_NUM * SAND_FRAME)){
mSandGlassCount = 0;
};
setSandAnimation();
} else {
setDigitalTimeAnim();
};
}
private function setDigitalTimeAnim():void{
var _local1:int;
var _local4:*;
var _local5:int;
var _local6:int;
var _local2 = 1901;
var _local3:int;
if (_local2 >= 1200){
_local3 = 1;
_local2 = (_local2 - 1200);
};
if (mDigitalTime == null){
mDigitalTime = [];
_local4 = 1000;
_local1 = TIME_HOUR_00;
while (_local1 <= TIME_MINUTE_0) {
_local5 = (_local2 / _local4);
_local2 = (_local2 % _local4);
_local4 = (_local4 / 10);
_local6 = (_local5 + 3);
mDigitalTime[_local1] = Utility.createLoaderAndPlace(mTimeLayer, mGameApp, ("cmn_upn_06_" + Utility.numberToString(_local6, 2)), 216, mTimePosYTbl[_local1]);
if ((((_local1 == TIME_HOUR_00)) && ((_local5 == 0)))){
mDigitalTime[_local1].visible = false;
};
_local1++;
};
mDigitalTime[TIME_AMPM] = Utility.createLoaderAndPlace(mTimeLayer, mGameApp, mAmPmData[_local3], 216, 0);
mDigitalTime[TIME_COLON] = Utility.createLoaderAndPlace(mTimeLayer, mGameApp, "cmn_upn_06_00", 216, 104);
mDigitalTime[TIME_KARA] = Utility.createLoaderAndPlace(mTimeLayer, mGameApp, "cmn_upn_06_13", 216, 144);
if (LanguageType.LanguageType != ""){
mDigitalTime[TIME_AMPM].y = (mDigitalTime[TIME_AMPM].y + AMPM_OFFSET_Y);
mDigitalTime[TIME_COLON].y = (mDigitalTime[TIME_COLON].y + TIME_OFFSET_Y);
mDigitalTime[TIME_KARA].visible = false;
};
mDigitalCount = 0;
};
mDigitalCount++;
if (mDigitalCount > TIME_FRAME){
mDigitalCount = 0;
if (mDigitalTime[TIME_COLON].visible){
mDigitalTime[TIME_COLON].visible = false;
} else {
mDigitalTime[TIME_COLON].visible = true;
};
};
}
}
}//package
Section 96
//SwfMovie (SwfMovie)
package {
import flash.display.*;
import flash.events.*;
public class SwfMovie extends Sprite {
private var mCurrentFrame:int;// = 0
private var mbEnd:Boolean;// = false
private var mParentMotion:MotionObject;// = null
private var mbLoadEnd:Boolean;// = false
private var mPosX:int;// = 0
private var mPosY:int;// = 0
private var mbSuicide:Boolean;// = false
private var mLoader:Loader;// = null
private var mGameApp:GameApp;// = null
private var mCenterPosIndex:int;// = -1
private var mPriority:uint;// = 0
private var mbFixPos:Boolean;// = true
private var mLifeTime:int;// = -1
private var mbLoop:Boolean;// = false
public function SwfMovie(){
mLoader = null;
mbLoadEnd = false;
mPosX = 0;
mPosY = 0;
mbSuicide = false;
mbFixPos = true;
mbLoop = false;
mbEnd = false;
mPriority = 0;
mLifeTime = -1;
mCurrentFrame = 0;
addEventListener(Event.ENTER_FRAME, move);
}
public function setParentInfo(_arg1:MotionObject, _arg2:int):void{
mParentMotion = _arg1;
mCenterPosIndex = _arg2;
}
public function getIsMovieReachFrame(_arg1:int):Boolean{
if (!mbLoadEnd){
return (false);
};
if ((((mLifeTime >= 0)) && ((mCurrentFrame >= (mLifeTime - _arg1))))){
return (true);
};
var _local2:MovieClip = (mLoader.content as MovieClip);
if (_local2 == null){
return (false);
};
if (_local2.currentFrame >= (_local2.totalFrames - _arg1)){
return (true);
};
return (false);
}
private function adjustPosAngle():void{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local1:int = mPosX;
var _local2:int = mPosY;
if (mParentMotion){
_local1 = (Utility.getMotionPosXByIndexPos(mParentMotion, mCenterPosIndex, mPosX) + mPosX);
_local2 = (Utility.getMotionPosYByIndexPos(mParentMotion, mCenterPosIndex, mPosY) + mPosY);
};
if (mbFixPos){
x = _local1;
y = _local2;
} else {
x = ((_local1 - GameApp.BgPosX) - 128);
y = ((_local2 - GameApp.BgPosY) - 96);
};
if (rotation != 0){
_local3 = ((rotation * Math.PI) / 180);
_local4 = Math.sin(_local3);
_local5 = Math.cos(_local3);
_local6 = ((128 * _local5) - (96 * _local4));
_local7 = ((128 * _local4) + (96 * _local5));
x = (x + (127 - _local6));
y = (y + (95 - _local7));
};
}
public function preFinish():void{
removeLoader();
removeEventListener(Event.ENTER_FRAME, move);
}
public function getIsEnd():Boolean{
return (mbEnd);
}
private function loadInit(_arg1:Event):void{
mbLoadEnd = true;
addChild(mLoader);
adjustPosAngle();
}
public function getPriority():uint{
return (mPriority);
}
public function getIsSuicide():Boolean{
return (mbSuicide);
}
private function removeLoader():void{
if (!mbLoadEnd){
if (mLoader){
mLoader.unload();
mLoader.contentLoaderInfo.removeEventListener(Event.INIT, loadInit);
mLoader = null;
};
return;
};
mbLoadEnd = false;
if (!mLoader){
return;
};
mLoader.unload();
removeChild(mLoader);
mLoader.contentLoaderInfo.removeEventListener(Event.INIT, loadInit);
mLoader = null;
}
public function loadSwf(_arg1:GameApp, _arg2:String, _arg3:String, _arg4:int, _arg5:int, _arg6:Boolean, _arg7:Boolean, _arg8:Boolean, _arg9:uint, _arg10:int):void{
removeLoader();
name = _arg3;
mGameApp = _arg1;
mPosX = _arg4;
mPosY = _arg5;
mbSuicide = _arg6;
mbFixPos = _arg7;
mbLoop = _arg8;
mbEnd = false;
mbLoadEnd = false;
mPriority = _arg9;
mLifeTime = _arg10;
mCurrentFrame = 0;
mLoader = new Loader();
mLoader.loadBytes(mGameApp.getBinaryByteArray(_arg2));
mLoader.contentLoaderInfo.addEventListener(Event.INIT, loadInit);
}
private function move(_arg1:Event):void{
if (!mbLoadEnd){
return;
};
adjustPosAngle();
mCurrentFrame++;
if (getIsMovieReachFrame(0)){
if (((!(mbLoop)) && (mbSuicide))){
removeLoader();
mbEnd = true;
};
};
}
}
}//package
Section 97
//sys_001 (sys_001)
package {
import flash.media.*;
public dynamic class sys_001 extends Sound {
}
}//package
Section 98
//sys_002 (sys_002)
package {
import flash.media.*;
public dynamic class sys_002 extends Sound {
}
}//package
Section 99
//sys_003 (sys_003)
package {
import flash.media.*;
public dynamic class sys_003 extends Sound {
}
}//package
Section 100
//sys_004 (sys_004)
package {
import flash.media.*;
public dynamic class sys_004 extends Sound {
}
}//package
Section 101
//sys_005 (sys_005)
package {
import flash.media.*;
public dynamic class sys_005 extends Sound {
}
}//package
Section 102
//sys_006 (sys_006)
package {
import flash.media.*;
public dynamic class sys_006 extends Sound {
}
}//package
Section 103
//sys_007 (sys_007)
package {
import flash.media.*;
public dynamic class sys_007 extends Sound {
}
}//package
Section 104
//sys_008 (sys_008)
package {
import flash.media.*;
public dynamic class sys_008 extends Sound {
}
}//package
Section 105
//sys_009 (sys_009)
package {
import flash.media.*;
public dynamic class sys_009 extends Sound {
}
}//package
Section 106
//sys_010 (sys_010)
package {
import flash.media.*;
public dynamic class sys_010 extends Sound {
}
}//package
Section 107
//sys_011 (sys_011)
package {
import flash.media.*;
public dynamic class sys_011 extends Sound {
}
}//package
Section 108
//sys_012 (sys_012)
package {
import flash.media.*;
public dynamic class sys_012 extends Sound {
}
}//package
Section 109
//sys_013 (sys_013)
package {
import flash.media.*;
public dynamic class sys_013 extends Sound {
}
}//package
Section 110
//sys_014 (sys_014)
package {
import flash.media.*;
public dynamic class sys_014 extends Sound {
}
}//package
Section 111
//sys_015 (sys_015)
package {
import flash.media.*;
public dynamic class sys_015 extends Sound {
}
}//package
Section 112
//sys_016 (sys_016)
package {
import flash.media.*;
public dynamic class sys_016 extends Sound {
}
}//package
Section 113
//sys_017 (sys_017)
package {
import flash.media.*;
public dynamic class sys_017 extends Sound {
}
}//package
Section 114
//sys_018 (sys_018)
package {
import flash.media.*;
public dynamic class sys_018 extends Sound {
}
}//package
Section 115
//sys_019 (sys_019)
package {
import flash.media.*;
public dynamic class sys_019 extends Sound {
}
}//package
Section 116
//sys_020 (sys_020)
package {
import flash.media.*;
public dynamic class sys_020 extends Sound {
}
}//package
Section 117
//sys_021 (sys_021)
package {
import flash.media.*;
public dynamic class sys_021 extends Sound {
}
}//package
Section 118
//sys_022 (sys_022)
package {
import flash.media.*;
public dynamic class sys_022 extends Sound {
}
}//package
Section 119
//sys_023 (sys_023)
package {
import flash.media.*;
public dynamic class sys_023 extends Sound {
}
}//package
Section 120
//sys_024 (sys_024)
package {
import flash.media.*;
public dynamic class sys_024 extends Sound {
}
}//package
Section 121
//sys_025 (sys_025)
package {
import flash.media.*;
public dynamic class sys_025 extends Sound {
}
}//package
Section 122
//sys_026 (sys_026)
package {
import flash.media.*;
public dynamic class sys_026 extends Sound {
}
}//package
Section 123
//sys_027 (sys_027)
package {
import flash.media.*;
public dynamic class sys_027 extends Sound {
}
}//package
Section 124
//TouchArea (TouchArea)
package {
import flash.display.*;
import flash.events.*;
public final class TouchArea extends MovieClip {
public var mbMouseDown;// = false
public var mbMouseUp;// = false
public function TouchArea(){
mbMouseDown = false;
mbMouseUp = false;
addEventListener(MouseEvent.MOUSE_DOWN, mouseLDown);
addEventListener(MouseEvent.MOUSE_UP, mouseLUp);
}
private function mouseLUp(_arg1:MouseEvent):void{
mbMouseUp = true;
}
private function mouseLDown(_arg1:MouseEvent):void{
trace("down");
mbMouseDown = true;
}
}
}//package
Section 125
//TrickButtonMovieClip (TrickButtonMovieClip)
package {
import flash.events.*;
public class TrickButtonMovieClip extends BaseButtonMovieClip {
public function TrickButtonMovieClip(_arg1:GameApp){
y = GameApp.TRICK_BUTTON_POS_Y;
buttonMode = true;
visible = false;
mStatus = GameApp.BUTTON_HIDE;
mChangeTime = 0;
mGameApp = _arg1;
addEventListener(MouseEvent.CLICK, mouseClick);
addEventListener(Event.ENTER_FRAME, move);
}
protected function move(_arg1:Event):void{
mChangeTime++;
if (mStatus == GameApp.BUTTON_SELECT){
if (mChangeTime == GameApp.ACTION_TIME){
mGameApp.setButtonClick(GameApp.BUTTON_TRICK);
};
};
commonFrameFunc();
}
protected function mouseClick(_arg1:MouseEvent):void{
if (!visible){
return;
};
if (mStatus != GameApp.BUTTON_DISP){
return;
};
if (GameApp.Pause){
return;
};
setStatus(GameApp.BUTTON_SELECT);
}
}
}//package
Section 126
//TrickButtonMovieClip_en (TrickButtonMovieClip_en)
package {
public class TrickButtonMovieClip_en extends TrickButtonMovieClip {
public function TrickButtonMovieClip_en(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 127
//TrickButtonMovieClip_fr (TrickButtonMovieClip_fr)
package {
public class TrickButtonMovieClip_fr extends TrickButtonMovieClip {
public function TrickButtonMovieClip_fr(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 128
//TrickButtonMovieClip_gr (TrickButtonMovieClip_gr)
package {
public class TrickButtonMovieClip_gr extends TrickButtonMovieClip {
public function TrickButtonMovieClip_gr(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 129
//TrickButtonMovieClip_it (TrickButtonMovieClip_it)
package {
public class TrickButtonMovieClip_it extends TrickButtonMovieClip {
public function TrickButtonMovieClip_it(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 130
//TrickButtonMovieClip_sp (TrickButtonMovieClip_sp)
package {
public class TrickButtonMovieClip_sp extends TrickButtonMovieClip {
public function TrickButtonMovieClip_sp(_arg1:GameApp){
super(_arg1);
}
}
}//package
Section 131
//Utility (Utility)
package {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public final class Utility {
static var mEnumIndex:int = -1;
static function Enum(_arg1:int=-1):int{
if (_arg1 != -1){
mEnumIndex = _arg1;
} else {
mEnumIndex++;
};
return (mEnumIndex);
}
static function getLength(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number = (_arg3 - _arg1);
var _local6:Number = (_arg4 - _arg2);
var _local7:Number = Math.sqrt(((_local5 * _local5) + (_local6 * _local6)));
return (_local7);
}
static function getCurrentValueStartTarget(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int, _arg5:int):Number{
if (_arg4 == 0){
return (_arg1);
};
if (_arg5 > _arg4){
_arg5 = _arg4;
};
var _local6:Number = ((((_arg3 - _arg2) * _arg5) / _arg4) + _arg2);
return (_local6);
}
static function drawBitmapPolygon(_arg1:Graphics, _arg2:BitmapData, _arg3:Array, _arg4:Array, _arg5:Array, _arg6:Array){
var _local12:Matrix;
var _local7:uint = _arg3.length;
var _local8:uint = _arg4.length;
var _local9:uint = _arg5.length;
var _local10:uint = _arg6.length;
if (_local7 != _local8){
trace("drawBitmapPolygon Arg Length Error");
return;
};
if (_local7 != _local9){
trace("drawBitmapPolygon Arg Length Error");
return;
};
if (_local7 != _local10){
trace("drawBitmapPolygon Arg Length Error");
return;
};
if (_local7 < 3){
trace("drawBitmapPolygon Arg Length Error");
return;
};
var _local11:uint;
_local11 = 0;
while (_local11 < (_local7 - 2)) {
_local12 = createMatrixPoint(_arg3[(_local11 + 0)], _arg4[(_local11 + 0)], _arg3[(_local11 + 1)], _arg4[(_local11 + 1)], _arg3[(_local11 + 2)], _arg4[(_local11 + 2)], _arg5[(_local11 + 0)], _arg6[(_local11 + 0)], _arg5[(_local11 + 1)], _arg6[(_local11 + 1)], _arg5[(_local11 + 2)], _arg6[(_local11 + 2)]);
_arg1.beginBitmapFill(_arg2, _local12);
drawTriangle(_arg1, new Point(_arg3[(_local11 + 0)], _arg4[(_local11 + 0)]), new Point(_arg3[(_local11 + 1)], _arg4[(_local11 + 1)]), new Point(_arg3[(_local11 + 2)], _arg4[(_local11 + 2)]), _local12);
_arg1.endFill();
_local11++;
};
}
static function getMotionPosXByIndexPos(_arg1:MotionObject, _arg2:int, _arg3:int):int{
if (_arg1 == null){
return (_arg3);
};
if (_arg2 < 0){
return (_arg3);
};
if (_arg2 >= 10){
return (_arg1.getCorePosX((_arg2 - 10)));
};
return (_arg1.getCenterPosX(_arg2));
}
static function getMotionPosYByIndexPos(_arg1:MotionObject, _arg2:int, _arg3:int):int{
if (_arg1 == null){
return (_arg3);
};
if (_arg2 < 0){
return (_arg3);
};
if (_arg2 >= 10){
return (_arg1.getCorePosY((_arg2 - 10)));
};
return (_arg1.getCenterPosY(_arg2));
}
static function drawTriangle(_arg1:Graphics, _arg2:Point, _arg3:Point, _arg4:Point, _arg5:Matrix):void{
_arg2 = _arg5.transformPoint(_arg2);
_arg3 = _arg5.transformPoint(_arg3);
_arg4 = _arg5.transformPoint(_arg4);
_arg1.moveTo(_arg2.x, _arg2.y);
_arg1.lineTo(_arg3.x, _arg3.y);
_arg1.lineTo(_arg4.x, _arg4.y);
_arg1.lineTo(_arg2.x, _arg2.y);
}
static function removeChildAndRelease(_arg1:Sprite, _arg2:DisplayObject):DisplayObject{
if (_arg2){
_arg1.removeChild(_arg2);
};
return (null);
}
static function getMotionRotationByIndexPos(_arg1:MotionObject, _arg2:int, _arg3:int, _arg4:Number):Number{
if (_arg1 == null){
return (_arg4);
};
if (_arg2 < 0){
return (_arg4);
};
if (_arg3 < 0){
return (_arg4);
};
var _local5:int = getMotionPosXByIndexPos(_arg1, _arg2, 0);
var _local6:int = getMotionPosYByIndexPos(_arg1, _arg2, 0);
var _local7:int = getMotionPosXByIndexPos(_arg1, _arg3, 0);
var _local8:int = getMotionPosYByIndexPos(_arg1, _arg3, 0);
var _local9:Number = getLength(_local5, _local6, _local7, _local8);
var _local10:Number = (_local7 - _local5);
var _local11:Number = (_local8 - _local6);
if (_local9 == 0){
return (_arg4);
};
var _local12:Number = Math.acos((_local10 / _local9));
if (_local11 < 0){
_local12 = ((Math.PI * 2) - _local12);
};
var _local13:Number = ((_local12 * 180) / Math.PI);
return (_local13);
}
static function removeAndCreateLoaderAndPlace(_arg1:Loader, _arg2:Sprite, _arg3:GameApp, _arg4:String, _arg5:Number, _arg6:Number):Loader{
removeChildAndRelease(_arg2, _arg1);
var _local7:Loader = createLoaderAndPlace(_arg2, _arg3, _arg4, _arg5, _arg6);
return (_local7);
}
static function createMatrixPoint(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int, _arg9:int, _arg10:int, _arg11:int, _arg12:int):Matrix{
var _local13:Matrix = new Matrix((_arg3 - _arg1), (_arg4 - _arg2), (_arg5 - _arg1), (_arg6 - _arg2));
_local13.invert();
var _local14:Matrix = new Matrix((_arg9 - _arg7), (_arg10 - _arg8), (_arg11 - _arg7), (_arg12 - _arg8));
var _local15:Matrix = new Matrix();
_local15.translate(-(_arg1), -(_arg2));
_local15.concat(_local13);
_local15.concat(_local14);
_local15.translate(_arg7, _arg8);
return (_local15);
}
static function numberToString(_arg1:Number, _arg2:uint):String{
var _local4:uint;
var _local5:uint;
var _local3:* = _arg1.toString();
_local4 = 1;
while (_local4 < _arg2) {
_local5 = Math.pow(10, _local4);
if (_arg1 < _local5){
_local3 = ("0" + _local3);
};
_local4++;
};
return (_local3);
}
static function getRandom(_arg1:int, _arg2:int):int{
var _local3:int = ((Math.random() * ((_arg2 - _arg1) + 1)) + _arg1);
return (_local3);
}
static function drawBitmapTriangle(_arg1:Graphics, _arg2:BitmapData, _arg3:Point, _arg4:Point, _arg5:Point, _arg6:Point, _arg7:Point, _arg8:Point):void{
var _local9:Matrix = createMatrix(_arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
_arg1.beginBitmapFill(_arg2, _local9);
drawTriangle(_arg1, _arg3, _arg4, _arg5, _local9);
_arg1.endFill();
}
static function removeAllChildren(_arg1:Sprite):void{
var _local2:uint;
var _local3:uint = _arg1.numChildren;
_local2 = 0;
while (_local2 < _local3) {
_arg1.removeChildAt(0);
_local2++;
};
}
static function createMatrix(_arg1:Point, _arg2:Point, _arg3:Point, _arg4:Point, _arg5:Point, _arg6:Point):Matrix{
var _local7:Matrix = new Matrix((_arg2.x - _arg1.x), (_arg2.y - _arg1.y), (_arg3.x - _arg1.x), (_arg3.y - _arg1.y));
_local7.invert();
var _local8:Matrix = new Matrix((_arg5.x - _arg4.x), (_arg5.y - _arg4.y), (_arg6.x - _arg4.x), (_arg6.y - _arg4.y));
var _local9:Matrix = new Matrix();
_local9.translate(-(_arg1.x), -(_arg1.y));
_local9.concat(_local7);
_local9.concat(_local8);
_local9.translate(_arg4.x, _arg4.y);
return (_local9);
}
static function createLoaderAndPlace(_arg1:Sprite, _arg2:GameApp, _arg3:String, _arg4:Number, _arg5:Number):Loader{
var _local6:Loader = new Loader();
_local6.loadBytes(_arg2.getBinaryByteArray(_arg3));
_local6.x = _arg4;
_local6.y = _arg5;
_arg1.addChild(_local6);
return (_local6);
}
}
}//package
Section 132
//WorkMeter (WorkMeter)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
public final class WorkMeter extends MovieClip {
private var mTextField:TextField;
private var mOldTimer:uint;
private var mDrawCount:uint;
public function WorkMeter(){
mDrawCount = 0;
mOldTimer = getTimer();
mTextField = new TextField();
mTextField.background = true;
mTextField.backgroundColor = 0xFFFFFF;
mTextField.textColor = 0;
mTextField.autoSize = TextFieldAutoSize.LEFT;
addChild(mTextField);
addEventListener(Event.ENTER_FRAME, move);
}
private function move(_arg1:Event):void{
mDrawCount++;
if ((getTimer() - mOldTimer) < 1000){
return;
};
mTextField.text = (mDrawCount + " / 60");
mDrawCount = 0;
mOldTimer = getTimer();
}
}
}//package