Section 1
//anzelotMC1_11 (Anzelot_fla.anzelotMC1_11)
package Anzelot_fla {
import flash.display.*;
public dynamic class anzelotMC1_11 extends MovieClip {
public var bodyLMC:MovieClip;
public var armLMC:MovieClip;
public var bodyUMC:MovieClip;
public function anzelotMC1_11(){
addFrameScript(12, frame13, 41, frame42);
}
function frame13(){
this.gotoAndStop(1);
}
function frame42(){
this.gotoAndStop(1);
}
}
}//package Anzelot_fla
Section 2
//bodyLMC1_15 (Anzelot_fla.bodyLMC1_15)
package Anzelot_fla {
import flash.display.*;
public dynamic class bodyLMC1_15 extends MovieClip {
public var legLMC:MovieClip;
public var hipBMC:MovieClip;
public var skirtBMC:MovieClip;
public var hipMC:MovieClip;
public var dragLineMC:MovieClip;
public var skirtMC:MovieClip;
public function bodyLMC1_15(){
addFrameScript(12, frame13, 41, frame42);
}
function frame13(){
this.gotoAndStop(1);
}
function frame42(){
this.gotoAndStop(1);
}
}
}//package Anzelot_fla
Section 3
//bodyUMC1_12 (Anzelot_fla.bodyUMC1_12)
package Anzelot_fla {
import flash.display.*;
public dynamic class bodyUMC1_12 extends MovieClip {
public var armLMC:MovieClip;
public var headMC:MovieClip;
public function bodyUMC1_12(){
addFrameScript(12, frame13, 41, frame42);
}
function frame13(){
this.gotoAndStop(1);
}
function frame42(){
this.gotoAndStop(1);
}
}
}//package Anzelot_fla
Section 4
//fukidasiMC_32 (Anzelot_fla.fukidasiMC_32)
package Anzelot_fla {
import flash.display.*;
public dynamic class fukidasiMC_32 extends MovieClip {
public function fukidasiMC_32(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package Anzelot_fla
Section 5
//garterBeltMC_25 (Anzelot_fla.garterBeltMC_25)
package Anzelot_fla {
import flash.display.*;
public dynamic class garterBeltMC_25 extends MovieClip {
public function garterBeltMC_25(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package Anzelot_fla
Section 6
//headMC1_14 (Anzelot_fla.headMC1_14)
package Anzelot_fla {
import flash.display.*;
public dynamic class headMC1_14 extends MovieClip {
public function headMC1_14(){
addFrameScript(58, frame59, 118, frame119, 133, frame134, 154, frame155, 179, frame180, 200, frame201);
}
function frame155(){
this.gotoAndPlay("P2");
}
function frame201(){
this.gotoAndPlay("P1");
}
function frame180(){
this.gotoAndPlay("P2");
}
function frame119(){
this.gotoAndPlay("P2");
}
function frame134(){
this.gotoAndPlay("P1");
}
function frame59(){
this.gotoAndPlay("P1");
}
}
}//package Anzelot_fla
Section 7
//hipBMC_18 (Anzelot_fla.hipBMC_18)
package Anzelot_fla {
import flash.display.*;
public dynamic class hipBMC_18 extends MovieClip {
public var pantsBMC:MovieClip;
public var stockingMC:MovieClip;
}
}//package Anzelot_fla
Section 8
//hipMC_24 (Anzelot_fla.hipMC_24)
package Anzelot_fla {
import flash.display.*;
public dynamic class hipMC_24 extends MovieClip {
public var garterBeltMC:MovieClip;
public var pantsMC:MovieClip;
public var stockingMC:MovieClip;
}
}//package Anzelot_fla
Section 9
//legLMC_21 (Anzelot_fla.legLMC_21)
package Anzelot_fla {
import flash.display.*;
public dynamic class legLMC_21 extends MovieClip {
public var pantsMC:MovieClip;
public var stockingMC:MovieClip;
}
}//package Anzelot_fla
Section 10
//loadingMC_2 (Anzelot_fla.loadingMC_2)
package Anzelot_fla {
import flash.display.*;
public dynamic class loadingMC_2 extends MovieClip {
public var barMC:loader;
}
}//package Anzelot_fla
Section 11
//MainTimeline (Anzelot_fla.MainTimeline)
package Anzelot_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import game.Anzelot.*;
import game.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var fukidasiMC:MovieClip;
public var an:AnzelotMain;
public var ld:LoaderPro;
public var charMC:MovieClip;
public var con:ContextMenuSet;
public var nasiMC:MovieClip;
public var stockingBTN:SimpleButton;
public var ver:String;
public var fpsText:TextField;
public var backMC:MovieClip;
public var verTXT:TextField;
public var loadingMC:MovieClip;
public var timerMC:MovieClip;
public function MainTimeline(){
addFrameScript(1, frame2, 2, frame3, 19, frame20, 20, frame21, 21, frame22, 27, frame28, 29, frame30, 37, frame38, 39, frame40);
}
public function restartPro(){
trace(((("前 has? " + stage.hasEventListener(Event.ENTER_FRAME)) + " will? ") + stage.willTrigger(Event.ENTER_FRAME)));
an.removeListenerPro();
stage.removeEventListener(Event.ENTER_FRAME, an.mainPro);
trace(((("後 has? " + stage.hasEventListener(Event.ENTER_FRAME)) + " will? ") + stage.willTrigger(Event.ENTER_FRAME)));
an = null;
this.gotoAndPlay(7);
}
function frame3(){
this.stop();
ld = new LoaderPro(this, loadingMC.barMC);
}
function frame20(){
ld = null;
}
function frame22(){
}
function frame2(){
con = new ContextMenuSet(this);
}
function frame30(){
this.stop();
this.verTXT.text = ver;
}
function frame28(){
con = null;
an = new AnzelotMain(this, stage);
}
function frame38(){
this.charMC.bodyLMC.dragLineMC.visible = false;
this.charMC.armLMC.visible = false;
this.stockingBTN.visible = false;
}
function frame40(){
this.stop();
}
function frame21(){
ver = "ver.1.1";
}
}
}//package Anzelot_fla
Section 12
//nasiMC_6 (Anzelot_fla.nasiMC_6)
package Anzelot_fla {
import flash.display.*;
public dynamic class nasiMC_6 extends MovieClip {
public function nasiMC_6(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
}
function frame1(){
this.stop();
}
}
}//package Anzelot_fla
Section 13
//pantsBMC_19 (Anzelot_fla.pantsBMC_19)
package Anzelot_fla {
import flash.display.*;
public dynamic class pantsBMC_19 extends MovieClip {
public function pantsBMC_19(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package Anzelot_fla
Section 14
//pantsMC1_26 (Anzelot_fla.pantsMC1_26)
package Anzelot_fla {
import flash.display.*;
public dynamic class pantsMC1_26 extends MovieClip {
public function pantsMC1_26(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package Anzelot_fla
Section 15
//pantsMC2_22 (Anzelot_fla.pantsMC2_22)
package Anzelot_fla {
import flash.display.*;
public dynamic class pantsMC2_22 extends MovieClip {
public function pantsMC2_22(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package Anzelot_fla
Section 16
//skirtBMC_16 (Anzelot_fla.skirtBMC_16)
package Anzelot_fla {
import flash.display.*;
public dynamic class skirtBMC_16 extends MovieClip {
public var hitAreaMC:MovieClip;
public function skirtBMC_16(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package Anzelot_fla
Section 17
//skirtMC_28 (Anzelot_fla.skirtMC_28)
package Anzelot_fla {
import flash.display.*;
public dynamic class skirtMC_28 extends MovieClip {
public function skirtMC_28(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package Anzelot_fla
Section 18
//soundMC1_5 (Anzelot_fla.soundMC1_5)
package Anzelot_fla {
import flash.display.*;
public dynamic class soundMC1_5 extends MovieClip {
public function soundMC1_5(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package Anzelot_fla
Section 19
//stockingMC1_27 (Anzelot_fla.stockingMC1_27)
package Anzelot_fla {
import flash.display.*;
public dynamic class stockingMC1_27 extends MovieClip {
public function stockingMC1_27(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package Anzelot_fla
Section 20
//stockingMC2_23 (Anzelot_fla.stockingMC2_23)
package Anzelot_fla {
import flash.display.*;
public dynamic class stockingMC2_23 extends MovieClip {
public function stockingMC2_23(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package Anzelot_fla
Section 21
//stockingMC3_20 (Anzelot_fla.stockingMC3_20)
package Anzelot_fla {
import flash.display.*;
public dynamic class stockingMC3_20 extends MovieClip {
public function stockingMC3_20(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package Anzelot_fla
Section 22
//timerMC_7 (Anzelot_fla.timerMC_7)
package Anzelot_fla {
import flash.display.*;
public dynamic class timerMC_7 extends MovieClip {
public function timerMC_7(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package Anzelot_fla
Section 23
//AnzelotMain (game.Anzelot.AnzelotMain)
package game.Anzelot {
import flash.display.*;
import flash.events.*;
import game.*;
public class AnzelotMain {
private var fps:FPSpro;
private var stageMC:Object;
private var gc:GirlControl;
private var rootMC:MovieClip;
public function AnzelotMain(_arg1:MovieClip, _arg2:Object){
rootMC = _arg1;
stageMC = _arg2;
fps = new FPSpro(rootMC.fpsText);
stageMC.addEventListener(Event.ENTER_FRAME, mainPro);
}
public function removeListenerPro():void{
trace("AnzelotMain::リスナー削除");
gc.removeListenerPro();
gc = null;
}
public function mainPro(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:int;
_local2 = rootMC.currentFrame;
if (_local2 == 9){
trace(_local2);
} else {
if (_local2 == 10){
_local3 = rootMC.backMC.currentFrame;
_local4 = rootMC.backMC.totalFrames;
if (_local3 == _local4){
rootMC.gotoAndPlay(18);
};
} else {
if (_local2 == 19){
gc = new GirlControl(rootMC, stageMC);
} else {
if (_local2 == 20){
gc.girlCheck();
};
};
};
};
fps.counting();
}
}
}//package game.Anzelot
Section 24
//BTN_Anzelot (game.Anzelot.BTN_Anzelot)
package game.Anzelot {
import flash.display.*;
import flash.events.*;
public class BTN_Anzelot {
private var bOnFlg:int;// = 0
private var bName:String;// = ""
private var sFlg:Boolean;// = false
private var btn:Array;
public function BTN_Anzelot(_arg1:MovieClip){
sFlg = false;
bOnFlg = 0;
bName = "";
super();
btn = new Array();
btn[1] = _arg1.stockingBTN;
btn[1].addEventListener(MouseEvent.CLICK, buttonPro1);
}
public function removeListenerPro():void{
trace("Anzelot_Button::リスナー削除");
btn[1].removeEventListener(MouseEvent.CLICK, buttonPro1);
}
public function get sbName():String{
return (bName);
}
public function getButtonVisible(_arg1:int):Boolean{
return (btn[_arg1].visible);
}
public function set bOnOff(_arg1:int):void{
bOnFlg = _arg1;
}
private function setPartsPro(_arg1:MouseEvent):void{
var _local2:String;
_local2 = _arg1.target.name.substr(5, 30);
bName = _local2;
trace(("パーツセット ボタンオン! " + _local2));
}
public function set sbName(_arg1:String):void{
bName = _arg1;
}
public function get bOnOff():int{
return (bOnFlg);
}
private function buttonPro2(_arg1:MouseEvent):void{
bOnFlg = 2;
}
private function buttonPro1(_arg1:MouseEvent):void{
bOnFlg = 1;
}
public function setButtonVisible(_arg1:int, _arg2:Boolean):void{
btn[_arg1].visible = _arg2;
}
public function get startFlg():Boolean{
return (sFlg);
}
}
}//package game.Anzelot
Section 25
//CMS_Anzelot (game.Anzelot.CMS_Anzelot)
package game.Anzelot {
import flash.display.*;
import flash.events.*;
import game.*;
import flash.ui.*;
public class CMS_Anzelot extends ContextMenuSet {
private var cFlg:Boolean;
var item2;
var item9:ContextMenuItem;
var item8;
var item1;
private static var lFlg:Boolean = false;
private static var cCo:int = 0;
public function CMS_Anzelot(_arg1:MovieClip){
super(_arg1);
cCo++;
trace(("コンテキストメニュー設定 cCo:" + cCo));
}
public function set changeFlg(_arg1:Boolean):void{
cFlg = _arg1;
}
protected function itemSelectHandler1(_arg1:ContextMenuEvent):void{
if (lFlg){
item1.caption = "Drag line: ON";
lFlg = false;
} else {
item1.caption = "Drag line: OFF";
lFlg = true;
};
cFlg = true;
}
public function removeListenerPro():void{
trace("CMS_Anzelot ::リスナー削除");
item1.removeEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler1);
item8.removeEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler8);
item9.removeEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler9);
myContextMenu = null;
lFlg = false;
}
protected function itemSelectHandler9(_arg1:ContextMenuEvent):void{
trace(("リスタート!! cCo:" + cCo));
rootMC.restartPro();
}
protected function itemSelectHandler8(_arg1:ContextMenuEvent):void{
trace("------");
}
override protected function addCustomMenuItems():void{
item1 = new ContextMenuItem("Drag line: ON");
item8 = new ContextMenuItem("-----------");
item9 = new ContextMenuItem("Restart");
myContextMenu.customItems.push(item1, item8, item9);
item1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler1);
item8.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler8);
item9.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler9);
}
public function get changeFlg():Boolean{
return (cFlg);
}
public function set lineFlg(_arg1:Boolean):void{
lFlg = _arg1;
}
public function get lineFlg():Boolean{
return (lFlg);
}
}
}//package game.Anzelot
Section 26
//GirlControl (game.Anzelot.GirlControl)
package game.Anzelot {
import flash.display.*;
import game.*;
public class GirlControl {
private var bodyLMC;
private var con:CMS_Anzelot;
private var armLMC;
private var garterBeltMC:MovieClip;
private var hitA:MovieClip;
private var rootMC:MovieClip;
private var ui:UserInput;
private var mekFlg:Boolean;// = false
private var userFlg:Boolean;// = true
private var armLMCe:MovieClip;
private var pantsMC2:MovieClip;
private var bodyUMC;
private var animeFlg:Boolean;// = false
private var stockingMC1;
private var stockingMC2;
private var stockingMC3;
private var btn:BTN_Anzelot;
private var skirtBMC;
private var skirtMC;
private var charMC;
private var pantsMC;
private var headMC;
private var pantsBMC;
private var dLine:MovieClip;
public function GirlControl(_arg1:MovieClip, _arg2:Object){
userFlg = true;
animeFlg = false;
mekFlg = false;
super();
rootMC = _arg1;
con = new CMS_Anzelot(rootMC);
ui = new UserInput(rootMC, _arg2);
btn = new BTN_Anzelot(rootMC);
targetSet();
}
private function fukidasiPro(_arg1:int):void{
var _local2:int;
var _local3:int;
_local2 = (Math.floor((Math.random() * 10)) + 2);
_local3 = (((_arg1 - 1) * 10) + _local2);
rootMC.fukidasiMC.gotoAndStop(_local3);
}
private function targetSet():void{
charMC = rootMC.charMC;
bodyUMC = charMC.bodyUMC;
bodyLMC = charMC.bodyLMC;
hitA = bodyLMC.skirtBMC.hitAreaMC;
dLine = bodyLMC.dragLineMC;
headMC = bodyUMC.headMC;
armLMC = bodyUMC.armLMC;
armLMCe = charMC.armLMC;
skirtMC = bodyLMC.skirtMC;
skirtBMC = bodyLMC.skirtBMC;
stockingMC1 = bodyLMC.hipMC.stockingMC;
stockingMC2 = bodyLMC.hipBMC.stockingMC;
stockingMC3 = bodyLMC.legLMC.stockingMC;
garterBeltMC = bodyLMC.hipMC.garterBeltMC;
pantsMC = bodyLMC.hipMC.pantsMC;
pantsBMC = bodyLMC.hipBMC.pantsBMC;
pantsMC2 = bodyLMC.legLMC.pantsMC;
}
public function removeListenerPro():void{
trace("GirlControl ::リスナー削除");
ui.removeListenerPro();
con.removeListenerPro();
ui = null;
con = null;
}
private function reactionPro(_arg1:int, _arg2:Boolean):void{
var _local3:String;
if (animeFlg){
return;
};
animeFlg = _arg2;
_local3 = ("R" + _arg1);
charMC.gotoAndPlay(_local3);
bodyUMC.gotoAndPlay(_local3);
bodyLMC.gotoAndPlay(_local3);
headMC.gotoAndPlay(_local3);
fukidasiPro(_arg1);
}
public function girlCheck():void{
var _local1:Number;
var _local2:Number;
var _local3:int;
var _local4:int;
var _local5:Boolean;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
_local1 = rootMC.mouseX;
_local2 = rootMC.mouseY;
_local3 = skirtMC.currentFrame;
_local4 = skirtMC.totalFrames;
_local5 = UserInput.MBflgS;
if (!userFlg){
_local5 = false;
};
if (_local5){
if (hitA.hitTestPoint(_local1, _local2, true)){
_local9 = UserInput.mouseDir(_local1, _local2);
if ((((_local9 == 1)) || ((_local9 == 2)))){
if (skirtMC.currentFrame == skirtMC.totalFrames){
mekFlg = true;
rootMC.timerMC.play();
};
skirtMC.nextFrame();
skirtBMC.nextFrame();
};
if (_local3 == 2){
reactionPro(2, true);
};
} else {
if (charMC.hitTestPoint(_local1, _local2, true)){
reactionPro(1, true);
};
};
} else {
if (_local3 != 1){
skirtMC.prevFrame();
skirtBMC.prevFrame();
rootMC.timerMC.gotoAndStop(1);
if (((mekFlg) && ((skirtMC.currentFrame == 1)))){
mekFlg = false;
if (pantsMC.currentFrame == pantsMC.totalFrames){
pantsMC.gotoAndStop(1);
pantsBMC.gotoAndStop(1);
pantsMC2.gotoAndStop(1);
rootMC.stockingBTN.visible = true;
} else {
pantsMC.nextFrame();
pantsBMC.nextFrame();
pantsMC2.nextFrame();
};
if (!userFlg){
userFlg = true;
armLMC.visible = true;
armLMCe.visible = false;
};
};
};
};
if (con.changeFlg){
dLine.visible = con.lineFlg;
con.changeFlg = false;
};
if (btn.bOnOff == 1){
btn.bOnOff = 0;
if (stockingMC1.currentFrame == stockingMC1.totalFrames){
stockingMC1.gotoAndStop(1);
stockingMC2.gotoAndStop(1);
stockingMC3.gotoAndStop(1);
garterBeltMC.gotoAndStop(1);
} else {
stockingMC1.nextFrame();
stockingMC2.nextFrame();
stockingMC3.nextFrame();
garterBeltMC.nextFrame();
};
};
_local6 = charMC.currentFrame;
if (_local6 == 1){
animeFlg = false;
rootMC.fukidasiMC.gotoAndStop(1);
};
_local7 = rootMC.timerMC.currentFrame;
_local8 = rootMC.timerMC.totalFrames;
if (_local7 == _local8){
trace("強制終了!!!");
userFlg = false;
armLMC.visible = false;
armLMCe.visible = true;
reactionPro(3, true);
};
}
public function debug():void{
var _local1:int;
var _local2:String;
_local2 = "animeF:";
rootMC.debugTXT.text = _local2;
}
}
}//package game.Anzelot
Section 27
//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 28
//FPSpro (game.FPSpro)
package game {
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 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 game
Section 29
//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 30
//UserInput (game.UserInput)
package game {
import flash.display.*;
import flash.events.*;
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 getKeyC():int{
return (keyC);
}
public function get getKeyH():int{
return (cursolH);
}
protected function mouseMV(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
protected function mouseBTNon(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
protected function mouseBTNoff(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
public function get getCharC():int{
return (charC);
}
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);
rootMC.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
}
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;
};
}
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;
};
};
};
};
};
}
protected function mouseWheelHandler(_arg1:MouseEvent):void{
wheelVal = _arg1.delta;
}
public function get getKeySp():Boolean{
return (keyFlgSp);
}
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;
}
public function removeListenerPro():void{
trace("UserInput : removeListenerPro//リスナー削除作業実行");
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);
}
public function get MWval():int{
var _local1:int;
_local1 = wheelVal;
wheelVal = 0;
return (_local1);
}
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 31
//loader (loader)
package {
import flash.display.*;
public dynamic class loader extends MovieClip {
public var bar:MovieClip;
public var loadBar:MovieClip;
}
}//package