Section 1
//Button_Loli (game.Button_Loli)
package game {
import flash.display.*;
import flash.events.*;
public class Button_Loli {
private var bOnFlg:int;// = 0
private var container:Sprite;
private var Rbtn:SimpleButton;
private var sNo:Number;// = 0
private var snd:Sound_Loli;
private var btn:Array;
private var titleMC:MovieClip;
private var btnMC:Array;
private var sFlg:Boolean;// = false
private var rootMC:MovieClip;
protected static var mouseFlg:Boolean;
public function Button_Loli(_arg1:MovieClip, _arg2:Array){
var _local3:*;
var _local4:int;
var _local5:*;
sFlg = false;
bOnFlg = 0;
sNo = 0;
super();
rootMC = _arg1;
titleMC = rootMC.titleMC;
btnMC = _arg2;
snd = new Sound_Loli(_arg1);
container = new Sprite();
trace(("キャラ数 length: " + (btnMC.length - 1)));
_local3 = 1;
while (_local3 <= (btnMC.length - 1)) {
container.addChild(btnMC[_local3]);
_local3++;
};
titleMC.addChild(container);
rootMC.addEventListener(MouseEvent.MOUSE_MOVE, mouseMV);
rootMC.addEventListener(MouseEvent.MOUSE_DOWN, mouseBTNon);
rootMC.addEventListener(MouseEvent.MOUSE_UP, mouseBTNoff);
_local4 = _arg1.currentFrame;
if (_local4 == 9){
_local5 = 1;
while (_local5 <= (btnMC.length - 1)) {
btnMC[_local5].addEventListener(MouseEvent.MOUSE_DOWN, buttonOn);
btnMC[_local5].addEventListener(MouseEvent.MOUSE_UP, buttonOff);
_local5++;
};
} else {
if ((((_local4 == 19)) || ((_local4 == 20)))){
Rbtn = _arg1.mainMC.returnBTN;
Rbtn.addEventListener(MouseEvent.CLICK, gameBTNpro);
Rbtn.visible = false;
};
};
}
public function RbtnOn():void{
Rbtn.visible = true;
}
public function get selectNo():Number{
return (sNo);
}
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 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 get startFlg():Boolean{
return (sFlg);
}
public function gameBTNpro(_arg1:MouseEvent):void{
bOnFlg = 10;
}
private function buttonOff(_arg1:MouseEvent):void{
_arg1.target.alpha = 1;
_arg1.target.stopDrag();
}
private function buttonOn(_arg1:MouseEvent):void{
var _local2:*;
var _local3:Sprite;
var _local4:uint;
if (_arg1.target.scaleX == 1){
snd.playEffectS(1, 1);
};
_local2 = 1;
while (_local2 <= (btnMC.length - 1)) {
btnMC[_local2].scaleX = 1;
btnMC[_local2].scaleY = 1;
btnMC[_local2].gotoAndStop(1);
_local2++;
};
_local3 = Sprite(_arg1.target);
_local4 = (container.numChildren - 1);
container.setChildIndex(_local3, _local4);
_arg1.target.alpha = 0.3;
_arg1.target.scaleX = 1.2;
_arg1.target.scaleY = 1.2;
_arg1.target.startDrag(false);
_arg1.target.gotoAndStop(2);
sNo = _arg1.target.no;
}
public function set bOnOff(_arg1:int):void{
bOnFlg = _arg1;
}
public function fButtonOn(_arg1:Boolean):void{
}
public function removeListenerPro(_arg1:int):void{
var _local2:*;
if ((((_arg1 == 0)) || ((_arg1 == 1)))){
if (btnMC != null){
trace("スタート画面MCボタン リスナー削除処理");
_local2 = 1;
while (_local2 <= (btnMC.length - 1)) {
btnMC[_local2].removeEventListener(MouseEvent.MOUSE_DOWN, buttonOn);
btnMC[_local2].removeEventListener(MouseEvent.MOUSE_UP, buttonOff);
_local2++;
};
btnMC = null;
};
};
if ((((_arg1 == 0)) || ((_arg1 == 2)))){
if (Rbtn != null){
Rbtn.removeEventListener(MouseEvent.CLICK, gameBTNpro);
};
Rbtn = null;
};
}
private function eroBTNpro0(_arg1:MouseEvent):void{
bOnFlg = 10;
}
private function eroBTNpro1(_arg1:MouseEvent):void{
bOnFlg = 11;
}
}
}//package game
Section 2
//CMS_Loli (game.CMS_Loli)
package game {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class CMS_Loli extends Sprite {
protected var myContextMenu:ContextMenu;
private var cNo:Number;// = 0
protected var rootMC:MovieClip;
public function CMS_Loli(_arg1:MovieClip){
cNo = 0;
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 itemSelectHandler3(_arg1:ContextMenuEvent):void{
cNo = 3;
trace("return合図 /ContextMenuEvent");
}
protected function itemSelectHandler4(_arg1:ContextMenuEvent):void{
cNo = 4;
trace("watch合図 /ContextMenuEvent");
}
protected function addCustomMenuItems():void{
var _local1:ContextMenuItem;
var _local2:ContextMenuItem;
var _local3:ContextMenuItem;
var _local4:ContextMenuItem;
_local1 = new ContextMenuItem("Restart");
_local2 = new ContextMenuItem("--------");
_local3 = new ContextMenuItem("Return");
_local4 = new ContextMenuItem("Watch");
myContextMenu.customItems.push(_local4, _local3, _local2, _local1);
_local1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler1);
_local3.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler3);
_local4.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler4);
}
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;
}
public function set conNo(_arg1:Number):void{
cNo = _arg1;
}
}
}//package game
Section 3
//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 4
//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 5
//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 6
//LoliMain (game.LoliMain)
package game {
import flash.display.*;
import flash.events.*;
public class LoliMain {
private var swfL:SWFloader;
private var fps:FPSpro;
private var dragFlg:Boolean;// = false
private var stageMC:Object;
private var loadComp:Array;
private var snd:Sound_Loli;
private var ui:UserInput;
private var PbtnMC:Array;
private var mx;
private var sNo:Number;
private var loadFlg:Boolean;// = false
private var tgL:Object;
private var my:int;
private var mFlg:Boolean;
private var cms:CMS_Loli;
private var btn:Button_Loli;
private var tgChar:MovieClip;
private var reactionFlg:Boolean;// = false
private var btnMC:Array;
private var rootMC:MovieClip;
public function LoliMain(_arg1:MovieClip, _arg2:Object, _arg3:Array){
loadFlg = false;
reactionFlg = false;
dragFlg = false;
super();
rootMC = _arg1;
stageMC = _arg2;
fps = new FPSpro(rootMC.fpsText);
cms = new CMS_Loli(rootMC);
ui = new UserInput(_arg1, _arg2);
snd = new Sound_Loli(_arg1);
stageMC.addEventListener(Event.ENTER_FRAME, mainPro);
btnMC = _arg3;
PbtnMC = new Array();
PbtnMC[1] = rootMC.panelMC.btnMC1;
PbtnMC[2] = rootMC.panelMC.btnMC2;
PbtnMC[3] = rootMC.panelMC.btnMCL;
tgL = new Array();
loadComp = new Array();
rootMC.panelMC.visible = false;
}
private function allVisibleOff():void{
var _local1:*;
var _local2:String;
rootMC.titleMC.loaderMC.gotoAndStop(1);
_local1 = 1;
while (_local1 <= (rootMC.mc.length - 1)) {
_local2 = ("karaMC" + _local1);
rootMC.dataMC[_local2].visible = false;
_local1++;
};
}
private function charControl(_arg1:MovieClip, _arg2:int):void{
var _local3:int;
var _local4:MovieClip;
var _local5:MovieClip;
var _local6:MovieClip;
var _local7:MovieClip;
var _local8:int;
_local3 = 1;
if ((((((_arg2 == 1)) || ((_arg2 == 2)))) || ((_arg2 == 3)))){
_local4 = _arg1.mainMC.charMC;
_local5 = _local4.bodyUMC;
_local6 = _local4.bodyLMC;
_local7 = _local5.headMC;
};
if (_arg2 == 2){
if (mFlg){
if (_local5.sailorFMC.hitTestPoint(mx, my, true)){
_local5.sailorFMC.nextFrame();
_local5.sailorBMC.nextFrame();
} else {
if (_local5.sailorBMC.hitTestPoint(mx, my, true)){
_local5.sailorFMC.prevFrame();
_local5.sailorBMC.prevFrame();
};
};
};
};
if ((((_arg2 == 2)) || ((_arg2 == 3)))){
if (mFlg){
if (_local6.skirtFMC.hitTestPoint(mx, my, true)){
_local6.skirtFMC.nextFrame();
_local6.skirtBMC.nextFrame();
} else {
if (_local6.skirtBMC.hitTestPoint(mx, my, true)){
_local6.skirtFMC.prevFrame();
_local6.skirtBMC.prevFrame();
};
};
};
};
if (reactionFlg){
return;
};
if ((((((_arg2 == 1)) || ((_arg2 == 2)))) || ((_arg2 == 3)))){
if (mFlg){
if (_local6.hitAreaMC.hitTestPoint(mx, my, true)){
_local3 = 3;
reactionFlg = true;
} else {
if (_local5.hitAreaMC.hitTestPoint(mx, my, true)){
_local3 = 2;
reactionFlg = true;
} else {
if (_local4.hitTestPoint(mx, my, true)){
_local3 = 1;
reactionFlg = true;
};
};
};
};
};
if (reactionFlg){
if ((((((_arg2 == 1)) || ((_arg2 == 2)))) || ((_arg2 == 3)))){
rootMC.timeriMC.gotoAndPlay(2);
_local4.gotoAndPlay(("R" + _local3));
_local5.gotoAndPlay(("R" + _local3));
_local6.gotoAndPlay(("R" + _local3));
_local7.gotoAndPlay(("R" + _local3));
};
_local8 = 0;
if (_local3 == 1){
_local8 = (Math.floor((Math.random() * 4)) + 1);
} else {
if (_local3 == 2){
_local8 = (Math.floor((Math.random() * 3)) + 5);
} else {
if (_local3 == 3){
_local8 = (Math.floor((Math.random() * 3)) + 8);
};
};
};
tgL[sNo].mainMC.fukidasiMC.visible = true;
tgL[sNo].mainMC.fukidasiMC.gotoAndStop(_local8);
};
}
private function charDrag(_arg1:MovieClip):void{
if (mFlg){
if (_arg1.hitTestPoint(mx, my, true)){
_arg1.startDrag(false);
};
} else {
_arg1.stopDrag();
};
}
public function mainPro(_arg1:Event):void{
var _local2:int;
var _local3:Number;
var _local4:String;
var _local5:String;
_local2 = rootMC.currentFrame;
if (_local2 == 9){
allVisibleOff();
btn = new Button_Loli(rootMC, btnMC);
rootMC.gotoAndStop(10);
} else {
if (_local2 == 10){
if (((!((cms.conNo == 0))) && (!(loadFlg)))){
_local3 = cms.conNo;
cms.conNo = 0;
if (_local3 == 1){
rootMC.restartPro();
snd.playEffectS(1, 1);
} else {
if (_local3 == 4){
if (btn.selectNo != 0){
sNo = btn.selectNo;
trace(("�Ϗ܍��} sNo= " + sNo));
_local4 = (("loliData" + sNo) + ".swf");
_local5 = ("karaMC" + sNo);
tgChar = rootMC.dataMC[_local5];
loadFlg = true;
if (loadComp[sNo] == true){
trace("���ł�۰�ލς�*******");
screenChange();
} else {
swfL = new SWFloader(rootMC, rootMC.titleMC.loaderMC, _local4, tgChar);
};
snd.playEffectS(1, 1);
};
};
};
};
if (loadFlg){
if (swfL.compFlg){
tgL[sNo] = swfL.loadObject();
trace(("!!!!!!!!�ޯ0�@۰�ފ������}�� tgL:" + tgL));
loadComp[sNo] = true;
screenChange();
};
};
} else {
if (_local2 == 18){
if (tgL[sNo].currentFrame == 5){
if (tgL[sNo].mainMC.currentFrame == 1){
tgL[sNo].mainMC.play();
};
if (tgL[sNo].mainMC.currentFrame >= 3){
rootMC.gotoAndStop(20);
};
};
} else {
if (_local2 == 20){
mFlg = UserInput.MBflgS;
mx = rootMC.mouseX;
my = rootMC.mouseY;
buttonCheck();
if (dragFlg){
charDrag(tgL[sNo].mainMC.charMC);
} else {
charControl(tgL[sNo], sNo);
};
if (rootMC.timeriMC.currentFrame == 1){
reactionFlg = false;
tgL[sNo].mainMC.fukidasiMC.visible = false;
};
if (cms.conNo != 0){
_local3 = cms.conNo;
cms.conNo = 0;
if (_local3 == 1){
rootMC.restartPro();
snd.playEffectS(1, 1);
} else {
if (_local3 == 3){
tgL[sNo].gotoAndStop(1);
tgL[sNo].mainMC.gotoAndStop(1);
allVisibleOff();
rootMC.titleMC.visible = true;
rootMC.panelMC.visible = false;
snd.playEffectS(1, 1);
rootMC.gotoAndStop(10);
};
};
};
};
};
};
};
fps.counting();
}
public function removeListenerPro():void{
}
private function screenChange():void{
rootMC.gotoAndStop(18);
rootMC.titleMC.visible = false;
rootMC.panelMC.visible = true;
tgChar.visible = true;
tgL[sNo].play();
loadFlg = false;
}
public function debugPro():void{
}
private function buttonCheck():void{
var _local1:MovieClip;
var _local2:int;
var _local3:*;
if (mFlg){
_local1 = tgL[sNo].mainMC.charMC;
if (PbtnMC[1].hitTestPoint(mx, my, true)){
PbtnMC[1].gotoAndStop(2);
_local1.rotation = (_local1.rotation + 10);
} else {
if (PbtnMC[2].hitTestPoint(mx, my, true)){
PbtnMC[2].gotoAndStop(2);
_local1.rotation = (_local1.rotation - 10);
} else {
if (PbtnMC[3].hitTestPoint(mx, my, true)){
_local2 = PbtnMC[3].currentFrame;
if ((((_local2 == 1)) && (snd.keyWait(1)))){
PbtnMC[3].gotoAndStop(2);
dragFlg = true;
_local1.blendMode = BlendMode.ADD;
} else {
if ((((_local2 == 2)) && (snd.keyWait(1)))){
PbtnMC[3].gotoAndStop(1);
dragFlg = false;
_local1.blendMode = BlendMode.NORMAL;
};
};
};
};
};
} else {
_local3 = 1;
while (_local3 <= 2) {
PbtnMC[_local3].gotoAndStop(1);
_local3++;
};
};
}
}
}//package game
Section 7
//Sound_Loli (game.Sound_Loli)
package game {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class Sound_Loli {
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_Loli(_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 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 game
Section 8
//SWFloader (game.SWFloader)
package game {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class SWFloader {
private var comp:Boolean;// = false
private var loader:Loader;
private var loadTagetMC:MovieClip;
private var loadBarMC:MovieClip;
private var info:LoaderInfo;
private var url:String;
private var rootMC:MovieClip;
private var dispa:IEventDispatcher;
public function SWFloader(_arg1:MovieClip, _arg2:MovieClip, _arg3:String, _arg4:MovieClip){
var _local5:URLRequest;
comp = false;
super();
rootMC = _arg1;
loadBarMC = _arg2;
url = _arg3;
loadTagetMC = _arg4;
loader = new Loader();
configureListeners(loader.contentLoaderInfo);
_local5 = new URLRequest(url);
loader.load(_local5);
_arg4.addChild(loader);
}
public function loadObject():Object{
var _local1:Object;
_local1 = loader.content;
return (_local1);
}
private function httpStatusHandler(_arg1:HTTPStatusEvent):void{
trace("HTTPStatusEvent.HTTP_STATUS ローカルにロードされない場合、ネットワーク要求を行う、Flash Player が検出");
}
private function completeHandler(_arg1:Event):void{
trace("Event.COMPLETE ロードが完了したときに実行");
comp = true;
removeListenerPro();
}
public function get compFlg():Boolean{
return (comp);
}
private function enterFrameFunc(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:int;
info = loader.contentLoaderInfo;
_local2 = info.bytesLoaded;
_local3 = info.bytesTotal;
_local4 = Math.floor(((_local2 / _local3) * 100));
trace((((((_local2 + " / ") + _local3) + " : ") + _local4) + "%"));
loadBarMC.gotoAndStop(_local4);
if (_local2 == _local3){
trace("ロード完了: enterFrameFunc");
};
}
private function initHandler(_arg1:Event):void{
trace("Event.INIT ロードが完了したときに実行");
}
private function progressHandler(_arg1:ProgressEvent):void{
var _local2:int;
_local2 = Math.floor(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100));
loadBarMC.gotoAndStop(_local2);
trace(((("progressHandler: bytesLoaded=" + _arg1.bytesLoaded) + " bytesTotal=") + _arg1.bytesTotal));
}
public function debugPro():void{
var _local1:String;
var _local2:String;
_local1 = "\nmouseFlg:";
_local2 = (_local1 + "\n");
rootMC.dText.text = _local2;
}
private function clickHandler(_arg1:MouseEvent):void{
var _local2:Loader;
_local2 = Loader(_arg1.target);
_local2.unload();
}
private function openHandler(_arg1:Event):void{
trace("Event.OPEN ファイルが最初に開かれたときに実行");
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
trace(("ioErrorHandler: " + _arg1));
trace("IOErrorEvent.IO_ERROR アクセスできない場合に実行");
}
private function unLoadHandler(_arg1:Event):void{
trace("Event.UNLOAD unload() メソッドを使用 アンロードされた場合に実行");
}
public function removeListenerPro():void{
trace("SWFloader リスナー削除処理");
rootMC.removeEventListener(Event.ENTER_FRAME, enterFrameFunc);
dispa.removeEventListener(Event.COMPLETE, completeHandler);
dispa.removeEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
dispa.removeEventListener(Event.INIT, initHandler);
dispa.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
dispa.removeEventListener(Event.OPEN, openHandler);
dispa.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
dispa.removeEventListener(Event.UNLOAD, unLoadHandler);
}
private function configureListeners(_arg1:IEventDispatcher):void{
dispa = _arg1;
dispa.addEventListener(Event.COMPLETE, completeHandler);
dispa.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
dispa.addEventListener(Event.INIT, initHandler);
dispa.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
dispa.addEventListener(Event.OPEN, openHandler);
dispa.addEventListener(ProgressEvent.PROGRESS, progressHandler);
dispa.addEventListener(Event.UNLOAD, unLoadHandler);
}
}
}//package game
Section 9
//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 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 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();
}
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);
}
public function get getKeyNo():int{
return (keyNo);
}
protected function mouseMV(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
public function get getKeyH():int{
return (cursolH);
}
protected function mouseBTNoff(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
public function get MWval():int{
var _local1:int;
_local1 = wheelVal;
wheelVal = 0;
return (_local1);
}
protected function mouseBTNon(_arg1:MouseEvent):void{
mouseFlg = _arg1.buttonDown;
}
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 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;
};
};
};
};
};
}
protected function mouseWheelHandler(_arg1:MouseEvent):void{
wheelVal = _arg1.delta;
}
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 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 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 10
//dataMC_8 (loliAlbum_fla.dataMC_8)
package loliAlbum_fla {
import flash.display.*;
public dynamic class dataMC_8 extends MovieClip {
public var karaMC1:MovieClip;
public var karaMC3:MovieClip;
public var karaMC2:MovieClip;
}
}//package loliAlbum_fla
Section 11
//LbtnMC_18 (loliAlbum_fla.LbtnMC_18)
package loliAlbum_fla {
import flash.display.*;
public dynamic class LbtnMC_18 extends MovieClip {
public function LbtnMC_18(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package loliAlbum_fla
Section 12
//loadingMC_2 (loliAlbum_fla.loadingMC_2)
package loliAlbum_fla {
import flash.display.*;
public dynamic class loadingMC_2 extends MovieClip {
public var barMC:loader;
}
}//package loliAlbum_fla
Section 13
//MainTimeline (loliAlbum_fla.MainTimeline)
package loliAlbum_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import game.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var timeriMC:MovieClip;
public var ld:LoaderPro;
public var lo:LoliMain;
public var con:ContextMenuSet;
public var panelMC:MovieClip;
public var mc:Array;
public var nasiMC:MovieClip;
public var fpsText:TextField;
public var ver:String;
public var dataMC:MovieClip;
public var loadingMC:MovieClip;
public var titleMC:MovieClip;
public function MainTimeline(){
addFrameScript(1, frame2, 2, frame3, 20, frame21, 21, frame22, 27, frame28, 29, frame30, 39, frame40);
}
public function restartPro(){
trace("リスタート処理 root");
trace(((("前 has? " + stage.hasEventListener(Event.ENTER_FRAME)) + " will? ") + stage.willTrigger(Event.ENTER_FRAME)));
stage.removeEventListener(Event.ENTER_FRAME, lo.mainPro);
trace(((("後 has? " + stage.hasEventListener(Event.ENTER_FRAME)) + " will? ") + stage.willTrigger(Event.ENTER_FRAME)));
lo = null;
this.gotoAndPlay(7);
}
function frame3(){
this.stop();
ld = new LoaderPro(this, loadingMC.barMC);
}
function frame22(){
}
function frame21(){
ver = "ver.1.03";
}
function frame30(){
this.stop();
titleMC.verTXT.text = ver;
}
function frame28(){
con = null;
mc = new Array();
mc[1] = titleMC.photoMC1;
mc[2] = titleMC.photoMC2;
mc[3] = titleMC.photoMC3;
lo = new LoliMain(this, stage, mc);
}
function frame40(){
this.stop();
}
function frame2(){
con = new ContextMenuSet(this);
}
}
}//package loliAlbum_fla
Section 14
//nasiMC_6 (loliAlbum_fla.nasiMC_6)
package loliAlbum_fla {
import flash.display.*;
public dynamic class nasiMC_6 extends MovieClip {
public function nasiMC_6(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
this.stop();
}
function frame9(){
}
}
}//package loliAlbum_fla
Section 15
//panelMC_17 (loliAlbum_fla.panelMC_17)
package loliAlbum_fla {
import flash.display.*;
public dynamic class panelMC_17 extends MovieClip {
public var btnMC1:MovieClip;
public var btnMC2:MovieClip;
public var btnMCL:MovieClip;
}
}//package loliAlbum_fla
Section 16
//photoMC1_13 (loliAlbum_fla.photoMC1_13)
package loliAlbum_fla {
import flash.display.*;
public dynamic class photoMC1_13 extends MovieClip {
public var st:String;
public var no:Number;
public function photoMC1_13(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
st = this.name.substring(7);
no = Number(st);
}
}
}//package loliAlbum_fla
Section 17
//photoMC2_14 (loliAlbum_fla.photoMC2_14)
package loliAlbum_fla {
import flash.display.*;
public dynamic class photoMC2_14 extends MovieClip {
public var st:String;
public var no:Number;
public function photoMC2_14(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
st = this.name.substring(7);
no = Number(st);
}
}
}//package loliAlbum_fla
Section 18
//photoMC3_15 (loliAlbum_fla.photoMC3_15)
package loliAlbum_fla {
import flash.display.*;
public dynamic class photoMC3_15 extends MovieClip {
public var st:String;
public var no:Number;
public function photoMC3_15(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
st = this.name.substring(7);
no = Number(st);
}
}
}//package loliAlbum_fla
Section 19
//R_19 (loliAlbum_fla.R_19)
package loliAlbum_fla {
import flash.display.*;
public dynamic class R_19 extends MovieClip {
public function R_19(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package loliAlbum_fla
Section 20
//R_20 (loliAlbum_fla.R_20)
package loliAlbum_fla {
import flash.display.*;
public dynamic class R_20 extends MovieClip {
public function R_20(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package loliAlbum_fla
Section 21
//soundMC1_5 (loliAlbum_fla.soundMC1_5)
package loliAlbum_fla {
import flash.display.*;
public dynamic class soundMC1_5 extends MovieClip {
public function soundMC1_5(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package loliAlbum_fla
Section 22
//timeriMC_7 (loliAlbum_fla.timeriMC_7)
package loliAlbum_fla {
import flash.display.*;
public dynamic class timeriMC_7 extends MovieClip {
public function timeriMC_7(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
}
function frame1(){
this.stop();
}
}
}//package loliAlbum_fla
Section 23
//title_16 (loliAlbum_fla.title_16)
package loliAlbum_fla {
import flash.display.*;
public dynamic class title_16 extends MovieClip {
public function title_16(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package loliAlbum_fla
Section 24
//titleMC_12 (loliAlbum_fla.titleMC_12)
package loliAlbum_fla {
import flash.display.*;
import flash.text.*;
public dynamic class titleMC_12 extends MovieClip {
public var loaderMC:MovieClip;
public var photoMC3:MovieClip;
public var verTXT:TextField;
public var photoMC1:MovieClip;
public var photoMC2:MovieClip;
}
}//package loliAlbum_fla
Section 25
//effect01 (effect01)
package {
import flash.media.*;
public dynamic class effect01 extends Sound {
}
}//package
Section 26
//loader (loader)
package {
import flash.display.*;
public dynamic class loader extends MovieClip {
public var bar:MovieClip;
public var loadBar:MovieClip;
}
}//package