Section 1
//backMC1_30 (eroka_fla.backMC1_30)
package eroka_fla {
import flash.display.*;
public dynamic class backMC1_30 extends MovieClip {
public var simiMC:MovieClip;
}
}//package eroka_fla
Section 2
//bHandMC1_64 (eroka_fla.bHandMC1_64)
package eroka_fla {
import flash.display.*;
public dynamic class bHandMC1_64 extends MovieClip {
public var handMC:MovieClip;
public function bHandMC1_64(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 3
//bodyUMC_18 (eroka_fla.bodyUMC_18)
package eroka_fla {
import flash.display.*;
public dynamic class bodyUMC_18 extends MovieClip {
public var braMC:MovieClip;
public var paiLMC:MovieClip;
public var headMC:MovieClip;
public var onePieceMC:MovieClip;
public var paiRMC:MovieClip;
public function bodyUMC_18(){
addFrameScript(19, frame20, 41, frame42, 70, frame71);
}
function frame71(){
this.gotoAndStop(1);
}
function frame20(){
this.gotoAndStop(1);
}
function frame42(){
this.gotoAndStop(1);
}
}
}//package eroka_fla
Section 4
//braMC_22 (eroka_fla.braMC_22)
package eroka_fla {
import flash.display.*;
public dynamic class braMC_22 extends MovieClip {
public var HA_braMC:MovieClip;
public function braMC_22(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
this.stop();
}
function frame21(){
this.stop();
}
}
}//package eroka_fla
Section 5
//finishAnimeMC_11 (eroka_fla.finishAnimeMC_11)
package eroka_fla {
import flash.display.*;
public dynamic class finishAnimeMC_11 extends MovieClip {
public function finishAnimeMC_11(){
addFrameScript(0, frame1, 203, frame204);
}
function frame204(){
this.stop();
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 6
//fukidasiMC_13 (eroka_fla.fukidasiMC_13)
package eroka_fla {
import flash.display.*;
public dynamic class fukidasiMC_13 extends MovieClip {
public var sceneMC:MovieClip;
public function fukidasiMC_13(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 7
//gaugeMC_75 (eroka_fla.gaugeMC_75)
package eroka_fla {
import flash.display.*;
public dynamic class gaugeMC_75 extends MovieClip {
public function gaugeMC_75(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 8
//H_soundMC15_4 (eroka_fla.H_soundMC15_4)
package eroka_fla {
import flash.display.*;
public dynamic class H_soundMC15_4 extends MovieClip {
public function H_soundMC15_4(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 9
//H_soundMC16_6 (eroka_fla.H_soundMC16_6)
package eroka_fla {
import flash.display.*;
public dynamic class H_soundMC16_6 extends MovieClip {
public function H_soundMC16_6(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 10
//H_soundMC18_3 (eroka_fla.H_soundMC18_3)
package eroka_fla {
import flash.display.*;
public dynamic class H_soundMC18_3 extends MovieClip {
public function H_soundMC18_3(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 11
//H_soundMC6_7 (eroka_fla.H_soundMC6_7)
package eroka_fla {
import flash.display.*;
public dynamic class H_soundMC6_7 extends MovieClip {
public function H_soundMC6_7(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 12
//H_soundMC7_5 (eroka_fla.H_soundMC7_5)
package eroka_fla {
import flash.display.*;
public dynamic class H_soundMC7_5 extends MovieClip {
public function H_soundMC7_5(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 13
//handMC1_69 (eroka_fla.handMC1_69)
package eroka_fla {
import flash.display.*;
public dynamic class handMC1_69 extends MovieClip {
public var handMC:MovieClip;
public function handMC1_69(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 14
//headMC_19 (eroka_fla.headMC_19)
package eroka_fla {
import flash.display.*;
public dynamic class headMC_19 extends MovieClip {
public var pinkMC:MovieClip;
public function headMC_19(){
addFrameScript(68, frame69, 158, frame159, 427, frame428);
}
function frame159(){
this.gotoAndPlay("P2");
}
function frame428(){
this.stop();
}
function frame69(){
this.gotoAndPlay("P1");
}
}
}//package eroka_fla
Section 15
//hipMC_38 (eroka_fla.hipMC_38)
package eroka_fla {
import flash.display.*;
public dynamic class hipMC_38 extends MovieClip {
public var vibSiruMC:MovieClip;
public var siruMC:MovieClip;
public var pantsMC:MovieClip;
public var skirtMC:MovieClip;
}
}//package eroka_fla
Section 16
//hipMC2_54 (eroka_fla.hipMC2_54)
package eroka_fla {
import flash.display.*;
public dynamic class hipMC2_54 extends MovieClip {
public var HA_hidaRMC:MovieClip;
public var HA_panMC:MovieClip;
public var HA_vibMC:MovieClip;
public var bHandMC:MovieClip;
public var moyaMC:MovieClip;
public var sHandMC:MovieClip;
public var HA_hidaLMC:MovieClip;
public var HA_manMC:MovieClip;
public var tHandMC:MovieClip;
}
}//package eroka_fla
Section 17
//legRMC_52 (eroka_fla.legRMC_52)
package eroka_fla {
import flash.display.*;
public dynamic class legRMC_52 extends MovieClip {
public var stockingMC:MovieClip;
}
}//package eroka_fla
Section 18
//loadingMC_1 (eroka_fla.loadingMC_1)
package eroka_fla {
import flash.display.*;
public dynamic class loadingMC_1 extends MovieClip {
public var barMC:loader;
}
}//package eroka_fla
Section 19
//M_nasiMC_12 (eroka_fla.M_nasiMC_12)
package eroka_fla {
import flash.display.*;
public dynamic class M_nasiMC_12 extends MovieClip {
public function M_nasiMC_12(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 20
//M_puriMC_9 (eroka_fla.M_puriMC_9)
package eroka_fla {
import flash.display.*;
public dynamic class M_puriMC_9 extends MovieClip {
public function M_puriMC_9(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 21
//M_vibratorMC_10 (eroka_fla.M_vibratorMC_10)
package eroka_fla {
import flash.display.*;
public dynamic class M_vibratorMC_10 extends MovieClip {
public function M_vibratorMC_10(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 22
//mainMC_36 (eroka_fla.mainMC_36)
package eroka_fla {
import flash.display.*;
public dynamic class mainMC_36 extends MovieClip {
public var armLMC:MovieClip;
public var legLMC:MovieClip;
public var handMC:MovieClip;
public var hipMCB:MovieClip;
public var hipMC:MovieClip;
public var legRMC:MovieClip;
public var bodyUMC:MovieClip;
public var fingerMC:MovieClip;
public var skirtMC:MovieClip;
public function mainMC_36(){
addFrameScript(67, frame68, 84, frame85, 106, frame107, 135, frame136);
}
function frame85(){
this.gotoAndPlay("P1");
}
function frame107(){
this.gotoAndPlay("P1");
}
function frame136(){
this.gotoAndPlay("P1");
}
function frame68(){
this.gotoAndPlay(1);
}
}
}//package eroka_fla
Section 23
//MainTimeline (eroka_fla.MainTimeline)
package eroka_fla {
import flash.display.*;
import game.*;
import flash.events.*;
import flash.text.*;
import game.Eroka.*;
import flash.media.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var fps:FPSpro;
public var soundMC1:MovieClip;
public var finishAnimeMC:MovieClip;
public var fukidasiMC:MovieClip;
public var debugText:TextField;
public var moza:Mosaic;
public var btn:ErokaButton;
public var verText:TextField;
public var gaugeMC:MovieClip;
public var ld:LoaderPro;
public var con:ContextMenuSet;
public var nasiMC:MovieClip;
public var mozaMC:MovieClip;
public var main:MainProEroka;
public var ver:String;
public var fpsText:TextField;
public var backMC:MovieClip;
public var loadingMC:MovieClip;
public var soundMC2:MovieClip;
public var titleMC:MovieClip;
public var soundMC4:MovieClip;
public var sourceMC:MovieClip;
public var soundMC3:MovieClip;
public var soundMC5:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 10, frame11, 15, frame16, 17, frame18, 19, frame20, 29, frame30);
}
public function restartPro(){
trace("restartPro(){//リスタート処理");
trace(((("前\n" + main) + "\n") + moza));
main = null;
moza = null;
btn = null;
stage.removeEventListener(Event.ENTER_FRAME, mainPro);
trace(((("後\n" + main) + "\n") + moza));
finishAnimeMC.gotoAndStop(1);
fukidasiMC.gotoAndStop(1);
gotoAndPlay(8);
}
public function mainPro(_arg1:Event):void{
var _local2:int;
_local2 = this.currentFrame;
switch (_local2){
case 10:
if (btn.startFlg){
this.gotoAndStop(20);
};
break;
case 20:
if (((main.getMozaFlg) && (main.getPantsFlg))){
moza.mosaicObject();
moza.mosaicPro();
};
main.handPro(mouseX, mouseY);
main.frameCheckPro();
if (main.getFINISHflg){
this.gotoAndStop(30);
};
break;
case 30:
main.finishAnimePro();
main.frameCheckPro();
break;
};
fps.counting();
}
function frame18(){
ver = "Ver.1.1";
}
function frame16(){
fps = new FPSpro(fpsText);
}
function frame1(){
con = new ContextMenuSet(this);
}
function frame20(){
this.stop();
btn = new ErokaButton(titleMC.startBTN);
verText.text = ver;
titleMC.bodyUMC.paiLMC.visible = false;
stage.addEventListener(Event.ENTER_FRAME, mainPro);
}
function frame2(){
this.stop();
ld = new LoaderPro(this, loadingMC.barMC);
}
function frame11(){
}
function frame30(){
this.stop();
con = null;
moza = new Mosaic(mozaMC.karaMC, sourceMC);
main = new MainProEroka(this, stage, moza);
sourceMC.bodyUMC.paiLMC.visible = false;
sourceMC.bodyUMC.paiRMC.visible = false;
sourceMC.bodyUMC.onePieceMC.skirtMC.visible = false;
sourceMC.hipMC.moyaMC.visible = false;
fukidasiMC.gotoAndStop("scene1");
}
}
}//package eroka_fla
Section 24
//mozaMC_73 (eroka_fla.mozaMC_73)
package eroka_fla {
import flash.display.*;
public dynamic class mozaMC_73 extends MovieClip {
public var karaMC:MovieClip;
public function mozaMC_73(){
addFrameScript(18, frame19, 40, frame41, 69, frame70);
}
function frame70(){
this.gotoAndStop(1);
}
function frame19(){
this.gotoAndStop(1);
}
function frame41(){
this.gotoAndStop(1);
}
}
}//package eroka_fla
Section 25
//onePieceMC1_24 (eroka_fla.onePieceMC1_24)
package eroka_fla {
import flash.display.*;
public dynamic class onePieceMC1_24 extends MovieClip {
public var skirtMC:MovieClip;
public function onePieceMC1_24(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 26
//paiRMC_21 (eroka_fla.paiRMC_21)
package eroka_fla {
import flash.display.*;
public dynamic class paiRMC_21 extends MovieClip {
public function paiRMC_21(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 27
//pantsMC_40 (eroka_fla.pantsMC_40)
package eroka_fla {
import flash.display.*;
public dynamic class pantsMC_40 extends MovieClip {
public var simiMC:MovieClip;
public function pantsMC_40(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 28
//pinkMC_20 (eroka_fla.pinkMC_20)
package eroka_fla {
import flash.display.*;
public dynamic class pinkMC_20 extends MovieClip {
public function pinkMC_20(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 29
//sceneMC1_14 (eroka_fla.sceneMC1_14)
package eroka_fla {
import flash.display.*;
public dynamic class sceneMC1_14 extends MovieClip {
public function sceneMC1_14(){
addFrameScript(99, frame100);
}
function frame100(){
this.stop();
}
}
}//package eroka_fla
Section 30
//sceneMC2_15 (eroka_fla.sceneMC2_15)
package eroka_fla {
import flash.display.*;
public dynamic class sceneMC2_15 extends MovieClip {
public function sceneMC2_15(){
addFrameScript(97, frame98);
}
function frame98(){
this.stop();
}
}
}//package eroka_fla
Section 31
//sHandMC_55 (eroka_fla.sHandMC_55)
package eroka_fla {
import flash.display.*;
public dynamic class sHandMC_55 extends MovieClip {
public function sHandMC_55(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 32
//simiMC_41 (eroka_fla.simiMC_41)
package eroka_fla {
import flash.display.*;
public dynamic class simiMC_41 extends MovieClip {
public function simiMC_41(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 33
//simiMC1_35 (eroka_fla.simiMC1_35)
package eroka_fla {
import flash.display.*;
public dynamic class simiMC1_35 extends MovieClip {
public function simiMC1_35(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 34
//siruMC1_39 (eroka_fla.siruMC1_39)
package eroka_fla {
import flash.display.*;
public dynamic class siruMC1_39 extends MovieClip {
public function siruMC1_39(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 35
//siruMC2_48 (eroka_fla.siruMC2_48)
package eroka_fla {
import flash.display.*;
public dynamic class siruMC2_48 extends MovieClip {
public function siruMC2_48(){
addFrameScript(0, frame1, 8, frame9, 13, frame14, 18, frame19, 23, frame24, 28, frame29);
}
function frame14(){
this.gotoAndStop(2);
}
function frame1(){
this.stop();
}
function frame19(){
this.gotoAndStop(2);
}
function frame24(){
this.gotoAndStop(2);
}
function frame9(){
this.gotoAndStop(2);
}
function frame29(){
this.gotoAndStop(2);
}
}
}//package eroka_fla
Section 36
//skirtMC7_42 (eroka_fla.skirtMC7_42)
package eroka_fla {
import flash.display.*;
public dynamic class skirtMC7_42 extends MovieClip {
public var HA_skirtMC:MovieClip;
public function skirtMC7_42(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 37
//tHandMC1_56 (eroka_fla.tHandMC1_56)
package eroka_fla {
import flash.display.*;
public dynamic class tHandMC1_56 extends MovieClip {
public var mankoMC:MovieClip;
public function tHandMC1_56(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 38
//titleMC1_16 (eroka_fla.titleMC1_16)
package eroka_fla {
import flash.display.*;
public dynamic class titleMC1_16 extends MovieClip {
public var startBTN:SimpleButton;
public var bodyUMC:MovieClip;
}
}//package eroka_fla
Section 39
//voiceMC_8 (eroka_fla.voiceMC_8)
package eroka_fla {
import flash.display.*;
public dynamic class voiceMC_8 extends MovieClip {
public function voiceMC_8(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package eroka_fla
Section 40
//CMS_Eroka (game.Eroka.CMS_Eroka)
package game.Eroka {
import flash.display.*;
import game.*;
import flash.events.*;
import flash.ui.*;
public class CMS_Eroka extends ContextMenuSet {
private var sound:SoundEroka;
private var hMode:int;// = 1
private static var changeFlg:Boolean = false;
public function CMS_Eroka(_arg1:MovieClip){
hMode = 1;
super(_arg1);
sound = new SoundEroka();
}
public function get getMode():int{
return (hMode);
}
public function get getFlg():Boolean{
return (changeFlg);
}
override protected function itemSelectHandler0(_arg1:ContextMenuEvent):void{
trace("ノーマルハンド");
hMode = 1;
sound.playEffectS(1, 1);
changeFlg = true;
}
protected function itemSelectHandler1(_arg1:ContextMenuEvent):void{
trace("ローター");
hMode = 3;
sound.playEffectS(13, 0.5);
changeFlg = true;
}
protected function itemSelectHandler2(_arg1:ContextMenuEvent):void{
trace("バイブ");
hMode = 4;
sound.playEffectS(14, 0.5);
changeFlg = true;
}
protected function itemSelectHandler3(_arg1:ContextMenuEvent):void{
trace("------");
}
public function set setFlg(_arg1:Boolean):void{
changeFlg = _arg1;
}
protected function itemSelectHandler4(_arg1:ContextMenuEvent):void{
trace("リスタート!!");
rootMC.restartPro();
sound.playEffectS(1, 1);
}
override protected function addCustomMenuItems():void{
var _local1:ContextMenuItem;
var _local2:ContextMenuItem;
var _local3:ContextMenuItem;
var _local4:ContextMenuItem;
var _local5:ContextMenuItem;
_local1 = new ContextMenuItem("ノーマルハンド");
_local2 = new ContextMenuItem("ローター");
_local3 = new ContextMenuItem("バイブ");
_local4 = new ContextMenuItem("-----------");
_local5 = new ContextMenuItem("Restart");
myContextMenu.customItems.push(_local1, _local2, _local3, _local4, _local5);
_local1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler0);
_local2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler1);
_local3.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler2);
_local4.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler3);
_local5.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler4);
}
}
}//package game.Eroka
Section 41
//ErokaButton (game.Eroka.ErokaButton)
package game.Eroka {
import flash.display.*;
import flash.events.*;
public class ErokaButton {
private var sFlg:Boolean;// = false
private var sound:SoundEroka;
public function ErokaButton(_arg1:SimpleButton){
sFlg = false;
super();
sound = new SoundEroka();
_arg1.addEventListener(MouseEvent.CLICK, startButtonPro);
}
public function get startFlg():Boolean{
return (sFlg);
}
private function startButtonPro(_arg1:MouseEvent):void{
sFlg = true;
sound.playEffectS(1, 1);
trace("スタートボタンおした!");
}
}
}//package game.Eroka
Section 42
//MainProEroka (game.Eroka.MainProEroka)
package game.Eroka {
import flash.display.*;
import game.*;
import flash.text.*;
public class MainProEroka {
private var extFlg:Array;
private var pinkCo:int;// = 0
private var conM:CMS_Eroka;
private var braFlg:Boolean;// = false
private var mozaMC:MovieClip;
private var myS:SoundEroka;
private var iVol:Number;// = 0
private var hMode:int;// = 1
private var MBflg:Boolean;// = false
private var dText:TextField;
private var backMC:MovieClip;
private var handMC:MovieClip;
private var input:UI_Eroka;
private var animeFlg:Boolean;// = false
private var mHo:int;// = 0
private var skirtFlg:Boolean;// = false
private var braCo:int;// = 0
private var mozaFlg:Boolean;// = true
private var pantsFlg:Boolean;// = false
private var insertFlg:Boolean;// = false
private var mozaObj:Mosaic;
private var pantsCo:int;// = 0
private var sourceMC:MovieClip;
private var tg:Array;
private var FINISHflg:Boolean;// = false
private var pink:int;// = 1
private var rootMC:MovieClip;
private var onepieceFlg:Boolean;// = false
private var reactionFlg:Boolean;// = false
public function MainProEroka(_arg1:MovieClip, _arg2:Object, _arg3:Mosaic){
var _local4:*;
animeFlg = false;
MBflg = false;
reactionFlg = false;
mozaFlg = true;
pantsFlg = false;
braFlg = false;
skirtFlg = false;
onepieceFlg = false;
hMode = 1;
insertFlg = false;
FINISHflg = false;
pink = 1;
pinkCo = 0;
pantsCo = 0;
braCo = 0;
mHo = 0;
iVol = 0;
super();
rootMC = _arg1;
handMC = _arg1.sourceMC.handMC;
mozaMC = _arg1.mozaMC;
sourceMC = _arg1.sourceMC;
backMC = _arg1.backMC;
mozaObj = _arg3;
dText = _arg1.debugText;
myS = new SoundEroka();
input = new UI_Eroka(rootMC, _arg2);
conM = new CMS_Eroka(rootMC);
extFlg = new Array();
_local4 = 0;
while (_local4 <= 20) {
extFlg[_local4] = false;
_local4++;
};
tg = new Array();
tg[1] = sourceMC.bodyUMC;
tg[2] = tg[1].paiLMC;
tg[3] = tg[1].paiRMC;
tg[4] = tg[1].headMC;
tg[5] = sourceMC.hipMC;
tg[6] = sourceMC.hipMCB;
tg[10] = tg[6].pantsMC;
tg[11] = tg[1].braMC;
tg[12] = tg[6].skirtMC;
tg[13] = tg[5].sHandMC;
tg[14] = tg[1].onePieceMC;
tg[15] = tg[5].bHandMC;
tg[20] = tg[5].HA_manMC;
tg[21] = tg[5].HA_hidaRMC;
tg[22] = tg[5].tHandMC;
tg[23] = tg[5].HA_panMC;
tg[24] = tg[11].HA_braMC;
tg[25] = tg[12].HA_skirtMC;
tg[26] = tg[5].HA_vibMC;
}
private function stateRenewPro():void{
tg[4].pinkMC.gotoAndStop(pink);
tg[10].simiMC.gotoAndStop(pink);
tg[6].siruMC.gotoAndStop(pink);
}
public function frameCheckPro():void{
var _local1:String;
var _local2:int;
var _local3:String;
_local1 = tg[4].currentLabel;
if ((((((_local1 == "C1")) || ((_local1 == "C2")))) || ((_local1 == "C3")))){
_local2 = (Math.floor((Math.random() * 2)) + 1);
tg[4].gotoAndPlay(("P" + _local2));
reactionFlg = false;
};
if (!braFlg){
_local3 = tg[11].currentLabel;
if (_local3 == "paiOn"){
tg[2].visible = (tg[3].visible = true);
tg[2].gotoAndPlay(2);
tg[3].gotoAndPlay(2);
braFlg = true;
extFlg[1] = true;
};
};
}
private function siruVibPro():void{
var _local1:int;
if (Math.floor((Math.random() * 5)) != 0){
return;
};
_local1 = (((Math.random() * 5) * 5) + 1);
tg[6].vibSiruMC.gotoAndPlay(_local1);
tg[6].vibSiruMC.alpha = pink;
}
public function get getMozaFlg():Boolean{
return (mozaFlg);
}
private function reactionPro(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:int;
var _local5:*;
if (reactionFlg){
return;
};
if (Math.floor((Math.random() * _arg1)) != 0){
return;
};
reactionFlg = true;
if (pinkCo > 99){
_local3 = 3;
pink = (pink + 10);
if (pink >= 100){
pink = 100;
};
} else {
if (pinkCo > 70){
_local3 = 2;
} else {
_local3 = 1;
};
};
sourceMC.gotoAndPlay(("R" + _local3));
tg[1].gotoAndPlay(("R" + _local3));
tg[4].gotoAndPlay(("R" + _local3));
mozaMC.gotoAndPlay(("R" + _local3));
myS.playVoice(pinkCo);
if (pinkCo > 110){
pinkCo = 0;
};
if ((((_arg2 >= 1)) && ((_arg2 <= 3)))){
if (_arg2 == 1){
if (hMode == 1){
extFlg[2] = true;
};
if (hMode == 3){
extFlg[3] = true;
};
if (hMode == 4){
extFlg[4] = true;
};
} else {
if (_arg2 == 2){
if (hMode == 1){
extFlg[5] = true;
};
if (hMode == 3){
extFlg[6] = true;
};
if (hMode == 4){
extFlg[7] = true;
};
} else {
if (_arg2 == 3){
if (hMode == 1){
extFlg[10] = true;
};
if (hMode == 3){
extFlg[11] = true;
};
};
};
};
};
_local4 = 1;
_local5 = 0;
while (_local5 <= 20) {
if (extFlg[_local5]){
_local4++;
};
_local5++;
};
rootMC.gaugeMC.gotoAndStop(_local4);
if ((((_local4 >= 15)) && ((pinkCo > 99)))){
FINISHflg = true;
animeFlg = true;
handMC.visible = false;
iVol = myS.getVol;
tg[5].moyaMC.visible = true;
mozaObj.mosaicClear();
rootMC.finishAnimeMC.play();
tg[4].gotoAndPlay("FINISH");
rootMC.fukidasiMC.gotoAndStop(1);
trace("FINISH!!!!!!!! ");
};
}
public function finishAnimePro():void{
var _local1:MovieClip;
var _local2:String;
var _local3:int;
_local1 = rootMC.finishAnimeMC;
_local2 = _local1.currentLabel;
if (_local2 == "S1"){
sourceMC.x = -10;
sourceMC.y = -80;
sourceMC.scaleX = 1.2;
sourceMC.scaleY = 1.2;
sourceMC.rotation = 15;
backMC.x = 250;
backMC.y = 348;
backMC.scaleX = 1.2;
backMC.scaleY = 1.2;
backMC.rotation = 15;
sourceMC.gotoAndPlay("R2");
tg[1].gotoAndPlay("R2");
} else {
if (_local2 == "S2"){
sourceMC.x = -250;
sourceMC.y = 230;
sourceMC.scaleX = 1.65;
sourceMC.scaleY = 1.65;
sourceMC.rotation = -25;
backMC.x = 410;
backMC.y = 438;
backMC.scaleX = 1.65;
backMC.scaleY = 1.65;
backMC.rotation = -25;
} else {
if (_local2 == "S3"){
sourceMC.x = -370;
sourceMC.y = -20;
sourceMC.scaleX = 2.15;
sourceMC.scaleY = 2.15;
sourceMC.rotation = 0;
backMC.x = 280;
backMC.y = 598;
backMC.scaleX = 2.15;
backMC.scaleY = 2.15;
backMC.rotation = 0;
sourceMC.gotoAndPlay("R3");
tg[1].gotoAndPlay("R3");
} else {
if (_local2 == "E"){
trace(("シーン2だ!!! CF:" + rootMC.fukidasiMC.currentFrame));
rootMC.fukidasiMC.gotoAndStop("scene2");
};
};
};
};
if (rootMC.fukidasiMC.currentLabel == "scene2"){
_local3 = rootMC.fukidasiMC.sceneMC.currentFrame;
if (_local3 == 40){
tg[4].gotoAndPlay(20);
sourceMC.armLMC.stop();
sourceMC.fingerMC.stop();
};
};
if (iVol >= 0){
iVol = (iVol - 0.003);
myS.setVolume(iVol);
};
}
public function debugPro():void{
var _local1:Boolean;
var _local2:*;
var _local3:String;
_local1 = false;
_local2 = input.getKeyNo;
_local3 = ((((((((((((((((((((((((((((((((("anime: " + animeFlg) + "\nreaction: ") + reactionFlg) + "\nsoundFlg:") + myS.soundFlg) + "\nvioceFlg:") + myS.voiceFlg) + "\n\npinkCo:") + pinkCo) + "\npink: ") + pink) + "\npantsCo:") + pantsCo) + "\nbraCo:") + braCo) + "\n\nマウスフラグ:") + _local1) + "\nmozaFlg:") + mozaFlg) + "\nkeyNo:") + _local2) + "\nbraFlg:") + braFlg) + "\nskirtFlg:") + skirtFlg) + "\npantsFlg:") + pantsFlg) + "\n\nhMode:") + hMode) + "\ninFlg:") + insertFlg) + "\nobj:") + myS.DDobj);
dText.text = _local3;
}
public function handPro(_arg1:Number, _arg2:Number):void{
var _local3:*;
var _local4:int;
var _local5:MovieClip;
var _local6:int;
handMC.x = _arg1;
handMC.y = _arg2;
if (!animeFlg){
if (UserInput.MBflgS){
stateRenewPro();
mHo = UserInput.mouseDir(_arg1, _arg2);
if (hMode == 1){
handMC.gotoAndStop(2);
};
if (tg[20].hitTestPoint(_arg1, _arg2, true)){
if ((((mHo == 1)) || ((mHo == 5)))){
pinkCo++;
if (pantsFlg){
myS.playSound();
};
reactionPro(10, 3);
};
};
if (!skirtFlg){
if (tg[25].hitTestPoint(_arg1, _arg2, true)){
if ((((((mHo == 1)) || ((mHo == 2)))) || ((mHo == 8)))){
if (tg[12].currentLabel != "end"){
tg[12].nextFrame();
tg[13].visible = true;
tg[13].nextFrame();
} else {
trace(("スカートめくり完了 flg:" + skirtFlg));
tg[14].skirtMC.visible = true;
skirtFlg = true;
extFlg[8] = true;
};
};
};
} else {
if (((skirtFlg) && (!(pantsFlg)))){
if (tg[23].hitTestPoint(_arg1, _arg2, true)){
if ((((((mHo == 1)) || ((mHo == 2)))) || ((mHo == 8)))){
if (tg[10].currentLabel != "end"){
tg[10].nextFrame();
if (tg[10].currentFrame == 12){
pantsCo++;
reactionPro(0, 0);
};
if (pantsCo > 20){
pantsFlg = true;
extFlg[9] = true;
tg[10].gotoAndStop(14);
};
};
} else {
if ((((mHo >= 4)) && ((mHo <= 6)))){
tg[10].prevFrame();
};
};
};
} else {
if (((skirtFlg) && (pantsFlg))){
if (tg[21].hitTestPoint(_arg1, _arg2, true)){
handMC.visible = false;
if ((((mHo >= 6)) && ((mHo <= 8)))){
tg[22].nextFrame();
extFlg[13] = true;
reactionPro(20, 0);
} else {
if ((((mHo >= 2)) && ((mHo <= 4)))){
tg[22].prevFrame();
reactionPro(20, 0);
};
};
};
if (hMode == 4){
_local4 = tg[15].currentFrame;
if (((tg[20].hitTestPoint(_arg1, _arg2, true)) || (tg[26].hitTestPoint(_arg1, _arg2, true)))){
handMC.visible = false;
if ((((((mHo == 1)) || ((mHo == 2)))) || ((mHo == 8)))){
if (_local4 >= 11){
insertFlg = true;
extFlg[12] = true;
};
myS.setVolume(0.25);
tg[15].nextFrame();
siruVibPro();
reactionPro(7, 0);
} else {
if ((((mHo >= 4)) && ((mHo <= 6)))){
if (_local4 <= 10){
insertFlg = false;
} else {
if (_local4 >= 14){
tg[15].prevFrame();
};
};
};
};
};
};
};
};
};
if (!onepieceFlg){
if (tg[24].hitTestPoint(_arg1, _arg2, true)){
if ((((mHo >= 3)) && ((mHo <= 5)))){
if (tg[14].currentLabel != "end"){
tg[14].nextFrame();
} else {
trace(("ワンピースめくり完了 flg:" + onepieceFlg));
onepieceFlg = true;
extFlg[0] = true;
};
};
};
} else {
if (((onepieceFlg) && (!(braFlg)))){
if (tg[24].hitTestPoint(_arg1, _arg2, true)){
if ((((((mHo == 1)) || ((mHo == 7)))) || ((mHo == 8)))){
if (tg[11].currentLabel != "end"){
tg[11].nextFrame();
if (tg[11].currentFrame == 9){
braCo++;
};
if (braCo > 10){
tg[11].play();
};
};
} else {
if ((((mHo >= 3)) && ((mHo <= 5)))){
tg[11].prevFrame();
};
};
};
} else {
if (((onepieceFlg) && (braFlg))){
if (tg[2].hitTestPoint(_arg1, _arg2, true)){
if ((((mHo == 7)) || ((mHo == 8)))){
pinkCo++;
handMC.scaleX = 0.85;
handMC.scaleY = 0.85;
tg[2].gotoAndPlay(2);
reactionPro(12, 1);
};
} else {
if (tg[3].hitTestPoint(_arg1, _arg2, true)){
if ((((mHo == 2)) || ((mHo == 3)))){
pinkCo++;
handMC.scaleX = 0.85;
handMC.scaleY = 0.85;
tg[3].gotoAndPlay(2);
reactionPro(12, 2);
};
};
};
};
};
};
} else {
handMC.scaleX = 1;
handMC.scaleY = 1;
hMode = conM.getMode;
handMC.gotoAndStop(hMode);
if (((!((hMode == 4))) || (!(insertFlg)))){
handMC.visible = true;
};
if ((((hMode == 4)) && (!(insertFlg)))){
tg[15].gotoAndStop(1);
};
if (conM.getFlg){
conM.setFlg = false;
insertFlg = false;
tg[15].gotoAndStop(1);
handMC.visible = true;
};
if (!pantsFlg){
tg[10].gotoAndStop(1);
};
if (!braFlg){
tg[11].gotoAndStop(1);
};
if (!skirtFlg){
tg[13].visible = false;
};
};
};
_local3 = input.getKeyNo;
if (_local3 != 0){
_local5 = rootMC.nasiMC;
_local6 = _local5.currentFrame;
if ((((_local3 == 113)) && ((_local6 == 1)))){
_local5.play();
};
};
}
public function get getFINISHflg():Boolean{
return (FINISHflg);
}
public function get getPantsFlg():Boolean{
return (pantsFlg);
}
private function mozaTest():void{
if (!mozaFlg){
mozaFlg = true;
} else {
mozaFlg = false;
mozaObj.mosaicClear();
};
}
}
}//package game.Eroka
Section 43
//SoundEroka (game.Eroka.SoundEroka)
package game.Eroka {
import flash.events.*;
import flash.media.*;
public class SoundEroka {
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 SoundEroka(){
hSound = new Array();
hSound[1] = new MySound01();
hSound[2] = new MySound02();
hSound[3] = new MySound03();
hSound[4] = new MySound04();
hSound[5] = new MySound05();
voice = new Array();
voice[1] = new voice01();
voice[2] = new voice02();
voice[3] = new voice03();
voice[4] = new voice04();
voice[5] = new voice05();
voice[6] = new voice06();
voice[7] = new voice07();
voice[8] = new voice08();
voice[9] = new voice09();
voice[10] = new voice10();
effect = new Array();
effect[1] = new effect01();
effect[13] = new effect13();
effect[14] = new effect14();
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 playSound():void{
var _local1:int;
var _local2:SoundChannel;
if (sFlg){
return;
};
if (Math.floor((Math.random() * 10)) != 0){
return;
};
sFlg = true;
_local1 = (Math.floor((Math.random() * 5)) + 1);
_local2 = hSound[_local1].play();
_local2.addEventListener(Event.SOUND_COMPLETE, soundCompFunc);
}
public function playEffectS(_arg1:int, _arg2:Number):void{
iVol = _arg2;
if (channelE){
channelE.stop();
};
if (_arg1 <= 9){
channelE = effect[_arg1].play();
} else {
channelE = effect[_arg1].play(0, 999);
setVolume(_arg2);
setPan(0);
};
channelE.addEventListener(Event.SOUND_COMPLETE, effectSoundCompFunc);
}
private function effectSoundCompFunc(_arg1:Event):void{
trace(("サウンド終了: " + _arg1));
_arg1.currentTarget.removeEventListener(Event.SOUND_COMPLETE, effectSoundCompFunc);
}
public function get soundFlg():Boolean{
return (sFlg);
}
public function get voiceFlg():Boolean{
return (vFlg);
}
public function get DDobj():Object{
return (channelE);
}
public function setPan(_arg1:Number):void{
var _local2:SoundTransform;
_local2 = channelE.soundTransform;
_local2.pan = _arg1;
channelE.soundTransform = _local2;
}
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(_arg1:int):void{
var _local2:int;
var _local3:SoundChannel;
if (vFlg){
return;
};
vFlg = true;
if (_arg1 > 99){
_local2 = (Math.floor((Math.random() * 3)) + 8);
} else {
if (_arg1 > 70){
_local2 = (Math.floor((Math.random() * 3)) + 5);
} else {
_local2 = (Math.floor((Math.random() * 4)) + 1);
};
};
_local3 = voice[_local2].play();
_local3.addEventListener(Event.SOUND_COMPLETE, voiceCompFunc);
}
}
}//package game.Eroka
Section 44
//UI_Eroka (game.Eroka.UI_Eroka)
package game.Eroka {
import flash.display.*;
import game.*;
import flash.events.*;
public class UI_Eroka extends UserInput {
protected var Dy1:Number;
protected var Dy2:Number;
protected var Dr1:Number;
protected var Dr2:Number;
protected var Ds1:Number;
protected var Ds2:Number;
protected var Dx1:Number;
protected var Dx2:Number;
public function UI_Eroka(_arg1:MovieClip, _arg2:Object){
super(_arg1, _arg2);
}
override protected function keyDownPro(_arg1:KeyboardEvent):void{
keyNo = _arg1.charCode;
if (keyNo == 97){
stageMC.quality = StageQuality.LOW;
} else {
if (keyNo == 115){
stageMC.quality = StageQuality.MEDIUM;
} else {
if (keyNo == 100){
stageMC.quality = StageQuality.HIGH;
};
};
};
keyCo = _arg1.keyCode;
if (keyCo == 37){
keyFlgL = true;
};
if (keyCo == 38){
keyFlgU = true;
};
if (keyCo == 39){
keyFlgR = true;
};
if (keyCo == 40){
keyFlgD = true;
};
directionPro();
if (keyCo == 32){
keyFlgSp = true;
};
}
public function targetSetDB():void{
var _local1:MovieClip;
var _local2:MovieClip;
_local1 = rootMC.sourceMC;
_local2 = rootMC.backMC;
Dx1 = _local1.x;
Dy1 = _local1.y;
Ds1 = _local1.scaleX;
Dr1 = _local1.rotation;
Dx2 = _local2.x;
Dy2 = _local2.y;
Ds2 = _local2.scaleX;
Dr2 = _local2.rotation;
trace(((((((("X1:" + Dx1) + " Y1:") + Dy1) + "\nscl1:") + Ds1) + "\nrot1:") + Dr1));
trace(((((((("X2:" + Dx2) + " Y2:") + Dy2) + "\nscl2:") + Ds2) + "\nrot2:") + Dr2));
}
public function locateDB(_arg1:int, _arg2:Boolean):void{
var _local3:MovieClip;
var _local4:MovieClip;
_local3 = rootMC.sourceMC;
_local4 = rootMC.backMC;
trace("*****************************************************");
if (_arg1 == 74){
if (!_arg2){
Dx1 = (Dx1 - 10);
} else {
Dx2 = (Dx2 - 10);
};
};
if (_arg1 == 75){
if (!_arg2){
Dx1 = (Dx1 + 10);
} else {
Dx2 = (Dx2 + 10);
};
};
if (_arg1 == 73){
if (!_arg2){
Dy1 = (Dy1 - 10);
} else {
Dy2 = (Dy2 - 10);
};
};
if (_arg1 == 77){
if (!_arg2){
Dy1 = (Dy1 + 10);
} else {
Dy2 = (Dy2 + 10);
};
};
if (_arg1 == 82){
if (!_arg2){
Ds1 = (Ds1 - 0.05);
} else {
Ds2 = (Ds2 - 0.05);
};
};
if (_arg1 == 84){
if (!_arg2){
Ds1 = (Ds1 + 0.05);
} else {
Ds2 = (Ds2 + 0.05);
};
};
if (_arg1 == 89){
if (!_arg2){
Dr1 = (Dr1 - 5);
} else {
Dr2 = (Dr2 - 5);
};
};
if (_arg1 == 85){
if (!_arg2){
Dr1 = (Dr1 + 5);
} else {
Dr2 = (Dr2 + 5);
};
};
_local3.x = Dx1;
_local3.y = Dy1;
_local3.scaleX = Ds1;
_local3.scaleY = Ds1;
_local3.rotation = Dr1;
_local4.x = Dx2;
_local4.y = Dy2;
_local4.scaleX = Ds2;
_local4.scaleY = Ds2;
_local4.rotation = Dr2;
trace(((((((("X1:" + Dx1) + " Y1:") + Dy1) + "\nscl1:") + Ds1) + "\nrot1:") + Dr1));
trace(((((((("X2:" + Dx2) + " Y2:") + Dy2) + "\nscl2:") + Ds2) + "\nrot2:") + Dr2));
}
public function debug():void{
rootMC.debugText.text = ((((((("keyFlgL:" + keyFlgL) + "\nkeyFlgR:") + keyFlgR) + "\nkeyFlgU:") + keyFlgU) + "\nkeyFlgD:") + keyFlgD);
}
}
}//package game.Eroka
Section 45
//ContextMenuSet (game.ContextMenuSet)
package game {
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){
myContextMenu = new ContextMenu();
removeDefaultItems();
addCustomMenuItems();
myContextMenu.addEventListener(ContextMenuEvent.MENU_SELECT, menuSelectHandler);
rootMC = _arg1;
rootMC.contextMenu = myContextMenu;
}
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{
}
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;
}
}
}//package game
Section 46
//FPSpro (game.FPSpro)
package game {
import flash.text.*;
import flash.utils.*;
public class FPSpro {
private var textF:TextField;
private var oldTimer:int;
private var count:int;
public function FPSpro(_arg1:TextField){
count = 0;
oldTimer = 0;
textF = _arg1;
}
public function counting():void{
count = (count + 1);
if ((getTimer() - oldTimer) >= 1000){
textF.text = (count + "fps");
oldTimer = getTimer();
count = 0;
};
}
}
}//package game
Section 47
//LoaderPro (game.LoaderPro)
package game {
import flash.display.*;
import flash.events.*;
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);
}
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("ロード完了");
rootMC.removeEventListener(Event.ENTER_FRAME, enterFrameFunc);
rootMC.play();
};
}
}
}//package game
Section 48
//Mosaic (game.Mosaic)
package game {
import flash.display.*;
import flash.geom.*;
public class Mosaic extends Sprite {
private const M_WIDTH:int = 8;
private const M_HEIGHT:int = 8;
private const M_WIDTH_HALF:int = 4;
private const M_HEIGH_HALF:int = 4;
private var mosaicRect:Object;
private var renderMC:MovieClip;
private var bmpData:BitmapData;
private var sourceMC:MovieClip;
public function Mosaic(_arg1:MovieClip, _arg2:MovieClip){
mosaicRect = {x:-30, y:-40, w:60, h:80};
super();
renderMC = _arg1;
sourceMC = _arg2;
bmpData = new BitmapData(mosaicRect.w, mosaicRect.h, true);
}
public function mosaicClear():void{
renderMC.graphics.clear();
}
public function mosaicObject():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) + sourceMC.x) - renderMC.x);
_local3 = ((-(mosaicRect.y) + sourceMC.y) - 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 mosaicPro():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 game
Section 49
//UserInput (game.UserInput)
package game {
import flash.display.*;
import flash.events.*;
public class UserInput {
protected var keyNo:int;// = 0
protected var keyFlgD:Boolean;// = false
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 keyCo: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){
keyNo = 0;
keyCo = 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 keyDownPro(_arg1:KeyboardEvent):void{
keyNo = _arg1.charCode;
if (keyNo == 97){
stageMC.quality = StageQuality.LOW;
} else {
if (keyNo == 115){
stageMC.quality = StageQuality.MEDIUM;
} else {
if (keyNo == 100){
stageMC.quality = StageQuality.HIGH;
};
};
};
keyCo = _arg1.keyCode;
if (keyCo == 37){
keyFlgL = true;
};
if (keyCo == 38){
keyFlgU = true;
};
if (keyCo == 39){
keyFlgR = true;
};
if (keyCo == 40){
keyFlgD = true;
};
directionPro();
if (keyCo == 32){
keyFlgSp = true;
};
}
protected 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);
}
public function get getKeyNo():int{
return (keyNo);
}
protected function mouseMV(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
protected function mouseBTNoff(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
protected function mouseBTNon(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
public function get MBflg():Boolean{
return (mouseFlg);
}
public function get getKeySp():Boolean{
return (keyFlgSp);
}
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 function get getKeyCo():int{
return (keyCo);
}
protected function keyUpPro(_arg1:KeyboardEvent):void{
var _local2:*;
keyNo = 0;
keyCo = 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;
}
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 game
Section 50
//effect01 (effect01)
package {
import flash.media.*;
public dynamic class effect01 extends Sound {
}
}//package
Section 51
//effect13 (effect13)
package {
import flash.media.*;
public dynamic class effect13 extends Sound {
}
}//package
Section 52
//effect14 (effect14)
package {
import flash.media.*;
public dynamic class effect14 extends Sound {
}
}//package
Section 53
//loader (loader)
package {
import flash.display.*;
public dynamic class loader extends MovieClip {
}
}//package
Section 54
//MySound01 (MySound01)
package {
import flash.media.*;
public dynamic class MySound01 extends Sound {
}
}//package
Section 55
//MySound02 (MySound02)
package {
import flash.media.*;
public dynamic class MySound02 extends Sound {
}
}//package
Section 56
//MySound03 (MySound03)
package {
import flash.media.*;
public dynamic class MySound03 extends Sound {
}
}//package
Section 57
//MySound04 (MySound04)
package {
import flash.media.*;
public dynamic class MySound04 extends Sound {
}
}//package
Section 58
//MySound05 (MySound05)
package {
import flash.media.*;
public dynamic class MySound05 extends Sound {
}
}//package
Section 59
//voice01 (voice01)
package {
import flash.media.*;
public dynamic class voice01 extends Sound {
}
}//package
Section 60
//voice02 (voice02)
package {
import flash.media.*;
public dynamic class voice02 extends Sound {
}
}//package
Section 61
//voice03 (voice03)
package {
import flash.media.*;
public dynamic class voice03 extends Sound {
}
}//package
Section 62
//voice04 (voice04)
package {
import flash.media.*;
public dynamic class voice04 extends Sound {
}
}//package
Section 63
//voice05 (voice05)
package {
import flash.media.*;
public dynamic class voice05 extends Sound {
}
}//package
Section 64
//voice06 (voice06)
package {
import flash.media.*;
public dynamic class voice06 extends Sound {
}
}//package
Section 65
//voice07 (voice07)
package {
import flash.media.*;
public dynamic class voice07 extends Sound {
}
}//package
Section 66
//voice08 (voice08)
package {
import flash.media.*;
public dynamic class voice08 extends Sound {
}
}//package
Section 67
//voice09 (voice09)
package {
import flash.media.*;
public dynamic class voice09 extends Sound {
}
}//package
Section 68
//voice10 (voice10)
package {
import flash.media.*;
public dynamic class voice10 extends Sound {
}
}//package