[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Section 1 (3.64 KiB) ●
//BTN_Touch (game.TouchGame.BTN_Touch)
package game.TouchGame {
import flash.display.*;
import flash.events.*;
public class BTN_Touch {
private var rFlg:Boolean;// = false
private var nFlg:Boolean;// = false
private var page:int;// = 0
private var btn:Array;
private var snd:Sound_Touch;
private var sFlg:int;// = 0
private var rootMC:MovieClip;
public function BTN_Touch(_arg1:MovieClip){
var _local2:int;
sFlg = 0;
rFlg = false;
nFlg = false;
page = 0;
super();
snd = new Sound_Touch(_arg1);
rootMC = _arg1;
_local2 = rootMC.currentFrame;
btn = new Array();
if (_local2 == 10){
btn[1] = rootMC.titleMC.button1;
btn[2] = rootMC.titleMC.button2;
btn[3] = rootMC.titleMC.button3;
btn[1].addEventListener(MouseEvent.CLICK, btnPro_title);
btn[2].addEventListener(MouseEvent.CLICK, btnPro_title);
btn[3].addEventListener(MouseEvent.CLICK, btnPro_title);
} else {
if (_local2 == 20){
btn[1] = rootMC.frontMC.returnBTN;
btn[1].addEventListener(MouseEvent.CLICK, btnPro_return);
btn[2] = rootMC.frontMC.nextBTN;
btn[2].addEventListener(MouseEvent.CLICK, btnPro_next);
} else {
if (_local2 == 30){
btn[1] = rootMC.frontMC.returnBTN;
btn[1].addEventListener(MouseEvent.CLICK, btnPro_return);
btn[2] = rootMC.frontMC.leftBTN;
btn[3] = rootMC.frontMC.rightBTN;
btn[2].addEventListener(MouseEvent.CLICK, btnPro_page);
btn[3].addEventListener(MouseEvent.CLICK, btnPro_page);
};
};
};
trace("ボタン設定");
}
private function btnPro_return(_arg1:MouseEvent):void{
rFlg = true;
snd.playEffectS(3, 1);
}
private function btnPro_next(_arg1:MouseEvent):void{
nFlg = true;
snd.playEffectS(1, 1);
}
private function btnPro_title(_arg1:MouseEvent):void{
var _local2:String;
_local2 = _arg1.target.name.substr(6, 1);
sFlg = int(_local2);
trace(("no: " + sFlg));
snd.playEffectS(1, 1);
}
public function bSound(_arg1, _arg2):void{
snd.playEffectS(_arg1, _arg2);
}
public function get returnFlg():Boolean{
return (rFlg);
}
public function get pageVal():int{
return (page);
}
private function btnPro_page(_arg1:MouseEvent):void{
var _local2:String;
_local2 = _arg1.target.name;
if (_local2 == "leftBTN"){
page = -1;
} else {
if (_local2 == "rightBTN"){
page = 1;
};
};
}
public function get startFlg():int{
return (sFlg);
}
public function set pageVal(_arg1:int):void{
page = _arg1;
}
public function set nextFlg(_arg1:Boolean):void{
nFlg = _arg1;
}
public function get nextFlg():Boolean{
return (nFlg);
}
public function removeListenerPro():void{
var _local1:int;
trace("Touch_Button::リスナー削除");
_local1 = rootMC.currentFrame;
if ((((_local1 >= 10)) && ((_local1 <= 19)))){
btn[1].removeEventListener(MouseEvent.CLICK, btnPro_title);
btn[2].removeEventListener(MouseEvent.CLICK, btnPro_title);
btn[3].removeEventListener(MouseEvent.CLICK, btnPro_title);
btn = null;
} else {
if ((((_local1 >= 20)) && ((_local1 <= 29)))){
btn[1].removeEventListener(MouseEvent.CLICK, btnPro_return);
btn[2].removeEventListener(MouseEvent.CLICK, btnPro_next);
btn = null;
} else {
if ((((_local1 >= 30)) && ((_local1 <= 39)))){
btn[1].removeEventListener(MouseEvent.CLICK, btnPro_return);
btn[2].removeEventListener(MouseEvent.CLICK, btnPro_page);
btn[3].removeEventListener(MouseEvent.CLICK, btnPro_page);
btn = null;
};
};
};
rootMC = null;
}
public function set startFlg(_arg1:int):void{
sFlg = _arg1;
}
}
}//package game.TouchGame
Section 2 (2.06 KiB) ●
//CMS_Touch (game.TouchGame.CMS_Touch)
package game.TouchGame {
import flash.display.*;
import flash.events.*;
import game.*;
import flash.ui.*;
public class CMS_Touch 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_Touch(_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_Touch ::リスナー削除");
item8.removeEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler8);
item9.removeEventListener(ContextMenuEvent.MENU_ITEM_SELECT, itemSelectHandler9);
myContextMenu = null;
lFlg = false;
rootMC = null;
}
protected function itemSelectHandler9(_arg1:ContextMenuEvent):void{
var _local2:int;
trace(("CMS_Touch:: リスタート!! cCo:" + cCo));
_local2 = rootMC.currentFrame;
if ((((_local2 >= 10)) && ((_local2 <= 19)))){
trace("タイトル画面なのでキャンセル");
} else {
rootMC.restartPro();
};
}
protected function itemSelectHandler8(_arg1:ContextMenuEvent):void{
trace("------");
}
override protected function addCustomMenuItems():void{
item8 = new ContextMenuItem("-----------");
item9 = new ContextMenuItem("Restart");
myContextMenu.customItems.push(item8, item9);
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.TouchGame
Section 3 (8.56 KiB) ● ●
//PlayPro_Touch (game.TouchGame.PlayPro_Touch)
package game.TouchGame {
import flash.display.*;
import game.*;
import flash.geom.*;
public class PlayPro_Touch {
private var pfCo:int;// = 1
private var tgSC;
private var startFm:int;
private var playFlg:int;// = 0
private var reactionFlg:Boolean;// = false
private var ui:UserInput;
private var allClearFlg:Boolean;// = false
private var snd:Sound_Touch;
private var mx;
private var my:Number;
private var tgTG;
private var tg:Touch_targetPro;
private var rootMC:MovieClip;
private var tgMs:MovieClip;
private var partsCo:int;// = 1
private var miss:int;// = 1
public function PlayPro_Touch(_arg1:MovieClip, _arg2:Object, _arg3:int){
allClearFlg = false;
playFlg = 0;
partsCo = 1;
miss = 1;
pfCo = 1;
reactionFlg = false;
super();
rootMC = _arg1;
snd = new Sound_Touch(_arg1);
ui = new UserInput(rootMC, _arg2);
tg = new Touch_targetPro(rootMC.playMC);
startFm = _arg3;
trace(("開始面 startFm:" + startFm));
rootMC.frontMC.stageTXT.text = ("stage " + startFm);
rootMC.playMC.gotoAndStop(startFm);
tgTG = rootMC.frontMC.timeGaugeMC;
tgSC = rootMC.playMC.countMC;
tgMs = rootMC.frontMC.skeletonMC;
rootMC.playMC.addChild(tgSC);
rootMC.frontMC.returnBTN.x = 2000;
rootMC.frontMC.nextBTN.x = 2000;
}
private function expansion_reduction(_arg1:Boolean, _arg2:MovieClip, ... _args):Boolean{
var _local4:Matrix;
if (_arg1){
_local4 = new Matrix();
_local4 = _arg2.mtx.clone();
_local4.a = (_arg2.mtx.a + 0.05);
_local4.d = (_arg2.mtx.d + 0.05);
_arg2.transform.matrix = _local4;
_arg2.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, 0);
return (true);
};
_arg2.transform.matrix = _arg2.mtx;
_arg2.transform.colorTransform = _arg2.ct;
return (false);
}
public function getTarget():void{
tg.getTarget(startFm);
}
public function reactionPro():void{
var _local1:int;
mx = rootMC.mouseX;
my = rootMC.mouseY;
if (tg.charMC1 != null){
if (tg.charMC1.currentFrame == 1){
reactionFlg = false;
};
};
if (reactionFlg){
return;
};
if (tg.CTg != null){
_local1 = 1;
while (_local1 < tg.CTg.length) {
if (tg.CTg[_local1].hitTestPoint(mx, my, true)){
if (UserInput.MBflgS){
reactionFlg = true;
tg.charMC1.gotoAndPlay(("R" + _local1));
};
};
_local1++;
};
};
if (tg.pieMC1 != null){
if (((UserInput.MBflgS) && (tg.pieMC1.hitTestPoint(mx, my, true)))){
if (tg.charMC1.pieFlg){
tg.pieMC1.play();
};
};
};
if (tg.pieMC2 != null){
if (((UserInput.MBflgS) && (tg.pieMC2.hitTestPoint(mx, my, true)))){
if (tg.charMC1.pieFlg){
tg.pieMC2.play();
};
};
};
}
public function nextPro():void{
var _local1:int;
var _local2:DisplayObject;
_local1 = 1;
while (_local1 < tg.PTg.length) {
_local1++;
};
tg.targetClear();
partsCo = 1;
pfCo = 1;
miss = 1;
tgMs.gotoAndStop(miss);
startFm++;
rootMC.frontMC.stageTXT.text = ("stage " + startFm);
rootMC.playMC.gotoAndStop(startFm);
tgSC.gotoAndPlay(2);
rootMC.frontMC.returnBTN.x = 2000;
rootMC.frontMC.nextBTN.x = 2000;
_local2 = rootMC.playMC.getChildByName("countMC");
rootMC.playMC.setChildIndex(_local2, (rootMC.playMC.numChildren - 1));
playFlg = 0;
}
public function get clearCheack():Boolean{
return (allClearFlg);
}
public function debugPro():void{
var _local1:String;
var _local2:String;
_local1 = (((((((startFm + "面\n") + "playFlg:") + playFlg) + "\npartsCo:") + partsCo) + "\nmiss:") + miss);
_local2 = _local1;
rootMC.dText.text = _local2;
}
public function mainPro():int{
var _local1:int;
var _local2:int;
var _local3:Boolean;
var _local4:int;
var _local5:int;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:int;
var _local10:*;
var _local11:*;
var _local12:int;
var _local13:int;
mx = rootMC.mouseX;
my = rootMC.mouseY;
switch (playFlg){
case 0:
_local1 = tgSC.currentFrame;
_local2 = (tgSC.totalFrames - 1);
if (_local1 == _local2){
tg.getTarget(startFm);
playFlg = 5;
};
break;
case 1:
_local3 = false;
_local5 = 1;
for (;_local5 < tg.PTg.length;_local5++) {
if (tg.PTg[_local5].hitTestPoint(mx, my, true)){
if (!tg.PTg[_local5].visible){
continue;
};
expansion_reduction(true, tg.PTg[_local5]);
if (tg.PTg[_local5].subTg){
_local6 = 0;
while (_local6 < tg.PTg2.length) {
expansion_reduction(true, tg.PTg2[_local6]);
_local6++;
};
};
if (UserInput.MBflgS){
if (_local5 == partsCo){
trace("正解!!");
partsCo++;
tg.PTg[_local5].visible = false;
if (tg.PTg[_local5].subTg){
_local7 = 0;
while (_local7 < tg.PTg2.length) {
tg.PTg2[_local7].visible = false;
_local7++;
};
};
snd.playEffectS(4, 1);
if (tg.PTg.length == partsCo){
trace("クリア!");
miss = 1;
tgMs.gotoAndStop(miss);
if (rootMC.playMC.currentFrame == rootMC.playMC.totalFrames){
trace("!!!!!全クリア!!!!");
allClearFlg = true;
tgTG.gotoAndPlay("allClear");
rootMC.frontMC.returnBTN.x = 570;
} else {
tgTG.gotoAndPlay("clear");
rootMC.frontMC.nextBTN.x = 560;
};
playFlg = 2;
break;
} else {
tgTG.gotoAndPlay(2);
};
} else {
_local3 = true;
break;
};
};
} else {
if (tg.PTg[_local5].mtx.a != tg.PTg[_local5].transform.matrix.a){
expansion_reduction(false, tg.PTg[_local5]);
if (tg.PTg[_local5].subTg){
_local8 = 0;
while (_local8 < tg.PTg2.length) {
expansion_reduction(false, tg.PTg2[_local8], "@@@@");
_local8++;
};
};
};
};
};
if (tg.DTg != null){
_local9 = 1;
while (_local9 < tg.DTg.length) {
if (tg.DTg[_local9].hitTestPoint(mx, my, true)){
expansion_reduction(true, tg.DTg[_local9]);
if (tg.DTg[_local9].subTg){
_local10 = 0;
while (_local10 < tg.DTg2.length) {
expansion_reduction(true, tg.DTg2[_local10]);
_local10++;
};
};
if (UserInput.MBflgS){
_local3 = true;
};
} else {
if (tg.DTg[_local9].mtx.a != tg.DTg[_local9].transform.matrix.a){
expansion_reduction(false, tg.DTg[_local9]);
if (tg.DTg[_local9].subTg){
_local11 = 0;
while (_local11 < tg.DTg2.length) {
expansion_reduction(false, tg.DTg2[_local11], "@@@@");
_local11++;
};
};
};
};
_local9++;
};
};
reactionPro();
if ((((tgTG.currentLabel == "timeOut")) || (_local3))){
trace("まちがい!!");
miss++;
tgMs.gotoAndStop(miss);
if (miss >= 4){
trace("ゲームオーバー");
tgTG.gotoAndPlay("gameOver");
rootMC.frontMC.returnBTN.x = 570;
playFlg = 3;
} else {
partsCo = 1;
_local12 = 1;
while (_local12 < tg.PTg.length) {
tg.PTg[_local12].visible = true;
_local12++;
};
tgTG.gotoAndPlay("out");
rootMC.nasiMC.gotoAndPlay(2);
playFlg = 4;
};
snd.playEffectS(5, 1);
};
break;
case 2:
reactionPro();
break;
case 3:
reactionPro();
break;
case 4:
_local4 = rootMC.nasiMC.currentFrame;
if ((((_local4 == 1)) && ((tgTG.currentLabel == "safe")))){
playFlg = 1;
};
break;
case 5:
if ((((pfCo >= tg.fFmax)) || (!(rootMC.playMC.pFlash)))){
tgTG.gotoAndPlay(2);
tgSC.nextFrame();
playFlg = 1;
break;
};
_local13 = 1;
while (_local13 < tg.fFm.length) {
if (pfCo == tg.fFm[_local13]){
expansion_reduction(true, tg.PTg[_local13], "パーツ点滅時 拡大");
} else {
if ((((pfCo == (tg.fFm[_local13] + 4))) || ((pfCo >= (tg.fFmax - 2))))){
expansion_reduction(false, tg.PTg[_local13], "パーツ点滅時 戻す");
};
};
_local13++;
};
pfCo++;
break;
};
return (startFm);
}
public function removeListenerPro():void{
trace("PlayPro_Touch::リムーブ処理");
ui.removeListenerPro();
ui = null;
tg.removeListenerPro();
tg = null;
rootMC = null;
}
}
}//package game.TouchGame
Section 4 (3.06 KiB) ●
//Sound_Touch (game.TouchGame.Sound_Touch)
package game.TouchGame {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class Sound_Touch {
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_Touch(_arg1:MovieClip){
rootMC = _arg1;
effect = new Array();
effect[1] = new effect01();
effect[2] = new effect02();
effect[3] = new effect03();
effect[4] = new effect04();
effect[5] = new effect05();
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;
setVolume(_arg2);
} 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.TouchGame
Section 5 (6.54 KiB) ● ●
//Touch_targetPro (game.TouchGame.Touch_targetPro)
package game.TouchGame {
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class Touch_targetPro {
public var fFmax:int;// = 60
public var charMC1;
public var playMC:MovieClip;
public var charMC2:MovieClip;
public var pieMC2:MovieClip;
public var CTg:Array;
public var DTg:Array;
private var container:Sprite;
public var fFm:Array;
public var PTg:Array;
public var pieMC1;
public var PTg2:Array;
public var DTg2:Array;
static var cco:int = 0;
public function Touch_targetPro(_arg1:MovieClip){
fFmax = 60;
super();
playMC = _arg1;
fFm = new Array();
cco++;
trace(("Touch_targetPro コンストラクタ実行:" + cco));
}
public function getTarget(_arg1:int):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
trace(("\nターゲット取得処理 面:" + _arg1));
PTg = new Array();
PTg2 = new Array();
DTg = new Array();
DTg2 = new Array();
CTg = new Array();
fFm = new Array();
if ((playMC is DisplayObjectContainer)){
trace(("子数:" + playMC.numChildren));
enumeration(playMC);
if (playMC.orderP != 0){
_local6 = playMC.orderP;
PTg[_local6] = playMC.partsTg[0];
PTg[_local6].ct = new ColorTransform();
PTg[_local6].ct = PTg[_local6].transform.colorTransform;
PTg[_local6].mtx = new Matrix();
PTg[_local6].mtx = PTg[_local6].transform.matrix;
if (playMC.partsTg[1] != null){
PTg[_local6].subTg = true;
_local7 = 0;
while (_local7 < playMC.partsTg.length) {
if (playMC.partsTg[_local7] == null){
break;
};
PTg2[_local7] = playMC.partsTg[_local7];
PTg2[_local7].ct = new ColorTransform();
PTg2[_local7].ct = PTg2[_local7].transform.colorTransform;
PTg2[_local7].mtx = new Matrix();
PTg2[_local7].mtx = PTg2[_local7].transform.matrix;
_local7++;
};
};
};
if (playMC.orderD != 0){
_local8 = playMC.orderD;
DTg[_local8] = playMC.dummyTg[0];
DTg[_local8].ct = new ColorTransform();
DTg[_local8].ct = DTg[_local8].transform.colorTransform;
DTg[_local8].mtx = new Matrix();
DTg[_local8].mtx = DTg[_local8].transform.matrix;
if (playMC.dummyTg[1] != null){
DTg[_local8].subTg = true;
_local9 = 0;
while (_local9 < playMC.dummyTg.length) {
if (playMC.dummyTg[_local9] == null){
break;
};
DTg2[_local9] = playMC.dummyTg[_local9];
DTg2[_local9].ct = new ColorTransform();
DTg2[_local9].ct = DTg2[_local9].transform.colorTransform;
DTg2[_local9].mtx = new Matrix();
DTg2[_local9].mtx = DTg2[_local9].transform.matrix;
_local9++;
};
};
};
};
_local2 = (fFmax / (PTg.length - 1));
fFm[1] = 1;
trace(("***************************************:::\nPTgレンジ:" + PTg.length));
trace((("フレーム間隔 ff: " + _local2) + "\n各パーツの発光フレーム記憶"));
_local3 = 2;
while (_local3 <= (PTg.length - 1)) {
fFm[_local3] = (_local2 * (_local3 - 1));
trace(((_local3 + " : ") + fFm[_local3]));
_local3++;
};
trace("partsターゲット確認");
_local4 = 1;
while (_local4 < PTg.length) {
trace(((((_local4 + " : ") + PTg[_local4].name) + " visible:") + PTg[_local4].visible));
_local4++;
};
trace("ダミーpartsターゲット確認");
_local5 = 1;
while (_local5 < DTg.length) {
trace(((((_local5 + " : ") + DTg[_local5].name) + " visible:") + DTg[_local5].visible));
_local5++;
};
trace("\n");
}
private function enumeration(_arg1:Object, _arg2:int=0, _arg3:String=""):void{
var _local4:DisplayObjectContainer;
var _local5:int;
var _local6:String;
var _local7:int;
var _local8:int;
var _local9:int;
_arg3 = rept(_arg2);
trace((_arg3 + _arg1.name), getQualifiedClassName(_arg1));
if ((_arg1 is DisplayObjectContainer)){
_local4 = (_arg1 as DisplayObjectContainer);
if ((_local4 is MovieClip)){
_local6 = _local4.name.substr(0, 5);
trace(("MC名抽出: " + _local6));
if (_local6 == "parts"){
_local7 = int(_local4.name.substr(5, 2));
PTg[_local7] = _local4;
PTg[_local7].ct = new ColorTransform();
PTg[_local7].ct = PTg[_local7].transform.colorTransform;
PTg[_local7].mtx = new Matrix();
PTg[_local7].mtx = PTg[_local7].transform.matrix;
} else {
if (_local6 == "dummy"){
_local8 = int(_local4.name.substr(5, 2));
DTg[_local8] = _local4;
DTg[_local8].ct = new ColorTransform();
DTg[_local8].ct = DTg[_local8].transform.colorTransform;
DTg[_local8].mtx = new Matrix();
DTg[_local8].mtx = DTg[_local8].transform.matrix;
} else {
if (_local6 == "click"){
_local9 = int(_local4.name.substr(5, 2));
CTg[_local9] = _local4;
} else {
if (_local6 == "charM"){
charMC1 = _local4;
} else {
if (_local6 == "pie1"){
pieMC1 = _local4;
} else {
if (_local6 == "pie2"){
pieMC2 = (_local4 as MovieClip);
};
};
};
};
};
};
};
_arg2++;
trace(((_arg3 + "子数:") + _arg1.numChildren));
_local5 = 0;
while (_local5 < _arg1.numChildren) {
enumeration(_local4.getChildAt(_local5), _arg2);
_local5++;
};
};
}
public function debugPro():void{
}
public function removeListenerPro():void{
trace("Touch_targetPro::リムーブ処理");
playMC = null;
}
private function rept(_arg1:int):String{
var _local2:String;
_local2 = "";
while (_arg1-- > 0) {
_local2 = (_local2 + "\t");
};
return (_local2);
}
public function targetClear():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
_local1 = 1;
while (_local1 < PTg.length) {
PTg[_local1] = null;
_local1++;
};
_local2 = 0;
while (_local2 < PTg2.length) {
PTg2[_local2] = null;
_local2++;
};
_local3 = 1;
while (_local3 < DTg.length) {
DTg[_local3] = null;
_local3++;
};
_local4 = 1;
while (_local4 < DTg2.length) {
DTg2[_local4] = null;
_local4++;
};
_local5 = 1;
while (_local5 < CTg.length) {
CTg[_local5] = null;
_local5++;
};
_local6 = 1;
while (_local6 < fFm.length) {
fFm[_local6] = null;
_local6++;
};
PTg = null;
PTg2 = null;
DTg = null;
DTg2 = null;
CTg = null;
fFm = null;
charMC1 = null;
charMC2 = null;
}
}
}//package game.TouchGame
Section 6 (7.51 KiB) ● ●
//TouchMain (game.TouchGame.TouchMain)
package game.TouchGame {
import flash.display.*;
import flash.events.*;
import game.*;
public class TouchMain {
private var con:CMS_Touch;
private var startFm:int;// = 1
private var stageMC:Object;
private var sChangeFlg:Boolean;// = false
private var btn:BTN_Touch;
private var fps:FPSpro;
private var startFmBuf:int;
private var es:MovieClip;
private var rootMC:MovieClip;
private var ppt:PlayPro_Touch;
public function TouchMain(_arg1:MovieClip, _arg2:Object){
sChangeFlg = false;
startFm = 1;
super();
rootMC = _arg1;
stageMC = _arg2;
fps = new FPSpro(rootMC.fpsText);
con = new CMS_Touch(rootMC);
es = rootMC.effectScreenMC;
es.play();
stageMC.addEventListener(Event.ENTER_FRAME, mainPro);
}
private function pageProcessing():void{
var _local1:int;
startFm = rootMC.playMC.currentFrame;
_local1 = rootMC.playMC.totalFrames;
startFm = (startFm + btn.pageVal);
btn.pageVal = 0;
if (startFm >= rootMC.lastStage){
if (rootMC.allClearFlg){
startFm = rootMC.lastStage;
} else {
startFm = (rootMC.lastStage - 1);
};
};
if (startFm <= 0){
startFm = 1;
};
rootMC.playMC.gotoAndStop(startFm);
rootMC.frontMC.stageTXT.text = ("stage " + startFm);
btn.bSound(2, 1);
}
private function delayPro():Boolean{
var _local1:int;
_local1 = rootMC.nasiMC.currentFrame;
if (_local1 != 1){
return (false);
};
rootMC.nasiMC.gotoAndPlay(2);
return (true);
}
public function mainPro(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
_local2 = rootMC.currentFrame;
if (_local2 == 10){
if (es.currentFrame == 16){
es.play();
};
if (rootMC.titleMC != null){
if (btn == null){
btn = new BTN_Touch(rootMC);
rootMC.nextFrame();
};
};
} else {
if (_local2 == 11){
if (es.currentFrame == 16){
if (sChangeFlg){
if (btn.startFlg != 0){
sChangeFlg = false;
es.play();
if (btn.startFlg == 1){
startFm = 1;
rootMC.gotoAndStop(20);
} else {
if (btn.startFlg == 2){
startFm = rootMC.lastStage;
rootMC.gotoAndStop(20);
} else {
if (btn.startFlg == 3){
rootMC.gotoAndStop(30);
};
};
};
btn.removeListenerPro();
btn = null;
};
};
} else {
if (es.currentFrame == 1){
if (btn.startFlg != 0){
sChangeFlg = true;
es.play();
};
};
};
} else {
if (_local2 == 20){
if (es.currentFrame == 16){
es.play();
};
if (rootMC.playMC != null){
if (btn == null){
btn = new BTN_Touch(rootMC);
};
_local3 = rootMC.playMC.countMC.currentFrame;
_local4 = rootMC.playMC.countMC.totalFrames;
if ((((ppt == null)) && ((_local3 >= 2)))){
ppt = new PlayPro_Touch(rootMC, stageMC, startFm);
rootMC.nextFrame();
};
};
} else {
if (_local2 == 21){
if (es.currentFrame == 16){
if (sChangeFlg){
if (btn.returnFlg){
btn.removeListenerPro();
btn = null;
rootMC.allClearFlg = ppt.clearCheack;
ppt.removeListenerPro();
ppt = null;
sChangeFlg = false;
es.play();
rootMC.gotoAndStop(10);
};
} else {
es.play();
};
} else {
if (es.currentFrame == 1){
rootMC.lastStage = ppt.mainPro();
if (btn.returnFlg){
sChangeFlg = true;
es.play();
};
if (btn.nextFlg){
btn.nextFlg = false;
ppt.nextPro();
};
};
};
} else {
if (_local2 == 30){
if (rootMC.playMC != null){
if (btn == null){
btn = new BTN_Touch(rootMC);
_local5 = rootMC.playMC.countMC.currentFrame;
_local6 = rootMC.playMC.countMC.totalFrames;
rootMC.playMC.countMC.gotoAndStop(_local6);
rootMC.frontMC.stageTXT.text = ("stage " + startFm);
rootMC.frontMC.leftBTN.y = 370;
rootMC.frontMC.rightBTN.y = 370;
};
if (ppt == null){
ppt = new PlayPro_Touch(rootMC, stageMC, 1);
rootMC.frontMC.returnBTN.x = 570;
rootMC.nextFrame();
};
};
} else {
if (_local2 == 31){
if (es.currentFrame == 16){
if (sChangeFlg){
if (btn.returnFlg){
btn.removeListenerPro();
btn = null;
ppt.removeListenerPro();
ppt = null;
sChangeFlg = false;
es.play();
rootMC.gotoAndStop(10);
};
} else {
es.play();
};
} else {
if (es.currentFrame == 1){
if (startFmBuf != startFm){
startFmBuf = startFm;
ppt.getTarget();
};
rootMC.playMC.countMC.gotoAndStop(rootMC.playMC.countMC.totalFrames);
ppt.reactionPro();
if (((!((btn.pageVal == 0))) && (delayPro()))){
if (btn.pageVal == 1){
if (rootMC.playMC.parts1 != null){
if (rootMC.playMC.parts1.visible){
partsOff(false);
} else {
pageProcessing();
};
};
} else {
if (btn.pageVal == -1){
if (rootMC.playMC.parts1 != null){
if (!rootMC.playMC.parts1.visible){
partsOff(true);
} else {
pageProcessing();
};
};
};
};
};
if (btn.returnFlg){
sChangeFlg = true;
es.play();
};
};
};
};
};
};
};
};
};
fps.counting();
}
public function removeListenerPro():void{
trace("TouchMain::リスナー削除");
if (btn != null){
btn.removeListenerPro();
btn = null;
};
if (ppt != null){
ppt.removeListenerPro();
ppt = null;
};
fps = null;
con.removeListenerPro();
con = null;
rootMC = null;
stageMC = null;
}
private function partsOff(_arg1:Boolean):void{
var _local2:int;
var _local3:int;
var _local4:String;
var _local5:String;
var _local6:int;
var _local7:int;
if (rootMC.playMC.parts1 != null){
_local2 = 1;
while (_local2 <= 99) {
_local4 = ("parts" + _local2);
if (rootMC.playMC[_local4] != null){
rootMC.playMC[_local4].visible = _arg1;
};
_local2++;
};
_local3 = 1;
while (_local3 <= 99) {
_local5 = ("dummy" + _local3);
if (rootMC.playMC[_local5] != null){
rootMC.playMC[_local5].visible = _arg1;
};
_local3++;
};
if (rootMC.playMC.partsTg != null){
_local6 = 0;
while (_local6 < rootMC.playMC.partsTg.length) {
if (rootMC.playMC.partsTg[_local6] != null){
rootMC.playMC.partsTg[_local6].visible = _arg1;
rootMC.playMC.partsTg[_local6] = null;
};
_local6++;
};
};
if (rootMC.playMC.dummyTg != null){
_local7 = 0;
while (_local7 < rootMC.playMC.dummyTg.length) {
if (rootMC.playMC.dummyTg[_local7] != null){
rootMC.playMC.dummyTg[_local7].visible = _arg1;
rootMC.playMC.dummyTg[_local7] = null;
};
_local7++;
};
};
};
btn.pageVal = 0;
btn.bSound(2, 1);
}
}
}//package game.TouchGame
Section 7 (1.33 KiB) ●
//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 8 (694 B)
//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 9 (919 B)
//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 10 (5.54 KiB) ● ●
//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);
stageMC = null;
rootMC = null;
}
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 11 (232 B)
//anzu_armRMC1_37 (yu_fla.anzu_armRMC1_37)
package yu_fla {
import flash.display.*;
public dynamic class anzu_armRMC1_37 extends MovieClip {
public var shirtMC:MovieClip;
public var blazerMC:MovieClip;
}
}//package yu_fla
Section 12 (569 B)
//anzu_headMC1_55 (yu_fla.anzu_headMC1_55)
package yu_fla {
import flash.display.*;
public dynamic class anzu_headMC1_55 extends MovieClip {
public function anzu_headMC1_55(){
addFrameScript(88, frame89, 178, frame179, 198, frame199, 222, frame223, 250, frame251);
}
function frame89(){
this.gotoAndPlay("P1");
}
function frame223(){
this.gotoAndStop("P2");
}
function frame179(){
this.gotoAndPlay("P2");
}
function frame199(){
this.gotoAndStop("P1");
}
function frame251(){
this.gotoAndStop("P2");
}
}
}//package yu_fla
Section 13 (231 B)
//anzu_legLMC1_47 (yu_fla.anzu_legLMC1_47)
package yu_fla {
import flash.display.*;
public dynamic class anzu_legLMC1_47 extends MovieClip {
public var socksMC:MovieClip;
public var shoesMC:MovieClip;
}
}//package yu_fla
Section 14 (231 B)
//anzu_legRMC1_41 (yu_fla.anzu_legRMC1_41)
package yu_fla {
import flash.display.*;
public dynamic class anzu_legRMC1_41 extends MovieClip {
public var socksMC:MovieClip;
public var shoesMC:MovieClip;
}
}//package yu_fla
Section 15 (271 B)
//anzu_pieMC_45 (yu_fla.anzu_pieMC_45)
package yu_fla {
import flash.display.*;
public dynamic class anzu_pieMC_45 extends MovieClip {
public function anzu_pieMC_45(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package yu_fla
Section 16 (1.42 KiB) ●
//anzuMC1_35 (yu_fla.anzuMC1_35)
package yu_fla {
import flash.display.*;
public dynamic class anzuMC1_35 extends MovieClip {
public var shirtMC:MovieClip;
public var legLMC:MovieClip;
public var pie1:MovieClip;
public var pieFlg:Boolean;
public var skirtMC2:MovieClip;
public var ribonMC:MovieClip;
public var st:String;
public var headMC:MovieClip;
public var blazerMC2:MovieClip;
public var pantsMC:MovieClip;
public var blazerMC:MovieClip;
public var legRMC:MovieClip;
public var brassiereMC:MovieClip;
public var click1:MovieClip;
public var click2:MovieClip;
public var armRMC:MovieClip;
public var click3:MovieClip;
public var skirtMC:MovieClip;
public function anzuMC1_35(){
addFrameScript(0, frame1, 4, frame5, 15, frame16, 24, frame25, 47, frame48, 48, frame49, 75, frame76);
}
function frame1(){
if (st == null){
st = " ";
pieFlg = false;
};
if (((((!(this.blazerMC.visible)) && (!(this.shirtMC.visible)))) && (!(this.brassiereMC.visible)))){
pieFlg = true;
} else {
pieFlg = false;
};
}
function frame16(){
this.gotoAndStop(1);
}
function frame76(){
this.gotoAndStop(1);
}
function frame5(){
this.headMC.gotoAndPlay("R1");
}
function frame49(){
this.headMC.gotoAndPlay("R3");
}
function frame48(){
this.gotoAndStop(1);
}
function frame25(){
this.headMC.gotoAndPlay("R2");
}
}
}//package yu_fla
Section 17 (301 B)
//countMC_21 (yu_fla.countMC_21)
package yu_fla {
import flash.display.*;
public dynamic class countMC_21 extends MovieClip {
public function countMC_21(){
addFrameScript(1, frame2, 108, frame109);
}
function frame109(){
this.stop();
}
function frame2(){
}
}
}//package yu_fla
Section 18 (338 B)
//effectScreenMC_8 (yu_fla.effectScreenMC_8)
package yu_fla {
import flash.display.*;
public dynamic class effectScreenMC_8 extends MovieClip {
public function effectScreenMC_8(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
this.stop();
}
function frame1(){
this.stop();
}
}
}//package yu_fla
Section 19 (424 B)
//frontMC_107 (yu_fla.frontMC_107)
package yu_fla {
import flash.display.*;
import flash.text.*;
public dynamic class frontMC_107 extends MovieClip {
public var returnBTN:SimpleButton;
public var nextBTN:SimpleButton;
public var stageTXT:TextField;
public var rightBTN:SimpleButton;
public var skeletonMC:MovieClip;
public var timeGaugeMC:MovieClip;
public var leftBTN:SimpleButton;
}
}//package yu_fla
Section 20 (182 B)
//loadingMC_2 (yu_fla.loadingMC_2)
package yu_fla {
import flash.display.*;
public dynamic class loadingMC_2 extends MovieClip {
public var barMC:loader;
}
}//package yu_fla
Section 21 (2.03 KiB) ●
//MainTimeline (yu_fla.MainTimeline)
package yu_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import game.TouchGame.*;
import game.*;
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 lastStage:int;
public var timeriMC:MovieClip;
public var frontMC:MovieClip;
public var ld:LoaderPro;
public var to:TouchMain;
public var con:ContextMenuSet;
public var allClearFlg:Boolean;
public var nasiMC:MovieClip;
public var effectScreenMC:MovieClip;
public var fpsText:TextField;
public var ver:String;
public var playMC:MovieClip;
public var loadingMC:MovieClip;
public var titleMC:MovieClip;
public function MainTimeline(){
addFrameScript(1, frame2, 2, frame3, 19, frame20, 20, frame21, 21, frame22, 27, frame28, 29, frame30);
}
public function restartPro(){
to.removeListenerPro();
trace(((("前 has? " + stage.hasEventListener(Event.ENTER_FRAME)) + " will? ") + stage.willTrigger(Event.ENTER_FRAME)));
stage.removeEventListener(Event.ENTER_FRAME, to.mainPro);
trace(((("後 has? " + stage.hasEventListener(Event.ENTER_FRAME)) + " will? ") + stage.willTrigger(Event.ENTER_FRAME)));
to = null;
this.effectScreenMC.gotoAndStop(16);
this.gotoAndPlay(6);
}
function frame20(){
ld = null;
}
function frame3(){
this.stop();
ld = new LoaderPro(this, loadingMC.barMC);
}
function frame22(){
}
function frame21(){
ver = "ver.1.1";
lastStage = 1;
allClearFlg = false;
this.effectScreenMC.gotoAndStop(16);
}
function frame30(){
this.stop();
titleMC.verTXT.text = ver;
}
function frame2(){
con = new ContextMenuSet(this);
}
function frame28(){
con = null;
to = new TouchMain(this, stage);
}
}
}//package yu_fla
Section 22 (251 B)
//nasiMC_6 (yu_fla.nasiMC_6)
package yu_fla {
import flash.display.*;
public dynamic class nasiMC_6 extends MovieClip {
public function nasiMC_6(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package yu_fla
Section 23 (6.49 KiB) ● ●
//playMC_15 (yu_fla.playMC_15)
package yu_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
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 playMC_15 extends MovieClip {
public var parts11:MovieClip;
public var parts12:MovieClip;
public var dummyTg:Array;
public var parts7:MovieClip;
public var parts4:MovieClip;
public var parts6:MovieClip;
public var parts8:MovieClip;
public var parts1:MovieClip;
public var parts2:MovieClip;
public var parts3:MovieClip;
public var parts5:MovieClip;
public var parts9:MovieClip;
public var charMC:MovieClip;
public var dummy2:MovieClip;
public var dummy1:MovieClip;
public var dummy6:MovieClip;
public var pFlash:Boolean;
public var dummy3:MovieClip;
public var dummy5:MovieClip;
public var orderD:int;
public var orderP:int;
public var dummy4:MovieClip;
public var partsTg:Array;
public var countMC:MovieClip;
public function playMC_15(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14);
}
public function targetClear():void{
var _local1:int;
var _local2:int;
if (partsTg != null){
_local1 = 0;
while (_local1 < partsTg.length) {
partsTg[_local1] = null;
_local1++;
};
};
if (dummyTg != null){
_local2 = 0;
while (_local2 < dummyTg.length) {
dummyTg[_local2] = null;
_local2++;
};
};
orderP = 0;
orderD = 0;
}
function frame9(){
targetClear();
pFlash = true;
orderP = 5;
orderD = 0;
partsTg[0] = this.charMC.ribonMC;
this.charMC.legLMC.shoesMC.visible = false;
this.charMC.legRMC.shoesMC.visible = false;
this.charMC.legLMC.socksMC.visible = false;
this.charMC.legRMC.socksMC.visible = false;
}
function frame10(){
targetClear();
pFlash = false;
orderP = 3;
orderD = 0;
partsTg[0] = this.charMC.blazerMC;
partsTg[1] = this.charMC.blazerMC2;
partsTg[2] = this.charMC.armRMC.blazerMC;
this.charMC.legLMC.shoesMC.visible = false;
this.charMC.legRMC.shoesMC.visible = false;
this.charMC.legLMC.socksMC.visible = false;
this.charMC.legRMC.socksMC.visible = false;
this.charMC.ribonMC.visible = false;
}
function frame14(){
targetClear();
pFlash = false;
orderP = 6;
orderD = 0;
partsTg[0] = this.charMC.pantsMC;
this.charMC.legLMC.shoesMC.visible = false;
this.charMC.legRMC.shoesMC.visible = false;
this.charMC.legLMC.socksMC.visible = false;
this.charMC.legRMC.socksMC.visible = false;
this.charMC.ribonMC.visible = false;
this.charMC.blazerMC.visible = false;
this.charMC.blazerMC2.visible = false;
this.charMC.armRMC.blazerMC.visible = false;
this.charMC.skirtMC.visible = false;
this.charMC.skirtMC2.visible = false;
this.charMC.shirtMC.visible = false;
this.charMC.armRMC.shirtMC.visible = false;
this.charMC.brassiereMC.visible = false;
}
function frame3(){
targetClear();
pFlash = false;
}
function frame6(){
targetClear();
pFlash = false;
orderP = 3;
orderD = 0;
partsTg[0] = this.charMC.legRMC.shoesMC;
this.charMC.legLMC.shoesMC.visible = false;
}
function frame5(){
targetClear();
pFlash = false;
orderP = 3;
orderD = 1;
partsTg[0] = this.charMC.legLMC.shoesMC;
dummyTg[0] = this.charMC.ribonMC;
}
function frame1(){
this.stop();
if (!partsTg){
pFlash = true;
orderP = 4;
orderP = 0;
orderD = 1;
orderD = 0;
partsTg = new Array();
partsTg[0] = null;
partsTg[1] = null;
dummyTg = new Array();
dummyTg[0] = null;
dummyTg[1] = null;
};
}
function frame4(){
targetClear();
pFlash = false;
}
function frame8(){
targetClear();
pFlash = false;
orderP = 4;
orderD = 1;
partsTg[0] = this.charMC.legRMC.socksMC;
dummyTg[0] = this.charMC.blazerMC;
dummyTg[1] = this.charMC.blazerMC2;
dummyTg[2] = this.charMC.armRMC.blazerMC;
this.charMC.legLMC.shoesMC.visible = false;
this.charMC.legRMC.shoesMC.visible = false;
this.charMC.legLMC.socksMC.visible = false;
}
function frame2(){
targetClear();
pFlash = true;
}
function frame7(){
targetClear();
pFlash = false;
orderP = 3;
orderD = 1;
partsTg[0] = this.charMC.legLMC.socksMC;
dummyTg[0] = this.charMC.skirtMC;
dummyTg[1] = this.charMC.skirtMC2;
this.charMC.legLMC.shoesMC.visible = false;
this.charMC.legRMC.shoesMC.visible = false;
}
function frame11(){
targetClear();
pFlash = false;
orderP = 2;
orderD = 0;
partsTg[0] = this.charMC.skirtMC;
partsTg[1] = this.charMC.skirtMC2;
this.charMC.legLMC.shoesMC.visible = false;
this.charMC.legRMC.shoesMC.visible = false;
this.charMC.legLMC.socksMC.visible = false;
this.charMC.legRMC.socksMC.visible = false;
this.charMC.ribonMC.visible = false;
this.charMC.blazerMC.visible = false;
this.charMC.blazerMC2.visible = false;
this.charMC.armRMC.blazerMC.visible = false;
}
function frame12(){
targetClear();
pFlash = true;
orderP = 10;
orderD = 0;
partsTg[0] = this.charMC.shirtMC;
partsTg[1] = this.charMC.armRMC.shirtMC;
this.charMC.legLMC.shoesMC.visible = false;
this.charMC.legRMC.shoesMC.visible = false;
this.charMC.legLMC.socksMC.visible = false;
this.charMC.legRMC.socksMC.visible = false;
this.charMC.ribonMC.visible = false;
this.charMC.blazerMC.visible = false;
this.charMC.blazerMC2.visible = false;
this.charMC.armRMC.blazerMC.visible = false;
this.charMC.skirtMC.visible = false;
this.charMC.skirtMC2.visible = false;
}
function frame13(){
targetClear();
pFlash = false;
orderP = 7;
orderD = 0;
partsTg[0] = this.charMC.brassiereMC;
this.charMC.legLMC.shoesMC.visible = false;
this.charMC.legRMC.shoesMC.visible = false;
this.charMC.legLMC.socksMC.visible = false;
this.charMC.legRMC.socksMC.visible = false;
this.charMC.ribonMC.visible = false;
this.charMC.blazerMC.visible = false;
this.charMC.blazerMC2.visible = false;
this.charMC.armRMC.blazerMC.visible = false;
this.charMC.skirtMC.visible = false;
this.charMC.skirtMC2.visible = false;
this.charMC.shirtMC.visible = false;
this.charMC.armRMC.shirtMC.visible = false;
}
}
}//package yu_fla
Section 24 (275 B)
//skeletonMC_111 (yu_fla.skeletonMC_111)
package yu_fla {
import flash.display.*;
public dynamic class skeletonMC_111 extends MovieClip {
public function skeletonMC_111(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package yu_fla
Section 25 (259 B)
//soundMC1_5 (yu_fla.soundMC1_5)
package yu_fla {
import flash.display.*;
public dynamic class soundMC1_5 extends MovieClip {
public function soundMC1_5(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package yu_fla
Section 26 (519 B)
//timeGaugeMC_115 (yu_fla.timeGaugeMC_115)
package yu_fla {
import flash.display.*;
public dynamic class timeGaugeMC_115 extends MovieClip {
public function timeGaugeMC_115(){
addFrameScript(0, frame1, 168, frame169, 208, frame209, 270, frame271, 334, frame335);
}
function frame169(){
this.gotoAndPlay(2);
}
function frame209(){
this.stop();
}
function frame335(){
this.stop();
}
function frame1(){
this.stop();
}
function frame271(){
this.stop();
}
}
}//package yu_fla
Section 27 (259 B)
//timeriMC_7 (yu_fla.timeriMC_7)
package yu_fla {
import flash.display.*;
public dynamic class timeriMC_7 extends MovieClip {
public function timeriMC_7(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package yu_fla
Section 28 (307 B)
//titleMC_9 (yu_fla.titleMC_9)
package yu_fla {
import flash.display.*;
import flash.text.*;
public dynamic class titleMC_9 extends MovieClip {
public var button1:SimpleButton;
public var button3:SimpleButton;
public var button2:SimpleButton;
public var verTXT:TextField;
}
}//package yu_fla
Section 29 (118 B)
//effect01 (effect01)
package {
import flash.media.*;
public dynamic class effect01 extends Sound {
}
}//package
Section 30 (118 B)
//effect02 (effect02)
package {
import flash.media.*;
public dynamic class effect02 extends Sound {
}
}//package
Section 31 (118 B)
//effect03 (effect03)
package {
import flash.media.*;
public dynamic class effect03 extends Sound {
}
}//package
Section 32 (118 B)
//effect04 (effect04)
package {
import flash.media.*;
public dynamic class effect04 extends Sound {
}
}//package
Section 33 (118 B)
//effect05 (effect05)
package {
import flash.media.*;
public dynamic class effect05 extends Sound {
}
}//package
Section 34 (178 B)
//loader (loader)
package {
import flash.display.*;
public dynamic class loader extends MovieClip {
public var bar:MovieClip;
public var loadBar:MovieClip;
}
}//package