Section 1
//alice_armLMC1_41 (AliceMargatroid_fla.alice_armLMC1_41)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class alice_armLMC1_41 extends MovieClip {
public var sailorMC:MovieClip;
}
}//package AliceMargatroid_fla
Section 2
//alice_bodyLMC1_61 (AliceMargatroid_fla.alice_bodyLMC1_61)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class alice_bodyLMC1_61 extends MovieClip {
public var socksMC:MovieClip;
public var vaginaHA:MovieClip;
public var calfHA:MovieClip;
public var navelHA:MovieClip;
public var skirtBMC:MovieClip;
public var legRMC:MovieClip;
public var pantsMC:MovieClip;
public var mosaicMC:MovieClip;
public var thighHA:MovieClip;
public var hipHA:MovieClip;
public var skirtMC:MovieClip;
public var kabochaMC:MovieClip;
public function alice_bodyLMC1_61(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 3
//alice_bodyUMC1_20 (AliceMargatroid_fla.alice_bodyUMC1_20)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class alice_bodyUMC1_20 extends MovieClip {
public var armLMC:MovieClip;
public var sailorMC2:MovieClip;
public var pieLHA:MovieClip;
public var sailorMC1:MovieClip;
public var nunoMC:MovieClip;
public var headMC:MovieClip;
public var neckHA:MovieClip;
public var brassiereMC:MovieClip;
public var pieRHA:MovieClip;
public var kabochaMC:MovieClip;
public var armpitHA:MovieClip;
public function alice_bodyUMC1_20(){
addFrameScript(9, frame10, 34, frame35);
}
function frame10(){
this.gotoAndStop(1);
}
function frame35(){
this.gotoAndStop(1);
}
}
}//package AliceMargatroid_fla
Section 4
//alice_bodyUMC2_132 (AliceMargatroid_fla.alice_bodyUMC2_132)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class alice_bodyUMC2_132 extends MovieClip {
public var pieMC:MovieClip;
public var armpitLHA:MovieClip;
public var backHA:MovieClip;
public var headMC:MovieClip;
public var brassiereMC:MovieClip;
public var armpitRHA:MovieClip;
public function alice_bodyUMC2_132(){
addFrameScript(0, frame1, 16, frame17, 147, frame148);
}
function frame1(){
this.stop();
}
function frame17(){
this.gotoAndStop(1);
}
function frame148(){
this.gotoAndPlay("P1");
}
}
}//package AliceMargatroid_fla
Section 5
//alice_footMC1_125 (AliceMargatroid_fla.alice_footMC1_125)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class alice_footMC1_125 extends MovieClip {
public var socksMC:MovieClip;
public var calfHA:MovieClip;
}
}//package AliceMargatroid_fla
Section 6
//alice_footMC2_127 (AliceMargatroid_fla.alice_footMC2_127)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class alice_footMC2_127 extends MovieClip {
public var socksMC:MovieClip;
public var calfHA:MovieClip;
}
}//package AliceMargatroid_fla
Section 7
//alice_headMC1_38 (AliceMargatroid_fla.alice_headMC1_38)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class alice_headMC1_38 extends MovieClip {
public var mouthHA:MovieClip;
public var hairHA:MovieClip;
public var earHA:MovieClip;
public function alice_headMC1_38(){
addFrameScript(58, frame59, 115, frame116, 176, frame177);
}
function frame177(){
this.gotoAndPlay("P3");
}
function frame116(){
this.gotoAndPlay("P2");
}
function frame59(){
this.gotoAndPlay("P1");
}
}
}//package AliceMargatroid_fla
Section 8
//alice_headMC2_134 (AliceMargatroid_fla.alice_headMC2_134)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class alice_headMC2_134 extends MovieClip {
public var hairHA:MovieClip;
public var neckHA:MovieClip;
public var faceMC:MovieClip;
public var earHA:MovieClip;
public function alice_headMC2_134(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 9
//alice_headMC2_2_138 (AliceMargatroid_fla.alice_headMC2_2_138)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class alice_headMC2_2_138 extends MovieClip {
public function alice_headMC2_2_138(){
addFrameScript(58, frame59, 115, frame116, 176, frame177);
}
function frame177(){
this.gotoAndPlay("P3");
}
function frame116(){
this.gotoAndPlay("P2");
}
function frame59(){
this.gotoAndPlay("P1");
}
}
}//package AliceMargatroid_fla
Section 10
//alice_hipMC1_140 (AliceMargatroid_fla.alice_hipMC1_140)
package AliceMargatroid_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class alice_hipMC1_140 extends MovieClip {
public var hipRHA:MovieClip;
public var tinkoMC:MovieClip;
public var vaginaHA:MovieClip;
public var hipLHA:MovieClip;
public var spermMC:MovieClip;
public var anusHA:MovieClip;
public function alice_hipMC1_140(){
addFrameScript(0, frame1, 16, frame17, 53, frame54, 147, frame148);
}
function frame1(){
this.stop();
}
function frame17(){
this.gotoAndStop(1);
}
function frame54(){
this.spermMC.play();
(parent as MovieClip).spermMC.play();
}
function frame148(){
this.gotoAndPlay("P1");
}
}
}//package AliceMargatroid_fla
Section 11
//alice_legRMC1_79 (AliceMargatroid_fla.alice_legRMC1_79)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class alice_legRMC1_79 extends MovieClip {
public var socksMC:MovieClip;
public var calfHA:MovieClip;
public var thighHA:MovieClip;
public var hipHA:MovieClip;
public var kabochaMC:MovieClip;
}
}//package AliceMargatroid_fla
Section 12
//aliceMC1_18 (AliceMargatroid_fla.aliceMC1_18)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class aliceMC1_18 extends MovieClip {
public var bodyLMC:MovieClip;
public var bodyUMC:MovieClip;
public var man_handMC:MovieClip;
public function aliceMC1_18(){
addFrameScript(58, frame59, 69, frame70, 94, frame95);
}
function frame70(){
this.gotoAndPlay(1);
}
function frame95(){
this.gotoAndPlay(1);
}
function frame59(){
this.gotoAndPlay(1);
}
}
}//package AliceMargatroid_fla
Section 13
//aliceMC2_122 (AliceMargatroid_fla.aliceMC2_122)
package AliceMargatroid_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class aliceMC2_122 extends MovieClip {
public var armLMC:MovieClip;
public var handLMC:MovieClip;
public var thighLMC:MovieClip;
public var manMC:MovieClip;
public var hipMC:MovieClip;
public var thighRMC:MovieClip;
public var footRMC:MovieClip;
public var handRMC:MovieClip;
public var insertBTNMC:MovieClip;
public var footLMC:MovieClip;
public var backMC:MovieClip;
public var armRMC:MovieClip;
public var bodyUMC:MovieClip;
public var man_handMC:MovieClip;
public var spermMC:MovieClip;
public function aliceMC2_122(){
addFrameScript(0, frame1, 4, frame5, 16, frame17, 47, frame48, 147, frame148);
}
function frame1(){
this.stop();
}
function frame17(){
this.gotoAndStop(1);
}
function frame5(){
this.bodyUMC.pieMC.play();
}
function frame48(){
this.spermMC.play();
}
function frame148(){
this.gotoAndPlay("P1");
}
}
}//package AliceMargatroid_fla
Section 14
//brassiereMC1_22 (AliceMargatroid_fla.brassiereMC1_22)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class brassiereMC1_22 extends MovieClip {
public function brassiereMC1_22(){
addFrameScript(0, frame1, 61, frame62);
}
function frame1(){
this.stop();
}
function frame62(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 15
//finishSoundMC_12 (AliceMargatroid_fla.finishSoundMC_12)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class finishSoundMC_12 extends MovieClip {
public function finishSoundMC_12(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 16
//insertBTNMC_145 (AliceMargatroid_fla.insertBTNMC_145)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class insertBTNMC_145 extends MovieClip {
public function insertBTNMC_145(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 17
//kabochaLMC1_78 (AliceMargatroid_fla.kabochaLMC1_78)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class kabochaLMC1_78 extends MovieClip {
public function kabochaLMC1_78(){
addFrameScript(0, frame1, 61, frame62);
}
function frame1(){
this.stop();
}
function frame62(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 18
//kabochaLMC2_81 (AliceMargatroid_fla.kabochaLMC2_81)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class kabochaLMC2_81 extends MovieClip {
public function kabochaLMC2_81(){
addFrameScript(0, frame1, 61, frame62);
}
function frame1(){
this.stop();
}
function frame62(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 19
//kabochaUMC1_21 (AliceMargatroid_fla.kabochaUMC1_21)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class kabochaUMC1_21 extends MovieClip {
public function kabochaUMC1_21(){
addFrameScript(0, frame1, 61, frame62);
}
function frame1(){
this.stop();
}
function frame62(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 20
//loadingMC_3 (AliceMargatroid_fla.loadingMC_3)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class loadingMC_3 extends MovieClip {
public var barMC:loader;
}
}//package AliceMargatroid_fla
Section 21
//MainTimeline (AliceMargatroid_fla.MainTimeline)
package AliceMargatroid_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.geom.*;
import org.e_ohkoku.*;
import org.e_ohkoku.alice.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var timerMC2:MovieClip;
public var mosaicSetMC:MovieClip;
public var returnBTN:SimpleButton;
public var fondness:int;
public var charMC1:MovieClip;
public var nextBTN:SimpleButton;
public var mozaBTN:SimpleButton;
public var prsonality:int;
public var charMC2:MovieClip;
public var ld:LoaderPro;
public var con:ContextMenuSet;
public var cName:String;
public var alice:AliceMain;
public var nasiMC:MovieClip;
public var socksBTN:SimpleButton;
public var fullName:String;
public var ver:String;
public var fpsText:TextField;
public var cExp:int;
public var backMC:MovieClip;
public var finishSoundMC:MovieClip;
public var textWindowMC:MovieClip;
public var timerMC:MovieClip;
public var loadingMC:MovieClip;
public var opAnimeMC:MovieClip;
public var screenChangeMC:MovieClip;
public function MainTimeline(){
addFrameScript(1, frame2, 2, frame3, 14, frame15, 15, frame16, 16, frame17, 22, frame23, 24, frame25, 34, frame35, 44, frame45);
}
public function restartPro(){
trace(((("前 has? " + stage.hasEventListener(Event.ENTER_FRAME)) + " will? ") + stage.willTrigger(Event.ENTER_FRAME)));
stage.removeEventListener(Event.ENTER_FRAME, alice.mainPro);
trace(((("後 has? " + stage.hasEventListener(Event.ENTER_FRAME)) + " will? ") + stage.willTrigger(Event.ENTER_FRAME)));
alice = null;
this.gotoAndPlay(7);
}
function frame2(){
con = new ContextMenuSet(this);
}
function frame3(){
this.stop();
ld = new LoaderPro(this, loadingMC.barMC);
}
function frame16(){
ver = "ver.1.3";
cName = "アリス";
fullName = "アリス・マーガトロイド";
prsonality = 2;
cExp = 0;
fondness = 2;
this.textWindowMC.visible = false;
}
function frame25(){
this.stop();
}
function frame23(){
con = null;
alice = new AliceMain(this, stage);
}
function frame15(){
ld = null;
}
function frame17(){
}
function frame35(){
}
function frame45(){
trace("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
trace(charMC2.scaleX, charMC2.scaleY);
trace("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
}
}
}//package AliceMargatroid_fla
Section 22
//man_handMC1_118 (AliceMargatroid_fla.man_handMC1_118)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class man_handMC1_118 extends MovieClip {
public var handMC:MovieClip;
public function man_handMC1_118(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
this.stop();
this.mouseEnabled = false;
}
function frame2(){
this.handMC.mouseEnabled = false;
}
}
}//package AliceMargatroid_fla
Section 23
//man_handMC2_146 (AliceMargatroid_fla.man_handMC2_146)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class man_handMC2_146 extends MovieClip {
public var handMC:MovieClip;
public function man_handMC2_146(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
this.stop();
this.mouseEnabled = false;
}
function frame2(){
this.handMC.mouseEnabled = false;
}
}
}//package AliceMargatroid_fla
Section 24
//manMC1_144 (AliceMargatroid_fla.manMC1_144)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class manMC1_144 extends MovieClip {
public function manMC1_144(){
addFrameScript(0, frame1, 16, frame17, 147, frame148);
}
function frame1(){
this.stop();
}
function frame17(){
this.gotoAndStop(1);
}
function frame148(){
this.gotoAndPlay("P1");
}
}
}//package AliceMargatroid_fla
Section 25
//mosaicMC1_63 (AliceMargatroid_fla.mosaicMC1_63)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class mosaicMC1_63 extends MovieClip {
public var msw6:MovieClip;
public function mosaicMC1_63(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 26
//mosaicSetMC_149 (AliceMargatroid_fla.mosaicSetMC_149)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class mosaicSetMC_149 extends MovieClip {
public var mosaicMC:MovieClip;
public function mosaicSetMC_149(){
addFrameScript(0, frame1, 16, frame17, 47, frame48, 147, frame148);
}
function frame1(){
this.stop();
}
function frame17(){
this.gotoAndStop(1);
}
function frame48(){
this.mosaicMC.play();
}
function frame148(){
this.gotoAndPlay("P1");
}
}
}//package AliceMargatroid_fla
Section 27
//nasiMC_7 (AliceMargatroid_fla.nasiMC_7)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class nasiMC_7 extends MovieClip {
public function nasiMC_7(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
this.stop();
}
function frame9(){
}
}
}//package AliceMargatroid_fla
Section 28
//opAnimeMC_17 (AliceMargatroid_fla.opAnimeMC_17)
package AliceMargatroid_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class opAnimeMC_17 extends MovieClip {
public var charMC:MovieClip;
public var startBTN:SimpleButton;
public var backMC:MovieClip;
public var verTXT:TextField;
public var titleMC:MovieClip;
public function opAnimeMC_17(){
addFrameScript(23, frame24, 32, frame33, 90, frame91, 99, frame100);
}
function frame91(){
this.charMC.bodyUMC.play();
}
function frame100(){
this.stop();
}
function frame24(){
this.charMC.bodyLMC.play();
}
function frame33(){
this.charMC.bodyLMC.stop();
}
}
}//package AliceMargatroid_fla
Section 29
//pantsMC1_65 (AliceMargatroid_fla.pantsMC1_65)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class pantsMC1_65 extends MovieClip {
public function pantsMC1_65(){
addFrameScript(0, frame1, 61, frame62);
}
function frame1(){
this.stop();
}
function frame62(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 30
//pieMC1_133 (AliceMargatroid_fla.pieMC1_133)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class pieMC1_133 extends MovieClip {
public function pieMC1_133(){
addFrameScript(0, frame1, 38, frame39);
}
function frame1(){
this.stop();
}
function frame39(){
this.gotoAndStop(2);
}
}
}//package AliceMargatroid_fla
Section 31
//sailorUMC1_37 (AliceMargatroid_fla.sailorUMC1_37)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class sailorUMC1_37 extends MovieClip {
public function sailorUMC1_37(){
addFrameScript(0, frame1, 61, frame62);
}
function frame1(){
this.stop();
}
function frame62(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 32
//sailorUMC2_58 (AliceMargatroid_fla.sailorUMC2_58)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class sailorUMC2_58 extends MovieClip {
public function sailorUMC2_58(){
addFrameScript(0, frame1, 61, frame62);
}
function frame1(){
this.stop();
}
function frame62(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 33
//sailorUMC3_42 (AliceMargatroid_fla.sailorUMC3_42)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class sailorUMC3_42 extends MovieClip {
public function sailorUMC3_42(){
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
this.stop();
}
function frame63(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 34
//screenChangeMC_16 (AliceMargatroid_fla.screenChangeMC_16)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class screenChangeMC_16 extends MovieClip {
public function screenChangeMC_16(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 35
//skirtBMC1_62 (AliceMargatroid_fla.skirtBMC1_62)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class skirtBMC1_62 extends MovieClip {
public function skirtBMC1_62(){
addFrameScript(0, frame1, 61, frame62);
}
function frame1(){
this.stop();
}
function frame62(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 36
//skirtMC1_100 (AliceMargatroid_fla.skirtMC1_100)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class skirtMC1_100 extends MovieClip {
public function skirtMC1_100(){
addFrameScript(0, frame1, 61, frame62);
}
function frame1(){
this.stop();
}
function frame62(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 37
//soundMC1_6 (AliceMargatroid_fla.soundMC1_6)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class soundMC1_6 extends MovieClip {
public function soundMC1_6(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 38
//spermMC1_143 (AliceMargatroid_fla.spermMC1_143)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class spermMC1_143 extends MovieClip {
public function spermMC1_143(){
addFrameScript(242, frame243);
}
function frame243(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 39
//spermMC2_124 (AliceMargatroid_fla.spermMC2_124)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class spermMC2_124 extends MovieClip {
public function spermMC2_124(){
addFrameScript(0, frame1, 335, frame336);
}
function frame336(){
this.stop();
}
function frame1(){
this.stop();
}
}
}//package AliceMargatroid_fla
Section 40
//textWindowMC_9 (AliceMargatroid_fla.textWindowMC_9)
package AliceMargatroid_fla {
import flash.display.*;
import flash.text.*;
public dynamic class textWindowMC_9 extends MovieClip {
public var wordTXT:TextField;
}
}//package AliceMargatroid_fla
Section 41
//timerMC_8 (AliceMargatroid_fla.timerMC_8)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class timerMC_8 extends MovieClip {
public function timerMC_8(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
this.stop();
}
function frame20(){
}
}
}//package AliceMargatroid_fla
Section 42
//timerMC2_13 (AliceMargatroid_fla.timerMC2_13)
package AliceMargatroid_fla {
import flash.display.*;
public dynamic class timerMC2_13 extends MovieClip {
public function timerMC2_13(){
addFrameScript(0, frame1, 34, frame35);
}
function frame1(){
this.stop();
}
function frame35(){
}
}
}//package AliceMargatroid_fla
Section 43
//AI_BasicProcessing (org.e_ohkoku.AI.AI_BasicProcessing)
package org.e_ohkoku.AI {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class AI_BasicProcessing extends AI_CoreProcessing {
protected var clickCo:int;// = 0
protected var messTimer:Timer;
protected var reactionNoBuf:int;// = 0
protected var normalTimer:Timer;
protected var finishFlg:Boolean;// = false
private var bufferTg:DisplayObject;
protected var sPoint:int;
protected var messageBuf:String;// = ""
protected var pieCo:int;// = 0
public var dNo:int;
protected var finishSignalFlg:Boolean;// = false
protected var coL:Array;
protected var coU:Array;
protected var delayTimer:Timer;
protected var firstFlg:Boolean;// = false
protected var nPoint:int;
protected var reactionNo:int;// = 0
public var dSt:String;
public function AI_BasicProcessing(_arg1:String, _arg2:String, _arg3:String, _arg4:int, _arg5:int=0, _arg6:int=2){
firstFlg = false;
reactionNo = 0;
reactionNoBuf = 0;
finishFlg = false;
finishSignalFlg = false;
clickCo = 0;
pieCo = 0;
messageBuf = "";
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
coU = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
coL = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
normalTimer = new Timer(1, 1);
messTimer = new Timer(1, 1);
delayTimer = new Timer(1, 1);
trace("****** AI_BasicProcessing コンストラクタ完了");
}
override public function mainPro():void{
userInputPro();
thinkingPro_condition();
monitorPro();
debugPro();
}
private function timerHandler(_arg1:TimerEvent):void{
messTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, timerHandler);
(textWindowTg.parent as DisplayObject).visible = false;
messageBuf = "";
}
protected function thinkingPro_condition():void{
var _local1:int;
var _local2:int;
var _local3:int;
if (((delayTimer.running) || (messTimer.running))){
return;
};
if (reactionNoBuf == 2){
exciteVal = (exciteVal + 2);
trace("exciteVal +=2;");
} else {
if (reactionNoBuf == 3){
exciteVal = (exciteVal + 5);
trace("exciteVal +=5");
};
};
reactionNoBuf = 0;
if (exciteVal < 1){
exciteVal = 1;
};
if (exciteVal > 60){
exciteVal = 60;
};
_local1 = fondness;
_local2 = Math.floor((Math.random() * 500));
if (_local2 == 0){
_local3 = Math.floor((Math.random() * 2));
if (exciteVal <= 28){
if (sPoint < nPoint){
fondness = (fondness + _local3);
} else {
fondness = (fondness - _local3);
};
} else {
if (sPoint < nPoint){
};
};
if (fondness < 1){
fondness = 1;
};
if (fondness > 5){
fondness = 5;
};
setFondness = fondness;
trace(((((((((("exc:" + exciteVal) + " たまに感情チェック sP: ") + sPoint) + " nP: ") + nPoint) + " ") + _local1) + " ⇒ ") + fondness));
sPoint = (nPoint = 0);
};
}
protected function normalTimerHandler(_arg1:TimerEvent):void{
if (clickCo <= 1){
if (!finishFlg){
trace("!!!!!!!!!!!! クリック1回以下なので愛情値Down");
fondness--;
if (fondness < 1){
fondness = 1;
};
setFondness = fondness;
};
exciteVal = (exciteVal - 8);
} else {
if (clickCo <= 5){
exciteVal = (exciteVal - 4);
} else {
if (clickCo <= 10){
exciteVal--;
} else {
setFondness = fondness;
exciteVal = (exciteVal + 2);
};
};
};
clickCo = 0;
if (exciteVal < 1){
exciteVal = 1;
};
if (exciteVal > 60){
exciteVal = 60;
};
wData.setExp = cExp;
wData.setFondness = fondness;
}
private function firstTimerHandler(_arg1:TimerEvent):void{
normalTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, firstTimerHandler);
normalTimer = null;
normalTimer = new Timer(30000, Number.MAX_VALUE);
normalTimer.addEventListener(TimerEvent.TIMER, normalTimerHandler);
normalTimer.start();
if (cExp == 0){
cExp = 1;
wData.setExp = cExp;
wData.setFondness = fondness;
};
trace("\n****************************************\n初回1分タイマー終了 → 通常タイマー起動\n********************************************\n");
}
public function set setFinishFlg(_arg1:Boolean):void{
finishFlg = _arg1;
if (((!(finishSignalFlg)) && (_arg1))){
finishSignalFlg = true;
fondness++;
if (fondness > 5){
fondness = 5;
};
};
}
protected function thinkingPro_word(_arg1:String="bGasp", _arg2:String=""):void{
var _local3:int;
var _local4:Boolean;
var _local5:int;
var _local6:int;
var _local7:int;
_local3 = 1;
_local4 = true;
_local5 = 200;
if (normalTimer.delay == 60000){
_local7 = Math.floor((Math.random() * 3));
if (_local7 == 0){
_local6 = attendanceInvestigation(true);
if (_local6 != 0){
accumulatePro("firstOneWord", _local6, true, 2000);
};
} else {
if (_local7 == 1){
} else {
_arg1 = "bGasp";
};
};
} else {
if (fondness == 1){
if (probabilitySet(75)){
_arg1 = "negationWord";
};
} else {
if (fondness == 4){
if (probabilitySet(50)){
_arg1 = "reactionWord";
};
} else {
if (fondness == 5){
if (probabilitySet(80)){
if (exciteVal <= 50){
_arg1 = "demandWord";
} else {
_arg1 = "ecstasyWord";
};
};
};
};
};
};
if (finishFlg){
_arg1 = "afterFinish";
};
textOn(_arg1, _local4, _local3, _local5);
}
private function windowTimer(_arg1:String):void{
var _local2:Number;
_local2 = _arg1.length;
if (_local2 <= 5){
_local2 = 1.5;
} else {
if ((((_local2 >= 6)) && ((_local2 <= 26)))){
_local2 = 3;
} else {
if (_local2 >= 27){
_local2 = 7;
};
};
};
messTimer = new Timer((_local2 * 1000), 1);
messTimer.addEventListener(TimerEvent.TIMER_COMPLETE, timerHandler);
messTimer.start();
}
protected function tgDownAndUpPro(_arg1:String):void{
var _local2:int;
var _local3:String;
var _local4:int;
if (getBioRhythm <= 50){
return;
};
_local2 = int(_arg1.substr(1, 2));
_local3 = _arg1.substr(0, 1);
if (_local3 == "U"){
var _local5 = coU;
var _local6 = _local2;
var _local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
clickCo++;
} else {
if (_local3 == "L"){
_local5 = coL;
_local6 = _local2;
_local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
clickCo++;
} else {
if (_local3 == "O"){
};
};
};
_local4 = (Math.floor((Math.random() * 4)) + 4);
if (_local4 == 7){
_local4 = 1;
};
if ((((_arg1 == "U0")) || ((_arg1 == "U1")))){
pieCo++;
sPoint++;
reactionNo = 2;
} else {
if ((((_arg1 == "L0")) || ((_arg1 == "L1")))){
sPoint++;
reactionNo = 3;
} else {
nPoint++;
reactionNo = _local4;
};
};
if (normalTimer.delay == 60000){
reactionNo = _local4;
} else {
if (messTimer.running){
reactionNo = _local4;
};
};
thinkingPro_word();
firstTimerCheck();
reactionNoBuf = reactionNo;
}
private function CPcounterCheck():void{
var _local1:String;
var _local2:int;
var _local3:int;
var _local4:int;
trace("CPcounterCheck() クリックポイントチェック");
_local1 = "";
_local2 = 0;
_local3 = 0;
while (_local3 <= 8) {
_local2++;
_local1 = (_local1 + (((AI_BTN_Input.checkU[_local3] + " : ") + coU[_local3]) + " "));
if (_local2 == 4){
trace(_local1);
_local1 = "";
_local2 = 0;
};
_local3++;
};
_local1 = "";
_local2 = 0;
_local4 = 0;
while (_local4 <= 10) {
_local2++;
_local1 = (_local1 + (((AI_BTN_Input.checkL[_local4] + " : ") + coL[_local4]) + " "));
if (_local2 == 4){
trace(_local1);
_local1 = "";
_local2 = 0;
};
_local4++;
};
trace((_local1 + "\n"));
}
override public function debugPro():void{
var _local1:String;
var _local2:int;
if (wData.errorMessage != ""){
(textWindowTg.parent as DisplayObject).visible = true;
textWindowTg.text = wData.errorMessage;
};
if (debugWindowTg != null){
_local2 = int(getBioRhythm);
debugWindowTg.text = ((((((((((((((((cName + "\n個性:") + prsonality) + "\n経験:") + cExp) + "\n愛情:") + fondness) + "\n\nタイマー:") + messTimer.running) + "\nexciteVal:") + exciteVal) + "\nBR値:") + _local2) + "\nwordNo: ") + dNo) + "\n") + dSt);
};
}
protected function userInputPro():void{
if (btn.getAcsTargetOO != null){
trace(((("OVER/OUT tg: " + btn.getAcsTargetOO) + " PN:") + btn.getAcsTargetOO.pName));
btn.getAcsTargetOO = null;
};
if (btn.getAcsTargetDU != null){
tgDownAndUpPro(btn.getAcsTargetDU.pName);
btn.getAcsTargetDU = null;
};
if (btn.getAcsTargetW != null){
if (btn.getWheelDelta != 0){
trace(("ホイール値:" + btn.getWheelDelta));
btn.getWheelDelta = 0;
};
btn.getAcsTargetW = null;
};
}
private function delayTimerHandler(_arg1:TimerEvent):void{
delayTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, delayTimerHandler);
textWindowTg.text = messageBuf;
(textWindowTg.parent as DisplayObject).visible = true;
windowTimer(messageBuf);
}
public function set getReactionNo(_arg1:int):void{
reactionNo = _arg1;
}
protected function firstTimerCheck():void{
if (!firstFlg){
firstFlg = true;
trace("タイマー起動!!! firstTimerCheck()//初回タイマーチェック ");
normalTimer = new Timer(60000, 1);
normalTimer.addEventListener(TimerEvent.TIMER_COMPLETE, firstTimerHandler);
normalTimer.start();
};
}
public function get getReactionNo():int{
return (reactionNo);
}
private function delayTimerPro(_arg1:int):void{
delayTimer = new Timer(_arg1, 1);
delayTimer.addEventListener(TimerEvent.TIMER_COMPLETE, delayTimerHandler);
delayTimer.start();
}
public function removePro3():void{
trace(("リムーブ処理 removePro3 " + getQualifiedClassName(this)));
if (delayTimer != null){
delayTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, delayTimerHandler);
delayTimer = null;
};
if (messTimer != null){
messTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, timerHandler);
messTimer = null;
};
if (normalTimer != null){
normalTimer.stop();
normalTimer.removeEventListener(TimerEvent.TIMER, normalTimerHandler);
normalTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, firstTimerHandler);
normalTimer = null;
};
coU = null;
coL = null;
bufferTg = null;
removePro2();
}
protected function probabilitySet(_arg1:Number):Boolean{
var _local2:int;
_arg1 = (100 - _arg1);
_local2 = Math.floor((Math.random() * 100));
if (_local2 >= _arg1){
return (true);
};
return (false);
}
protected function textOn(_arg1:String, _arg2:Boolean, _arg3:int=1, _arg4:int=200):void{
var _local5:Object;
if (((messTimer.running) || (delayTimer.running))){
return;
};
if (messageBuf != ""){
return;
};
if (((!((mAccumulate[0] == null))) && (!((mAccumulate[0] == undefined))))){
_local5 = mAccumulate.shift();
_arg1 = _local5.kn;
_arg3 = _local5.no;
_arg4 = _local5.dt;
};
dSt = wData.charTextOut(_arg1, _arg2, _arg3);
messageBuf = dSt;
delayTimerPro(_arg4);
if ((((dSt == null)) || ((dSt == "")))){
dSt = "Nothing";
};
}
}
}//package org.e_ohkoku.AI
Section 44
//AI_BTN_Input (org.e_ohkoku.AI.AI_BTN_Input)
package org.e_ohkoku.AI {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class AI_BTN_Input extends MovieClip {
public static var checkO:Array;
public static var checkL:Array;
public static var checkU:Array;
private static var acsTargetDU:Object;
private static var acsTargetW:Object;
private static var wheelDelta:Number;
private static var testTg:Object;
private static var acsTargetOO:Object;
private static var btnL:Array;
private static var btnO:Array;
private static var btnU:Array;
private static var btnNo:int = 0;
private static var eType:String;
public function AI_BTN_Input(){
trace((getQualifiedClassName(this) + "AIボタン専用 コンストラクタ"));
checkU = new Array("0:左乳", "1:右乳", "2:左ワキ", "3:右ワキ", "4:左耳", "5:右耳", "6:口", "7:首", "8:髪", "9:髪sub", "10:背中");
checkL = new Array("0:ヴァギナ", "1:アヌス", "2:左尻", "3:右尻", "4:へそ", "5:左太股", "6:左ふくらはぎ", "7:左足", "8:右太股", "9:右ふくらはぎ", "10:右足");
checkO = new Array("0:xxxx", "1:xxxx", "2:xxxx");
}
public function get getAcsTargetW():Object{
return (acsTargetW);
}
private function listenerSet():void{
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = 0;
while (_local1 < btnU.length) {
if (btnU[_local1] != null){
btnU[_local1].pName = ("U" + _local1);
btnU[_local1].addEventListener(MouseEvent.MOUSE_OVER, btnMOUSE_OVER);
btnU[_local1].addEventListener(MouseEvent.MOUSE_OUT, btnMOUSE_OUT);
btnU[_local1].addEventListener(MouseEvent.MOUSE_DOWN, btnMOUSE_DOWN);
btnU[_local1].addEventListener(MouseEvent.MOUSE_UP, btnMOUSE_UP);
btnU[_local1].addEventListener(MouseEvent.MOUSE_WHEEL, btnMOUSE_WHEEL);
};
_local1++;
};
_local2 = 0;
while (_local2 < btnL.length) {
if (btnL[_local2] != null){
btnL[_local2].pName = ("L" + _local2);
btnL[_local2].addEventListener(MouseEvent.MOUSE_OVER, btnMOUSE_OVER);
btnL[_local2].addEventListener(MouseEvent.MOUSE_OUT, btnMOUSE_OUT);
btnL[_local2].addEventListener(MouseEvent.MOUSE_DOWN, btnMOUSE_DOWN);
btnL[_local2].addEventListener(MouseEvent.MOUSE_UP, btnMOUSE_UP);
btnL[_local2].addEventListener(MouseEvent.MOUSE_WHEEL, btnMOUSE_WHEEL);
};
_local2++;
};
_local3 = 0;
while (_local3 < btnO.length) {
if (btnO[_local3] != null){
btnO[_local3].pName = ("O" + _local3);
btnO[_local3].addEventListener(MouseEvent.MOUSE_OVER, btnMOUSE_OVER);
btnO[_local3].addEventListener(MouseEvent.MOUSE_OUT, btnMOUSE_OUT);
btnO[_local3].addEventListener(MouseEvent.MOUSE_DOWN, btnMOUSE_DOWN);
btnO[_local3].addEventListener(MouseEvent.MOUSE_UP, btnMOUSE_UP);
btnO[_local3].addEventListener(MouseEvent.MOUSE_WHEEL, btnMOUSE_WHEEL);
};
_local3++;
};
trace("\nAI_BTN_Input リスナー登録 確認");
}
public function get getWheelDelta():int{
return (wheelDelta);
}
public function set getAcsTargetW(_arg1:Object):void{
acsTargetW = _arg1;
}
private function btnMOUSE_WHEEL(_arg1:MouseEvent){
eType = _arg1.type;
acsTargetW = _arg1.target;
wheelDelta = _arg1.delta;
}
public function set getWheelDelta(_arg1:int):void{
wheelDelta = _arg1;
}
public function removeListenerPro():void{
var _local1:int;
var _local2:int;
var _local3:int;
trace(("リスナー削除&データクリア " + getQualifiedClassName(this)));
if (btnU != null){
_local1 = 0;
while (_local1 < btnU.length) {
if (btnU[_local1] != null){
btnU[_local1].removeEventListener(MouseEvent.MOUSE_OVER, btnMOUSE_OVER);
btnU[_local1].removeEventListener(MouseEvent.MOUSE_OUT, btnMOUSE_OUT);
btnU[_local1].removeEventListener(MouseEvent.MOUSE_DOWN, btnMOUSE_DOWN);
btnU[_local1].removeEventListener(MouseEvent.MOUSE_UP, btnMOUSE_UP);
btnU[_local1].removeEventListener(MouseEvent.MOUSE_WHEEL, btnMOUSE_WHEEL);
btnU[_local1] = null;
};
_local1++;
};
btnU = null;
};
if (btnL != null){
_local2 = 0;
while (_local2 < btnL.length) {
if (btnL[_local2] != null){
btnL[_local2].removeEventListener(MouseEvent.MOUSE_OVER, btnMOUSE_OVER);
btnL[_local2].removeEventListener(MouseEvent.MOUSE_OUT, btnMOUSE_OUT);
btnL[_local2].removeEventListener(MouseEvent.MOUSE_DOWN, btnMOUSE_DOWN);
btnL[_local2].removeEventListener(MouseEvent.MOUSE_UP, btnMOUSE_UP);
btnL[_local2].removeEventListener(MouseEvent.MOUSE_WHEEL, btnMOUSE_WHEEL);
btnL[_local2] = null;
};
_local2++;
};
btnL = null;
};
if (btnO != null){
_local3 = 0;
while (_local3 < btnO.length) {
if (btnO[_local3] != null){
btnO[_local3].removeEventListener(MouseEvent.MOUSE_OVER, btnMOUSE_OVER);
btnO[_local3].removeEventListener(MouseEvent.MOUSE_OUT, btnMOUSE_OUT);
btnO[_local3].removeEventListener(MouseEvent.MOUSE_DOWN, btnMOUSE_DOWN);
btnO[_local3].removeEventListener(MouseEvent.MOUSE_UP, btnMOUSE_UP);
btnO[_local3].removeEventListener(MouseEvent.MOUSE_WHEEL, btnMOUSE_WHEEL);
btnO[_local3] = null;
};
_local3++;
};
btnO = null;
};
checkU = null;
checkL = null;
checkO = null;
btnNo = 0;
acsTargetOO = null;
acsTargetDU = null;
acsTargetW = null;
wheelDelta = 0;
testTg = null;
}
public function get getEventType():String{
return (eType);
}
public function get getAcsTargetDU():Object{
return (acsTargetDU);
}
public function set getAcsTargetOO(_arg1:Object):void{
acsTargetOO = _arg1;
}
public function set getEventType(_arg1:String):void{
eType = _arg1;
}
private function btnMOUSE_DOWN(_arg1:MouseEvent){
eType = _arg1.type;
acsTargetDU = _arg1.target;
}
private function btnMOUSE_OUT(_arg1:MouseEvent){
eType = _arg1.type;
acsTargetOO = _arg1.target;
}
public function get getAcsTargetOO():Object{
return (acsTargetOO);
}
private function btnMOUSE_OVER(_arg1:MouseEvent){
eType = _arg1.type;
acsTargetOO = _arg1.target;
}
public function set getAcsTargetDU(_arg1:Object):void{
acsTargetDU = _arg1;
}
private function listenerCheck():void{
var _local1:int;
var _local2:int;
var _local3:int;
trace("\n上半身 AI_BTN_Input リスナー登録 確認");
_local1 = 0;
while (_local1 < btnU.length) {
if (btnU[_local1] != null){
trace(((((checkU[_local1] + " ") + btnU[_local1].pName) + " ") + btnU[_local1].name));
} else {
trace((checkU[_local1] + " 無し"));
};
_local1++;
};
trace("\n下半身");
_local2 = 0;
while (_local2 < btnL.length) {
if (btnL[_local2] != null){
trace(((((checkL[_local2] + " ") + btnL[_local2].pName) + " ") + btnL[_local2].name));
} else {
trace((checkL[_local2] + " 無し"));
};
_local2++;
};
trace("\nその他");
_local3 = 0;
while (_local3 < btnO.length) {
if (btnO[_local3] != null){
trace(((((checkO[_local3] + " ") + btnO[_local3].pName) + " ") + btnO[_local3].name));
} else {
trace((checkO[_local3] + " 無し"));
};
_local3++;
};
trace("\n");
}
public function buttonSet(_arg1:Array, _arg2:Array, _arg3:Array){
btnU = new Array();
btnU = _arg1;
btnL = new Array();
btnL = _arg2;
btnO = new Array();
btnO = _arg3;
listenerSet();
listenerCheck();
}
private function btnMOUSE_UP(_arg1:MouseEvent){
eType = _arg1.type;
acsTargetDU = _arg1.target;
}
}
}//package org.e_ohkoku.AI
Section 45
//AI_CoreProcessing (org.e_ohkoku.AI.AI_CoreProcessing)
package org.e_ohkoku.AI {
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public class AI_CoreProcessing extends AI_monitorOfFeelings {
private var aiFlg:Boolean;// = false
protected var fondness:int;// = 3
protected var sp:AI_SharedProcessing;
protected var prsonality:int;
protected var btn:AI_BTN_Input;
protected var cName:String;
protected var mAccumulate:Array;
protected var wData:WordData;
protected var fullName:String;
protected var playHistory:Array;
protected var textWindowTg:TextField;
protected var cExp:int;// = 0
protected var playCo:int;
protected var debugWindowTg:TextField;
public function AI_CoreProcessing(_arg1:String, _arg2:String, _arg3:String, _arg4:int, _arg5:int=0, _arg6:int=2){
var _local7:int;
var _local8:int;
fondness = 3;
cExp = 0;
playHistory = new Array();
mAccumulate = new Array();
aiFlg = false;
cName = _arg2;
fullName = _arg3;
prsonality = _arg4;
cExp = _arg5;
fondness = _arg6;
super(fondness);
_local7 = 1;
while (_local7 <= 31) {
playHistory[_local7] = false;
_local7++;
};
_local8 = new Date().date;
playHistory[_local8] = true;
btn = new AI_BTN_Input();
wData = new WordData(_arg1, cName, fullName, prsonality);
sp = new AI_SharedProcessing(cName, fullName, _arg4, _arg5, _arg6);
dataReflection();
trace(lastMonthCalculations());
trace("****** AI_CoreProcessing コンストラクタ完了");
}
public function set setTextWindow(_arg1:TextField):void{
textWindowTg = _arg1;
}
public function wordChangePro(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:String):void{
wData.wordChangePro(_arg1, _arg2, _arg3, _arg4, _arg5);
}
private function saveDataSet():void{
var _local1:Object;
_local1 = new Object();
_local1.cName = cName;
_local1.prsonality = prsonality;
_local1.cExp = cExp;
_local1.fondness = fondness;
sp.sharedData = _local1;
}
public function checkPro_test(_arg1:Boolean=true, _arg2:Boolean=true){
wData.checkW_test2(_arg1, _arg2);
}
override public function mainPro():void{
monitorPro();
debugPro();
}
public function debugPro():void{
if (wData.errorMessage != ""){
(textWindowTg.parent as DisplayObject).visible = true;
textWindowTg.text = wData.errorMessage;
};
}
private function dataReflection():void{
var _local1:Object;
if (sp.dataExistFlag){
trace("前回の同キャラのデータが存在してる データ反映!");
_local1 = sp.sharedData;
cName = _local1.cName;
prsonality = _local1.prsonality;
cExp = _local1.cExp;
fondness = _local1.fondness;
playHistory = _local1.playHistory;
playCo = _local1.playCo;
wData.setExp = cExp;
wData.setFondness = fondness;
setFondness = fondness;
};
}
private function lastMonthCalculations():int{
var _local1:Array;
var _local2:Date;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:String;
var _local8:String;
var _local9:int;
_local1 = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
_local2 = new Date();
_local3 = _local2.getMonth();
_local5 = _local2.getFullYear();
trace(((("今月:" + _local3) + " ") + _local1[_local3]));
trace(("今年:" + _local5));
if ((_local3 - 1) == -1){
_local4 = 11;
_local6 = (_local5 - 1);
} else {
_local4 = (_local3 - 1);
_local6 = _local5;
};
_local7 = ((_local1[_local3] + " 1 00:00:00 ") + _local5);
_local8 = ((_local1[_local4] + " 1 00:00:00 ") + _local6);
_local9 = (((60 * 1000) * 60) * 24);
return (((Date.parse(_local7) - Date.parse(_local8)) / _local9));
}
protected function attendanceInvestigation(_arg1:Boolean=false):int{
var _local2:int;
var _local3:Array;
var _local4:int;
var _local5:int;
if (aiFlg){
return (0);
};
aiFlg = true;
if (_arg1){
trace("\n出席調査 3日分 attendanceInvestigation()");
};
_local3 = new Array();
_local4 = new Date().date;
_local5 = 1;
while (_local5 <= 3) {
--_local4;
if (_local4 < 1){
_local4 = lastMonthCalculations();
};
_local3[_local5] = playHistory[_local4];
_local5++;
};
if (((((!(_local3[1])) && (!(_local3[2])))) && (!(_local3[3])))){
if (_arg1){
trace("昨日、一昨日、一昨昨日 全部来てない");
};
_local2 = 6;
} else {
if (((_local3[1]) && (_local3[2]))){
if (_arg1){
trace("昨日と一昨日来た ");
};
_local2 = 2;
} else {
if (((!(_local3[1])) && (!(_local3[2])))){
if (_arg1){
trace("昨日と一昨日来なかった ");
};
_local2 = 5;
} else {
if (_local3[1]){
if (_arg1){
trace("昨日来た ");
};
_local2 = 3;
} else {
if (!_local3[1]){
if (_arg1){
trace("昨日来なかった ");
};
_local2 = 4;
};
};
};
};
};
if (_arg1){
trace((((((("昨日:" + _local3[1]) + " 一昨日:") + _local3[2]) + " 一昨昨日:") + _local3[3]) + "\n"));
};
return (_local2);
}
public function get getFondness():int{
return (fondness);
}
public function set setDebugWindow(_arg1:TextField):void{
debugWindowTg = _arg1;
}
public function removePro2():void{
trace(("リムーブ処理 removePro2 " + getQualifiedClassName(this)));
if (btn != null){
btn.removeListenerPro();
btn = null;
};
if (wData != null){
wData.dataClear();
wData = null;
};
saveDataSet();
if (sp != null){
sp.removePro();
sp = null;
};
playHistory = null;
textWindowTg = null;
mAccumulate = null;
debugWindowTg = null;
removePro1();
}
protected function accumulatePro(_arg1:String, _arg2:int, _arg3:Boolean=false, _arg4:int=1500):void{
var _local5:Object;
_local5 = new Object();
_local5.kn = _arg1;
_local5.no = _arg2;
_local5.dt = _arg4;
if (!_arg3){
mAccumulate.push(_local5);
} else {
mAccumulate.splice(0, 0, _local5);
};
trace(((((_arg1 + " : ") + _arg2) + " を蓄積メッセージに追加 要素数:") + mAccumulate.length));
}
}
}//package org.e_ohkoku.AI
Section 46
//AI_monitorOfFeelings (org.e_ohkoku.AI.AI_monitorOfFeelings)
package org.e_ohkoku.AI {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class AI_monitorOfFeelings extends Sprite {
private var mof:Shape;
private var fondness:int;
private var dotH:Number;
private var dotW:Number;
private var dotX:Number;
private var dotY:Number;
private var radian:int;// = 0
private var dot:Array;
private var coD:int;// = 0
protected var exciteVal:int;// = 7
private var sMof:Sprite;
private var visibleFlg:Boolean;// = false
private var dotColor:Array;
private var my:Number;
private var mx:Number;
private var mFlg:Boolean;// = false
private var bioRhythm:Number;
private var backColor:uint;// = 0
private var allH:Number;
private var lineAlpha:Number;// = 1
private var lineColor:uint;// = 0x666666
private var allW:Number;
private var drawTg:Sprite;
private var lineThickness:Number;// = 1
private var moY:Number;
private var moX:Number;
public function AI_monitorOfFeelings(_arg1:int){
visibleFlg = false;
backColor = 0;
lineColor = 0x666666;
lineThickness = 1;
lineAlpha = 1;
mFlg = false;
coD = 0;
radian = 0;
exciteVal = 7;
super();
fondness = _arg1;
dotColorSet();
}
public function set getExciteVal(_arg1:int):void{
exciteVal = _arg1;
}
public function electrocardiogramSet(_arg1:Sprite, _arg2:Number=0, _arg3:Number=0, _arg4:Number=1, _arg5:Number=1):void{
var _local6:Number;
var _local7:Number;
var _local8:int;
var _local9:int;
var _local10:int;
visibleFlg = true;
drawTg = _arg1;
moX = _arg2;
moY = _arg3;
allW = _arg4;
allH = _arg5;
dotW = (8 * allW);
dotH = (4 * allH);
dotX = ((92 * allW) + moX);
mof = new Shape();
mof.name = "fMonitor_Shape";
mof.graphics.beginFill(backColor);
mof.graphics.drawRect(moX, moY, (100 * allW), (100 * allH));
_local6 = ((100 * allW) / 4);
_local7 = ((100 * allH) / 4);
_local8 = 1;
_local9 = moX;
while (_local9 < (moX + (100 * allW))) {
if (_local8 == 3){
mof.graphics.lineStyle((lineThickness * 3), lineColor, lineAlpha, false, LineScaleMode.NORMAL, CapsStyle.NONE);
} else {
mof.graphics.lineStyle(lineThickness, lineColor, lineAlpha, false, LineScaleMode.NORMAL, CapsStyle.NONE);
};
_local8++;
mof.graphics.moveTo(_local9, moY);
mof.graphics.lineTo(_local9, (moY + (100 * allH)));
mof.graphics.endFill();
_local9 = (_local9 + _local6);
};
_local8 = 1;
_local10 = moY;
while (_local10 < (moY + (100 * allH))) {
if (_local8 == 3){
mof.graphics.lineStyle((lineThickness * 3), lineColor, lineAlpha, false, LineScaleMode.NORMAL, CapsStyle.NONE);
} else {
mof.graphics.lineStyle(lineThickness, lineColor, lineAlpha, false, LineScaleMode.NORMAL, CapsStyle.NONE);
};
_local8++;
mof.graphics.moveTo(moX, _local10);
mof.graphics.lineTo((moX + (100 * allW)), _local10);
mof.graphics.endFill();
_local10 = (_local10 + _local7);
};
dot = new Array();
sMof = new Sprite();
sMof.name = "fMonitor_Sprite";
sMof.addChild(mof);
drawTg.addChild(sMof);
mouseEventSet();
}
public function get getBioRhythm():Number{
return (bioRhythm);
}
public function set MOFvisible(_arg1:Boolean):void{
var _local2:int;
mof.visible = _arg1;
_local2 = 0;
while (_local2 < dot.length) {
if (dot[_local2] != null){
dot[_local2].visible = _arg1;
};
_local2++;
};
visibleFlg = _arg1;
}
private function mouseEventSet():void{
sMof.addEventListener(MouseEvent.MOUSE_DOWN, function (_arg1:MouseEvent):void{
mFlg = true;
});
sMof.addEventListener(MouseEvent.MOUSE_UP, function (_arg1:MouseEvent):void{
mFlg = false;
});
}
public function mainPro():void{
monitorPro();
}
public function set setFondness(_arg1:int):void{
if (_arg1 <= 0){
_arg1 = 1;
};
if (_arg1 >= 6){
_arg1 = 5;
};
fondness = _arg1;
}
private function dotSet(_arg1:Number):void{
dotY = (((50 + _arg1) * allH) + moY);
dot[coD] = new Shape();
dot[coD].graphics.beginFill(dotColor[fondness]);
dot[coD].graphics.drawRect(0, 0, dotW, dotH);
dot[coD].x = dotX;
dot[coD].y = dotY;
sMof.addChild(dot[coD]);
coD++;
if (coD > 20){
coD = 0;
};
}
private function dotColorSet():void{
dotColor = new Array();
dotColor[1] = 9011455;
dotColor[2] = 14002943;
dotColor[3] = 16767981;
dotColor[4] = 16751052;
dotColor[5] = 0xFF0080;
}
public function get getExciteVal():int{
return (exciteVal);
}
private function monitorDrag():void{
if (mFlg){
if (sMof.hitTestPoint(mx, my, true)){
sMof.startDrag(false);
};
} else {
sMof.stopDrag();
};
}
public function removePro1():void{
var i:int;
var c:int;
var c2:int;
trace(("リムーブ処理 removePro1 " + getQualifiedClassName(this)));
i = 0;
while (i < dot.length) {
if (dot[i] != null){
dot[i].graphics.clear();
sMof.removeChild(dot[i]);
dot[i] = null;
};
i = (i + 1);
};
dot = null;
trace("子のチェック");
c = 0;
while (c < drawTg.numChildren) {
if (drawTg.getChildAt(c) != null){
trace(((c + " : ") + drawTg.getChildAt(c).name));
};
c = (c + 1);
};
sMof.removeEventListener(MouseEvent.MOUSE_DOWN, function (_arg1:MouseEvent):void{
mFlg = true;
});
sMof.removeEventListener(MouseEvent.MOUSE_UP, function (_arg1:MouseEvent):void{
mFlg = false;
});
mof.graphics.clear();
sMof.removeChild(mof);
mof = null;
drawTg.removeChild(sMof);
sMof = null;
trace("mof.graphics.clear(); sMof.removeChild( mof ); drawTg.removeChild( sMof ); mof = null; sMof = null");
trace("再チェック");
c2 = 0;
while (c2 < drawTg.numChildren) {
if (drawTg.getChildAt(c2) != null){
trace(((c2 + " : ") + drawTg.getChildAt(c2).name));
};
c2 = (c2 + 1);
};
drawTg = null;
}
private function dotMove():void{
var _local1:int;
_local1 = 0;
while (_local1 < dot.length) {
if (dot[_local1] != null){
dot[_local1].x = (dot[_local1].x - dotW);
if (dot[_local1].x < moX){
dot[_local1].graphics.clear();
sMof.removeChild(dot[_local1]);
dot[_local1] = null;
};
};
_local1++;
};
}
private function privateTest():void{
trace(("Test " + getQualifiedClassName(this)));
}
protected function monitorPro():void{
var _local1:Number;
radian = (radian + exciteVal);
if (radian > 358){
radian = 0;
};
_local1 = (Math.sin((((radian / 360) * Math.PI) * 2)) * 40);
bioRhythm = ((40 - _local1) * 1.25);
if (visibleFlg){
dotSet(_local1);
dotMove();
mx = drawTg.mouseX;
my = drawTg.mouseY;
monitorDrag();
};
}
public function colorSet(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:Number, _arg5:Number):void{
dotColor[3] = _arg1;
backColor = _arg2;
lineColor = _arg3;
lineThickness = _arg4;
lineAlpha = _arg5;
}
}
}//package org.e_ohkoku.AI
Section 47
//AI_SharedProcessing (org.e_ohkoku.AI.AI_SharedProcessing)
package org.e_ohkoku.AI {
import org.e_ohkoku.*;
import flash.utils.*;
public class AI_SharedProcessing {
private var playHistory:Array;
private var fullName:String;
private var cName:String;
private var sd:SharedObj;
private var sharedObj:Object;
private var prsonality:int;
private var dateDay:Number;
private var playCo:int;// = 1
private var fondness:int;
private var getSharedObj:Object;
private var cExp:int;
private var dataExistFlg:Boolean;// = false
public function AI_SharedProcessing(_arg1:String, _arg2:String, _arg3:int, _arg4:int, _arg5:int){
dataExistFlg = false;
playCo = 1;
super();
trace((getQualifiedClassName(this) + " コンストラクタ!"));
cName = _arg1;
fullName = _arg2;
prsonality = _arg3;
cExp = _arg4;
fondness = _arg5;
trace(((((((cName + " 個性:") + prsonality) + " 経験:") + cExp) + " 愛情:") + fondness));
initialSet();
sd = new SharedObj("AI");
dataLoad();
}
private function dataReflect():void{
var _local1:int;
var _local2:Number;
var _local3:Array;
var _local4:Number;
var _local5:int;
var _local6:Boolean;
var _local7:int;
_local1 = dataCheck(sharedObj, fullName);
trace(((("ロードデータ反映 名前:" + fullName) + " セーブ番号:") + _local1));
cExp = sharedObj.charData[_local1].cExp;
fondness = sharedObj.charData[_local1].fondness;
_local2 = sharedObj.charData[_local1].dateDay;
_local3 = sharedObj.charData[_local1].playHistory;
playCo = sharedObj.charData[_local1].playCo;
historyCheck(_local3, "ロード直後の履歴");
if (dateDay != _local2){
trace("ロードデータ反映 今日と前回プレイの日が違うので反映処理");
_local4 = dateDay;
_local5 = 0;
_local6 = false;
_local7 = 1;
while (_local7 <= 14) {
--_local4;
if (_local4 < 1){
_local4 = 31;
};
if (_local7 == 1){
if (_local3[_local4]){
trace((("昨日プレイした " + _local4) + "日"));
_local6 = true;
playHistory[_local4] = true;
} else {
_local5++;
};
} else {
if (_local7 == 2){
if (_local3[_local4]){
trace((("おとといプレイした " + _local4) + "日"));
_local6 = true;
playHistory[_local4] = true;
} else {
_local5++;
};
} else {
if (_local3[_local4]){
playHistory[_local4] = true;
} else {
_local5++;
};
};
};
_local7++;
};
if (_local6){
cExp++;
fondness++;
trace(((("昨日かおとといプレイした ⇒値up 経験値:" + cExp) + " 愛情値:") + fondness));
} else {
if (_local5 >= 13){
cExp = 0;
fondness = 1;
trace(((("2週間プレイしてない ⇒値リセット 経験値:" + cExp) + " 愛情値:") + fondness));
} else {
if (_local5 >= 7){
cExp--;
fondness--;
trace(((("計7日間プレイしてない ⇒値down 経験値:" + cExp) + " 愛情値:") + fondness));
} else {
trace(((("変動無し 経験値:" + cExp) + " 愛情値:") + fondness));
};
};
};
trace(("プレイしていない日の合計(過去2週間)co: " + _local5));
} else {
trace("同じ日にプレイ");
playHistory = _local3;
};
if (cExp > 3){
cExp = 3;
} else {
if (cExp < 1){
cExp = 1;
};
};
if (fondness > 5){
fondness = 5;
} else {
if (fondness < 1){
fondness = 1;
};
};
playCo++;
historyCheck(playHistory, "ロード直後⇒セーブ直前の履歴");
dataSave();
dataExistFlg = true;
trace("\n");
}
private function dataCheck(_arg1:Object, _arg2:String="", _arg3:Boolean=false):int{
var _local4:Boolean;
var _local5:int;
var _local6:int;
var _local7:*;
var _local8:*;
var _local9:*;
if (_arg3){
trace("\n************ 構造化データのチェック start");
};
_local4 = false;
_local5 = 0;
_local6 = 0;
for (_local7 in _arg1) {
if ((_arg1[_local7] is Array)){
_local8 = 0;
while (_local8 < _arg1[_local7].length) {
for (_local9 in _arg1[_local7][_local8]) {
if (_arg1[_local7][_local8].fullName == _arg2){
if (((_arg3) && (!(_local4)))){
_local4 = true;
trace(((("名前一致:" + _arg1[_local7][_local8].fullName) + " 番号:") + _local8));
};
_local6 = 2;
_local5 = _local8;
} else {
if (_local6 == 0){
_local6 = 1;
};
};
if (_arg3){
trace(((((((_local7 + " : ") + _local8) + " : ") + _local9) + " : ") + _arg1[_local7][_local8][_local9]));
};
};
if (_arg3){
trace("\n");
};
_local8++;
};
} else {
if (_arg3){
trace(((_local7 + " : ") + _arg1[_local7]));
};
};
};
if (_local6 == 0){
if (_arg3){
trace("0:データ何も無し");
};
_local5 = -1;
} else {
if (_local6 == 1){
if (_arg3){
trace("1:前回データ有るが一致するキャラ名が無い");
};
_local5 = -1;
} else {
if (_local6 == 2){
if (_arg3){
trace("2:一致するキャラ有り");
};
};
};
};
if (_arg3){
trace("************ 構造化データのチェック END\n");
};
return (_local5);
}
public function removePro():void{
trace(("リムーブ処理 " + getQualifiedClassName(this)));
trace("リムーブ時に現在のデータをセーブしとく");
dataSave();
sharedObj = null;
getSharedObj = null;
playHistory = null;
if (sd != null){
sd.dataClear();
sd = null;
};
}
private function historyCheck(_arg1:Array, _arg2:String=""):void{
var _local3:int;
var _local4:String;
var _local5:*;
if (_arg2 != ""){
trace(("\n" + _arg2));
} else {
trace("\n");
};
trace("*****プレイ履歴 過去30日間*****");
_local3 = 0;
_arg2 = "";
_local4 = "";
_local5 = 1;
while (_local5 <= 31) {
_local3++;
if (_arg1[_local5]){
_arg2 = "○ ";
} else {
_arg2 = "× ";
};
_local4 = (_local4 + _arg2);
if (_local3 == 7){
trace(_local4);
_local4 = "";
_local3 = 0;
} else {
if (_local5 == 31){
trace(_local4);
};
};
_local5++;
};
trace("\n");
}
public function set sharedData(_arg1:Object):void{
prsonality = _arg1.prsonality;
cExp = _arg1.cExp;
fondness = _arg1.fondness;
}
public function dataSave():void{
var _local1:int;
var _local2:Array;
trace("セーブ用データ作成しセーブ");
_local1 = 0;
if (sharedObj.checkFlg != null){
_local1 = dataCheck(sharedObj, fullName);
if (_local1 == -1){
if (sharedObj.charData != null){
_local1 = sharedObj.charData.length;
};
};
} else {
_local1 = 0;
};
_local2 = new Array();
_local2[_local1] = new Object();
_local2[_local1].name = cName;
_local2[_local1].fullName = fullName;
_local2[_local1].prsonality = prsonality;
_local2[_local1].cExp = cExp;
_local2[_local1].fondness = fondness;
_local2[_local1].dateDay = dateDay;
_local2[_local1].playHistory = new Array();
_local2[_local1].playHistory = playHistory;
_local2[_local1].playCo = playCo;
sharedObj.charData[_local1] = _local2[_local1];
sharedObj.checkFlg = true;
sd.dataSave(sharedObj);
historyCheck(_local2[_local1].playHistory, "セーブ時の履歴");
}
public function get sharedData():Object{
var _local1:Object;
_local1 = new Object();
_local1.cName = cName;
_local1.fullName = fullName;
_local1.prsonality = prsonality;
_local1.cExp = cExp;
_local1.fondness = fondness;
_local1.playHistory = playHistory;
_local1.playCo = playCo;
return (_local1);
}
private function dataLoad():void{
var _local1:Object;
var _local2:int;
trace("\nデータロード");
_local1 = sd.dataLoad();
if (_local1.checkFlg){
trace("セーブデータ有り");
_local2 = dataCheck(_local1, fullName, true);
if (_local2 == -1){
if (_local1.charData != null){
_local2 = _local1.charData.length;
trace("キャラデータ無し! ⇒ 作成、一旦セーブ");
sharedObj = _local1;
dataSave();
};
} else {
trace("設定キャラに反映");
sharedObj = _local1;
dataReflect();
};
} else {
trace("セーブデータ何も無し! ⇒ 作成、一旦セーブ");
trace(((("fullName: " + fullName) + " obj: ") + _local1.name));
dataCheck(_local1, fullName, true);
dataSave();
};
trace("\n");
}
public function get dataExistFlag():Boolean{
return (dataExistFlg);
}
private function initialSet():void{
var _local1:*;
sharedObj = new Object();
sharedObj.charData = new Array();
sharedObj.charData[0] = new Object();
sharedObj.charData[0].name = cName;
sharedObj.charData[0].fullName = fullName;
dateDay = new Date().date;
trace((("今日は " + dateDay) + "日"));
playHistory = new Array();
_local1 = 1;
while (_local1 <= 31) {
playHistory[_local1] = false;
_local1++;
};
playHistory[dateDay] = true;
}
}
}//package org.e_ohkoku.AI
Section 48
//WordData (org.e_ohkoku.AI.WordData)
package org.e_ohkoku.AI {
import flash.display.*;
import flash.events.*;
import org.e_ohkoku.*;
import flash.utils.*;
public class WordData {
public const WORDNUMBERMAX:int = 50;
private var DB:Object;
private var dfTXT:DownloadFile;
private var cName:String;
private var fondness:int;// = 3
private var dataBase:String;
private var ef:Sprite;
private var em:Enumeration;
private var dfXML:DownloadFile;
private var bGasp:Array;
private var cExp:int;// = 0
private var kindName:Array;
private var fullName:String;
private var wd:Object;
private var firstContact:Array;
private var prsonality:int;
private var myName:String;
public var errorMessage:String;// = ""
public function WordData(_arg1:String, _arg2:String, _arg3:String, _arg4:int){
errorMessage = "";
cExp = 0;
fondness = 3;
kindName = new Array("0:純情清純", "1:カマトトぶりっ子", "2:平均的大人のおねーさん", "3:無口大人しい", "4:ツンデレ");
super();
cName = _arg2;
fullName = _arg3;
prsonality = _arg4;
initialSet();
ef = new Sprite();
loadWord(_arg1);
em = new Enumeration();
}
private function ecstasyWordPro(_arg1:String, _arg2:int, _arg3:int, _arg4:int):String{
var _local5:String;
var _local6:Array;
_local6 = new Array("はぁ・・・ はぁ・・・ ", "はあっ・・・ はあっ・・・ ", "はぁ! はぁ! ", "はあっ! はあぁっ! ");
if ((((_arg3 == 1)) || ((_arg3 == 2)))){
_local5 = "・・・・・・!!";
} else {
if (_arg3 == 3){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
if (_arg2 <= 1){
_local5 = _local6[0];
} else {
if (_arg2 == 2){
_local5 = _local6[1];
} else {
if (_arg2 == 3){
_local5 = _local6[2];
};
};
};
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = ((_local6[0] + _arg1) + "・・・");
} else {
if (_arg4 == 2){
_local5 = "ああぁあっ・・・!";
};
};
};
} else {
if (_arg3 == 4){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
if (_arg2 <= 1){
_local5 = _local6[1];
} else {
if (_arg2 == 2){
_local5 = _local6[2];
} else {
if (_arg2 == 3){
_local5 = ((_local6[3] + _arg1) + "・・・");
};
};
};
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = ((_local6[2] + _arg1) + "っ・・・!");
} else {
if (_arg4 == 2){
_local5 = (((("・・・・・・ " + _arg1) + "っ・・・ ") + _arg1) + "っ・・・!");
};
};
};
} else {
if (_arg3 == 5){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
if (_arg2 <= 1){
_local5 = (_local6[2] + "・・・!");
} else {
if (_arg2 == 2){
_local5 = ((_local6[3] + _arg1) + "!");
} else {
if (_arg2 == 3){
_local5 = ((_local6[3] + _arg1) + "!!");
};
};
};
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = ((_local6[3] + _arg1) + "っ!!");
} else {
if (_arg4 == 2){
_local5 = (((("んん・・・あっ・・・!" + _arg1) + "! ") + _arg1) + "!!");
};
};
};
};
};
};
};
return (_local5);
}
protected function initialSet():void{
wd = new Object();
wd.restraintWord = new Array();
firstContact = new Array();
firstContact[0] = "firstContact";
firstContact[1] = "・・・・・・・・・";
firstContact[2] = "・・・・?";
firstContact[3] = "こんにちは・・・";
firstContact[4] = (("こんにちは 私の名前は " + cName) + "よ");
firstContact[5] = (((("こんにちは " + fullName) + "です\n") + cName) + "って呼んで下さい");
firstContact[6] = "あなたは誰ですか・・・?";
}
private function loadWord(_arg1:String):void{
dfTXT = new DownloadFile((_arg1 + ".as"));
dfXML = new DownloadFile((_arg1 + ".xml"));
ef.addEventListener(Event.ENTER_FRAME, monitoringPro);
}
private function normalGaspPro(_arg1:String, _arg2:int, _arg3:int, _arg4:int):String{
var _local5:String;
var _local6:String;
var _local7:String;
var _local8:String;
if (_arg3 == 1){
if (_arg2 == 1){
_local5 = (_arg1 + "っ!!");
} else {
if (_arg2 == 2){
_local5 = (_arg1 + "!!");
} else {
if (_arg2 == 3){
_local5 = (_arg1 + "っ!");
} else {
if (_arg2 == 4){
_local5 = (_arg1 + "!");
} else {
if (_arg2 == 5){
_local5 = (_arg1 + "・・・!");
};
};
};
};
};
} else {
if (_arg3 == 2){
if (_arg2 == 1){
_local5 = (_arg1 + "っ・・・?");
} else {
if (_arg2 == 2){
_local5 = (_arg1 + "っ・・・?");
} else {
if (_arg2 == 3){
_local5 = (_arg1 + "っ・・・");
} else {
if (_arg2 == 4){
_local5 = (_arg1 + "っ・・・");
} else {
if (_arg2 == 5){
_local5 = (_arg1 + "っ");
};
};
};
};
};
} else {
if (_arg3 == 3){
if (_arg2 == 1){
_local5 = (_arg1 + "っ・・・");
} else {
if (_arg2 == 2){
_local5 = (_arg1 + "っ");
} else {
if (_arg2 == 3){
_local5 = (_arg1 + "っ");
} else {
if (_arg2 == 4){
_local5 = (_arg1 + "ん");
} else {
if (_arg2 == 5){
_local5 = (_arg1 + "んっ");
};
};
};
};
};
} else {
if (_arg3 == 4){
if (_arg2 == 1){
_local5 = (_arg1 + "っ・・・");
} else {
if (_arg2 == 2){
_local5 = (_arg1 + "っ");
} else {
if (_arg2 == 3){
_local5 = (_arg1 + "ん・・・");
} else {
if (_arg2 == 4){
_local5 = (_arg1 + "んv");
} else {
if (_arg2 == 5){
_local5 = (_arg1 + "っ・・・v");
};
};
};
};
};
} else {
if (_arg3 == 5){
if (_arg2 == 1){
_local5 = (_arg1 + "っ・・・v");
} else {
if (_arg2 == 2){
_local5 = (_arg1 + "っv");
} else {
if (_arg2 == 3){
_local5 = (_arg1 + "ん・・・v");
} else {
if (_arg2 == 4){
_local5 = (_arg1 + "んっ・・・v");
} else {
if (_arg2 == 5){
_local5 = (_arg1 + "んっv");
};
};
};
};
};
};
};
};
};
};
if (_arg2 == 0){
_local5 = (_arg1 + "・・・・・・");
};
_local6 = _local5.substr(0, 1);
_local7 = _local5.substr(0, 2);
_local8 = _local5.substr(0, 3);
if (_arg1 == "・・・"){
_local5 = _local5.replace(/っ/, "");
};
if ((((((((((_local7 == "いん")) || ((_local7 == "えん")))) || ((_local7 == "おん")))) || ((_local8 == "えっち")))) || ((_local8 == "エッチ")))){
_local5 = _local5.replace(/ん/, "");
};
if ((((((((((((((_local6 == "・・・")) || ((_local6 == "ん")))) || ((_local6 == "あ")))) || ((_local6 == "は")))) || ((_local6 == "う")))) || ((_local6 == "お")))) || ((((_local6 == "え")) && (!((_local8 == "えっち"))))))){
} else {
_local5 = _local5.replace(/?/, "");
};
if (_local8 == "やだん"){
_local5 = _local5.replace(/ん/, "ぁ");
};
if (_local8 == "もうん"){
_local5 = _local5.replace(/うん/, "ぉ");
};
if (_local7 == "やめ"){
if (_arg4 == 0){
if (_arg3 <= 2){
_local5 = _local5.replace(/やめ/, "やめて下さい");
} else {
_local5 = _local5.replace(/やめ/, "やめて");
};
} else {
if (_arg4 == 1){
if (_arg3 <= 2){
_local5 = _local5.replace(/やめ/, "やめてよぉ");
} else {
_local5 = _local5.replace(/やめ/, "やめて");
};
} else {
if (_arg4 == 2){
if (_arg3 <= 2){
_local5 = _local5.replace(/やめ/, "やめて下さい");
} else {
_local5 = _local5.replace(/やめ/, "やめて");
};
} else {
if (_arg4 == 3){
if (_arg3 <= 2){
_local5 = _local5.replace(/やめ/, "やめて");
} else {
_local5 = _local5.replace(/やめ/, "やめて");
};
} else {
if (_arg4 == 4){
if (_arg3 <= 2){
_local5 = _local5.replace(/やめ/, "やめろ");
} else {
_local5 = _local5.replace(/やめ/, "やめて");
};
};
};
};
};
};
};
return (_local5);
}
private function negationWordPro(_arg1:String, _arg2:int, _arg3:int, _arg4:int):String{
var _local5:String;
if (_arg1 == "く"){
if (_arg3 == 1){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "・・・・・・・・・!!";
} else {
_local5 = (_arg1 + "っ!!");
};
} else {
if (_arg3 == 2){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "・・・・・・・・・!";
} else {
_local5 = (_arg1 + "!");
};
} else {
if (_arg3 == 3){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "・・・・・・・・・ん!";
} else {
_local5 = "ん~っ!";
};
} else {
if (_arg3 == 4){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "・・・・・・んっ・・・";
} else {
_local5 = "んんっ!";
};
} else {
if (_arg3 == 5){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "・・・うんんっ・・・";
} else {
_local5 = "んあっ・・・!";
};
};
};
};
};
};
} else {
if (_arg1 == "いやらしい"){
if (_arg3 == 1){
if (_arg4 == 3){
_local5 = (("・・・・・・・・・" + _arg1) + "!!");
};
if (_arg4 == 4){
_local5 = (("お前 " + _arg1) + "な!!");
} else {
_local5 = (_arg1 + "っ!!");
};
} else {
if (_arg3 == 2){
if (_arg4 == 3){
_local5 = (("・・・・・・" + _arg1) + "・・・!");
};
if (_arg4 == 4){
_local5 = (_arg1 + "ヤツだ!");
} else {
_local5 = (_arg1 + "!");
};
} else {
if (_arg3 == 3){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "・・・・・・・・・やっ";
} else {
if ((((_arg4 == 2)) || ((_arg4 == 4)))){
_local5 = "・・・やらしいわね";
} else {
if (_arg4 == 1){
_local5 = "やらしぃ~!";
};
};
};
} else {
if (_arg3 == 4){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "いやっ・・・・・・ 何で?";
} else {
if (_arg4 == 2){
_local5 = (("あなたの" + _arg1) + "トコも好きよ・・・");
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (_arg1 + "コトが好きなのぉ・・・?");
};
};
};
} else {
if (_arg3 == 5){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "いや~~ん・・・・・・";
} else {
if (_arg4 == 2){
_local5 = (("すっごく" + _arg1) + "わっ・・・v");
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = "いやぁあんっ えっちぃ~・・・v";
};
};
};
};
};
};
};
};
} else {
if (_arg1 == "見ないで"){
if (_arg3 == 1){
if (_arg4 == 3){
_local5 = "・・・・・・・・・!!";
};
if (_arg4 == 4){
_local5 = "見るなっ!!";
} else {
_local5 = (_arg1 + "っ!!");
};
} else {
if (_arg3 == 2){
if (_arg4 == 3){
_local5 = (("・・・・・・" + _arg1) + "!");
};
if (_arg4 == 4){
_local5 = "見るなってのぉ!";
} else {
_local5 = (_arg1 + "!");
};
} else {
if (_arg3 == 3){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (("・・・" + _arg1) + "下さいっ・・・・・・");
} else {
if ((((_arg4 == 2)) || ((_arg4 == 4)))){
_local5 = (_arg1 + "っ・・・");
} else {
if (_arg4 == 1){
_local5 = (("いやっ " + _arg1) + "よぉ~・・・");
};
};
};
} else {
if (_arg3 == 4){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "見られると・・・ 恥ずかしい・・・です";
} else {
if (_arg4 == 2){
_local5 = "・・・見たいなら 好きなだけ見てもいいのよ?";
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (_arg1 + "っ! 恥ずかしぃよおぉ~・・・");
};
};
};
} else {
if (_arg3 == 5){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "見られると・・・ 恥ずかしい・・・です";
} else {
if (_arg4 == 2){
_local5 = "そんなに見たいんなら 好きなだけ見てっ・・・";
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = "見ちゃ ダメぇえんっ!";
};
};
};
};
};
};
};
};
} else {
if (_arg1 == "そんなトコ触"){
if (_arg3 == 1){
if (_arg4 == 3){
_local5 = "・・・!! やだ!!";
};
if (_arg4 == 4){
_local5 = "るなっ!!";
} else {
_local5 = (_arg1 + "らないでっ!!");
};
} else {
if (_arg3 == 2){
if (_arg4 == 3){
_local5 = "・・・!! 触らないでっ・・・!";
};
if (_arg4 == 4){
_local5 = "お前! 触るなって言ってるよね!?";
} else {
_local5 = (_arg1 + "らないで!");
};
} else {
if (_arg3 == 3){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "そんなトコ・・・ 触らないで・・・下さいっ・・・";
} else {
if ((((_arg4 == 2)) || ((_arg4 == 4)))){
_local5 = (_arg1 + "っちゃ イヤ・・・");
} else {
if (_arg4 == 1){
_local5 = (_arg1 + "っちゃ だめぇ・・・!");
};
};
};
} else {
if (_arg3 == 4){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "あっ・・・・・・ 触らないで下さいっ・・・・・・";
} else {
if (_arg4 == 2){
_local5 = "・・・触りたいなら 好きなだけ触ってもいいのよ?";
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (_arg1 + "らないでっ・・・ えっちぃ~!");
};
};
};
} else {
if (_arg3 == 5){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "あぁんっ・・・ 触ら・・・ないでっ・・・・・・";
} else {
if (_arg4 == 2){
_local5 = "・・・もぉ もっと敏感なトコ触って・・・v";
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (("やぁんっ " + _arg1) + "らないでっ・・・ 感じちゃうよぉ!");
};
};
};
};
};
};
};
};
} else {
if (_arg1 == "怒るよ"){
if (_arg3 == 1){
if (_arg4 == 3){
_local5 = "・・・!! もおっ!!";
};
if (_arg4 == 4){
_local5 = "こらぁ! いいかげんにしてっ!!";
} else {
_local5 = (("ちょっと!? " + _arg1) + "っ!!");
};
} else {
if (_arg3 == 2){
if (_arg4 == 3){
_local5 = "・・・! やあんっ!";
};
if (_arg4 == 4){
_local5 = "いいかげんにしてって言ってるでしょ!?";
} else {
_local5 = (_arg1 + "っ!?");
};
} else {
if (_arg3 == 3){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "もう・・・! 怒りますよ・・・?";
} else {
if ((((_arg4 == 2)) || ((_arg4 == 4)))){
_local5 = "何でそんな事をするの・・・?";
} else {
if (_arg4 == 1){
_local5 = "もぉ~ プンプン!";
};
};
};
} else {
if (_arg3 == 4){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "あっ・・・ そんな事やめて・・・下さいっ・・・・・・";
} else {
if (_arg4 == 2){
_local5 = "・・・もぉ・・・ 強引なんだからっ・・・";
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = "もぉ・・・ だめだって言ってるのにぃ~・・・v";
};
};
};
} else {
if (_arg3 == 5){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "あんっ・・・ やめてっ・・・";
} else {
if (_arg4 == 2){
_local5 = "あぁんっ・・・ もう好きにしてっ・・・";
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = "もぉ・・・ いやぁああんっ・・・v";
};
};
};
};
};
};
};
};
} else {
if (_arg1 == "気持ち悪"){
if (_arg3 == 1){
if (_arg4 == 3){
_local5 = "・・・!! いやぁっ!!";
};
if (_arg4 == 4){
_local5 = (("ちょっと! " + _arg1) + "いわよっ!!");
} else {
_local5 = (("・・・・・・ " + _arg1) + "いっ!!");
};
} else {
if (_arg3 == 2){
if (_arg4 == 3){
_local5 = (("それは・・・ " + _arg1) + "いです・・・");
};
if (_arg4 == 4){
_local5 = (("もぉ! " + _arg1) + "~っ・・・!");
} else {
_local5 = (_arg1 + "い!");
};
} else {
if (_arg3 == 3){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "そんなの・・・ ダメですよ・・・?";
} else {
if ((((_arg4 == 2)) || ((_arg4 == 4)))){
_local5 = "えぇ・・・ いやですぅ・・・";
} else {
if (_arg4 == 1){
_local5 = "もぉ~・・・ 変態っ!";
};
};
};
} else {
if (_arg3 == 4){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "んんっ・・・ こんな事・・・ だめだと思います・・・";
} else {
if (_arg4 == 2){
_local5 = "こんな事・・・ 誰にも話しちゃ いやよっ・・・";
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = "もぉ・・・ い~や~だぁ~!";
};
};
};
} else {
if (_arg3 == 5){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "うぅんっ・・・ こんな事・・・ いけないと思います・・・";
} else {
if (_arg4 == 2){
_local5 = "こんなの・・・ もぉっ 今日だけなんだからぁ・・・";
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = "やあぁあんっ~・・・ へんたいぃ~!";
};
};
};
};
};
};
};
};
} else {
if ((((_arg1 == "信じられ")) || ((_arg1 == "ありえ")))){
if (_arg3 == 1){
if (_arg4 == 3){
_local5 = "・・・・・・・・・!!";
};
if (_arg4 == 4){
_local5 = (("いやあ! " + _arg1) + "ないわっ!!");
} else {
_local5 = (("ええっ!? " + _arg1) + "ないっ!!");
};
} else {
if (_arg3 == 2){
if (_arg4 == 3){
_local5 = (("・・・・・・! " + _arg1) + "ないっ!");
};
if (_arg4 == 4){
_local5 = (("ちょっとぉ!? " + _arg1) + "ない・・・!");
} else {
_local5 = (("・・・・・・ " + _arg1) + "な~い!");
};
} else {
if (_arg3 == 3){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (("んっ・・・ " + _arg1) + "ません・・・");
} else {
if ((((_arg4 == 2)) || ((_arg4 == 4)))){
_local5 = (("もう・・・! " + _arg1) + "ないわっ・・・");
} else {
if (_arg4 == 1){
_local5 = (("いやぁん・・・ " + _arg1) + "なぁ~いっv");
};
};
};
} else {
if (_arg3 == 4){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (("うぅんっ・・・ " + _arg1) + "ない・・・です・・・");
} else {
if (_arg4 == 2){
_local5 = (("こんな事・・・ " + _arg1) + "な~い・・・");
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (("もぉ・・・ " + _arg1) + "ま~せ~んっ");
};
};
};
} else {
if (_arg3 == 5){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (("はぁんっ・・・ " + _arg1) + "・・・ないっ・・・");
} else {
if (_arg4 == 2){
_local5 = (("いやん 本当に・・・? " + _arg1) + "なぁいっ");
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (("あぁんっ! " + _arg1) + "な~あ~い~っ");
};
};
};
};
};
};
};
};
} else {
if (_arg1 == "放って"){
if (_arg3 == 1){
if (_arg4 == 3){
_local5 = "・・・・・・・・・フン!!";
};
if (_arg4 == 4){
_local5 = (("何よ! " + _arg1) + "おいてよっ!!");
} else {
_local5 = (_arg1 + "おいてっ!!");
};
} else {
if (_arg3 == 2){
if (_arg4 == 3){
_local5 = (_arg1 + "おいてください・・・・・・!");
};
if (_arg4 == 4){
_local5 = (_arg1 + "おいてって言ってるでしょっ!");
} else {
_local5 = (("もう " + _arg1) + "おいてっ!");
};
} else {
if (_arg3 == 3){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (_arg1 + "おいて・・・ 下さい・・・");
} else {
if ((((_arg4 == 2)) || ((_arg4 == 4)))){
_local5 = (((myName + "を") + _arg1) + "おく気なんですか・・・?");
} else {
if (_arg4 == 1){
_local5 = (((myName + "を") + _arg1) + "おく気ぃ?");
};
};
};
} else {
if (_arg3 == 4){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (_arg1 + "おいたくせに・・・・・・・・・");
} else {
if (_arg4 == 2){
_local5 = (((myName + "を") + _arg1) + "おかないでっ・・・");
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (((("もぉ・・・ " + myName) + "を") + _arg1) + "おかないでぇっ");
};
};
};
} else {
if (_arg3 == 5){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (((myName + "を") + _arg1) + "おかないで下さい・・・");
} else {
if (_arg4 == 2){
_local5 = (((myName + "を") + _arg1) + "おくなんてひどいわっ・・・");
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (((myName + "を") + _arg1) + "おかないでよぉ もぉっ");
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
return (_local5);
}
public function charTextOut(_arg1:String, _arg2:Boolean, _arg3:int=1):String{
var _local4:String;
var _local5:Object;
if (_arg1 == "bGasp"){
_local5 = bGasp;
} else {
_local5 = wd[_arg1];
};
if (_arg2){
_arg3 = (Math.floor((Math.random() * (_local5.length - 1))) + 1);
};
_local4 = _local5[_arg3][cExp][fondness];
return (_local4);
}
private function afterFinishPro(_arg1:String, _arg2:int, _arg3:int, _arg4:int):String{
var _local5:String;
var _local6:String;
var _local7:String;
var _local8:String;
_local6 = _arg1.substr(0, 4);
_local7 = _arg1.substr(0, 6);
_local8 = _arg1.substr(0, 7);
if (_arg4 == 0){
if (_local6 == "・・・触"){
_local5 = _arg1.replace(/ら/, "ら・・・");
} else {
if (_local6 == "・・・動"){
_local5 = _arg1.replace(/い/, "い・・・");
} else {
if (_local6 == "・・・も"){
_local5 = _arg1.replace(/う/, "う・・・");
} else {
_local5 = _arg1;
};
};
};
} else {
if (_arg4 == 1){
if (_local6 == "・・・触"){
_local5 = _arg1.replace(/ら/, "ら・・・");
} else {
if (_local6 == "・・・動"){
_local5 = _arg1.replace(/い/, "い・・・");
} else {
if (_local6 == "・・・も"){
_local5 = _arg1.replace(/う/, "う・・・");
} else {
_local5 = _arg1;
};
};
};
} else {
if (_arg4 == 2){
_local5 = _arg1;
} else {
if (_arg4 == 3){
if (_local6 == "・・・触"){
_local5 = "・・・";
} else {
if (_local6 == "・・・動"){
_local5 = "・・・・・・";
} else {
if (_local6 == "・・・も"){
_local5 = "・・・・・・・・・";
} else {
_local5 = _arg1;
};
};
};
} else {
if (_arg4 == 4){
if (_local6 == "・・・触"){
_local5 = _arg1.replace(/ら/, "ら・・・");
} else {
if (_local6 == "・・・動"){
_local5 = _arg1.replace(/い/, "い・・・");
} else {
if (_local6 == "・・・も"){
_local5 = _arg1.replace(/う/, "う・・・");
} else {
_local5 = _arg1;
};
};
};
};
};
};
};
};
return (_local5);
}
public function set setFondness(_arg1:int):void{
fondness = _arg1;
}
public function set setExp(_arg1:int):void{
cExp = _arg1;
}
private function minusEm(_arg1:String):String{
return (_arg1.replace(/!/, "・・・"));
}
private function dataSetPro():void{
var _local1:int;
var _local2:String;
var _local3:String;
var _local4:Boolean;
var _local5:int;
var _local6:String;
var _local7:int;
trace("\nデータベース反映処理 開始");
_local1 = 0;
_local4 = false;
_local5 = 0;
for (;_local5 < dataBase.length;_local5++) {
_local6 = dataBase.substr(_local5, 1);
_local7 = _local6.charCodeAt();
if ((((((((_local7 == 13)) || ((_local7 == 10)))) || ((_local7 == 9)))) || ((_local7 == 47)))){
if ((((_local2 == null)) || ((_local2 == "")))){
continue;
};
if (_local2 == "#allEnd"){
dataBase = "";
break;
} else {
if (_local2 == "#end"){
_local4 = false;
_local3 = "";
} else {
if (_local2.substr(0, 1) == "#"){
_local3 = _local2.substring(1, _local2.length);
_local4 = true;
} else {
if (_local2 != ""){
if (_local4){
if (DB[_local3] != null){
DB[_local3].push(_local2);
} else {
DB[_local3] = new Array();
DB[_local3][0] = _local3;
DB[_local3][1] = _local2;
};
};
};
};
};
};
_local2 = "";
} else {
_local2 = (_local2 + _local6);
};
};
trace("データベース反映処理 終了\n");
}
public function dataClear():void{
var _local1:*;
var _local2:*;
trace(("クリア処理 " + getQualifiedClassName(this)));
if (dfTXT != null){
dfTXT.removePro();
dfTXT = null;
};
if (dfXML != null){
dfXML.removePro();
dfXML = null;
};
if (ef != null){
ef.removeEventListener(Event.ENTER_FRAME, monitoringPro);
ef = null;
};
for (_local1 in DB) {
DB[_local1] = null;
};
DB = null;
for (_local2 in wd) {
wd[_local2] = null;
};
wd = null;
bGasp = null;
firstContact = null;
}
private function firstContactPro(_arg1:String, _arg2:int):String{
var _local3:String;
var _local4:String;
var _local5:String;
var _local6:String;
_local4 = _arg1.substr(0, 4);
_local5 = _arg1.substr(0, 6);
_local6 = _arg1.substr(0, 7);
if (_arg2 == 0){
if (_local6 == "こんにちは 私"){
_local3 = (("こんにちは・・・ 私は " + cName) + "です");
} else {
if (_local5 == "こんにちは "){
_local3 = (((("こんにちは・・・ " + fullName) + "です\n") + cName) + "って呼んでね");
} else {
if (_local4 == "あなたは"){
_local3 = _arg1.replace(/ですか/, "");
} else {
_local3 = _arg1;
};
};
};
} else {
if (_arg2 == 1){
if (_local5 == "こんにちは・"){
_local3 = _arg1.replace(/・・・/, "ぁ!");
} else {
if (_local6 == "こんにちは 私"){
_local3 = (("こんにちはぁ! " + cName) + "で~す");
} else {
if (_local5 == "こんにちは "){
_local3 = (((("こんにちは! " + fullName) + "で~す\n") + cName) + "って呼んでねぃv");
} else {
if (_local4 == "あなたは"){
_local3 = _arg1.replace(/誰ですか・・・/, "だ~れ?");
} else {
_local3 = _arg1;
};
};
};
};
} else {
if (_arg2 == 2){
_local3 = _arg1;
} else {
if (_arg2 == 3){
if (_local5 == "こんにちは・"){
_local3 = "・・・・・・・・・";
} else {
if (_local6 == "こんにちは 私"){
_local3 = ("私は・・・ " + cName);
} else {
if (_local5 == "こんにちは "){
_local3 = (("私の名前は・・・ " + fullName) + "・・・");
} else {
if (_local4 == "あなたは"){
_local3 = "誰・・・・・・?";
} else {
_local3 = _arg1;
};
};
};
};
} else {
if (_arg2 == 4){
if (_local5 == "こんにちは・"){
_local3 = "・・・・・・";
} else {
if (_local6 == "こんにちは 私"){
_local3 = (("私は " + cName) + "よ");
} else {
if (_local5 == "こんにちは "){
_local3 = (((("私の本名は " + fullName) + "よ\n") + cName) + "って呼んでもいいわ");
} else {
if (_local4 == "あなたは"){
_local3 = "あんた誰?";
} else {
_local3 = _arg1;
};
};
};
};
};
};
};
};
};
return (_local3);
}
private function monitoringPro(_arg1:Event):void{
var _local2:XML;
if (dfTXT != null){
if (dfTXT.getErrorFlg){
errorMessage = dfTXT.getMes;
} else {
if (dfTXT.getDataBase != ""){
dataBase = dfTXT.getDataBase;
dfTXT.removePro();
dfTXT = null;
DB = new Object();
dataSetPro();
dataCreate();
};
};
};
if (dfXML != null){
if (dfXML.getErrorFlg){
errorMessage = dfXML.getMes;
} else {
if (dfXML.getDataBase != ""){
_local2 = new XML(dfXML.getDataBase);
xmlSetPro(_local2);
dfXML.removePro();
dfXML = null;
};
};
};
if ((((dfTXT == null)) && (dfXML))){
ef.removeEventListener(Event.ENTER_FRAME, monitoringPro);
ef = null;
};
}
protected function dataCreate():void{
var _local1:*;
var _local2:int;
var _local3:*;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:String;
var _local10:String;
wd.normalGasp = new Array();
wd.negationWord = new Array();
wd.reactionWord = new Array();
wd.demandWord = new Array();
wd.ecstasyWord = new Array();
wd.afterFinish = new Array();
wd.firstOneWord = new Array();
for (_local1 in wd) {
if (_local1 == "restraintWord"){
} else {
_local4 = 0;
while (_local4 < DB[_local1].length) {
wd[_local1][_local4] = new Array();
_local5 = 0;
while (_local5 <= 5) {
wd[_local1][_local4][_local5] = new Array();
_local5++;
};
_local4++;
};
};
};
wd.firstContact = new Array();
if (prsonality == 0){
myName = "私";
} else {
if (prsonality == 1){
myName = cName;
} else {
if (prsonality == 2){
myName = "私";
} else {
if (prsonality == 3){
myName = "私";
} else {
if (prsonality == 4){
myName = "私";
};
};
};
};
};
_local2 = 1;
while (_local2 < firstContact.length) {
wd.firstContact[_local2] = firstContactPro(firstContact[_local2], prsonality);
_local2++;
};
for (_local3 in DB) {
_local6 = 1;
while (_local6 < DB[_local3].length) {
_local7 = 0;
while (_local7 <= 5) {
_local8 = 1;
while (_local8 <= 5) {
_local9 = DB[_local3][0];
_local10 = (_local9 + "Pro");
wd[_local9][_local6][_local7][_local8] = this[_local10](DB[_local3][_local6], _local7, _local8, prsonality);
_local8++;
};
_local7++;
};
_local6++;
};
};
}
public function checkXMLtoArray():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
trace("nGasp 各キャラ共通 wn ex fd");
_local1 = bGasp.length;
trace(((("name: " + bGasp[0]) + " length: ") + _local1));
_local2 = 1;
while (_local2 < _local1) {
_local3 = 0;
while (_local3 <= 3) {
_local4 = 1;
while (_local4 <= 5) {
trace(((((((_local2 + " ") + _local3) + " ") + _local4) + " ") + bGasp[_local2][_local3][_local4]));
_local4++;
};
_local3++;
};
_local2++;
};
trace(("restraintWord//拘束時ワード 選択タイプのみ wn ex fd prsonality:" + prsonality));
_local1 = wd.restraintWord.length;
trace(((("name: " + wd.restraintWord[0]) + " length: ") + _local1));
_local2 = 1;
while (_local2 < _local1) {
_local3 = 0;
while (_local3 <= 3) {
_local4 = 1;
while (_local4 <= 5) {
trace(((((((_local2 + " ") + _local3) + " ") + _local4) + " ") + wd.restraintWord[_local2][_local3][_local4]));
_local4++;
};
_local3++;
};
_local2++;
};
}
private function firstOneWordPro(_arg1:String, _arg2:int, _arg3:int, _arg4:int):String{
var _local5:String;
var _local6:String;
_local6 = _arg1.substr(0, 3);
if (_local6 == "毎日遊"){
if (_arg4 == 0){
_local5 = _arg1.replace(/わ/, "!");
} else {
if (_arg4 == 1){
_local5 = _arg1.replace(/(日)(.*)う うれしいわ/, "$1毎日$2ぉ う~れしい!");
} else {
if (_arg4 == 2){
_local5 = _arg1;
} else {
if (_arg4 == 3){
_local5 = _arg1.replace(/(れ)て(.*)とう(.*)/, "$1て・・・ $2と・・・");
} else {
if (_arg4 == 4){
_local5 = "毎日毎日ご苦労様 まあ・・・一応うれしいわ";
};
};
};
};
};
} else {
if (_local6 == "今日も"){
if (_arg4 == 0){
_local5 = _arg1.replace(/の/, "んです");
} else {
if (_arg4 == 1){
_local5 = _arg1.replace(/の.*!/, "んだぁ ありがとぉ~v");
} else {
if (_arg4 == 2){
_local5 = _arg1;
} else {
if (_arg4 == 3){
_local5 = _arg1.replace(/た.*!/, "て・・・ ありがと・・・");
} else {
if (_arg4 == 4){
_local5 = _arg1.replace(/(も)遊びに(来).*/, "$1$2たの? ふぅん・・・");
};
};
};
};
};
} else {
if (_local6 == "昨日は"){
if (_arg4 == 0){
_local5 = _arg1.replace(/の/, "んですか");
} else {
if (_arg4 == 1){
_local5 = (_arg1.replace(/の/, "のぉ!") + " ひどぉい!");
} else {
if (_arg4 == 2){
_local5 = _arg1;
} else {
if (_arg4 == 3){
_local5 = _arg1.replace(/(は)何で(.*)の/, "$1どうして・・・ $2の・・・");
} else {
if (_arg4 == 4){
_local5 = "あんた 何で昨日来なかったのよ?";
};
};
};
};
};
} else {
if (_local6 == "昨日も"){
if (_arg4 == 0){
_local5 = _arg1.replace(/わ/g, "");
} else {
if (_arg4 == 1){
_local5 = ((_arg1.replace(/(た)わね(・・・ ).*/, "$1もん$2") + myName) + "寂しかったぁ~・・・");
} else {
if (_arg4 == 2){
_local5 = _arg1;
} else {
if (_arg4 == 3){
_local5 = _arg1.replace(/(い)も(.*)わね(.*)たわ/, "$1も・・・ $2$3た・・・");
} else {
if (_arg4 == 4){
_local5 = _arg1.replace(/(いも)遊びに(来).*/, "$1$2なかったよね!? どういう事?");
};
};
};
};
};
} else {
if (_local6 == "最近ず"){
if (_arg4 == 0){
_local5 = _arg1.replace(/わ/, "");
} else {
if (_arg4 == 1){
_local5 = _arg1.replace(/い!.*/, "いっ ひっどぉ~い!");
} else {
if (_arg4 == 2){
_local5 = _arg1;
} else {
if (_arg4 == 3){
_local5 = _arg1.replace(/(近)ずっと(.*)じゃない!(.*)わ/, "$1・・・ 全然$2ね$3");
} else {
if (_arg4 == 4){
_local5 = "あんた最近全然来ないじゃない! ・・・バカにしてんの?";
};
};
};
};
};
} else {
_local5 = _arg1;
};
};
};
};
};
return (_local5);
}
private function plusHt(_arg1:String):String{
return ((_arg1 + "v"));
}
private function reactionWordPro(_arg1:String, _arg2:int, _arg3:int, _arg4:int):String{
var _local5:String;
if ((((_arg1 == "くすぐった")) || ((_arg1 == "恥ずかし")))){
if (_arg3 == 1){
if (_arg4 == 3){
_local5 = "・・・・・・・・・やめて!!";
};
if (_arg4 == 4){
_local5 = (_arg1 + "いからやめろ!!");
} else {
_local5 = (_arg1 + "いからやめて!!");
};
} else {
if (_arg3 == 2){
if (_arg4 == 3){
_local5 = "・・・・・・・・・ ・・・やめて!";
};
if (_arg4 == 4){
_local5 = (("・・・! " + _arg1) + "いだろ!?");
} else {
_local5 = (("・・・! " + _arg1) + "いでしょ!?");
};
} else {
if (_arg3 == 3){
if (_arg4 == 3){
_local5 = "・・・! やっ・・・・・・";
};
if (_arg4 == 4){
_local5 = (_arg1 + "いだろ・・・・・・");
} else {
_local5 = (_arg1 + "いからやめて下さい・・・");
};
} else {
if (_arg3 == 4){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (("・・・" + _arg1) + "い・・・・・・");
} else {
if (_arg4 == 2){
_local5 = (("・・・! " + _arg1) + "いでしょ?");
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
if (_arg1 == "くすぐった"){
_local5 = (_arg1 + "ぁ~い!");
};
if (_arg1 == "恥ずかし"){
_local5 = (_arg1 + "ぃ~い!");
};
};
};
};
} else {
if (_arg3 == 5){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (("・・・" + _arg1) + "い・・・・・・");
} else {
if (_arg4 == 2){
_local5 = (("あん・・・ " + _arg1) + "いわ・・・v");
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (("んもぉ・・・ " + _arg1) + "い・・・v");
};
};
};
};
};
};
};
};
} else {
if ((((_arg1 == "熱くなって")) || ((_arg1 == "変になって")))){
if (_arg3 == 1){
if (_arg4 == 3){
_local5 = "・・・・・・・・・いやっ!!";
};
if (_arg4 == 4){
_local5 = "やめろ 暑苦しい!!";
} else {
_local5 = "暑苦しいからやめて!!";
};
} else {
if (_arg3 == 2){
if (_arg4 == 3){
_local5 = "・・・・・・・・・いや!";
};
if (_arg4 == 4){
_local5 = "暑苦しいからやめろ!";
} else {
_local5 = "暑苦しいからやめて下さい!";
};
} else {
if (_arg3 == 3){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (("・・・ " + _arg1) + "・・・ きた・・・・・・");
} else {
if ((((_arg4 == 2)) || ((_arg4 == 4)))){
_local5 = (((myName + "・・・ ") + _arg1) + "きたわ・・・");
} else {
if (_arg4 == 1){
_local5 = (((myName + "・・・ ") + _arg1) + "きちゃった・・・");
};
};
};
} else {
if (_arg3 == 4){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (("何だか・・・ " + _arg1) + "・・・ きた・・・");
} else {
if (_arg4 == 2){
_local5 = (("んんっ " + _arg1) + "きたわ・・・");
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (((myName + "・・・ ") + _arg1) + "きちゃったよぉ・・・");
};
};
};
} else {
if (_arg3 == 5){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (("・・・! " + _arg1) + "きたっ・・・!");
} else {
if (_arg4 == 2){
_local5 = (("あぁん・・・ " + _arg1) + "きたわv");
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (("やあぁあん! " + _arg1) + "きちゃったぁんv");
};
};
};
};
};
};
};
};
} else {
if ((((_arg1 == "感じ")) || ((_arg1 == "濡れ")))){
if (_arg3 == 1){
if (_arg4 == 3){
_local5 = "・・・・・・・・・あっ!!";
};
if (_arg4 == 4){
_local5 = "やめろ 気持ち悪い!!";
} else {
_local5 = "気持ち悪いからやめて!!";
};
} else {
if (_arg3 == 2){
if (_arg4 == 3){
_local5 = "・・・・・・・・・あ!";
};
if (_arg4 == 4){
_local5 = "気持ち悪い やめろ!";
} else {
_local5 = "気持ち悪いのでやめて下さい!";
};
} else {
if (_arg3 == 3){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "・・・いや・・・ 恥ずかしい・・・";
} else {
if ((((_arg4 == 2)) || ((_arg4 == 4)))){
_local5 = (((myName + "・・・ ") + _arg1) + "てる・・・?");
} else {
if (_arg4 == 1){
_local5 = (((("いやだ・・・ " + myName) + " ") + _arg1) + "てきちゃう・・・");
};
};
};
} else {
if (_arg3 == 4){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "・・・やん・・・ 恥ずかしいよ・・・";
} else {
if (_arg4 == 2){
_local5 = (((("あん・・・ " + myName) + " ") + _arg1) + "てるみたい・・・v");
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (((("いやぁあん! " + myName) + " ") + _arg1) + "てきちゃったぁ・・・v");
};
};
};
} else {
if (_arg3 == 5){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (((myName + "・・・・・・ ") + _arg1) + "て・・・る・・・・・・");
} else {
if (_arg4 == 2){
_local5 = (("ああんっ! " + _arg1) + "ちゃう・・・v");
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (("はあぁあん! " + _arg1) + "ちゃうぅ~v");
};
};
};
};
};
};
};
};
} else {
if ((((_arg1 == "おかしくなっ")) || ((_arg1 == "たまらなくなっ")))){
if (_arg3 == 1){
if (_arg4 == 3){
_local5 = "・・・・・・・・・んん~!!";
};
if (_arg4 == 4){
_local5 = "やめろ 気分が悪くなる!!";
} else {
_local5 = "イヤな気分になるからやめて!!";
};
} else {
if (_arg3 == 2){
if (_arg4 == 3){
_local5 = "・・・・・・・・・んんっ!";
};
if (_arg4 == 4){
_local5 = "気分が悪くなるだろ!?";
} else {
_local5 = "変な気分になるのでやめて下さい!";
};
} else {
if (_arg3 == 3){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = "・・・いやっ・・・ 何か・・・ 変な気持ち・・・";
} else {
if ((((_arg4 == 2)) || ((_arg4 == 4)))){
_local5 = (myName + "・・・ 変よ・・・?");
} else {
if (_arg4 == 1){
_local5 = (((("いや・・・ " + myName) + "・・・ ") + _arg1) + "てきちゃう・・・");
};
};
};
} else {
if (_arg3 == 4){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (("あ・・・ ん・・・ " + myName) + "・・・ とっても恥ずかしい気分・・・");
} else {
if (_arg4 == 2){
_local5 = (((("あぁっ・・・ " + myName) + "・・・ ") + _arg1) + "ちゃいそう・・・");
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (((("んっ・・・あ! " + myName) + " ") + _arg1) + "てきちゃったぁ・・・v");
};
};
};
_local5 = ((((" " + myName) + "・・・ ") + _arg1) + "ちゃう・・・v");
} else {
if (_arg3 == 5){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
_local5 = (((myName + "・・・ ") + _arg1) + "って・・・ きちゃった・・・!");
} else {
if (_arg4 == 2){
if (_arg1 == "おかしくなっ"){
_local5 = "あぁんっ! もうおかしくなっちゃうっ・・・!";
};
if (_arg1 == "たまらなくなっ"){
_local5 = "あぁんっ! もうたまらないわっ・・・!";
};
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (((("はぁあん! もう" + myName) + " ") + _arg1) + "ちゃうぅ~・・・!");
};
};
};
};
};
};
};
};
};
};
};
};
return (_local5);
}
public function checkW_test1_1(_arg1:Array, _arg2:Boolean):void{
var _local3:String;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
trace("\ncheckW_test2() 個別のデータベースから抽出後のワードチェック\n");
_local4 = 0;
while (_local4 < _arg1.length) {
trace(("tg.length " + _arg1.length));
_local5 = 0;
while (_local5 <= 5) {
trace(("tg[ w ].length " + _arg1[_local4].length));
if (_local5 == 0){
} else {
if (!_arg2){
} else {
_local6 = 1;
while (_local6 <= 5) {
trace(("tg[ w ][ e ].length " + _arg1[_local4][_local6].length));
_local7 = 0;
while (_local7 < _arg1[_local4][_local5][_local6].length) {
trace(("tg[ w ][ e ][ f ].length " + _arg1[_local4][_local5][_local6].length));
_local3 = (_local3 + _arg1[_local4][_local5][_local6][_local7]);
_local7++;
};
_local6++;
};
};
trace(((_local4 + " : ") + _local3));
_local3 = "";
};
_local5++;
};
trace("\n");
_local4++;
};
}
private function xmlSetPro(_arg1:XML):void{
var nd1:XMLList;
var nd2:XMLList;
var wl:int;
var wa:int;
var BV:XMLList;
var TR:XMLList;
var TD:XMLList;
var ary:Array;
var iv:XML;
var co:int;
var w:int;
var w1:int;
var vl1:XML;
var w2:int;
var w3:int;
var ea:int;
var e:int;
var f:int;
var e1:int;
var e2:int;
var f2:int;
var e3:int;
var f3:int;
var xml = _arg1;
nd1 = xml.kindName.(@id == "basicGasp");
nd2 = nd1.baseValue.@id;
wl = nd2.length();
bGasp = new Array();
bGasp[0] = "basicGasp";
wa = 1;
while (wa <= wl) {
bGasp[wa] = new Array();
ea = 0;
while (ea <= 3) {
bGasp[wa][ea] = new Array();
ea = (ea + 1);
};
wa = (wa + 1);
};
BV = xml.kindName.(@id == "basicGasp").baseValue;
TR = BV.tr;
TD = TR.td;
ary = new Array();
for each (iv in TD) {
ary.push(iv);
};
co = 0;
w = 1;
while (w <= wl) {
e = 0;
while (e <= 3) {
f = 1;
while (f <= 5) {
bGasp[w][e][f] = ary[co].toString();
co = (co + 1);
f = (f + 1);
};
e = (e + 1);
};
w = (w + 1);
};
ary = null;
ary = new Array();
wd.restraintWord[0] = "restraintWord";
wl = xml.kindName.(@id == "restraintWord").baseValue.@id.length();
w1 = 1;
while (w1 <= wl) {
wd.restraintWord[w1] = new Array();
e1 = 0;
while (e1 <= 3) {
wd.restraintWord[w1][e1] = new Array();
e1 = (e1 + 1);
};
w1 = (w1 + 1);
};
BV = xml.kindName.(@id == "restraintWord").baseValue.personality.(@id == prsonality).tr.td;
for each (vl1 in BV) {
ary.push(vl1);
};
co = 0;
w2 = 1;
while (w2 <= wl) {
e2 = 0;
while (e2 <= 3) {
f2 = 1;
while (f2 <= 5) {
wd.restraintWord[w2][e2][f2] = ary[co].toString();
co = (co + 1);
f2 = (f2 + 1);
};
e2 = (e2 + 1);
};
w2 = (w2 + 1);
};
ary = null;
w3 = 1;
while (w3 <= wl) {
e3 = 1;
while (e3 <= 3) {
f3 = 1;
while (f3 <= 5) {
wd.restraintWord[w3][e3][f3] = wd.restraintWord[w3][0][f3];
f3 = (f3 + 1);
};
e3 = (e3 + 1);
};
w3 = (w3 + 1);
};
}
public function checkK_test1(_arg1:String, _arg2:Boolean, _arg3:Boolean):void{
var _local4:Array;
var _local5:int;
var _local6:*;
var _local7:String;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:String;
var _local15:int;
var _local16:int;
var _local17:int;
trace("指定した項目の全ての性格のワードチェック");
_local4 = new Array();
_local5 = 0;
while (_local5 <= 4) {
_local4[_local5] = new Array();
_local9 = 0;
while (_local9 < DB[_arg1].length) {
_local4[_local5][_local9] = new Array();
_local10 = 0;
while (_local10 <= 5) {
_local4[_local5][_local9][_local10] = new Array();
_local10++;
};
_local9++;
};
_local5++;
};
_local6 = 0;
while (_local6 <= 4) {
_local11 = 0;
while (_local11 < DB[_arg1].length) {
_local12 = 0;
while (_local12 <= 5) {
_local13 = 1;
while (_local13 <= 5) {
_local14 = (_arg1 + "Pro");
_local4[_local6][_local11][_local12][_local13] = this[_local14](DB[_arg1][_local11], _local12, _local13, _local6);
_local13++;
};
_local12++;
};
_local11++;
};
_local6++;
};
_local7 = "";
_local8 = 0;
while (_local8 <= 4) {
trace(((("\n" + _local8) + " : ") + kindName[_local8]));
_local15 = 0;
while (_local15 < DB[_arg1].length) {
_local16 = 0;
while (_local16 <= 5) {
trace(("経験:" + _local16));
_local17 = 1;
while (_local17 <= 5) {
if (!_arg3){
if (_local17 == 2){
break;
};
};
if (!_arg2){
if (_local16 == 1){
//unresolved jump
};
};
_local7 = (_local7 + (((("f" + _local17) + ":") + _local4[_local8][_local15][_local16][_local17]) + " "));
_local17++;
};
trace(_local7);
_local7 = "";
_local16++;
};
_local15++;
};
_local8++;
};
}
private function plusEm(_arg1:String):String{
return ((_arg1 + "!"));
}
private function searchConversionPro(_arg1:String, _arg2:Array, _arg3:Array):void{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:String;
_local4 = 1;
while (_local4 < _arg2.length) {
_local5 = 0;
while (_local5 <= 5) {
_local6 = 1;
while (_local6 <= 5) {
_local7 = (_arg1 + "Pro");
_arg3[_local4][_local5][_local6] = this[_local7](_arg2[_local4], _local5, _local6, prsonality);
_local6++;
};
_local5++;
};
_local4++;
};
}
public function checkW_test2(_arg1:Boolean, _arg2:Boolean):void{
var _local3:String;
var _local4:Boolean;
var _local5:*;
var _local6:int;
var _local7:int;
var _local8:int;
_local3 = "";
_local4 = false;
for (_local5 in wd) {
trace(((("\n\n//// " + _local5) + " ////length: ") + wd[_local5].length));
_local6 = 0;
while (_local6 < wd[_local5].length) {
if ((((_local6 == 0)) && ((_local5 == "restraintWord")))){
} else {
_local7 = 0;
while (_local7 <= 3) {
trace(((_local6 + ": 経験:") + _local7));
_local8 = 1;
while (_local8 <= 5) {
if (!_arg2){
if (_local8 == 2){
break;
};
};
if (!_arg1){
if (_local7 == 1){
//unresolved jump
};
};
if (_local5 == "firstContact"){
_local3 = ((_local6 + " ") + wd[_local5][_local6]);
_local4 = true;
} else {
if (((!((wd[_local5][_local6][_local7][_local8] == null))) && (!((wd[_local5][_local6][_local7][_local8] == ""))))){
_local3 = (_local3 + (((("F" + _local8) + ":") + wd[_local5][_local6][_local7][_local8]) + " "));
_local4 = true;
};
};
_local8++;
};
trace(_local3);
_local3 = "";
_local4 = false;
_local7++;
};
};
_local6++;
};
trace("\n");
};
}
public function wordChangePro(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:String):void{
wd[_arg1][_arg2][_arg3][_arg4] = _arg5;
}
public function checkW_test1():void{
var _local1:*;
var _local2:int;
trace("\ncheckW_test1() データベースから抽出後のワードチェック\n");
for (_local1 in DB) {
_local2 = 0;
while (_local2 < DB[_local1].length) {
trace(((_local2 + " : ") + DB[_local1][_local2]));
_local2++;
};
trace("\n");
};
}
private function demandWordPro(_arg1:String, _arg2:int, _arg3:int, _arg4:int):String{
var _local5:String;
var _local6:Array;
var _local7:int;
_local6 = new Array("はぁ・・・ ", "はあっ・・・ ", "はぁ! ", "はあっ! ");
_local7 = Math.floor((Math.random() * _local6.length));
if ((((_arg3 == 1)) || ((_arg3 == 2)))){
_local5 = "・・・・・・!!";
} else {
if (_arg3 == 3){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
if (_arg2 <= 1){
_local5 = (_local6[_local7] + _local6[_local7]);
} else {
if (_arg2 >= 2){
_local5 = ((_local6[_local7] + _local6[_local7]) + _local6[_local7]);
};
};
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (("・・・・・・ あのね・・・ " + _arg1) + "・・・");
} else {
if (_arg4 == 2){
_local5 = ((_local6[_local7] + _arg1) + "もいいのよ・・・?");
};
};
};
} else {
if (_arg3 == 4){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
if (_arg2 <= 1){
_local5 = "あの・・・ 何でも・・・ないです・・・・・・";
} else {
if (_arg2 == 2){
_local5 = "・・・好きに・・・ して下さい・・・";
} else {
if (_arg2 == 3){
_local5 = ((_local6[_local7] + _arg1) + "下さい・・・!");
};
};
};
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = (("お願い・・・ " + _arg1) + "っ・・・!");
} else {
if (_arg4 == 2){
_local5 = ((_local6[_local7] + _arg1) + "っ・・・!");
};
};
};
} else {
if (_arg3 == 5){
if ((((_arg4 == 0)) || ((_arg4 == 3)))){
if (_arg2 <= 1){
_local5 = (_arg1 + "・・・ 下さい・・・・・・");
} else {
if (_arg2 == 2){
_local5 = ((_local6[2] + _arg1) + "下さい・・・");
} else {
if (_arg2 == 3){
_local5 = ((_local6[3] + _arg1) + "っ・・・!");
};
};
};
} else {
if ((((_arg4 == 1)) || ((_arg4 == 4)))){
_local5 = ((_local6[_local7] + _arg1) + "えっ!!");
} else {
if (_arg4 == 2){
_local5 = ((_local6[_local7] + _arg1) + "!!");
};
};
};
};
};
};
};
return (_local5);
}
}
}//package org.e_ohkoku.AI
Section 49
//Alice_AI (org.e_ohkoku.alice.Alice_AI)
package org.e_ohkoku.alice {
import flash.display.*;
import flash.utils.*;
import org.e_ohkoku.AI.*;
public class Alice_AI extends AI_BasicProcessing {
private var rFrame:int;
public var manHandMC:MovieClip;
private var ckFlg:Boolean;// = false
public var errorMessage:String;// = ""
private var inFrame:int;
public var testFlg1:Boolean;// = false
public function Alice_AI(_arg1:String, _arg2:String, _arg3:String, _arg4:int, _arg5:int=0, _arg6:int=2){
ckFlg = false;
errorMessage = "";
testFlg1 = false;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
override public function mainPro():void{
userInputPro();
thinkingPro_condition();
monitorPro();
insertCheck();
debugPro();
}
override protected function thinkingPro_condition():void{
var _local1:int;
var _local2:int;
var _local3:int;
if (((delayTimer.running) || (messTimer.running))){
return;
};
if (reactionNoBuf == 2){
if (rFrame == 21){
exciteVal = (exciteVal + 2);
} else {
if (rFrame == 31){
if ((((coL[0] > 1)) && ((coL[1] > 1)))){
coL[0] = (coL[1] = 0);
exciteVal = (exciteVal + 1);
};
};
};
} else {
if (reactionNoBuf == 3){
if (rFrame == 21){
exciteVal = (exciteVal + 4);
} else {
if (rFrame == 31){
if ((((coL[0] > 1)) && ((coL[1] > 1)))){
coL[0] = (coL[1] = 0);
exciteVal = (exciteVal + 1);
};
};
};
};
};
reactionNoBuf = 0;
if (exciteVal < 1){
exciteVal = 1;
};
if (exciteVal > 60){
exciteVal = 60;
};
_local1 = fondness;
_local2 = Math.floor((Math.random() * 500));
if (_local2 == 0){
_local3 = Math.floor((Math.random() * 2));
if (exciteVal <= 28){
if (sPoint < nPoint){
fondness = (fondness + _local3);
} else {
fondness = (fondness - _local3);
};
} else {
if (sPoint < nPoint){
};
};
if (fondness < 1){
fondness = 1;
};
if (fondness > 5){
fondness = 5;
};
setFondness = fondness;
trace(((((((((("exc:" + exciteVal) + " たまに感情チェック sP: ") + sPoint) + " nP: ") + nPoint) + " ") + _local1) + " ⇒ ") + fondness));
sPoint = (nPoint = 0);
};
}
public function set insertFrame(_arg1:int):void{
inFrame = _arg1;
}
override protected function thinkingPro_word(_arg1:String="bGasp", _arg2:String=""):void{
var _local3:int;
var _local4:Boolean;
var _local5:int;
var _local6:int;
var _local7:int;
_local3 = 1;
_local4 = true;
_local5 = 200;
if (normalTimer.delay == 60000){
_local7 = Math.floor((Math.random() * 3));
if (_local7 == 0){
} else {
if (_local7 == 1){
_arg1 = "restraintWord";
} else {
_arg1 = "bGasp";
};
};
} else {
if (fondness == 1){
if (probabilitySet(75)){
_arg1 = "negationWord";
};
} else {
if (fondness == 4){
if (probabilitySet(50)){
_arg1 = "reactionWord";
};
} else {
if (fondness == 5){
if (probabilitySet(80)){
if (exciteVal <= 50){
_arg1 = "demandWord";
} else {
_arg1 = "ecstasyWord";
};
};
};
};
};
};
if (finishFlg){
_arg1 = "afterFinish";
};
textOn(_arg1, _local4, _local3, _local5);
}
override protected function tgDownAndUpPro(_arg1:String):void{
var _local2:int;
var _local3:String;
var _local4:int;
if (getBioRhythm <= 50){
return;
};
_local2 = int(_arg1.substr(1, 2));
_local3 = _arg1.substr(0, 1);
if (_local3 == "U"){
var _local5 = coU;
var _local6 = _local2;
var _local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
clickCo++;
} else {
if (_local3 == "L"){
_local5 = coL;
_local6 = _local2;
_local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
clickCo++;
} else {
if (_local3 == "O"){
};
};
};
_local4 = (Math.floor((Math.random() * 4)) + 4);
if (_local4 == 7){
_local4 = 1;
};
if (rFrame == 21){
if ((((_arg1 == "U0")) || ((_arg1 == "U1")))){
pieCo++;
sPoint++;
reactionNo = 2;
} else {
if ((((_arg1 == "L0")) || ((_arg1 == "L1")))){
sPoint++;
reactionNo = 3;
} else {
nPoint++;
reactionNo = _local4;
};
};
if (normalTimer.delay == 60000){
reactionNo = _local4;
if (testFlg1){
reactionNo = 3;
exciteVal = (exciteVal + 5);
};
} else {
if (messTimer.running){
reactionNo = _local4;
};
};
thinkingPro_word();
} else {
if (rFrame == 31){
if (_arg1 != ""){
if ((((_arg1 == "L2")) || ((_arg1 == "L3")))){
reactionNo = 2;
} else {
if ((((_arg1 == "L0")) || ((_arg1 == "L1")))){
reactionNo = 3;
if (testFlg1){
exciteVal = (exciteVal + 5);
};
} else {
reactionNo = _local4;
};
};
};
if ((((inFrame == 1)) || ((inFrame >= 81)))){
thinkingPro_word();
};
};
};
firstTimerCheck();
reactionNoBuf = reactionNo;
}
public function set rootFrame(_arg1:int):void{
rFrame = _arg1;
}
override public function debugPro():void{
var _local1:String;
var _local2:int;
if (wData.errorMessage != ""){
(textWindowTg.parent as MovieClip).visible = true;
textWindowTg.text = wData.errorMessage;
};
if (debugWindowTg != null){
_local2 = int(getBioRhythm);
debugWindowTg.text = ((((((((((((((((cName + "\n個性:") + prsonality) + "\n経験:") + cExp) + "\n愛情:") + fondness) + "\n\nタイマー:") + messTimer.running) + "\nexciteVal:") + exciteVal) + "\nBR値:") + _local2) + "\nwordNo: ") + dNo) + "\n") + dSt);
};
}
override protected function userInputPro():void{
var _local1:String;
if (btn.getAcsTargetOO != null){
btn.getAcsTargetOO = null;
};
if (btn.getAcsTargetDU != null){
tgDownAndUpPro(btn.getAcsTargetDU.pName);
btn.getAcsTargetDU = null;
};
if (btn.getAcsTargetW != null){
if (btn.getWheelDelta != 0){
btn.getWheelDelta = 0;
};
btn.getAcsTargetW = null;
};
if (finishFlg){
manHandMC.x = 600;
return;
};
if (manHandMC != null){
_local1 = btn.getEventType;
if ((((_local1 == "mouseOut")) && (!(ckFlg)))){
manHandMC.alpha = 0.5;
} else {
if (_local1 == "mouseDown"){
ckFlg = true;
if (manHandMC.currentFrame != 2){
manHandMC.gotoAndStop(2);
};
} else {
if (_local1 == "mouseUp"){
ckFlg = false;
if (manHandMC.currentFrame != 1){
manHandMC.gotoAndStop(1);
};
} else {
manHandMC.alpha = 1;
if (manHandMC.currentFrame != 1){
manHandMC.gotoAndStop(1);
};
};
};
};
};
}
private function insertCheck():void{
var _local1:int;
var _local2:String;
if (rFrame != 31){
return;
};
if (inFrame == 8){
if (exciteVal >= 50){
_local2 = "ecstasyWord";
} else {
_local2 = "bGasp";
};
thinkingPro_word(_local2);
};
}
public function removePro4():void{
trace(("リムーブ処理 removePro3 " + getQualifiedClassName(this)));
manHandMC = null;
removePro3();
}
}
}//package org.e_ohkoku.alice
Section 50
//AliceMain (org.e_ohkoku.alice.AliceMain)
package org.e_ohkoku.alice {
import flash.display.*;
import flash.events.*;
import org.e_ohkoku.*;
import flash.utils.*;
public class AliceMain {
private var cms:CMS_Alice;
private var dragFlg:Boolean;// = false
private var stageMC:Object;
private var btn:Button_Alice;
private var fps:FPSpro;
private var mx;
private var my:int;
private var snd:Sound_Alice;
private var btnMC:Array;
private var mFlg:Boolean;
private var ap:AliceProcessing;
private var rootMC:MovieClip;
public function AliceMain(_arg1:MovieClip, _arg2:Object){
dragFlg = false;
super();
rootMC = _arg1;
stageMC = _arg2;
fps = new FPSpro(rootMC.fpsText);
cms = new CMS_Alice(rootMC);
snd = new Sound_Alice(_arg1);
stageMC.addEventListener(Event.ENTER_FRAME, mainPro);
}
private function objCheckPro2(_arg1:MovieClip):void{
var _local2:*;
trace("\n***** MC内部チェック 2");
for (_local2 in _arg1) {
trace(((_local2 + " : ") + _arg1[_local2]));
};
trace("***** END\n");
}
private function objCheckPro(_arg1:MovieClip):void{
var _local2:int;
trace("\n***** MC内部チェック");
if (_arg1.name != null){
trace(("name : " + _arg1.name));
};
_local2 = 0;
while (_local2 < _arg1.numChildren) {
if (_arg1.getChildAt(_local2).name != null){
trace(((_local2 + " : ") + _arg1.getChildAt(_local2).name));
};
_local2++;
};
trace("***** END\n");
}
public function removeListenerPro():void{
var _local1:int;
trace(("リスナー削除処理 " + getQualifiedClassName(this)));
if (btn != null){
btn.removeListenerPro();
btn = null;
};
if (btnMC != null){
_local1 = 0;
while (_local1 < btnMC.length) {
btnMC[_local1] = null;
_local1++;
};
btnMC = null;
};
if (ap != null){
ap.removePro();
ap = null;
};
if (fps != null){
fps.removePro();
fps = null;
};
if (cms != null){
cms = null;
};
if (snd != null){
snd.removePro();
snd = null;
};
rootMC.socksBTN.x = 450;
rootMC.textWindowMC.visible = false;
rootMC = null;
stageMC = null;
}
public function mainPro(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Object;
var _local6:Number;
_local2 = rootMC.currentFrame;
if (_local2 == 9){
rootMC.nextBTN.x = 550;
rootMC.returnBTN.x = 550;
rootMC.mozaBTN.x = 450;
rootMC.socksBTN.x = 450;
} else {
if (_local2 == 10){
if (rootMC.opAnimeMC != null){
_local3 = rootMC.opAnimeMC.currentFrame;
_local4 = rootMC.opAnimeMC.totalFrames;
if (_local3 == _local4){
if (rootMC.opAnimeMC.verTXT != null){
rootMC.opAnimeMC.verTXT.text = rootMC.ver;
};
if (rootMC.opAnimeMC.startBTN != null){
btnMC = new Array();
btnMC[0] = rootMC.opAnimeMC.startBTN;
btn = new Button_Alice(rootMC, btnMC);
btnMC = null;
rootMC.gotoAndStop(11);
};
};
};
} else {
if (_local2 == 11){
if (btn != null){
if (btn.bOnOff == 1){
btn.removeListenerPro();
btn = null;
rootMC.screenChangeMC.play();
snd.playEffectS(1, 1);
};
};
if (rootMC.screenChangeMC.currentFrame == 10){
rootMC.screenChangeMC.gotoAndPlay(11);
rootMC.gotoAndStop(20);
};
} else {
if (_local2 == 20){
if (ap == null){
if (rootMC.charMC1 != null){
_local5 = new Object();
_local5.cName = rootMC.cName;
_local5.fullName = rootMC.fullName;
_local5.prsonality = rootMC.prsonality;
_local5.cExp = rootMC.cExp;
_local5.fondness = rootMC.fondness;
_local5.DBtarget = "dataBase";
ap = new AliceProcessing(rootMC, stageMC, rootMC.charMC1, _local5);
_local5 = null;
ap.targetChange(rootMC.charMC1);
rootMC.gotoAndStop(21);
};
};
if (rootMC.nextBTN != null){
btnMC = new Array();
btnMC[0] = rootMC.nextBTN;
btnMC[1] = rootMC.mozaBTN;
btn = new Button_Alice(rootMC, btnMC);
btnMC = null;
};
} else {
if (_local2 == 21){
ap.getMouseData();
if (btn != null){
if (btn.bOnOff == 2){
btn.removeListenerPro();
btn = null;
rootMC.screenChangeMC.play();
snd.playEffectS(1, 1);
} else {
if ((((btn.bOnOff == 4)) && (btn.keyWait(200)))){
btn.bOnOff = 0;
ap.mozaChange();
snd.playEffectS(1, 1);
};
};
};
if (rootMC.screenChangeMC.currentFrame == 10){
rootMC.screenChangeMC.gotoAndPlay(11);
rootMC.nextBTN.x = 550;
rootMC.mozaBTN.x = 450;
trace(("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ネクストボタン 画面外に移動 " + rootMC.nextBTN.x));
rootMC.gotoAndStop(30);
};
} else {
if (_local2 == 30){
if (rootMC.returnBTN != null){
btnMC = new Array();
btnMC[0] = rootMC.returnBTN;
btnMC[1] = rootMC.socksBTN;
btn = new Button_Alice(rootMC, btnMC);
btnMC = null;
rootMC.socksBTN.x = 382;
};
if (rootMC.charMC2 != null){
ap.targetChange(rootMC.charMC2);
rootMC.gotoAndStop(31);
};
} else {
if (_local2 == 31){
ap.getMouseData();
if (ap.getSCflg == 1){
};
if (btn != null){
if (btn.bOnOff == 3){
btn.removeListenerPro();
btn = null;
rootMC.screenChangeMC.play();
snd.playEffectS(1, 1);
} else {
if ((((btn.bOnOff == 5)) && (btn.keyWait(200)))){
btn.bOnOff = 0;
ap.socksOnOff();
snd.playEffectS(1, 1);
};
};
};
if (rootMC.screenChangeMC.currentFrame == 10){
rootMC.screenChangeMC.gotoAndPlay(11);
rootMC.returnBTN.x = 550;
rootMC.socksBTN.x = 450;
ap.removePro();
ap = null;
rootMC.textWindowMC.visible = false;
rootMC.gotoAndStop(10);
};
};
};
};
};
};
};
};
if (cms.conNo != 0){
_local6 = cms.conNo;
cms.conNo = 0;
if (_local6 == 1){
if (_local2 >= 20){
snd.playEffectS(1, 1);
rootMC.restartPro();
removeListenerPro();
return;
};
} else {
if (_local6 == 3){
if (ap != null){
ap.monitorVisible(cms.monitorFlg);
snd.playEffectS(1, 1);
};
} else {
if (_local6 == 4){
if (_local2 == 31){
if (rootMC.charMC2.manMC.visible){
rootMC.charMC2.manMC.visible = false;
} else {
rootMC.charMC2.manMC.visible = true;
};
snd.playEffectS(1, 1);
};
};
};
};
};
fps.counting();
}
public function debugPro():void{
}
}
}//package org.e_ohkoku.alice
Section 51
//AliceProcessing (org.e_ohkoku.alice.AliceProcessing)
package org.e_ohkoku.alice {
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import org.e_ohkoku.*;
import flash.utils.*;
import org.e_ohkoku.AI.*;
public class AliceProcessing {
private var tgKbo:MovieClip;
private var tgBU:MovieClip;
private var braFlg:Boolean;// = true
private var ui:UserInput;
private var reactionFlg:Boolean;// = false
private var IRflg:Boolean;// = false
private var ai:Alice_AI;
private var tgSkt:MovieClip;
private var tgPan:MovieClip;
private var mx:Number;
private var my:Number;
private var tgBra:MovieClip;
private var IRno:int;// = 0
private var tgLL:MovieClip;
private var mFlg:Boolean;// = false
private var resetExciteVal:int;// = 8
private var tgLR:MovieClip;
private var tgHK:MovieClip;
private var tgManH:MovieClip;
private var tgSlo:MovieClip;
private var moza:MosaicII;
private var tgPi:MovieClip;
private var tgHd:MovieClip;
private var finishFlg:Boolean;// = false
private var tgHp:MovieClip;
private var tgMoza:MovieClip;
private var cfR:int;
private var sceneChangeFlg:int;// = 0
private var tgMan:MovieClip;
private var charTg:MovieClip;
private var snd:Sound_Alice;
private var debugWindowTg:TextField;
private var rootMC:MovieClip;
private var tgFL:MovieClip;
private var tgBL:MovieClip;
private var tgFR:MovieClip;
public function AliceProcessing(_arg1:MovieClip, _arg2:Object, _arg3:MovieClip, _arg4:Object){
mFlg = false;
braFlg = true;
reactionFlg = false;
finishFlg = false;
sceneChangeFlg = 0;
IRflg = false;
IRno = 0;
resetExciteVal = 8;
super();
rootMC = _arg1;
charTg = _arg3;
ui = new UserInput(_arg1, _arg2);
snd = new Sound_Alice(_arg1);
AIset(_arg4);
AIcharPointSet();
if (rootMC.debugTXT != null){
debugWindowTg = rootMC.debugTXT;
};
}
private function AIset(_arg1:Object):void{
ai = new Alice_AI(_arg1.DBtarget, _arg1.cName, _arg1.fullName, _arg1.prsonality, _arg1.cExp, _arg1.fondness);
ai.electrocardiogramSet(rootMC);
ai.MOFvisible = false;
rootMC.textWindowMC.visible = false;
ai.setTextWindow = rootMC.textWindowMC.wordTXT;
if (rootMC.debugTXT != null){
ai.setDebugWindow = rootMC.debugTXT;
};
}
private function AIcharPointSet():void{
var _local1:Array;
var _local2:Array;
var _local3:Array;
var _local4:int;
var _local5:AI_BTN_Input;
_local1 = new Array();
_local2 = new Array();
_local3 = new Array();
tgBU = charTg.bodyUMC;
tgHd = tgBU.headMC;
_local4 = rootMC.currentFrame;
if ((((_local4 >= 20)) && ((_local4 <= 22)))){
tgBL = charTg.bodyLMC;
tgLR = tgBL.legRMC;
_local1 = [tgBU.pieLHA, tgBU.pieRHA, tgBU.armpitHA, null, tgHd.earHA, null, tgHd.mouthHA, tgBU.neckHA, tgHd.hairHA, null, null];
_local2 = [tgBL.vaginaHA, null, tgBL.hipHA, tgLR.hipHA, tgBL.navelHA, tgBL.thighHA, tgBL.calfHA, null, tgLR.thighHA, tgLR.calfHA, null];
_local3 = [null];
} else {
if ((((_local4 >= 30)) && ((_local4 <= 32)))){
tgHp = charTg.hipMC;
tgLL = charTg.thighLMC;
tgLR = charTg.thighRMC;
tgFL = charTg.footLMC;
tgFR = charTg.footRMC;
_local1 = [null, null, tgBU.armpitLHA, tgBU.armpitRHA, null, tgHK.earHA, null, tgHK.neckHA, tgHK.hairHA, null, tgBU.backHA];
_local2 = [tgHp.vaginaHA, tgHp.anusHA, tgHp.hipLHA, tgHp.hipRHA, null, tgLL, tgFL.calfHA, null, tgLR, tgFR.calfHA, null];
_local3 = [null];
};
};
_local5 = new AI_BTN_Input();
_local5.buttonSet(_local1, _local2, _local3);
_local5 = null;
}
private function getTarget(_arg1:int, _arg2:String=""):void{
if ((((_arg1 >= 20)) && ((_arg1 <= 22)))){
tgBU = charTg.bodyUMC;
tgBL = charTg.bodyLMC;
tgHd = charTg.bodyUMC.headMC;
tgLR = tgBL.legRMC;
tgSlo = tgBU.sailorMC1;
tgBra = tgBU.brassiereMC;
tgSkt = tgBL.skirtMC;
tgKbo = tgBL.kabochaMC;
tgPan = tgBL.pantsMC;
tgManH = charTg.man_handMC;
} else {
if ((((_arg1 >= 30)) && ((_arg1 <= 32)))){
tgBU = charTg.bodyUMC;
tgPi = tgBU.pieMC;
tgHp = charTg.hipMC;
tgHK = tgBU.headMC;
tgHd = tgBU.headMC.faceMC;
tgMan = charTg.manMC;
tgManH = charTg.man_handMC;
tgMoza = rootMC.mosaicSetMC;
};
};
}
public function debugPro():void{
var _local1:String;
if (debugWindowTg != null){
debugWindowTg.text = ((("IRflg:" + IRflg) + "\nIRno:") + IRno);
};
}
public function socksOnOff():void{
if (charTg.footLMC.socksMC.visible){
charTg.footLMC.socksMC.visible = false;
charTg.footRMC.socksMC.visible = false;
} else {
charTg.footLMC.socksMC.visible = true;
charTg.footRMC.socksMC.visible = true;
};
}
private function partsMovePro():void{
var _local1:int;
var _local2:int;
if (mFlg){
if (tgHK != null){
if (tgHK.hairHA.hitTestPoint(mx, my, true)){
_local1 = UserInput.mouseDir(mx, my);
if (_local1 == 7){
tgHK.nextFrame();
} else {
if (_local1 == 3){
tgHK.prevFrame();
};
};
};
};
} else {
_local2 = Math.floor((Math.random() * 500));
if (cfR == 21){
if (_local2 < 10){
tgBL.prevFrame();
};
} else {
if (cfR == 31){
if (_local2 == 0){
tgHK.prevFrame();
};
};
};
};
}
private function finishPro():void{
var _local1:int;
var _local2:String;
var _local3:int;
_local1 = charTg.currentFrame;
_local2 = charTg.currentLabel;
_local3 = tgHp.currentFrame;
if (_local1 <= 23){
charTg.gotoAndPlay("finish");
tgHp.gotoAndPlay("finish");
rootMC.finishSoundMC.play();
};
if (_local2 == "buttonOn"){
rootMC.returnBTN.x = 356;
};
if ((((((rootMC.timerMC2.currentFrame == 1)) && ((ai.getExciteVal >= 3)))) && ((_local2 == "P1")))){
rootMC.timerMC2.play();
};
if (rootMC.timerMC2.currentFrame == 2){
ai.getExciteVal--;
};
}
private function mosaicSet():void{
var _local1:Point;
moza = new MosaicII(tgMoza.mosaicMC, charTg, 16);
_local1 = new Point(0, 0);
moza.pointSet = _local1;
tgMoza.mouseEnabled = false;
tgMoza.mosaicMC.mouseEnabled = false;
}
public function monitorVisible(_arg1:Boolean):void{
ai.MOFvisible = _arg1;
}
public function getMouseData():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
mFlg = UserInput.MBflgS;
mx = rootMC.mouseX;
my = rootMC.mouseY;
cfR = rootMC.currentFrame;
_local1 = ai.getReactionNo;
_local2 = ai.getExciteVal;
getTarget(cfR, "gimmickPro/キャラギミック処理");
ai.mainPro();
mosaicPro();
partsMovePro();
reactionCheck();
if (_local1 != 0){
reactionPro(_local1);
ai.getReactionNo = 0;
};
if (finishFlg){
finishPro();
ai.insertFrame = charTg.currentFrame;
return;
};
gimmickPro(cfR);
if (tgHd != null){
if (tgHd.currentLabel == "RE"){
_local3 = ai.getFondness;
if (_local3 == 1){
tgHd.gotoAndPlay("P3");
} else {
if (_local3 == 2){
tgHd.gotoAndPlay("P1");
} else {
_local4 = (Math.floor((Math.random() * 2)) + 1);
tgHd.gotoAndPlay(("P" + _local4));
};
};
if (finishFlg){
tgHd.gotoAndPlay("P1");
};
};
};
if (_local2 == 60){
} else {
if (_local2 > 50){
clothesOffAnime(tgBra);
} else {
if (_local2 > 45){
clothesOffAnime(tgPan);
if (cfR == 21){
rootMC.nextBTN.x = 356;
rootMC.mozaBTN.x = 380;
};
} else {
if (_local2 > 40){
clothesOffAnime(tgKbo);
} else {
if (_local2 > 35){
clothesOffAnime(tgSlo);
} else {
if (_local2 > 30){
clothesOffAnime(tgSkt);
};
};
};
};
};
};
if (ai.getExciteVal >= 55){
sceneChangeFlg = 1;
};
}
public function removePro():void{
trace(("リムーブ処理 " + getQualifiedClassName(this)));
if (ai != null){
ai.removePro3();
ai = null;
};
if (ui != null){
ui.removeListenerPro();
ui = null;
};
if (snd != null){
snd.removePro();
snd = null;
};
if (moza != null){
moza.removePro();
moza = null;
};
charTg = null;
tgHd = (tgBU = (tgPi = (tgBL = (tgHp = null))));
tgLL = (tgLR = (tgFL = (tgFR = null)));
tgSlo = (tgSkt = (tgKbo = (tgBra = (tgPan = null))));
tgHK = (tgMan = (tgManH = (tgMoza = null)));
rootMC = null;
debugWindowTg = null;
}
private function reactionPro(_arg1:int):void{
var _local2:int;
if (reactionFlg){
return;
};
rootMC.timerMC.gotoAndPlay(2);
if ((((_arg1 >= 1)) && ((_arg1 <= 3)))){
if (cfR == 21){
charTg.gotoAndPlay(("R" + _arg1));
tgBU.gotoAndPlay(("R" + _arg1));
} else {
if (cfR == 31){
if (!finishFlg){
IRflg = true;
IRno = _arg1;
charTg.gotoAndPlay(3);
};
tgBU.gotoAndPlay(3);
};
};
tgHd.gotoAndPlay(("R" + _arg1));
} else {
if ((((_arg1 >= 4)) && ((_arg1 <= 6)))){
if (cfR == 21){
_local2 = Math.floor((Math.random() * 2));
if (_local2 == 0){
tgBU.gotoAndPlay(("R" + (_arg1 - 3)));
};
} else {
if (cfR == 31){
IRflg = true;
IRno = _arg1;
tgBU.gotoAndPlay(4);
};
};
tgHd.gotoAndPlay(("R" + (_arg1 - 3)));
};
};
reactionFlg = true;
}
private function clothesOffAnime(_arg1:MovieClip):void{
if (cfR == 31){
return;
};
if (_arg1.currentFrame == _arg1.totalFrames){
return;
};
if (_arg1.name == "kabochaMC"){
tgBU.kabochaMC.play();
tgBU.kabochaMC.visible = false;
tgLR.kabochaMC.play();
} else {
if (_arg1.name == "sailorMC1"){
tgBU.sailorMC2.play();
tgBU.armLMC.sailorMC.play();
} else {
if (_arg1.name == "skirtMC"){
tgBL.skirtBMC.play();
} else {
if (_arg1.name == "brassiereMC"){
tgBU.brassiereMC.play();
braFlg = false;
};
};
};
};
_arg1.play();
}
public function targetChange(_arg1:MovieClip):Boolean{
if (_arg1 == null){
trace(("初期設定 ターゲットnull検出!!! " + getQualifiedClassName(this)));
return (false);
};
charTg = _arg1;
cfR = rootMC.currentFrame;
getTarget(cfR, "targetChange/ターゲット変更処理");
AIcharPointSet();
if ((((cfR >= 20)) && ((cfR <= 21)))){
ai.manHandMC = rootMC.charMC1.man_handMC;
tgManH.mouseEnabled = false;
tgSkt.mouseEnabled = false;
} else {
if ((((cfR >= 30)) && ((cfR <= 31)))){
ai.manHandMC = rootMC.charMC2.man_handMC;
tgManH.mouseEnabled = false;
if (tgBU.brassiereMC != null){
tgBU.brassiereMC.visible = braFlg;
tgPi.visible = !(braFlg);
};
if (charTg.hipMC != null){
mosaicSet();
};
ai.getExciteVal = resetExciteVal;
};
};
return (false);
}
private function reactionCheck():void{
var _local1:int;
var _local2:int;
var _local3:int;
if (rootMC.timerMC.currentFrame == 1){
reactionFlg = false;
};
if (IRflg){
_local1 = charTg.currentFrame;
_local2 = tgBU.currentFrame;
_local3 = (9 + (9 - _local1));
if ((((_local1 == (IRno + 5))) && (!(finishFlg)))){
charTg.gotoAndPlay(_local3);
tgBU.gotoAndPlay(_local3);
} else {
if ((((_local2 == (IRno + 5))) && (!(finishFlg)))){
tgBU.gotoAndPlay(_local3);
};
};
};
if (_local1 == 1){
IRflg = false;
IRno = 0;
};
}
public function mozaChange():void{
if (tgPan.currentFrame == tgPan.totalFrames){
tgBL.mosaicMC.nextFrame();
if (tgBL.mosaicMC.currentFrame == tgBL.mosaicMC.totalFrames){
tgBL.mosaicMC.gotoAndStop(1);
};
};
}
private function gimmickPro(_arg1:int):void{
var _local2:int;
var _local3:Point;
var _local4:Boolean;
var _local5:int;
var _local6:int;
var _local7:int;
ai.insertFrame = charTg.currentFrame;
ai.rootFrame = cfR;
if (IRflg){
return;
};
_local2 = UserInput.mouseDir(mx, my);
if (_arg1 == 21){
if (mFlg){
if (tgLR.calfHA.hitTestPoint(mx, my, true)){
if (_local2 == 7){
tgBL.nextFrame();
} else {
if (_local2 == 3){
tgBL.prevFrame();
};
};
};
};
tgManH.mouseEnabled = false;
_local3 = charTg.globalToLocal(new Point(mx, my));
tgManH.x = _local3.x;
tgManH.y = _local3.y;
} else {
if (_arg1 == 31){
_local4 = false;
_local5 = charTg.currentFrame;
tgManH.mouseEnabled = false;
_local3 = charTg.globalToLocal(new Point(mx, my));
tgManH.x = _local3.x;
tgManH.y = _local3.y;
if (charTg.insertBTNMC.hitTestPoint(mx, my, false)){
if (mFlg){
charTg.insertBTNMC.nextFrame();
_local4 = true;
if (_local5 == 8){
if (ai.getExciteVal == 60){
finishFlg = true;
ai.setFinishFlg = true;
trace((("\n**************\nインサートボタン変更前X:" + charTg.insertBTNMC.x) + "\n**************\n"));
charTg.insertBTNMC.x = 550;
};
ai.getExciteVal++;
if (ai.getExciteVal >= 60){
ai.getExciteVal = 60;
};
} else {
if ((((_local5 >= 5)) && ((_local5 <= 8)))){
};
};
} else {
charTg.insertBTNMC.prevFrame();
_local4 = false;
};
} else {
charTg.insertBTNMC.prevFrame();
_local4 = false;
};
if (_local4){
if (_local5 == 11){
charTg.stop();
tgBU.stop();
tgHp.stop();
tgMan.stop();
tgMoza.stop();
} else {
if (_local5 <= 10){
charTg.play();
tgBU.play();
tgHp.play();
tgMan.play();
tgMoza.play();
} else {
_local6 = (9 - (_local5 - 9));
charTg.gotoAndStop(_local6);
tgBU.gotoAndStop(_local6);
tgHp.gotoAndStop(_local6);
tgMan.gotoAndStop(_local6);
tgMoza.gotoAndStop(_local6);
};
};
} else {
if (_local5 >= 9){
charTg.play();
tgBU.play();
tgHp.play();
tgMan.play();
tgMoza.play();
} else {
if ((((_local5 >= 3)) && ((_local5 <= 8)))){
_local7 = (9 + (9 - _local5));
charTg.gotoAndStop(_local7);
tgBU.gotoAndStop(_local7);
tgHp.gotoAndStop(_local7);
tgMan.gotoAndStop(_local7);
tgMoza.gotoAndStop(_local7);
};
};
};
};
};
}
public function get getSCflg():int{
return (sceneChangeFlg);
}
private function mosaicPro():void{
var _local1:Boolean;
if (moza != null){
_local1 = false;
if (((!(tgMan.visible)) || (!((tgMan.alpha == 1))))){
_local1 = true;
};
moza.mosaicPro(_local1);
};
}
}
}//package org.e_ohkoku.alice
Section 52
//Button_Alice (org.e_ohkoku.alice.Button_Alice)
package org.e_ohkoku.alice {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Button_Alice {
private var bOnFlg:int;// = 0
private var rootMC:MovieClip;
private var btn:Array;
private var snd:Sound_Alice;
private var timerFlg:Boolean;
private var kw:Timer;
private var btnMC:Array;
public static var mouseFlg:Boolean;
public function Button_Alice(_arg1:MovieClip, _arg2:Array){
var _local3:*;
bOnFlg = 0;
super();
rootMC = _arg1;
btnMC = _arg2;
snd = new Sound_Alice(_arg1);
rootMC.addEventListener(MouseEvent.MOUSE_MOVE, mouseMV);
rootMC.addEventListener(MouseEvent.MOUSE_DOWN, mouseBTNon);
rootMC.addEventListener(MouseEvent.MOUSE_UP, mouseBTNoff);
_local3 = 0;
while (_local3 < btnMC.length) {
btnMC[_local3].addEventListener(MouseEvent.MOUSE_DOWN, buttonOn);
btnMC[_local3].addEventListener(MouseEvent.MOUSE_UP, buttonOff);
_local3++;
};
kw = new Timer(1, 1);
}
public function mouseMV(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
public function mouseBTNon(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
public function mouseBTNoff(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
public function debugPro():void{
var _local1:String;
var _local2:String;
_local1 = ("\nmouseFlg:" + mouseFlg);
_local2 = (_local1 + "\n");
rootMC.dText.text = _local2;
}
public function get bOnOff():int{
return (bOnFlg);
}
public function set bOnOff(_arg1:int):void{
bOnFlg = _arg1;
}
private function buttonOn(_arg1:MouseEvent):void{
var _local2:String;
_local2 = _arg1.target.name;
if (_local2 == "startBTN"){
bOnFlg = 1;
} else {
if (_local2 == "nextBTN"){
bOnFlg = 2;
} else {
if (_local2 == "returnBTN"){
bOnFlg = 3;
} else {
if (_local2 == "mozaBTN"){
bOnFlg = 4;
} else {
if (_local2 == "socksBTN"){
bOnFlg = 5;
};
};
};
};
};
}
public function keyWait(_arg1:int=200):Boolean{
if (!kw.running){
kw = new Timer(_arg1, 1);
kw.start();
return (true);
};
return (false);
}
private function buttonOff(_arg1:MouseEvent):void{
}
public function removeListenerPro():void{
var _local1:*;
trace((getQualifiedClassName(this) + "リスナー削除処理"));
rootMC.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMV);
rootMC.removeEventListener(MouseEvent.MOUSE_DOWN, mouseBTNon);
rootMC.removeEventListener(MouseEvent.MOUSE_UP, mouseBTNoff);
if (btnMC != null){
_local1 = 1;
while (_local1 <= (btnMC.length - 1)) {
if (btnMC[_local1] != null){
btnMC[_local1].removeEventListener(MouseEvent.MOUSE_DOWN, buttonOn);
btnMC[_local1].removeEventListener(MouseEvent.MOUSE_UP, buttonOff);
};
btnMC[_local1] = null;
_local1++;
};
btnMC = null;
};
if (kw != null){
kw.stop();
kw = null;
};
}
}
}//package org.e_ohkoku.alice
Section 53
//CMS_Alice (org.e_ohkoku.alice.CMS_Alice)
package org.e_ohkoku.alice {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class CMS_Alice extends Sprite {
private var moFlg:Boolean;// = false
protected var myContextMenu:ContextMenu;
private var monitor:ContextMenuItem;
private var man:ContextMenuItem;
private var cNo:Number;// = 0
private var manFlg:Boolean;// = true
protected var rootMC:MovieClip;
public function CMS_Alice(_arg1:MovieClip){
cNo = 0;
moFlg = false;
manFlg = true;
super();
myContextMenu = new ContextMenu();
removeDefaultItems();
addCustomMenuItems();
myContextMenu.addEventListener(ContextMenuEvent.MENU_SELECT, menuSelectHandler);
rootMC = _arg1;
rootMC.contextMenu = myContextMenu;
}
public function get conNo():Number{
return (cNo);
}
protected function itemSelectHandler1(_arg1:ContextMenuEvent):void{
cNo = 1;
trace("リスタート合図 /ContextMenuEvent");
}
protected function addCustomMenuItems():void{
var _local1:ContextMenuItem;
var _local2:ContextMenuItem;
_local1 = new ContextMenuItem("Restart");
_local2 = new ContextMenuItem("--------");
man = new ContextMenuItem("Man off");
monitor = new ContextMenuItem("Monitor on");
myContextMenu.customItems.push(monitor, man, _local2, _local1);
_local1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler1);
monitor.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, ISH_monitor);
man.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, manVisible);
}
protected function ISH_monitor(_arg1:ContextMenuEvent):void{
if (moFlg){
monitor.caption = "Monitor on";
moFlg = false;
} else {
monitor.caption = "Monitor off";
moFlg = true;
};
cNo = 3;
}
protected function menuSelectHandler(_arg1:ContextMenuEvent):void{
}
protected function removeDefaultItems():void{
var _local1:ContextMenuBuiltInItems;
myContextMenu.hideBuiltInItems();
_local1 = myContextMenu.builtInItems;
_local1.forwardAndBack = false;
_local1.loop = false;
_local1.play = false;
_local1.print = false;
_local1.quality = true;
_local1.rewind = false;
_local1.save = false;
_local1.zoom = true;
}
protected function manVisible(_arg1:ContextMenuEvent):void{
if (manFlg){
man.caption = "Man on";
manFlg = false;
} else {
man.caption = "Man off";
manFlg = true;
};
cNo = 4;
}
public function get monitorFlg():Boolean{
return (moFlg);
}
public function set conNo(_arg1:Number):void{
cNo = _arg1;
}
}
}//package org.e_ohkoku.alice
Section 54
//Sound_Alice (org.e_ohkoku.alice.Sound_Alice)
package org.e_ohkoku.alice {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
public class Sound_Alice {
private var rootMC:MovieClip;
private static var eFlg:Boolean = false;
private static var hSound:Array;
private static var iVol:Number = 0;
private static var vFlg:Boolean = false;
private static var sFlg:Boolean = false;
private static var effect:Array;
private static var voice:Array;
private static var channelE:SoundChannel;
public function Sound_Alice(_arg1:MovieClip){
rootMC = _arg1;
effect = new Array();
effect[1] = new effect01();
trace("サウンド設定");
}
private function soundCompFunc(_arg1:Event):void{
sFlg = false;
_arg1.currentTarget.removeEventListener(Event.SOUND_COMPLETE, soundCompFunc);
}
private function voiceCompFunc(_arg1:Event):void{
vFlg = false;
_arg1.currentTarget.removeEventListener(Event.SOUND_COMPLETE, voiceCompFunc);
}
public function removePro():void{
trace((getQualifiedClassName(this) + "リムーブ処理"));
hSound = null;
voice = null;
effect = null;
channelE = null;
rootMC = null;
}
public function setPan(_arg1:Number):void{
var _local2:SoundTransform;
_local2 = channelE.soundTransform;
_local2.pan = _arg1;
channelE.soundTransform = _local2;
}
public function playEffectS(_arg1:int, _arg2:Number):Boolean{
iVol = _arg2;
if (channelE){
channelE.stop();
};
if (_arg1 <= 9){
channelE = effect[_arg1].play();
eFlg = true;
} else {
channelE = effect[_arg1].play(0, 999);
setVolume(_arg2);
setPan(0);
};
channelE.addEventListener(Event.SOUND_COMPLETE, effectSoundCompFunc);
return (eFlg);
}
private function effectSoundCompFunc(_arg1:Event):void{
_arg1.currentTarget.removeEventListener(Event.SOUND_COMPLETE, effectSoundCompFunc);
eFlg = false;
}
public function get soundFlg():Boolean{
return (sFlg);
}
public function keyWait(_arg1):Boolean{
var _local2:int;
_local2 = rootMC.nasiMC.currentFrame;
if (_local2 == 1){
playEffectS(_arg1, 1);
rootMC.nasiMC.gotoAndPlay(2);
return (true);
};
return (false);
}
public function get voiceFlg():Boolean{
return (vFlg);
}
public function get DDobj():Object{
return (channelE);
}
public function playHsound():void{
var _local1:int;
var _local2:SoundChannel;
if (sFlg){
return;
};
sFlg = true;
_local1 = (Math.floor((Math.random() * 3)) + 1);
_local2 = hSound[_local1].play();
_local2.addEventListener(Event.SOUND_COMPLETE, soundCompFunc);
}
public function setVolume(_arg1:Number):void{
var _local2:SoundTransform;
_local2 = channelE.soundTransform;
_local2.volume = _arg1;
channelE.soundTransform = _local2;
}
public function get getVol():Number{
return (iVol);
}
public function playVoice():void{
var _local1:int;
var _local2:SoundChannel;
if (vFlg){
return;
};
vFlg = true;
_local1 = ((Math.random() * 6) + 1);
_local2 = voice[_local1].play();
_local2.addEventListener(Event.SOUND_COMPLETE, voiceCompFunc);
}
}
}//package org.e_ohkoku.alice
Section 55
//ContextMenuSet (org.e_ohkoku.ContextMenuSet)
package org.e_ohkoku {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class ContextMenuSet extends Sprite {
protected var myContextMenu:ContextMenu;
protected var rootMC:MovieClip;
public function ContextMenuSet(_arg1:MovieClip){
rootMC = _arg1;
myContextMenu = new ContextMenu();
defaultItemsSet();
addCustomMenuItems();
myContextMenu.addEventListener(ContextMenuEvent.MENU_SELECT, menuSelectHandler);
rootMC.contextMenu = myContextMenu;
}
protected function defaultItemsSet():void{
var _local1:ContextMenuBuiltInItems;
myContextMenu.hideBuiltInItems();
_local1 = myContextMenu.builtInItems;
_local1.forwardAndBack = false;
_local1.loop = false;
_local1.play = false;
_local1.print = false;
_local1.quality = true;
_local1.rewind = false;
_local1.save = false;
_local1.zoom = true;
}
protected function itemSelectHandler0(_arg1:ContextMenuEvent):void{
trace("リスタート");
}
protected function addCustomMenuItems():void{
var _local1:ContextMenuItem;
_local1 = new ContextMenuItem("Restart");
myContextMenu.customItems.push(_local1);
_local1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler0);
}
protected function menuSelectHandler(_arg1:ContextMenuEvent):void{
}
}
}//package org.e_ohkoku
Section 56
//DownloadFile (org.e_ohkoku.DownloadFile)
package org.e_ohkoku {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
public class DownloadFile {
private var str:String;// = ""
private var errorFlg:Boolean;// = false
private var mes:String;// = ""
private var urll:URLLoader;
public function DownloadFile(_arg1:String){
var req:URLRequest;
var st = _arg1;
str = "";
mes = "";
errorFlg = false;
super();
trace(((("\n" + getQualifiedClassName(this)) + "\nデータベースのターゲット:") + st));
urll = new URLLoader();
urll.dataFormat = URLLoaderDataFormat.TEXT;
configureListeners(urll);
req = new URLRequest(st);
try {
urll.load(req);
} catch(e:Error) {
trace(("ダウンロード失敗! " + getQualifiedClassName(this)));
mes = (mes + (("Unable to load requested document.ダウンロード失敗!\n" + e) + "\n"));
errorFlg = true;
};
}
private function openHandler(_arg1:Event):void{
trace(("DL処理開始 openHandler: " + _arg1));
mes = (mes + "DL処理開始 openHandler: \n");
}
private function progressHandler(_arg1:ProgressEvent):void{
trace(((("DL実行中にデータ受信 progressHandler loaded:" + _arg1.bytesLoaded) + " total: ") + _arg1.bytesTotal));
mes = (mes + "DL実行中にデータ受信 progressHandler loaded\n");
}
public function get getMes():String{
return (mes);
}
private function configureListeners(_arg1:IEventDispatcher):void{
_arg1.addEventListener(Event.COMPLETE, completeHandler);
_arg1.addEventListener(Event.OPEN, openHandler);
_arg1.addEventListener(ProgressEvent.PROGRESS, progressHandler);
_arg1.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_arg1.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
_arg1.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
trace(("致命的なエラー ioErrorHandler: " + _arg1));
mes = (mes + "致命的なエラー ioErrorHandler\n");
errorFlg = true;
}
private function securityErrorHandler(_arg1:SecurityErrorEvent):void{
trace(("セキュリティ以外のデータロード securityErrorHandler: " + _arg1));
mes = (mes + "セキュリティ以外のデータロード securityErrorHandler\n");
}
private function removeListeners(_arg1:IEventDispatcher):void{
trace(("リスナー消去処理 " + getQualifiedClassName(this)));
mes = (mes + "\nリスナー消去");
_arg1.removeEventListener(Event.COMPLETE, completeHandler);
_arg1.removeEventListener(Event.OPEN, openHandler);
_arg1.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
_arg1.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_arg1.removeEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
_arg1.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
}
public function removePro():void{
urll = null;
str = "";
mes = "";
}
private function httpStatusHandler(_arg1:HTTPStatusEvent):void{
trace(("HTTP経由検出OK httpStatusHandler: " + _arg1));
mes = (mes + "HTTP経由検出OK httpStatusHandler\n");
}
private function completeHandler(_arg1:Event):void{
var _local2:URLLoader;
_local2 = URLLoader(_arg1.target);
str = _local2.data;
trace("DL終了データ格納完了 completeHandler: ");
mes = (mes + "DL終了データ格納完了 completeHandler\n");
removeListeners(urll);
}
public function get getErrorFlg():Boolean{
return (errorFlg);
}
public function get getDataBase():String{
return (str);
}
}
}//package org.e_ohkoku
Section 57
//Enumeration (org.e_ohkoku.Enumeration)
package org.e_ohkoku {
import flash.display.*;
import flash.utils.*;
public class Enumeration extends Sprite {
public function enumeration(_arg1:Object, _arg2:int=0, _arg3:String=""):void{
var _local4:DisplayObjectContainer;
var _local5:int;
_arg3 = rept(_arg2);
trace((_arg3 + _arg1.name), getQualifiedClassName(_arg1));
if ((_arg1 is DisplayObjectContainer)){
_local4 = (_arg1 as DisplayObjectContainer);
_arg2++;
trace(((_arg3 + "子数:") + _arg1.numChildren));
_local5 = 0;
while (_local5 < _arg1.numChildren) {
enumeration(_local4.getChildAt(_local5), _arg2);
_local5++;
};
} else {
trace(((("互換性無し obj: " + _arg1) + " ") + _arg1.name));
};
}
private function rept(_arg1:int):String{
var _local2:String;
_local2 = "";
while (_arg1-- > 0) {
_local2 = (_local2 + "\t");
};
return (_local2);
}
public function arrayEnu(_arg1:Object, _arg2:int=0, _arg3:int=0, _arg4:String=""):void{
var _local5:int;
_arg4 = rept(_arg2);
if (_arg1 != null){
if ((((((((((((_arg1 is Number)) || ((_arg1 is int)))) || ((_arg1 is uint)))) || ((_arg1 is String)))) || ((_arg1 is XML)))) || ((_arg1 is Boolean)))){
trace((((_arg4 + _arg3) + ":") + _arg1));
};
};
if ((_arg1 is Array)){
_arg2++;
trace((((_arg4 + _arg3) + ": レンジ:") + _arg1.length));
_local5 = 0;
while (_local5 < _arg1.length) {
arrayEnu(_arg1[_local5], _arg2, _local5);
_local5++;
};
} else {
trace(((_arg4 + _arg3) + ": 要素無し"));
};
}
}
}//package org.e_ohkoku
Section 58
//FPSpro (org.e_ohkoku.FPSpro)
package org.e_ohkoku {
import flash.text.*;
import flash.utils.*;
public class FPSpro {
private var oldTimer:int;
private var co:uint;
private var count:int;
private var textF:TextField;
public function FPSpro(_arg1:TextField){
count = 0;
oldTimer = 0;
textF = _arg1;
}
public function removePro():void{
trace(("リムーブ処理 " + getQualifiedClassName(this)));
textF = null;
}
public function countPro(_arg1:int):Boolean{
var _local2:int;
_local2 = (co % _arg1);
if (_local2 == 0){
return (true);
};
return (false);
}
public function counting():void{
co++;
count = (count + 1);
if ((getTimer() - oldTimer) >= 1000){
textF.text = (count + "fps");
oldTimer = getTimer();
count = 0;
};
}
}
}//package org.e_ohkoku
Section 59
//LoaderPro (org.e_ohkoku.LoaderPro)
package org.e_ohkoku {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class LoaderPro {
private var loadingMC:MovieClip;
private var rootMC:MovieClip;
private var info:LoaderInfo;
public function LoaderPro(_arg1:MovieClip, _arg2:MovieClip){
rootMC = _arg1;
loadingMC = _arg2;
rootMC.addEventListener(Event.ENTER_FRAME, enterFrameFunc);
}
public function removeListenerPro():void{
trace(("リスナー削除処理 " + getQualifiedClassName(this)));
rootMC.removeEventListener(Event.ENTER_FRAME, enterFrameFunc);
rootMC = null;
loadingMC = null;
info = null;
}
private function enterFrameFunc(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:int;
info = rootMC.loaderInfo;
_local2 = info.bytesLoaded;
_local3 = info.bytesTotal;
_local4 = Math.floor(((_local2 / _local3) * 100));
trace((((((_local2 + " / ") + _local3) + " : ") + _local4) + "%"));
loadingMC.gotoAndStop(_local4);
if (_local2 == _local3){
trace(("ロード完了" + getQualifiedClassName(this)));
rootMC.play();
removeListenerPro();
};
}
}
}//package org.e_ohkoku
Section 60
//MosaicII (org.e_ohkoku.MosaicII)
package org.e_ohkoku {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
public class MosaicII extends Sprite {
private var hx:Number;// = 0
private var hy:Number;// = 0
private var M_WIDTH:int;
private var M_HEIGHT:int;
private var M_WIDTH_HALF:int;
private var mosaicRect:Object;
private var M_HEIGH_HALF:int;
private var renderMC:MovieClip;
private var bmpData:BitmapData;
private var sourceMC:MovieClip;
public function MosaicII(_arg1:MovieClip, _arg2:MovieClip, _arg3:int){
hx = 0;
hy = 0;
super();
renderMC = _arg1;
sourceMC = _arg2;
hx = sourceMC.x;
hy = sourceMC.y;
M_WIDTH = _arg3;
M_HEIGHT = _arg3;
M_WIDTH_HALF = (M_WIDTH / 2);
M_HEIGH_HALF = (M_HEIGHT / 2);
mosaicRect = {x:(_arg3 * -4), y:(_arg3 * -5), w:(_arg3 * 8), h:(_arg3 * 10)};
bmpData = new BitmapData(mosaicRect.w, mosaicRect.h, true);
}
private function mosaicClear():void{
if (renderMC != null){
renderMC.graphics.clear();
};
}
private function mosaicObjectSet():void{
var _local1:Rectangle;
var _local2:int;
var _local3:int;
var _local4:Matrix;
var _local5:Rectangle;
var _local6:*;
var _local7:*;
var _local8:uint;
_local1 = new Rectangle(0, 0, mosaicRect.w, mosaicRect.h);
bmpData.fillRect(_local1, 0);
_local2 = ((-(mosaicRect.x) + hx) - renderMC.x);
_local3 = ((-(mosaicRect.y) + hy) - renderMC.y);
_local4 = new Matrix(1, 0, 0, 1, _local2, _local3);
bmpData.draw(sourceMC, _local4);
_local5 = new Rectangle(0, 0, M_WIDTH, M_HEIGHT);
_local6 = 0;
while (_local6 < mosaicRect.h) {
_local7 = 0;
while (_local7 < mosaicRect.w) {
_local5.x = _local7;
_local5.y = _local6;
_local8 = bmpData.getPixel32((_local7 + M_WIDTH_HALF), (_local6 + M_HEIGH_HALF));
bmpData.fillRect(_local5, _local8);
_local7 = (_local7 + M_WIDTH);
};
_local6 = (_local6 + M_HEIGHT);
};
}
public function set pointSet(_arg1:Point):void{
trace(("\n位置補正設定 " + getQualifiedClassName(this)));
hx = _arg1.x;
hy = _arg1.y;
trace(((("ソースMC位置 " + sourceMC.x) + " , ") + sourceMC.y));
trace(((("ソース再設定位置 " + hx) + " , ") + hy));
trace("\n");
}
public function removePro():void{
trace(("リムーブ処理 " + getQualifiedClassName(this)));
if (renderMC != null){
renderMC.graphics.clear();
renderMC = null;
};
sourceMC = null;
bmpData = null;
mosaicRect = null;
}
public function mosaicPro(_arg1:Boolean):void{
if (_arg1){
mosaicObjectSet();
mosaicDraw();
} else {
mosaicClear();
};
}
private function mosaicDraw():void{
var _local1:Matrix;
_local1 = new Matrix(1, 0, 0, 1, mosaicRect.x, mosaicRect.y);
renderMC.graphics.clear();
renderMC.graphics.beginBitmapFill(bmpData, _local1, true, true);
renderMC.graphics.drawCircle((mosaicRect.x + (mosaicRect.w / 2)), (mosaicRect.y + (mosaicRect.h / 2)), (mosaicRect.w / 2));
renderMC.graphics.endFill();
}
}
}//package org.e_ohkoku
Section 61
//SharedObj (org.e_ohkoku.SharedObj)
package org.e_ohkoku {
import flash.utils.*;
import flash.net.*;
public class SharedObj {
private var hostName:String;
private var so:SharedObject;
public function SharedObj(_arg1:String){
hostName = _arg1;
}
public function dataClear():void{
so = SharedObject.getLocal(hostName);
if (so){
so.close();
};
so = null;
}
public function removePro():void{
trace(("リムーブ処理 " + getQualifiedClassName(this)));
if (so != null){
so.close();
so = null;
};
}
public function dataSave(_arg1:Object){
var _local2:*;
var _local3:Object;
so = SharedObject.getLocal(hostName);
for (_local2 in _arg1) {
trace(((_local2 + " : ") + _arg1[_local2]));
so.data[_local2] = _arg1[_local2];
};
_local3 = so.flush();
so.close();
}
public function dataLoad():Object{
var _local1:Object;
so = SharedObject.getLocal(hostName);
if (so){
_local1 = so.data;
};
so.close();
return (_local1);
}
public function testPro(_arg1:Object){
var _local2:*;
for (_local2 in _arg1) {
trace(((_local2 + " : ") + _arg1[_local2]));
};
}
}
}//package org.e_ohkoku
Section 62
//UserInput (org.e_ohkoku.UserInput)
package org.e_ohkoku {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class UserInput {
protected var keyFlgD:Boolean;// = false
protected var keyC:int;// = 0
protected var wheelVal:int;
protected var keyFlgL:Boolean;// = false
protected var keyFlgR:Boolean;// = false
protected var keyFlgU:Boolean;// = false
protected var stageMC:Object;
protected var cursolH:int;// = 0
protected var charC:int;// = 0
protected var rootMC:MovieClip;
protected var keyFlgSp:Boolean;// = false
protected static var fx:Number;
protected static var fy:Number;
protected static var mouseFlg:Boolean;
public function UserInput(_arg1:MovieClip, _arg2:Object){
charC = 0;
keyC = 0;
keyFlgL = false;
keyFlgR = false;
keyFlgU = false;
keyFlgD = false;
cursolH = 0;
keyFlgSp = false;
super();
rootMC = _arg1;
stageMC = _arg2;
listenerSet();
}
public function get getKeyH():int{
return (cursolH);
}
protected function keyUpPro(_arg1:KeyboardEvent):void{
var _local2:*;
charC = 0;
keyC = 0;
_local2 = _arg1.keyCode;
if (_local2 == 37){
keyFlgL = false;
};
if (_local2 == 39){
keyFlgR = false;
};
if (_local2 == 38){
keyFlgU = false;
};
if (_local2 == 40){
keyFlgD = false;
};
directionPro();
keyFlgSp = false;
}
private function mouseBTNon(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
private function mouseBTNoff(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
public function get getCharC():int{
return (charC);
}
private function mouseMV(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
public function get MWval():int{
var _local1:int;
_local1 = wheelVal;
wheelVal = 0;
return (_local1);
}
protected function keyDownPro(_arg1:KeyboardEvent):void{
charC = _arg1.charCode;
keyC = _arg1.keyCode;
if (keyC == 37){
keyFlgL = true;
};
if (keyC == 38){
keyFlgU = true;
};
if (keyC == 39){
keyFlgR = true;
};
if (keyC == 40){
keyFlgD = true;
};
directionPro();
if (keyC == 32){
keyFlgSp = true;
};
}
private function mouseWheelHandler(_arg1:MouseEvent):void{
wheelVal = _arg1.delta;
}
public function get getKeySp():Boolean{
return (keyFlgSp);
}
public function get getKeyC():int{
return (keyC);
}
private function listenerSet():void{
stageMC.addEventListener(KeyboardEvent.KEY_DOWN, keyDownPro);
stageMC.addEventListener(KeyboardEvent.KEY_UP, keyUpPro);
rootMC.addEventListener(MouseEvent.MOUSE_MOVE, mouseMV);
rootMC.addEventListener(MouseEvent.MOUSE_DOWN, mouseBTNon);
rootMC.addEventListener(MouseEvent.MOUSE_UP, mouseBTNoff);
rootMC.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
}
public function removeListenerPro():void{
trace(("リスナー削除処理 " + getQualifiedClassName(this)));
stageMC.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownPro);
stageMC.removeEventListener(KeyboardEvent.KEY_UP, keyUpPro);
rootMC.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMV);
rootMC.removeEventListener(MouseEvent.MOUSE_DOWN, mouseBTNon);
rootMC.removeEventListener(MouseEvent.MOUSE_UP, mouseBTNoff);
rootMC.removeEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
stageMC = null;
rootMC = null;
}
protected function directionPro():void{
if (keyFlgU){
cursolH = 1;
};
if (keyFlgR){
cursolH = 3;
};
if (keyFlgD){
cursolH = 5;
};
if (keyFlgL){
cursolH = 7;
};
if (((keyFlgU) && (keyFlgR))){
cursolH = 2;
} else {
if (((keyFlgR) && (keyFlgD))){
cursolH = 4;
} else {
if (((keyFlgD) && (keyFlgL))){
cursolH = 6;
} else {
if (((keyFlgL) && (keyFlgU))){
cursolH = 8;
} else {
if (((((((!(keyFlgL)) && (!(keyFlgR)))) && (!(keyFlgU)))) && (!(keyFlgD)))){
cursolH = 0;
};
};
};
};
};
}
public static function get MBflgS():Boolean{
return (mouseFlg);
}
public static function mouseDir(_arg1:Number, _arg2:Number):int{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:int;
_local3 = (fx - _arg1);
_local4 = (fy - _arg2);
_local5 = (_local3 * _local3);
_local6 = (_local4 * _local4);
_local7 = Math.sqrt((_local5 + _local6));
_local8 = ((Math.atan2(_local4, _local3) * 180) / Math.PI);
fx = _arg1;
fy = _arg2;
if ((((_local8 == 0)) && ((_local7 == 0)))){
_local9 = 0;
} else {
if ((((_local8 > 67.5)) && ((_local8 < 112.5)))){
_local9 = 1;
} else {
if ((((_local8 > 112.5)) && ((_local8 < 157.5)))){
_local9 = 2;
} else {
if ((((_local8 > 157.5)) || ((_local8 < -157.5)))){
_local9 = 3;
} else {
if ((((_local8 < -112.5)) && ((_local8 > -157.5)))){
_local9 = 4;
} else {
if ((((_local8 < -67.5)) && ((_local8 > -112.5)))){
_local9 = 5;
} else {
if ((((_local8 < -22.5)) && ((_local8 > -67.5)))){
_local9 = 6;
} else {
if ((((_local8 < 22.5)) && ((_local8 > -22.5)))){
_local9 = 7;
} else {
if ((((_local8 > 22.5)) && ((_local8 < 67.5)))){
_local9 = 8;
};
};
};
};
};
};
};
};
};
return (_local9);
}
}
}//package org.e_ohkoku
Section 63
//effect01 (effect01)
package {
import flash.media.*;
public dynamic class effect01 extends Sound {
}
}//package
Section 64
//loader (loader)
package {
import flash.display.*;
public dynamic class loader extends MovieClip {
public var bar:MovieClip;
public var loadBar:MovieClip;
public function loader(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package