Frame 1
var countflag;
stop();
Frame 2
if (nigoro.lib.samieru.NigoroFlashManager.isSystemStarted()) {
if (countflag == undefined) {
countflag = 100;
game = _root.attachMovie("mainprog", "mainprog1", 1);
} else {
trace("bad");
}
nextFrame();
} else {
prevFrame();
}
Frame 3
var debug = false;
var combbai = 0;
var combmax = 20;
var hani = 100;
var ycombbai = 2;
var yscbai = 2;
var hirunext = true;
var terop1 = [10500, 19800, 20000, 28300, 28500, 36300, 36500, 47800, 48000, 58300, 58500, 67600, 67800, 76600, 76800, 84300, 84500, 95800, 96000, 106400, 106600, 115600, 115800, 124800, 125000, 132300, 132500, 149000, 152000, 0];
var terop2 = [10500, 19800, 20000, 28300, 28500, 32500, 32700, 36300, 36500, 40100, 40300, 48300, 48500, 51200, 51400, 58300, 58500, 67600, 67800, 76600, 76800, 80500, 80700, 84300, 84500, 88000, 88200, 95900, 96100, 99100, 99300, 106400, 106600, 115600, 115800, 124800, 125000, 128500, 128700, 132300, 132500, 136000, 136200, 145000, 149000, 151800];
Symbol 59 MovieClip Frame 1
stop();
Symbol 102 MovieClip [RankingEntryMC] Frame 15
stop();
Symbol 104 MovieClip [gameover_terop] Frame 1500
stop();
Symbol 297 MovieClip [NigoroDefaultFont] Frame 1
stop();
Symbol 556 MovieClip Frame 1
stop();
Symbol 571 MovieClip Frame 1
stop();
Symbol 612 Button
on (press) {
_root.game.Gs.systemIO(0, 0);
}
Symbol 633 MovieClip Frame 1
stop();
Symbol 639 MovieClip [Defaults] Frame 1
#initclip 122
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 640 MovieClip [UIObjectExtensions] Frame 1
#initclip 123
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 641 MovieClip [UIObject] Frame 1
#initclip 124
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 642 MovieClip [Border] Frame 1
#initclip 125
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 643 MovieClip [RectBorder] Frame 1
#initclip 126
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 646 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 647 MovieClip Frame 1
#initclip 127
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 650 MovieClip [FocusRect] Frame 1
#initclip 128
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 651 MovieClip [FocusManager] Frame 1
#initclip 129
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 652 MovieClip [UIComponentExtensions] Frame 1
#initclip 130
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 653 MovieClip [UIComponent] Frame 1
#initclip 131
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 654 MovieClip [TextInput] Frame 1
#initclip 132
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 679 Button
on (press) {
_root.game.Gs.rankingIO(0, 0);
}
Symbol 684 Button
on (press) {
_root.game.Gs.systemIO(5, 0);
}
Symbol 685 MovieClip [title_mc] Frame 148
stop();
Instance of Symbol 614 MovieClip "LvPantu1" in Symbol 685 MovieClip [title_mc] Frame 148
on (press) {
_root.game.Gs.systemIO(1, 1);
}
Instance of Symbol 614 MovieClip "LvPantu2" in Symbol 685 MovieClip [title_mc] Frame 148
onClipEvent (load) {
if (_root.game.Gs.getLevel() < 2) {
var bcol = (new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0));
this.transform.colorTransform = bcol;
}
}
on (press) {
_root.game.Gs.systemIO(1, 2);
}
Instance of Symbol 614 MovieClip "LvPantu3" in Symbol 685 MovieClip [title_mc] Frame 148
onClipEvent (load) {
if (_root.game.Gs.getLevel() < 3) {
var bcol = (new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0));
this.transform.colorTransform = bcol;
}
}
on (press) {
_root.game.Gs.systemIO(1, 3);
}
Instance of Symbol 614 MovieClip "LvPantu4" in Symbol 685 MovieClip [title_mc] Frame 148
onClipEvent (load) {
if (_root.game.Gs.getLevel() < 4) {
var bcol = (new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0));
this.transform.colorTransform = bcol;
}
}
on (press) {
_root.game.Gs.systemIO(1, 4);
}
Instance of Symbol 614 MovieClip "LvPantu5" in Symbol 685 MovieClip [title_mc] Frame 148
onClipEvent (load) {
if (_root.game.Gs.getLevel() < 5) {
var bcol = (new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0));
this.transform.colorTransform = bcol;
}
}
on (press) {
_root.game.Gs.systemIO(1, 5);
}
Instance of Symbol 615 MovieClip "LkPantu1" in Symbol 685 MovieClip [title_mc] Frame 148
onClipEvent (load) {
if (_root.game.Gs.getLike() != 0) {
var bcol = (new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0));
this.transform.colorTransform = bcol;
}
}
on (press) {
_root.game.Gs.systemIO(2, 0);
}
Instance of Symbol 616 MovieClip "LkPantu2" in Symbol 685 MovieClip [title_mc] Frame 148
onClipEvent (load) {
if (_root.game.Gs.getLike() != 1) {
var bcol = (new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0));
this.transform.colorTransform = bcol;
}
}
on (press) {
_root.game.Gs.systemIO(2, 1);
}
Instance of Symbol 617 MovieClip "LkPantu3" in Symbol 685 MovieClip [title_mc] Frame 148
onClipEvent (load) {
if (_root.game.Gs.getLike() != 2) {
var bcol = (new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0));
this.transform.colorTransform = bcol;
}
}
on (press) {
_root.game.Gs.systemIO(2, 2);
}
Instance of Symbol 618 MovieClip "LkPantu4" in Symbol 685 MovieClip [title_mc] Frame 148
onClipEvent (load) {
if (_root.game.Gs.getLike() != 3) {
var bcol = (new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0));
this.transform.colorTransform = bcol;
}
}
on (press) {
_root.game.Gs.systemIO(2, 3);
}
Instance of Symbol 619 MovieClip "LkPantu5" in Symbol 685 MovieClip [title_mc] Frame 148
onClipEvent (load) {
if (_root.game.Gs.getLike() != 4) {
var bcol = (new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0));
this.transform.colorTransform = bcol;
}
}
on (press) {
_root.game.Gs.systemIO(2, 4);
}
Instance of Symbol 620 MovieClip "LkPantu6" in Symbol 685 MovieClip [title_mc] Frame 148
onClipEvent (load) {
if (_root.game.Gs.getLike() != 5) {
var bcol = (new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0));
this.transform.colorTransform = bcol;
}
}
on (press) {
_root.game.Gs.systemIO(2, 5);
}
Instance of Symbol 621 MovieClip "LkPantu7" in Symbol 685 MovieClip [title_mc] Frame 148
onClipEvent (load) {
if (_root.game.Gs.getLike() != 6) {
var bcol = (new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0));
this.transform.colorTransform = bcol;
}
}
on (press) {
_root.game.Gs.systemIO(2, 6);
}
Instance of Symbol 622 MovieClip "LkPantu8" in Symbol 685 MovieClip [title_mc] Frame 148
onClipEvent (load) {
if (_root.game.Gs.getLike() != 7) {
var bcol = (new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0));
this.transform.colorTransform = bcol;
}
}
on (press) {
_root.game.Gs.systemIO(2, 7);
}
Instance of Symbol 623 MovieClip "LkPantu9" in Symbol 685 MovieClip [title_mc] Frame 148
onClipEvent (load) {
if (_root.game.Gs.getLike() != 8) {
var bcol = (new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0));
this.transform.colorTransform = bcol;
}
}
on (press) {
_root.game.Gs.systemIO(2, 8);
}
Instance of Symbol 633 MovieClip "PantuText" in Symbol 685 MovieClip [title_mc] Frame 148
onClipEvent (load) {
this.gotoAndStop(_root.game.Gs.getLike() + 1);
}
Instance of Symbol 654 MovieClip [TextInput] "UserName" in Symbol 685 MovieClip [title_mc] Frame 148
//component parameters
onClipEvent (construct) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_load(eventObj) {
this.setStyle("fontFamily", "Arial");
this.setStyle("fontSize ", 12);
this.maxChars = 10;
this.restrict = "0-9a-z A-Z\\\\_!#,.$+?";
this.text = _root.game.Gs.getName();
}
this.addEventListener("load", __f_load);
}
Symbol 756 MovieClip [mainprog] Frame 1
var Gs = (new sorce.Mekuri(this));
Symbol 756 MovieClip [mainprog] Frame 2
Gs.mainLoop();
Symbol 756 MovieClip [mainprog] Frame 3
this.gotoAndPlay("LoopPoint");
Symbol 977 MovieClip Frame 5
stop();
Symbol 1052 MovieClip [coffeebreak] Frame 35
stop();
Symbol 1171 Button
on (press) {
_root.game.Gs.rankingIO(1, 0);
}
Symbol 1173 Button
on (press) {
_root.game.Gs.rankingIO(3, 0);
}
Symbol 1175 Button
on (press) {
_root.game.Gs.rankingIO(3, 1);
}
Symbol 1177 Button
on (press) {
_root.game.Gs.rankingIO(3, 2);
}
Symbol 1179 Button
on (press) {
_root.game.Gs.rankingIO(3, 3);
}
Symbol 1181 Button
on (press) {
_root.game.Gs.rankingIO(3, 4);
}
Symbol 1212 MovieClip [__Packages.sorce.Mekuri] Frame 0
class sorce.Mekuri
{
var sta, game_level, ranking_level, like_pantu, dmc, db, ftc, btc, mbmc, hbmc, swmc, bmmc, mmmc, hmmc, himc, soundMC, hanyoumc, wait_f, soundAr, bgmMC, bgmAr, now_bgm, user_name, sstage_debug, bgmloop, ranking_f, debugobje, cimecount;
function Mekuri (mc) {
sta = 0;
game_level = 3;
ranking_level = game_level - 1;
like_pantu = 0;
dmc = mc;
db = new nigoro.lib.duplex.DB.MiniDB2();
ftc = new nigoro.lib.duplex.Task.TaskCenter2(500, db);
btc = new nigoro.lib.duplex.Task.TaskCenter2(10, db);
mbmc = dmc.createEmptyMovieClip("back_g", dmc.getNextHighestDepth());
hbmc = dmc.createEmptyMovieClip("back_h_g", dmc.getNextHighestDepth());
swmc = dmc.createEmptyMovieClip("swmc_g", dmc.getNextHighestDepth());
swmc._alpha = 50;
bmmc = dmc.createEmptyMovieClip("midle_b_g", dmc.getNextHighestDepth());
mmmc = dmc.createEmptyMovieClip("midle_m_g", dmc.getNextHighestDepth());
hmmc = dmc.createEmptyMovieClip("midle_h_g", dmc.getNextHighestDepth());
himc = dmc.createEmptyMovieClip("top_g", dmc.getNextHighestDepth());
soundMC = dmc.createEmptyMovieClip("SMC", dmc.getNextHighestDepth());
hanyoumc = null;
wait_f = false;
var _local3 = ["bancho1.wav", "bancho2.wav", "bancho3.wav", "bancho4.wav", "bancho5.wav", "chime.wav", "damage.wav", "damage1.wav", "damage2.wav", "damage3.wav", "mekure1.wav", "mekure2.wav", "mekure3.wav", "miss.wav", "pantu.wav", "start.wav", "sukeban.wav", "super.wav", "super_end.wav", "teacher.wav", "text.wav", "yuu.wav", "d-dosun.wav", "d-start.wav", "d-kaze.wav", "b-clear.wav", "d-break.wav"];
soundAr = new Array(_local3.length);
var _local2 = 0;
while (_local2 != _local3.length) {
soundAr[_local2] = new Sound(soundMC);
soundAr[_local2].attachSound(_local3[_local2]);
_local2++;
}
var _local4 = ["ending.wav", "ending2.wav", "main.wav", "superbgm.wav", "title.wav", "mekuri_clear.wav"];
bgmMC = nigoro.lib.samieru.NigoroFlashManager.getBgmLayer().createEmptyMovieClip("BGMMC", dmc.getNextHighestDepth());
if (bgmMC == undefined) {
bgmMC = dmc.createEmptyMovieClip("BGMMC", dmc.getNextHighestDepth());
}
bgmAr = new Array(_local4.length);
_local2 = 0;
while (_local2 != _local4.length) {
bgmAr[_local2] = new nigoro.lib.samieru.sound.MusicPlayer(bgmMC);
bgmAr[_local2].attachSound(_local4[_local2]);
_local2++;
}
now_bgm = -1;
user_name = nigoro.lib.samieru.NigoroFlashManager.getPlayerName();
sstage_debug = 0;
bgmloop = true;
ranking_f = false;
debugobje = null;
}
function mainLoop() {
if (nigoro.lib.samieru.NigoroFlashManager.isPause()) {
return(undefined);
}
btc.playTask();
switch (sta) {
case 0 :
sta = 10;
break;
case 10 :
hanyoumc = hmmc.attachMovie("title_mc", "title_mc" + hmmc.getNextHighestDepth(), hmmc.getNextHighestDepth());
soundIO(5);
sta = 20;
cimecount = getTimer();
break;
case 20 :
if ((getTimer() - cimecount) >= 5000) {
bgmIO(4, 100);
sta = 10000;
}
break;
case 50 :
break;
case 100 :
break;
case 10000 :
}
if (_root.debug) {
if (Key.isDown(49) && (sstage_debug != 0)) {
sstage_debug = 0;
ftc.setTask(new sorce.task.Judge(himc, 4, 320, 240, 0));
}
if (Key.isDown(50) && (sstage_debug != 4)) {
sstage_debug = 4;
ftc.setTask(new sorce.task.Judge(himc, 3, 320, 240, 0));
}
if (Key.isDown(51) && (sstage_debug != 6)) {
sstage_debug = 6;
ftc.setTask(new sorce.task.Judge(himc, 2, 320, 240, 0));
}
if (Key.isDown(52) && (sstage_debug != 10)) {
sstage_debug = 10;
ftc.setTask(new sorce.task.Judge(himc, 1, 320, 240, 0));
}
}
ftc.playTask();
}
function bgmIO(bgm, f) {
bgmloop = true;
if (now_bgm == -1) {
bgmAr[bgm].initPlay();
bgmAr[bgm].setLoopPoint(0);
bgmAr[bgm].start(0);
now_bgm = bgm;
} else {
ftc.setTask(new sorce.task.bgmFade(bgmAr[now_bgm], bgm, f, this, 0));
}
}
function bgmIO2(bgm, f) {
bgmloop = false;
if (now_bgm == -1) {
bgmAr[bgm].initPlay();
bgmAr[bgm].setLoopPoint(0);
bgmAr[bgm].startPlay(1);
now_bgm = bgm;
} else {
ftc.setTask(new sorce.task.bgmFade(bgmAr[now_bgm], bgm, f, this, 1));
}
}
function soundIO(sno) {
soundAr[sno].start(0);
}
function soundVoiceStop() {
soundAr[0].Stop();
soundAr[1].Stop();
soundAr[2].Stop();
soundAr[3].Stop();
soundAr[4].Stop();
}
function rankingIO(no, data) {
switch (no) {
case 0 :
ftc.setTask(new sorce.task.Ranking(himc, this, ranking_level));
handCursle(false);
ranking_f = true;
soundIO(15);
break;
case 1 :
ftc.acssesTask(ftc.checkData("ranking", "no"), [0]);
soundIO(14);
break;
case 2 :
handCursle(true);
ranking_f = false;
break;
case 3 :
ftc.acssesTask(ftc.checkData("ranking", "no"), [1, data]);
break;
case 4 :
ranking_level = data;
}
}
function systemIO(no, data) {
if (ranking_f) {
return(undefined);
}
switch (no) {
case 0 :
if (nigoro.lib.samieru.NigoroFlashManager.isPause()) {
break;
}
if (!wait_f) {
user_name = hanyoumc.UserName.text;
if (!nigoro.lib.duplex.Font.WordChecker.isOkey(user_name, nigoro.lib.duplex.Font.Word.NGWord.FarstNG)) {
user_name = "";
} else if (!nigoro.lib.duplex.Font.WordChecker.isOkey(user_name, nigoro.lib.duplex.Font.Word.NGWord.HentaiNG)) {
user_name = "";
}
ftc.setTask(new sorce.task.WBOut(himc, this, 0));
soundIO(15);
bgmIO(-1, 4);
wait_f = true;
}
break;
case 1 :
game_level = data;
ranking_level = data - 1;
setPantu();
break;
case 2 :
like_pantu = data;
drawLikePantu();
break;
case 3 :
break;
case 4 :
now_bgm = data;
if (now_bgm > -1) {
bgmAr[data].initPlay();
bgmAr[data].setLoopPoint(0);
if (bgmloop) {
bgmAr[data].start(0);
} else {
bgmAr[data].startPlay(1);
}
}
break;
case 5 :
if (nigoro.lib.samieru.NigoroFlashManager.isPause()) {
} else {
if (wait_f) {
break;
}
user_name = hanyoumc.UserName.text;
if (!nigoro.lib.duplex.Font.WordChecker.isOkey(user_name, nigoro.lib.duplex.Font.Word.NGWord.FarstNG)) {
user_name = "";
} else if (!nigoro.lib.duplex.Font.WordChecker.isOkey(user_name, nigoro.lib.duplex.Font.Word.NGWord.HentaiNG)) {
user_name = "";
}
ftc.setTask(new sorce.task.WBOut(himc, this, 2));
soundIO(15);
bgmIO(-1, 4);
wait_f = true;
}
}
}
function gameIO(no) {
switch (no) {
case 0 :
hanyoumc.removeMovieClip();
hanyoumc = null;
wait_f = false;
break;
case 1 :
ftc.setTask(new sorce.task.Play(mbmc, hbmc, bmmc, mmmc, hmmc, himc, (game_level - 1) * 7, this, sstage_debug, swmc));
break;
case 2 :
bgmIO(4, 100);
sta = 10000;
ftc.flashTask();
hanyoumc = hmmc.attachMovie("title_mc", "title_mc" + hmmc.getNextHighestDepth(), hmmc.getNextHighestDepth());
hanyoumc.gotoAndStop(148);
ranking_level = game_level - 1;
break;
case 3 :
ftc.setTask(new sorce.task.TryPlay(mbmc, hbmc, bmmc, mmmc, hmmc, himc, (game_level - 1) * 7, this, sstage_debug, swmc));
}
}
function getName() {
return(user_name);
}
function getLevel() {
return(game_level);
}
function getLike() {
return(like_pantu);
}
function getDebugText() {
return(debugobje);
}
function handCursle(f) {
hanyoumc.LkPantu1.useHandCursor = f;
hanyoumc.LkPantu2.useHandCursor = f;
hanyoumc.LkPantu3.useHandCursor = f;
hanyoumc.LkPantu4.useHandCursor = f;
hanyoumc.LkPantu5.useHandCursor = f;
hanyoumc.LkPantu6.useHandCursor = f;
hanyoumc.LkPantu7.useHandCursor = f;
hanyoumc.LkPantu8.useHandCursor = f;
hanyoumc.LkPantu9.useHandCursor = f;
hanyoumc.BRANKING.useHandCursor = f;
hanyoumc.BRANKING.enabled = f;
hanyoumc.BSTART.useHandCursor = f;
hanyoumc.BSTART.enabled = f;
hanyoumc.BTRAIN.useHandCursor = f;
hanyoumc.BTRAIN.enabled = f;
hanyoumc.LvPantu1.useHandCursor = f;
hanyoumc.LvPantu2.useHandCursor = f;
hanyoumc.LvPantu3.useHandCursor = f;
hanyoumc.LvPantu4.useHandCursor = f;
hanyoumc.LvPantu5.useHandCursor = f;
hanyoumc.UserName._visible = f;
}
function drawLikePantu() {
var _local2 = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
var _local3 = new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0);
if (like_pantu == 0) {
hanyoumc.LkPantu1.transform.colorTransform = _local2;
} else {
hanyoumc.LkPantu1.transform.colorTransform = _local3;
}
if (like_pantu == 1) {
hanyoumc.LkPantu2.transform.colorTransform = _local2;
} else {
hanyoumc.LkPantu2.transform.colorTransform = _local3;
}
if (like_pantu == 2) {
hanyoumc.LkPantu3.transform.colorTransform = _local2;
} else {
hanyoumc.LkPantu3.transform.colorTransform = _local3;
}
if (like_pantu == 3) {
hanyoumc.LkPantu4.transform.colorTransform = _local2;
} else {
hanyoumc.LkPantu4.transform.colorTransform = _local3;
}
if (like_pantu == 4) {
hanyoumc.LkPantu5.transform.colorTransform = _local2;
} else {
hanyoumc.LkPantu5.transform.colorTransform = _local3;
}
if (like_pantu == 5) {
hanyoumc.LkPantu6.transform.colorTransform = _local2;
} else {
hanyoumc.LkPantu6.transform.colorTransform = _local3;
}
if (like_pantu == 6) {
hanyoumc.LkPantu7.transform.colorTransform = _local2;
} else {
hanyoumc.LkPantu7.transform.colorTransform = _local3;
}
if (like_pantu == 7) {
hanyoumc.LkPantu8.transform.colorTransform = _local2;
} else {
hanyoumc.LkPantu8.transform.colorTransform = _local3;
}
if (like_pantu == 8) {
hanyoumc.LkPantu9.transform.colorTransform = _local2;
} else {
hanyoumc.LkPantu9.transform.colorTransform = _local3;
}
hanyoumc.PantuText.gotoAndStop(like_pantu + 1);
}
function setPantu() {
var _local2 = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
var _local3 = new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0);
if (game_level < 2) {
hanyoumc.LvPantu2.transform.colorTransform = _local3;
} else {
hanyoumc.LvPantu2.transform.colorTransform = _local2;
}
if (game_level < 3) {
hanyoumc.LvPantu3.transform.colorTransform = _local3;
} else {
hanyoumc.LvPantu3.transform.colorTransform = _local2;
}
if (game_level < 4) {
hanyoumc.LvPantu4.transform.colorTransform = _local3;
} else {
hanyoumc.LvPantu4.transform.colorTransform = _local2;
}
if (game_level < 5) {
hanyoumc.LvPantu5.transform.colorTransform = _local3;
} else {
hanyoumc.LvPantu5.transform.colorTransform = _local2;
}
}
}
Symbol 1213 MovieClip [__Packages.nigoro.lib.duplex.Task.TaskCenter2] Frame 0
class nigoro.lib.duplex.Task.TaskCenter2
{
var tasks, maxtask, db, lc;
function TaskCenter2 (num, database) {
tasks = new Array(num);
maxtask = num;
if (database == null) {
db = new nigoro.lib.duplex.DB.MiniDB2();
} else {
db = database;
}
lc = new nigoro.lib.duplex.Link.LinkCenter();
}
function setTask(tk) {
var _local2;
if (lc.getListNum() >= maxtask) {
trace("\u30BF\u30B9\u30AF\u306E\u751F\u6210\u9650\u754C\u6570\u3092\u8D85\u3048\u3066\u307E\u3059!!");
return(false);
}
_local2 = lc.getListNo();
tasks[_local2] = tk;
tasks[_local2].init(_local2, this);
return(true);
}
function killTask(no) {
if (tasks[no] == null) {
return(0);
}
tasks[no].finalize(this);
tasks[no] = null;
lc.deleteList(no);
return(1);
}
function flashTask() {
var _local2;
_local2 = lc.getStartPos();
while (_local2 != -1) {
killTask(_local2);
_local2 = lc.loadNextLinkList(_local2);
}
}
function playTask() {
var _local2;
_local2 = lc.getStartPos();
while (_local2 != -1) {
if (tasks[_local2].run(this) == false) {
killTask(_local2);
}
_local2 = lc.loadNextLinkList(_local2);
}
}
function idPlayTask(id) {
var _local2;
_local2 = lc.getStartPos();
while (_local2 != -1) {
if (tasks[_local2].UID == id) {
if (tasks[_local2].frun(this) == false) {
killTask(_local2);
}
}
_local2 = lc.loadNextLinkList(_local2);
}
}
function acssesTask(no, data) {
return(tasks[no].talkTask(data, this));
}
function regstData(ct, nm, data) {
db.write(ct, nm, data);
}
function checkData(ct, nm) {
return(db.oneread(ct, nm, 0));
}
function getData(ct, nm) {
return(db.read(ct, nm));
}
function elaseData(ct) {
db.deleteCategory(ct);
}
function getTask(no) {
return(tasks[no]);
}
}
Symbol 1214 MovieClip [__Packages.nigoro.lib.duplex.DB.MiniDB2] Frame 0
class nigoro.lib.duplex.DB.MiniDB2
{
var now_page, max_page, db;
function MiniDB2 () {
now_page = 0;
max_page = 1;
db = new Array();
db[0] = new nigoro.lib.duplex.DB.DataPool2();
}
function createNewPage() {
db[max_page] = new nigoro.lib.duplex.DB.DataPool2();
max_page++;
}
function chengePage(p) {
if (p > (max_page - 1)) {
return(false);
}
now_page = p;
return(true);
}
function write(ct, nm, dt) {
db[now_page].write(ct, nm, dt);
}
function overWrite(c, i, n, d) {
db[now_page].overWrite(c, i, n, d);
}
function readCompact(ct, nm) {
var _local3;
var _local4;
var _local2;
_local3 = db[now_page].read(ct, nm);
if (_local3 == null) {
return(null);
}
_local4 = 0;
_local2 = 0;
while (_local2 != _local3.length) {
_local3[_local2 - _local4] = _local3[_local2];
if (_local3[_local2] == null) {
_local4++;
}
_local2++;
}
while (_local4 > 0) {
_local3.pop();
_local4--;
}
return(_local3);
}
function read(ct, nm) {
return(db[now_page].read(ct, nm));
}
function oneread(ct, nm, num) {
return(db[now_page].oneread(ct, nm, num));
}
function deleteCategory(st) {
db[now_page].deleteCategory(st);
}
function deleteName(st, i) {
db[now_page].deleteName(st, i);
}
}
Symbol 1215 MovieClip [__Packages.nigoro.lib.duplex.DB.DataLower2] Frame 0
class nigoro.lib.duplex.DB.DataLower2
{
var data, id, lc;
function DataLower2 () {
data = new Array();
id = new Array();
lc = new nigoro.lib.duplex.Link.LinkCenter();
}
function getId(st) {
var _local2;
_local2 = lc.getStartPos();
while (_local2 != -1) {
if (id[_local2] == st) {
return(_local2);
}
_local2 = lc.loadNextLinkList(_local2);
}
return(-1);
}
function deleteId(st) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
while (data[_local2].pop() != null) {
}
lc.deleteList(_local2);
id[_local2] = null;
}
}
}
Symbol 1216 MovieClip [__Packages.nigoro.lib.duplex.Link.LinkCenter] Frame 0
class nigoro.lib.duplex.Link.LinkCenter
{
var pointer, position, backPosition, startPosition, total;
function LinkCenter () {
pointer = new Array();
position = 0;
backPosition = -1;
startPosition = 0;
total = 0;
}
function getListNo() {
var _local2;
_local2 = position;
if (pointer[_local2] != null) {
pointer[_local2].self = position;
position = pointer[_local2].back;
if (backPosition != -1) {
pointer[backPosition].next = _local2;
}
pointer[_local2].back = backPosition;
backPosition = _local2;
pointer[_local2].next = -1;
} else {
pointer[_local2] = new nigoro.lib.duplex.Link.LinkData();
pointer[_local2].self = position;
pointer[_local2].back = backPosition;
pointer[_local2].next = -1;
if (backPosition != -1) {
pointer[backPosition].next = position;
}
backPosition = position;
position++;
}
total++;
return(_local2);
}
function addList(i) {
var _local2;
var _local4;
if ((i < 0) || (i >= total)) {
return(-1);
}
if (pointer[i].self == -1) {
return(-1);
}
_local2 = getListNo();
_local4 = pointer[i].next;
if (_local4 != _local2) {
pointer[i].next = _local2;
pointer[_local4].back = _local2;
backPosition = pointer[_local2].back;
pointer[pointer[_local2].back].next = pointer[_local2].next;
pointer[_local2].back = i;
pointer[_local2].next = _local4;
}
return(_local2);
}
function insertList(i) {
var _local2;
var _local4;
if ((i < 0) || (i >= total)) {
return(-1);
}
if (pointer[i].self == -1) {
return(-1);
}
_local2 = getListNo();
_local4 = pointer[i].back;
pointer[i].back = _local2;
if (_local4 != -1) {
pointer[_local4].next = _local2;
} else {
startPosition = _local2;
}
backPosition = pointer[_local2].back;
pointer[pointer[_local2].back].next = pointer[_local2].next;
pointer[_local2].back = _local4;
pointer[_local2].next = i;
return(_local2);
}
function chengList(farst, second) {
var _local5;
var _local4;
var _local7;
var _local6;
if (((farst < 0) || (farst >= total)) || ((second < 0) || (second >= total))) {
return(false);
}
if ((pointer[farst].self == -1) || (pointer[second].self == -1)) {
return(false);
}
_local5 = pointer[farst].next;
_local7 = pointer[farst].back;
_local4 = pointer[second].next;
_local6 = pointer[second].back;
if (_local5 != -1) {
pointer[_local5].back = second;
}
if (_local7 != -1) {
pointer[_local7].next = second;
}
pointer[second].next = _local5;
pointer[second].back = _local7;
if (_local4 != -1) {
pointer[_local4].back = farst;
}
if (_local6 != -1) {
pointer[_local6].next = farst;
}
pointer[farst].next = _local4;
pointer[farst].back = _local6;
if (startPosition == farst) {
startPosition = second;
} else if (startPosition == second) {
startPosition = farst;
}
if (backPosition == farst) {
backPosition = second;
} else if (backPosition == second) {
backPosition = farst;
}
return(true);
}
function deleteList(i) {
if (pointer[i].self == -1) {
return(undefined);
}
if (pointer[i].next != -1) {
pointer[pointer[i].next].back = pointer[i].back;
if (pointer[i].back != -1) {
pointer[pointer[i].back].next = pointer[i].next;
} else {
startPosition = pointer[i].next;
}
} else {
backPosition = pointer[i].back;
if (pointer[i].back != -1) {
pointer[pointer[i].back].next = -1;
} else {
startPosition = i;
}
}
pointer[i].self = -1;
pointer[i].back = position;
position = i;
total--;
}
function getListNum() {
return(total);
}
function getStartPos() {
var _local2;
_local2 = startPosition;
if (total == 0) {
_local2 = -1;
}
return(_local2);
}
function loadNextLinkList(i) {
return(pointer[i].next);
}
function clear() {
while (pointer.pop() != null) {
}
position = 0;
backPosition = -1;
startPosition = 0;
total = 0;
}
}
Symbol 1217 MovieClip [__Packages.nigoro.lib.duplex.Link.LinkData] Frame 0
class nigoro.lib.duplex.Link.LinkData
{
function LinkData () {
}
}
Symbol 1218 MovieClip [__Packages.nigoro.lib.duplex.DB.DataPool2] Frame 0
class nigoro.lib.duplex.DB.DataPool2 extends nigoro.lib.duplex.DB.DataLower2
{
var getId, lc, data, id, deleteId;
function DataPool2 () {
super();
}
function write(s, i, d) {
var _local2;
_local2 = getId(s);
if (_local2 == -1) {
_local2 = lc.getListNo();
data[_local2] = new nigoro.lib.duplex.DB.DataLine2();
id[_local2] = s;
}
data[_local2].write(d, i);
}
function overWrite(c, i, n, d) {
var _local2;
_local2 = getId(c);
if (_local2 == -1) {
_local2 = lc.getListNo();
data[_local2] = new nigoro.lib.duplex.DB.DataLine2();
id[_local2] = c;
}
data[_local2].overWrite(d, i, n);
}
function deleteCategory(st) {
deleteId(st);
}
function deleteName(st, i) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
data[_local2].deleteId(i);
}
}
function read(st, i) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
return(data[_local2].read(i));
}
return(null);
}
function oneread(st, i, n) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
return(data[_local2].oneread(i, n));
}
return(null);
}
}
Symbol 1219 MovieClip [__Packages.nigoro.lib.duplex.DB.DataLine2] Frame 0
class nigoro.lib.duplex.DB.DataLine2 extends nigoro.lib.duplex.DB.DataLower2
{
var getId, lc, data, id;
function DataLine2 () {
super();
}
function write(d, i) {
var _local2;
_local2 = getId(i);
if (_local2 == -1) {
_local2 = lc.getListNo();
data[_local2] = new Array();
id[_local2] = i;
}
data[_local2].push(d);
}
function read(st) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
return(data[_local2]);
}
return(null);
}
function oneread(st, n) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
return(data[_local2][n]);
}
return(null);
}
function overWrite(d, i, n) {
var _local2;
_local2 = getId(i);
if (_local2 == -1) {
_local2 = lc.getListNo();
data[_local2] = new Array();
id[_local2] = i;
}
data[_local2][n] = d;
}
function deleteData(st, d) {
var _local3;
var _local2;
_local3 = getId(st);
if (_local3 != -1) {
_local2 = 0;
while (_local2 != data[_local3].length) {
if (data[_local3][_local2] == d) {
data[_local3][_local2] = null;
}
_local2++;
}
}
}
function deleteDataNo(no, i) {
if (i > (data[i].length - 1)) {
return(undefined);
}
data[i][no] = null;
}
}
Symbol 1220 MovieClip [__Packages.nigoro.lib.duplex.Task.Task2] Frame 0
interface nigoro.lib.duplex.Task.Task2
{
}
Symbol 1221 MovieClip [__Packages.sorce.task.DebugText] Frame 0
class sorce.task.DebugText
{
var messfont, st_mozi_no;
function DebugText (mc) {
var _local2;
var _local3 = new nigoro.lib.duplex.Font.FontBase(mc, "NigoroDefaultFont");
messfont = new Array(20);
_local2 = 0;
while (_local2 != 20) {
messfont[_local2] = new nigoro.lib.duplex.Font.SampleFont(mc, _local3);
messfont[_local2].setFontColor(100, 250, 250, 255);
messfont[_local2].setFontSize(14);
_local2++;
}
st_mozi_no = 0;
}
function setStateString(mess) {
var _local2;
var _local3;
if (st_mozi_no > 19) {
_local3 = st_mozi_no % 20;
messfont[_local3].allDeleteFont();
messfont[_local3].backSetFontPosition(0, 285);
messfont[_local3].drawTypewriterStrings(mess, 0, 285);
_local2 = 1;
while (_local2 != 20) {
messfont[(_local3 + _local2) % 20].backSetFontPosition(0, -15);
_local2++;
}
} else {
messfont[st_mozi_no].drawTypewriterStrings(mess, 0, st_mozi_no * 15);
}
st_mozi_no++;
}
}
Symbol 1222 MovieClip [__Packages.nigoro.lib.duplex.Font.FontBase] Frame 0
class nigoro.lib.duplex.Font.FontBase
{
var mw, mh, zy, obj;
function FontBase (mmc, mc_name) {
var _local3 = mmc.attachMovie(mc_name, mc_name + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
var _local4 = _local3._totalframes;
mw = new Array(_local4);
mh = new Array(_local4);
zy = new Array(_local4);
var _local2 = 0;
while (_local2 != _local4) {
_local3.gotoAndStop(_local2 + 1);
mw[_local2] = _local3._width;
mh[_local2] = _local3._height;
zy[_local2] = (mh[0] / 2) - (mh[_local2] / 2);
_local2++;
}
_local3.removeMovieClip();
_local3 = null;
obj = new Object();
obj[0] = mc_name;
obj[1] = mw;
obj[2] = mh;
obj[3] = zy;
}
function getObject() {
return(obj);
}
}
Symbol 1223 MovieClip [__Packages.nigoro.lib.duplex.Font.SampleFont] Frame 0
class nigoro.lib.duplex.Font.SampleFont
{
var mc, maxMC, delMC, fontspace, size, x_x, x_y, str, mw, mh, zy, R, G, B, A;
function SampleFont (mmc, f) {
mc = mmc;
maxMC = 0;
delMC = new Array();
fontspace = 3;
size = -1;
x_x = 1;
x_y = 1;
str = f.getObject()[0];
mw = f.getObject()[1];
mh = f.getObject()[2];
zy = f.getObject()[3];
R = (G = (B = 0));
A = 255;
}
function drawTypewriterStrings(sts, x, y) {
var _local8 = 0;
var _local6;
var _local3;
var _local5 = x;
var _local4 = y;
var _local9 = str;
var _local13 = sts;
var _local10 = new flash.geom.ColorTransform(0, 0, 0, 0, R, G, B, A);
var _local12;
var _local7 = x_x;
var _local2 = x_y;
_local6 = sts.charAt(_local8);
_local12 = (mw[0] * _local7) + fontspace;
while (_local6 != "") {
_local3 = chengeStringToMovieClip(_local6);
if (_local3[0] == 0) {
_local5 = _local5 + ((mw[0] * _local7) + fontspace);
} else {
delMC[maxMC] = mc.attachMovie(_local9, _local9 + mc.getNextHighestDepth(), mc.getNextHighestDepth());
delMC[maxMC].gotoAndStop(_local3[0]);
delMC[maxMC]._width = delMC[maxMC]._width * _local7;
delMC[maxMC]._height = delMC[maxMC]._height * _local2;
delMC[maxMC]._x = _local5 + (mw[0] / 2);
switch (_local3[1]) {
case 0 :
delMC[maxMC]._y = ((_local4 + (mh[0] * _local2)) - (mh[_local3[0] - 1] * _local2)) + (delMC[maxMC]._height / 2);
break;
case 1 :
delMC[maxMC]._y = _local4 + (delMC[maxMC]._height / 2);
break;
case 2 :
delMC[maxMC]._y = (_local4 + (zy[_local3[0] - 1] * _local2)) + (delMC[maxMC]._height / 2);
break;
case 3 :
delMC[maxMC]._y = (((_local4 + (mh[0] * _local2)) - (mh[_local3[0] - 1] * _local2)) + (delMC[maxMC]._height / 2)) + (2 * _local2);
}
_local5 = _local5 + _local12;
delMC[maxMC].transform.colorTransform = _local10;
maxMC++;
}
_local8++;
_local6 = sts.charAt(_local8);
}
_local10 = null;
return(_local5);
}
function drawStrings(sts, x, y) {
var _local7 = 0;
var _local6;
var _local3;
var _local5 = x;
var _local4 = y;
var _local9 = str;
var _local12 = sts;
var _local10 = new flash.geom.ColorTransform(0, 0, 0, 0, R, G, B, A);
var _local8 = x_x;
var _local2 = x_y;
_local6 = sts.charAt(_local7);
while (_local6 != "") {
_local3 = chengeStringToMovieClip(_local6);
if (_local3[0] == 0) {
_local5 = _local5 + (((mw[0] * _local8) / 3) + fontspace);
} else {
delMC[maxMC] = mc.attachMovie(_local9, _local9 + mc.getNextHighestDepth(), mc.getNextHighestDepth());
delMC[maxMC].gotoAndStop(_local3[0]);
delMC[maxMC]._width = delMC[maxMC]._width * _local8;
delMC[maxMC]._height = delMC[maxMC]._height * _local2;
delMC[maxMC]._x = _local5 + (delMC[maxMC]._width / 2);
switch (_local3[1]) {
case 0 :
delMC[maxMC]._y = ((_local4 + (mh[0] * _local2)) - (mh[_local3[0] - 1] * _local2)) + (delMC[maxMC]._height / 2);
break;
case 1 :
delMC[maxMC]._y = _local4 + (delMC[maxMC]._height / 2);
break;
case 2 :
delMC[maxMC]._y = (_local4 + (zy[_local3[0] - 1] * _local2)) + (delMC[maxMC]._height / 2);
break;
case 3 :
delMC[maxMC]._y = (((_local4 + (mh[0] * _local2)) - (mh[_local3[0] - 1] * _local2)) + (delMC[maxMC]._height / 2)) + (2 * _local2);
}
_local5 = _local5 + (delMC[maxMC]._width + fontspace);
delMC[maxMC].transform.colorTransform = _local10;
maxMC++;
}
_local7++;
_local6 = sts.charAt(_local7);
}
_local10 = null;
return(_local5);
}
function controlFont(fn, tp, dt) {
var _local4 = 0;
switch (tp) {
case "addx" :
delMC[fn]._x = delMC[fn]._x + dt;
break;
case "addy" :
delMC[fn]._y = delMC[fn]._y + dt;
break;
case "addw" :
delMC[fn]._width = delMC[fn]._width + dt;
break;
case "addh" :
delMC[fn]._height = delMC[fn]._height + dt;
break;
case "addr" :
delMC[fn]._rotation = delMC[fn]._rotation + dt;
break;
case "setx" :
delMC[fn]._x = dt;
break;
case "sety" :
delMC[fn]._y = dt;
break;
case "setw" :
delMC[fn]._width = dt;
break;
case "seth" :
delMC[fn]._height = dt;
break;
case "setr" :
delMC[fn]._rotation = dt;
break;
case "getx" :
return(delMC[fn]._x);
case "gety" :
return(delMC[fn]._y);
case "getw" :
return(delMC[fn]._width);
case "geth" :
return(delMC[fn]._height);
case "getr" :
return(delMC[fn]._rotation);
case "chcol" :
var _local5 = new flash.geom.ColorTransform(0, 0, 0, 0, R, G, B, A);
delMC[fn].transform.colorTransform = _local5;
}
return(_local4);
}
function getTotalFont() {
return(maxMC);
}
function allDeleteFont() {
var _local2;
_local2 = 0;
while (_local2 != delMC.length) {
delMC[_local2].removeMovieClip();
delMC[_local2] = null;
_local2++;
}
maxMC = 0;
}
function backSetFontColor(mr, mg, mb, ma) {
var _local4 = new flash.geom.ColorTransform(0, 0, 0, 0, mr, mg, mb, ma);
var _local2;
var _local3 = maxMC;
_local2 = 0;
while (_local2 != _local3) {
delMC[_local2].transform.colorTransform = _local4;
_local2++;
}
}
function backSetFontPosition(addx, addy) {
var _local2;
var _local3 = maxMC;
_local2 = 0;
while (_local2 != _local3) {
delMC[_local2]._x = delMC[_local2]._x + addx;
delMC[_local2]._y = delMC[_local2]._y + addy;
_local2++;
}
}
function chengFont(fn, nst) {
var _local2 = new Array(2);
_local2 = chengeStringToMovieClip(nst);
if (_local2[0] != -1) {
delMC[fn].gotoAndStop(_local2[0]);
}
}
function setFontColor(mr, mg, mb, ma) {
R = mr;
G = mg;
B = mb;
A = ma;
}
function setDefaultFontColor() {
R = 0;
G = 0;
B = 0;
A = 255;
}
function setDefault() {
setDefaultFontColor();
setDefaultFontSize();
setDefaultSpace();
}
function setFontSize(sz) {
size = sz;
x_x = sz / mw[0];
x_y = sz / mh[0];
}
function getFontSize() {
return(size);
}
function setDefaultFontSize() {
size = -1;
x_x = 1;
x_y = 1;
}
function setDefaultSpace() {
fontspace = 3;
}
function setSpace(num) {
fontspace = num;
}
function chengeStringToMovieClip(s) {
var _local1 = new Array(2);
_local1[1] = 0;
switch (s) {
case " " :
_local1[0] = 0;
break;
case "0" :
_local1[0] = 1;
break;
case "1" :
_local1[0] = 2;
break;
case "2" :
_local1[0] = 3;
break;
case "3" :
_local1[0] = 4;
break;
case "4" :
_local1[0] = 5;
break;
case "5" :
_local1[0] = 6;
break;
case "6" :
_local1[0] = 7;
break;
case "7" :
_local1[0] = 8;
break;
case "8" :
_local1[0] = 9;
break;
case "9" :
_local1[0] = 10;
break;
case "!" :
_local1[0] = 11;
break;
case "\"" :
_local1[0] = 12;
_local1[1] = 1;
break;
case "#" :
_local1[0] = 13;
break;
case "$" :
_local1[0] = 14;
break;
case "%" :
_local1[0] = 15;
break;
case "&" :
_local1[0] = 16;
break;
case "'" :
_local1[0] = 17;
_local1[1] = 1;
break;
case "(" :
_local1[0] = 18;
break;
case ")" :
_local1[0] = 19;
break;
case "-" :
_local1[0] = 20;
_local1[1] = 2;
break;
case "=" :
_local1[0] = 21;
_local1[1] = 2;
break;
case "^" :
_local1[0] = 22;
_local1[1] = 1;
break;
case "~" :
_local1[0] = 23;
_local1[1] = 2;
break;
case "\\" :
_local1[0] = 24;
break;
case "|" :
_local1[0] = 25;
break;
case "@" :
_local1[0] = 26;
break;
case "`" :
_local1[0] = 27;
_local1[1] = 1;
break;
case "[" :
_local1[0] = 28;
break;
case "]" :
_local1[0] = 29;
break;
case ";" :
_local1[0] = 30;
break;
case ":" :
_local1[0] = 31;
break;
case "+" :
_local1[0] = 32;
_local1[1] = 2;
break;
case "*" :
_local1[0] = 33;
_local1[1] = 2;
break;
case "," :
_local1[0] = 34;
break;
case "." :
_local1[0] = 35;
break;
case "<" :
_local1[0] = 36;
_local1[1] = 2;
break;
case ">" :
_local1[0] = 37;
_local1[1] = 2;
break;
case "/" :
_local1[0] = 38;
_local1[1] = 2;
break;
case "?" :
_local1[0] = 39;
break;
case "_" :
_local1[0] = 40;
break;
case "A" :
_local1[0] = 41;
break;
case "B" :
_local1[0] = 42;
break;
case "C" :
_local1[0] = 43;
break;
case "D" :
_local1[0] = 44;
break;
case "E" :
_local1[0] = 45;
break;
case "F" :
_local1[0] = 46;
break;
case "G" :
_local1[0] = 47;
break;
case "H" :
_local1[0] = 48;
break;
case "I" :
_local1[0] = 49;
break;
case "J" :
_local1[0] = 50;
break;
case "K" :
_local1[0] = 51;
break;
case "L" :
_local1[0] = 52;
break;
case "M" :
_local1[0] = 53;
break;
case "N" :
_local1[0] = 54;
break;
case "O" :
_local1[0] = 55;
break;
case "P" :
_local1[0] = 56;
break;
case "Q" :
_local1[0] = 57;
break;
case "R" :
_local1[0] = 58;
break;
case "S" :
_local1[0] = 59;
break;
case "T" :
_local1[0] = 60;
break;
case "U" :
_local1[0] = 61;
break;
case "V" :
_local1[0] = 62;
break;
case "W" :
_local1[0] = 63;
break;
case "X" :
_local1[0] = 64;
break;
case "Y" :
_local1[0] = 65;
break;
case "Z" :
_local1[0] = 66;
break;
case "a" :
_local1[0] = 67;
break;
case "b" :
_local1[0] = 68;
break;
case "c" :
_local1[0] = 69;
break;
case "d" :
_local1[0] = 70;
break;
case "e" :
_local1[0] = 71;
break;
case "f" :
_local1[0] = 72;
break;
case "g" :
_local1[0] = 73;
_local1[1] = 3;
break;
case "h" :
_local1[0] = 74;
break;
case "i" :
_local1[0] = 75;
break;
case "j" :
_local1[0] = 76;
_local1[1] = 3;
break;
case "k" :
_local1[0] = 77;
break;
case "l" :
_local1[0] = 78;
break;
case "m" :
_local1[0] = 79;
break;
case "n" :
_local1[0] = 80;
break;
case "o" :
_local1[0] = 81;
break;
case "p" :
_local1[0] = 82;
_local1[1] = 3;
break;
case "q" :
_local1[0] = 83;
_local1[1] = 3;
break;
case "r" :
_local1[0] = 84;
break;
case "s" :
_local1[0] = 85;
break;
case "t" :
_local1[0] = 86;
break;
case "u" :
_local1[0] = 87;
break;
case "v" :
_local1[0] = 88;
break;
case "w" :
_local1[0] = 89;
break;
case "x" :
_local1[0] = 90;
break;
case "y" :
_local1[0] = 91;
_local1[1] = 3;
break;
case "z" :
_local1[0] = 92;
break;
default :
_local1[0] = -1;
trace("err");
}
return(_local1);
}
}
Symbol 1224 MovieClip [__Packages.nigoro.lib.samieru.NigoroFlashManager] Frame 0
class nigoro.lib.samieru.NigoroFlashManager
{
static var BASE_MC, BGM_LAYER, JUKE_BOX, GAME_LEVEL, GAME_ID, PLAYER_NAME, FLASH_UID, MASTER_VOLUME, GAME_INIT_PARAM, ACCESS_STATUS, NIGORO_SESSION_ID;
function NigoroFlashManager () {
}
static function startSystem(base_mc) {
BASE_MC = base_mc;
BGM_LAYER = base_mc.createEmptyMovieClip("music_layer", base_mc.getNextHighestDepth());
JUKE_BOX = new nigoro.lib.samieru.sound.JukeBox(BGM_LAYER);
GAME_LEVEL = 0;
GAME_ID = "";
PLAYER_NAME = "";
SYSTEM_STARTED = true;
}
static function mouseShow() {
MOUSE_SHOW = true;
}
static function mouseHide() {
MOUSE_SHOW = false;
}
static function isMouseShown() {
return(MOUSE_SHOW);
}
static function getSharedObject() {
return(SharedObject.getLocal("nigoro_" + getGameID()));
}
static function getJukeBox() {
return(JUKE_BOX);
}
static function getBaseMC() {
if (BASE_MC) {
return(BASE_MC);
}
return(undefined);
}
static function setFlashUID(uidstr) {
var _local1 = getSharedObject();
FLASH_UID = uidstr;
_local1.data.nigoro_flash_uid = FLASH_UID;
_local1.flush();
}
static function setPlayerName(namestr) {
var _local1 = getSharedObject();
if (nigoro.lib.duplex.Font.WordChecker.isOkey(namestr, nigoro.lib.duplex.Font.Word.NGWord.FarstNG) && (nigoro.lib.duplex.Font.WordChecker.isOkey(namestr, nigoro.lib.duplex.Font.Word.NGWord.HentaiNG))) {
PLAYER_NAME = namestr;
} else {
PLAYER_NAME = "";
}
_local1.data.player_name = PLAYER_NAME;
_local1.flush();
}
static function getFlashUID() {
var _local1 = getSharedObject();
if ((FLASH_UID != undefined) && (FLASH_UID.length > 0)) {
return(FLASH_UID);
}
if (_local1.data.nigoro_flash_uid != undefined) {
FLASH_UID = _local1.data.nigoro_flash_uid;
} else {
_local1.data.nigoro_flash_uid = (FLASH_UID = "");
_local1.flush();
}
return(FLASH_UID);
}
static function getPlayerName() {
var _local1 = getSharedObject();
if ((PLAYER_NAME != undefined) && (PLAYER_NAME.length > 0)) {
return(PLAYER_NAME);
}
if (_local1.data.player_name != undefined) {
PLAYER_NAME = _local1.data.player_name;
} else {
_local1.data.player_name = (PLAYER_NAME = "");
_local1.flush();
}
return(PLAYER_NAME);
}
static function setFlashQuality(qt) {
_quality = qt;
}
static function isSystemStarted() {
return(SYSTEM_STARTED);
}
static function getBgmLayer() {
return(BGM_LAYER);
}
static function setBgmMute(flag) {
var _local1 = new Sound(getBgmLayer());
if (flag) {
_local1.setVolume(0);
} else {
_local1.setVolume(100);
}
}
static function isMute() {
return(MUTE);
}
static function setMute(flag) {
MUTE = flag;
if (MUTE) {
MASTER_SOUND.setVolume(0);
} else {
MASTER_SOUND.setVolume(MASTER_VOLUME);
}
}
static function setMasterVolume(vol) {
if (MUTE) {
MASTER_SOUND.setVolume(0);
} else {
MASTER_SOUND.setVolume(vol);
}
MASTER_VOLUME = vol;
}
static function setSwfFlag(flag) {
OUT_OF_SWF = flag;
}
static function isPause() {
return(PAUSED);
}
static function setPause(pause_flag) {
PAUSED = pause_flag;
}
static function setGameInitParam(pa) {
GAME_INIT_PARAM = pa;
}
static function getGameInitParam() {
return(GAME_INIT_PARAM);
}
static function getGameLevel() {
return(GAME_LEVEL);
}
static function getGameID() {
return(GAME_ID);
}
static function setGameLevel(level) {
GAME_LEVEL = level;
}
static function setGameID(id) {
GAME_ID = id;
}
static function getAccessStatus() {
return(ACCESS_STATUS);
}
static function setAccessStatus(status) {
ACCESS_STATUS = status;
}
static function checkGameClear() {
var _local2 = new nigoro.lib.samieru.event.GameClearListener();
var _local1 = new LoadVars();
_local1.id = GAME_ID;
_local1.level = GAME_LEVEL;
ACCESS_STATUS = 1;
NIGORO_SESSION_ID = "";
_local1.sendAndLoad("/register/clearcheck.php", _local2, "POST");
}
static function setNigoroSession(sid) {
NIGORO_SESSION_ID = sid;
}
static function getNigoroSession() {
return(NIGORO_SESSION_ID);
}
static var MASTER_SOUND = new Sound();
static var OUT_OF_SWF = false;
static var PAUSED = false;
static var ACCESS_STATUS_OK = 0;
static var ACCESS_STATUS_RUNNING = 1;
static var ACCESS_STATUS_ERROR = 2;
static var SYSTEM_STARTED = false;
static var MUTE = false;
static var MOUSE_SHOW = true;
}
Symbol 1225 MovieClip [__Packages.nigoro.lib.samieru.sound.JukeBox] Frame 0
class nigoro.lib.samieru.sound.JukeBox
{
var base_mc, music_array, current_number, fade_out_tgt, fade_in_tgt, fade_out_spd, fade_out, fade_in_spd, fade_in;
function JukeBox (bgm_layer) {
base_mc = bgm_layer;
music_array = new Array();
current_number = -1;
fade_out_tgt = -1;
fade_in_tgt = -1;
}
function setMusic(music_id, loop_point, loop_flag) {
var _local2 = new nigoro.lib.samieru.sound.MusicStructure(base_mc, music_id, loop_point, loop_flag);
music_array.push(_local2);
}
function fadeOut(target) {
var _local3 = nigoro.lib.samieru.sound.MusicStructure(music_array[target]);
var _local2 = _local3.getVolume();
_local2 = _local2 - fade_out_spd;
if ((_local2 <= 0) || (!_local3.isPlaying())) {
_local2 = 0;
_local3.stop();
fade_out = -1;
}
_local3.setVolume(_local2);
}
function fadeIn(target) {
var _local3 = nigoro.lib.samieru.sound.MusicStructure(music_array[target]);
var _local2 = _local3.getVolume();
_local2 = _local2 + fade_in_spd;
if (_local2 >= 100) {
_local2 = 100;
fade_in = -1;
current_number = fade_in_tgt;
}
_local3.setVolume(_local2);
}
function startFadeOut(target, speed) {
if (speed != undefined) {
fade_out_spd = speed;
} else {
fade_out_spd = 10;
}
if (target != undefined) {
fade_out_tgt = target;
} else {
fade_out_tgt = current_number;
}
}
function stopFadeOut() {
fade_out_tgt = -1;
}
function stopFadeIn() {
fade_in_tgt = -1;
}
function startFadeIn(target, speed) {
var _local2;
if (speed != undefined) {
fade_in_spd = speed;
} else {
fade_in_spd = 10;
}
if (target != undefined) {
fade_in_tgt = target;
} else {
fade_in_tgt = current_number;
}
_local2 = nigoro.lib.samieru.sound.MusicStructure(music_array[fade_in_tgt]);
_local2.setVolume(0);
_local2.play();
}
function startCrossFade(out_target, in_target, out_speed, in_speed) {
var _local2;
if (out_speed != undefined) {
fade_out_spd = out_speed;
} else {
fade_out_spd = 10;
}
if (in_speed != undefined) {
fade_in_spd = in_speed;
} else {
fade_in_spd = 10;
}
fade_out_tgt = out_target;
fade_in_tgt = in_target;
_local2 = nigoro.lib.samieru.sound.MusicStructure(music_array[fade_in_tgt]);
_local2.setVolume(0);
_local2.play();
}
function isPlaying(music_number) {
var _local2 = nigoro.lib.samieru.sound.MusicStructure(music_array[current_number]);
return(_local2.isPlaying());
}
function play(music_number) {
var _local2;
if (music_number == undefined) {
music_number = current_number;
} else if (music_number != current_number) {
_local2 = nigoro.lib.samieru.sound.MusicStructure(music_array[current_number]);
if (_local2.isPlaying()) {
_local2.stop();
}
}
_local2 = nigoro.lib.samieru.sound.MusicStructure(music_array[music_number]);
current_number = music_number;
if (!_local2.isPlaying()) {
_local2.setVolume(100);
_local2.play();
}
}
function stop(music_number) {
if (music_number == undefined) {
music_number = current_number;
}
var _local2 = nigoro.lib.samieru.sound.MusicStructure(music_array[music_number]);
if (_local2.isPlaying()) {
_local2.stop();
}
}
function getCurrentNumber() {
return(current_number);
}
function stopAll() {
var _local2 = 0;
while (_local2 < music_array.length) {
stop(_local2);
_local2++;
}
current_number = -1;
fade_out_tgt = -1;
fade_in_tgt = -1;
}
function onEnterFrame() {
if (fade_out_tgt >= 0) {
fadeOut(fade_out_tgt);
}
if (fade_in_tgt >= 0) {
fadeIn(fade_in_tgt);
}
}
}
Symbol 1226 MovieClip [__Packages.nigoro.lib.samieru.sound.MusicStructure] Frame 0
class nigoro.lib.samieru.sound.MusicStructure
{
var music, volume, loop_flg;
function MusicStructure (base_mc, music_id, loop_point, loop_flag) {
var _local2 = base_mc.createEmptyMovieClip(music_id, base_mc.getNextHighestDepth());
music = new nigoro.lib.samieru.sound.MusicPlayer(_local2);
music.attachSound(music_id);
music.setLoopPoint(loop_point);
volume = 100;
if (loop_flag) {
loop_flg = loop_flag;
} else {
loop_flg = false;
}
}
function play() {
music.setVolume(volume);
if (loop_flg) {
music.start(0);
} else {
music.startPlay(1);
}
}
function stop() {
music.stop();
}
function setVolume(vol) {
music.setVolume(vol);
}
function getVolume() {
return(music.getVolume());
}
function isPlaying() {
return(music.isPlaying());
}
}
Symbol 1227 MovieClip [__Packages.nigoro.lib.samieru.sound.MusicPlayer] Frame 0
class nigoro.lib.samieru.sound.MusicPlayer extends Sound
{
var loop_point, playing, vol, count, start_point, loops, lp_cnt;
function MusicPlayer (mc) {
super(mc);
loop_point = 0;
playing = false;
}
function initPlay() {
vol = 100;
count = 0;
start_point = 0;
playing = false;
}
function isPlaying() {
return(playing);
}
function setLoopPoint(ms) {
loop_point = ms;
}
function startPlay(lp) {
loops = lp;
lp_cnt = 0;
setVolume(vol);
start(0);
playing = true;
}
function fadeOut(speed) {
vol = vol - speed;
if (vol < 0) {
vol = 0;
}
if (vol > 0) {
setVolume(vol);
} else {
stop();
}
}
function fadeIn(speed) {
setVolume(vol + speed);
}
function onSoundComplete() {
if (loops > 0) {
if ((++lp_cnt) >= loops) {
stop();
return(undefined);
}
}
start(loop_point);
}
function start(point) {
playing = true;
super.start(point);
}
function stop() {
playing = false;
super.stop();
}
function setVolume(volume) {
if (volume < 0) {
volume = 0;
}
if (volume > 100) {
volume = 100;
}
vol = volume;
super.setVolume(volume);
}
function getVolume() {
return(super.getVolume());
}
}
Symbol 1228 MovieClip [__Packages.nigoro.lib.duplex.Font.WordChecker] Frame 0
class nigoro.lib.duplex.Font.WordChecker
{
function WordChecker () {
}
static function isOkey(st, star) {
var _local3 = st.toUpperCase();
var _local1;
_local1 = 0;
while (_local1 != star.length) {
if (_local3.indexOf(star[_local1]) != -1) {
return(false);
}
_local1++;
}
return(true);
}
}
Symbol 1229 MovieClip [__Packages.nigoro.lib.duplex.Font.Word.NGWord] Frame 0
class nigoro.lib.duplex.Font.Word.NGWord
{
function NGWord () {
}
static var FarstNG = ["KATAWA", "TUNBO", "MEKURA", "KITIGAI", "KICHIGAI", "HAKUTI", "OSI", "OSHI", "TISHOU", "CHISHOU", "CHISYOU", "CUNT", "KUNT", "FUCK", "FUK", "SHIT", "BITCH", "BASTARD", "BONER", "DICK", "PRICK", "PUSSY", "SLUT", "WHORE", "DICKWAD", "FUCKFACE", "ASS", "ASSHOLE", "ASSHAT", "PIMP", "NIGGER", "KIKE", "GOOK", "BITCHSLAP", "COON", "ASSWIPE", "FUDGE", "BUTT", "GAY", "RAPE", "FAG", "FAGGOT", "SPIC", "DYKE", "BUTCH", "MUNCH", "TISYOU"];
static var HentaiNG = ["SEX", "CHINPO", "CHINPOU", "MANKO", "OMANKO", "ANARU"];
}
Symbol 1230 MovieClip [__Packages.nigoro.lib.samieru.event.GameClearListener] Frame 0
class nigoro.lib.samieru.event.GameClearListener extends LoadVars
{
var NIGORO;
function GameClearListener () {
super();
}
function onLoad(success) {
if (success) {
if ((NIGORO != "") && (NIGORO != "ERROR")) {
nigoro.lib.samieru.NigoroFlashManager.setNigoroSession(NIGORO);
nigoro.lib.samieru.NigoroFlashManager.setAccessStatus(nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_OK);
} else {
nigoro.lib.samieru.NigoroFlashManager.setAccessStatus(nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_ERROR);
}
} else {
nigoro.lib.samieru.NigoroFlashManager.setAccessStatus(nigoro.lib.samieru.NigoroFlashManager.ACCESS_STATUS_ERROR);
}
}
}
Symbol 1231 MovieClip [__Packages.sorce.task.OYA] Frame 0
class sorce.task.OYA
{
var UID;
function OYA () {
UID = 0;
}
function frun(tc) {
return(true);
}
}
Symbol 1232 MovieClip [__Packages.sorce.task.Judge] Frame 0
class sorce.task.Judge extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, count, spx, b_no;
function Judge (mmc, t, x, y, s) {
super();
mc = mmc.attachMovie("judgeMark", "judgeMark" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc.gotoAndStop(2);
mc.farstMC.scondMC.gotoAndStop(t);
mc._x = x;
mc._y = y;
count = 0;
spx = s;
}
function init(no, tc) {
b_no = tc.checkData("banchou", "no");
}
function run(tc) {
var _local2 = [0, 0, 0];
var _local3;
_local2 = tc.acssesTask(b_no, _local2);
_local3 = (_local2[0] * spx) + _local2[0];
mc._x = mc._x - _local3;
count++;
if (count > 30) {
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1233 MovieClip [__Packages.sorce.task.bgmFade] Frame 0
class sorce.task.bgmFade extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var bgm1, bgm2, fade, vol, obj, type;
function bgmFade (ob, nb, f, o, t) {
super();
bgm1 = ob;
bgm2 = nb;
fade = f;
vol = 100;
obj = o;
type = t;
}
function init(no, tc) {
}
function run(tc) {
vol = vol - fade;
if (vol < 1) {
bgm1.stop();
bgm1.setVolume(100);
if (type == 0) {
obj.systemIO(4, bgm2);
} else {
obj.systemIO(4, bgm2);
}
return(false);
}
bgm1.setVolume(vol);
return(true);
}
function finalize(tc) {
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1234 MovieClip [__Packages.sorce.task.Ranking] Frame 0
class sorce.task.Ranking extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, tmc, myalp, st, IO, now_level, smpf, fb, x, y, sn, likep, block_f, but, dnet;
function Ranking (mmc, o, lv) {
super();
var _local3;
mc = mmc.attachMovie("rankingMC", "rankingMC" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 30;
mc._y = 10;
tmc = mmc;
mc.stop();
mc.gotoAndStop(2);
mc.BCLOSE.useHandCursor = false;
mc.BCLOSE.enabled = false;
mc._alpha = 0;
myalp = 0;
st = 0;
IO = o;
now_level = lv;
smpf = new Array(60);
fb = new nigoro.lib.duplex.Font.FontBase(mc, "NigoroDefaultFont");
_local3 = 0;
while (_local3 != 60) {
smpf[_local3] = new nigoro.lib.duplex.Font.SampleFont(mc, fb);
smpf[_local3].setSpace(2);
smpf[_local3].setFontColor(255, 255, 255, 255);
_local3++;
}
x = [0, 46.5, 168.2, 246.9, 350, 407.2];
_local3 = 0;
while (_local3 != 6) {
x[_local3] = x[_local3] + 32;
_local3++;
}
y = [124, 146.4, 168.8, 191.2, 213.6, 236, 258.4, 280.8, 303.2, 326];
_local3 = 0;
while (_local3 != 10) {
y[_local3] = y[_local3] + 2;
_local3++;
}
sn = [" 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "10"];
likep = new Array(10);
_local3 = 0;
while (_local3 != 10) {
likep[_local3] = null;
_local3++;
}
block_f = false;
}
function init(no, tc) {
tc.regstData("ranking", "no", no);
but = new sorce.task.ButtonLight(mc, now_level);
tc.setTask(but);
}
function run(tc) {
var _local2;
var _local3;
switch (st) {
case 0 :
myalp = myalp + 3;
if (myalp >= 100) {
mc.BCLOSE.useHandCursor = true;
mc.BCLOSE.enabled = true;
myalp = 100;
st = 1;
}
mc._alpha = myalp;
break;
case 1 :
dnet = new sorce.task.Net(tmc, now_level, 0, 0, 0, 0, 0, null, 1, IO.getDebugText());
block_f = true;
st = 2;
break;
case 2 :
dnet.run();
if (dnet.getEnd()) {
block_f = false;
if (dnet.isError()) {
if (dnet.errorMess() != 201) {
mc.gotoAndStop(4);
} else {
mc.gotoAndStop(3);
}
} else {
mc.gotoAndStop(1);
_local2 = 0;
var _local5 = dnet.getObject();
var _local6 = _local5.length - 1;
var _local4;
_local3 = 0;
while (_local3 != 10) {
if (_local3 > _local6) {
smpf[_local2].drawTypewriterStrings(sn[_local3], x[Math.floor(_local2 % 6)], y[_local3]);
_local2++;
smpf[_local2].drawTypewriterStrings("--- NO DATA ---", x[Math.floor(_local2 % 6)], y[_local3]);
_local2 = _local2 + 5;
} else {
_local4 = _local5[_local3];
smpf[_local2].drawTypewriterStrings(sn[_local3], x[Math.floor(_local2 % 6)], y[_local3]);
_local2++;
smpf[_local2].drawTypewriterStrings(nigoro.lib.duplex.Math.Arithmetic.numToString(Number(_local4.C_SCORE), 7, "0"), x[Math.floor(_local2 % 6)], y[_local3]);
_local2++;
smpf[_local2].drawTypewriterStrings(nigoro.lib.duplex.Math.Arithmetic.numToString(Number(_local4.C_FINISH_LEVEL) + 1, 2, "0"), x[Math.floor(_local2 % 6)], y[_local3]);
_local2++;
smpf[_local2].drawTypewriterStrings(nigoro.lib.duplex.Math.Arithmetic.numToString(Number(_local4.C_MAX_COMBO), 3, "0"), x[Math.floor(_local2 % 6)], y[_local3]);
_local2++;
likep[Math.floor(_local2 / 6)] = mc.attachMovie("rankingpantu", "rankingpantu" + mc.getNextHighestDepth(), mc.getNextHighestDepth());
likep[Math.floor(_local2 / 6)]._x = 339.3;
likep[Math.floor(_local2 / 6)]._y = y[_local3];
likep[Math.floor(_local2 / 6)].LVPANTU.gotoAndStop(Number(_local4.C_PANTS));
smpf[_local2].drawTypewriterStrings(nigoro.lib.duplex.Math.Arithmetic.numToString(Number(_local4.C_PANTS_CNT), 2, "0"), x[Math.floor(_local2 % 6)], y[_local3]);
_local2++;
smpf[_local2].drawTypewriterStrings(_local4.C_NAME, x[Math.floor(_local2 % 6)], y[_local3]);
_local2++;
}
_local3++;
}
}
st = 12;
}
break;
case 12 :
break;
case 100 :
myalp = myalp - 3;
if (myalp <= 0) {
IO.rankingIO(2, 0);
return(false);
}
mc._alpha = myalp;
}
return(true);
}
function deleteFont() {
var _local2;
_local2 = 0;
while (_local2 != 10) {
if (likep[_local2] != null) {
likep[_local2].removeMovieClip();
likep[_local2] = null;
}
_local2++;
}
_local2 = 0;
while (_local2 != 60) {
smpf[_local2].allDeleteFont();
_local2++;
}
}
function finalize(tc) {
var _local2;
mc.removeMovieClip();
mc = null;
tc.elaseData("ranking");
_local2 = 0;
while (_local2 != 60) {
smpf[_local2].allDeleteFont();
smpf[_local2] = null;
_local2++;
}
fb = null;
tmc = null;
but = null;
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
st = 100;
mc.BCLOSE.useHandCursor = false;
mc.BCLOSE.enabled = false;
break;
case 1 :
if (block_f) {
break;
}
if (now_level == mess[1]) {
break;
}
but.setPos(mess[1]);
now_level = mess[1];
st = 1;
mc.gotoAndStop(2);
deleteFont();
IO.soundIO(14);
IO.rankingIO(4, now_level);
}
return(mess);
}
}
Symbol 1235 MovieClip [__Packages.sorce.task.Net] Frame 0
class sorce.task.Net
{
var debug, dbobj, start_level, end_level, score, lovepantu_no, lovepantu_num, max_comb, user_name, erra, endflag, myrank, no, sc_block, try_count, max_try, time_out, time_count, erramess;
function Net (mc, sl, el, sc, lp, lpn, max, user, wr, db) {
var _local11;
debug = true;
dbobj = db;
start_level = sl;
end_level = el;
score = sc;
lovepantu_no = lp;
lovepantu_num = lpn;
max_comb = max;
user_name = user;
if (dbobj != null) {
dbobj.setStateString((((("startLevel = " + start_level) + " endLevel = ") + end_level) + " pantu = ") + lovepantu_no);
}
if (dbobj != null) {
dbobj.setStateString((("pantu num = " + lovepantu_num) + " maxcombo = ") + max_comb);
}
erra = false;
endflag = false;
myrank = -1;
if (wr == 0) {
no = 0;
if (dbobj != null) {
dbobj.setStateString("Open write access");
}
} else {
no = 11;
if (dbobj != null) {
dbobj.setStateString("Open read access");
}
}
}
function run() {
switch (no) {
case 0 :
nigoro.lib.samieru.NigoroFlashManager.setPlayerName(user_name);
sc_block = new nigoro.lib.samieru.ranking.ScoreBlockSystem();
no = 2;
break;
case 2 :
try_count = 0;
max_try = 5;
time_out = 500;
time_count = 0;
no = 3;
break;
case 3 :
if ((++try_count) > max_try) {
if (dbobj != null) {
dbobj.setStateString("Try count is over");
}
no = 505;
break;
}
if (dbobj != null) {
dbobj.setStateString("TryCount:" + try_count);
}
time_count = 0;
sc_block.init();
no = 4;
break;
case 4 :
if ((++time_count) > time_out) {
if (dbobj != null) {
dbobj.setStateString("Wait time is over");
}
no = 3;
} else {
no = 5;
break;
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 4;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
no = 6;
break;
default :
no = 3;
}
break;
var _local3 = new sorce.ranking.MekuriRankingData(start_level, end_level, score, lovepantu_no, lovepantu_num, max_comb, sc_block.getSessionID());
sc_block.setRanking(_local3.getObject());
time_count = 0;
no = 7;
break;
if ((++time_count) > time_out) {
if (dbobj != null) {
dbobj.setStateString("Wait time is over");
}
no = 3;
} else {
no = 8;
break;
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 7;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
if (dbobj != null) {
dbobj.setStateString("god work is end");
}
no = 9;
var _local4 = sc_block.getData("rank");
myrank = Number(_local4);
endflag = true;
break;
default :
if (dbobj != null) {
dbobj.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
}
no = 3;
}
break;
no = 10;
break;
break;
sc_block = new nigoro.lib.samieru.ranking.ScoreBlockSystem();
try_count = 0;
max_try = 5;
time_out = 500;
time_count = 0;
no = 12;
break;
if ((++try_count) > max_try) {
if (dbobj != null) {
dbobj.setStateString("Try count is over");
}
no = 506;
} else {
if (dbobj != null) {
dbobj.setStateString("TryCount:" + try_count);
}
time_count = 0;
var _local2 = new Object();
_local2.level = start_level.toString();
if (dbobj != null) {
dbobj.setStateString("get Rnking DATA Start");
}
sc_block.getRanking(_local2, 0, 10);
if (dbobj != null) {
dbobj.setStateString("get Rnking DATA End");
}
no = 13;
break;
if ((++time_count) > time_out) {
if (dbobj != null) {
dbobj.setStateString("Wait time is over");
}
no = 12;
} else {
no = 14;
break;
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
if (dbobj != null) {
dbobj.setStateString("ACCESS_CONNECT");
}
no = 13;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
if (dbobj != null) {
dbobj.setStateString("god work is end");
}
no = 15;
endflag = true;
break;
default :
if (dbobj != null) {
dbobj.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
}
no = 12;
}
break;
no = 16;
break;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
endflag = true;
}
}
}
}
case 5 :
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 4;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
no = 6;
break;
default :
no = 3;
}
break;
case 6 :
var _local3 = new sorce.ranking.MekuriRankingData(start_level, end_level, score, lovepantu_no, lovepantu_num, max_comb, sc_block.getSessionID());
sc_block.setRanking(_local3.getObject());
time_count = 0;
no = 7;
break;
case 7 :
if ((++time_count) > time_out) {
if (dbobj != null) {
dbobj.setStateString("Wait time is over");
}
no = 3;
} else {
no = 8;
break;
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 7;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
if (dbobj != null) {
dbobj.setStateString("god work is end");
}
no = 9;
var _local4 = sc_block.getData("rank");
myrank = Number(_local4);
endflag = true;
break;
default :
if (dbobj != null) {
dbobj.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
}
no = 3;
}
break;
no = 10;
break;
break;
sc_block = new nigoro.lib.samieru.ranking.ScoreBlockSystem();
try_count = 0;
max_try = 5;
time_out = 500;
time_count = 0;
no = 12;
break;
if ((++try_count) > max_try) {
if (dbobj != null) {
dbobj.setStateString("Try count is over");
}
no = 506;
} else {
if (dbobj != null) {
dbobj.setStateString("TryCount:" + try_count);
}
time_count = 0;
var _local2 = new Object();
_local2.level = start_level.toString();
if (dbobj != null) {
dbobj.setStateString("get Rnking DATA Start");
}
sc_block.getRanking(_local2, 0, 10);
if (dbobj != null) {
dbobj.setStateString("get Rnking DATA End");
}
no = 13;
break;
if ((++time_count) > time_out) {
if (dbobj != null) {
dbobj.setStateString("Wait time is over");
}
no = 12;
} else {
no = 14;
break;
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
if (dbobj != null) {
dbobj.setStateString("ACCESS_CONNECT");
}
no = 13;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
if (dbobj != null) {
dbobj.setStateString("god work is end");
}
no = 15;
endflag = true;
break;
default :
if (dbobj != null) {
dbobj.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
}
no = 12;
}
break;
no = 16;
break;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
endflag = true;
}
}
}
case 8 :
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
no = 7;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
if (dbobj != null) {
dbobj.setStateString("god work is end");
}
no = 9;
var _local4 = sc_block.getData("rank");
myrank = Number(_local4);
endflag = true;
break;
default :
if (dbobj != null) {
dbobj.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
}
no = 3;
}
break;
case 9 :
no = 10;
break;
case 10 :
break;
case 11 :
sc_block = new nigoro.lib.samieru.ranking.ScoreBlockSystem();
try_count = 0;
max_try = 5;
time_out = 500;
time_count = 0;
no = 12;
break;
case 12 :
if ((++try_count) > max_try) {
if (dbobj != null) {
dbobj.setStateString("Try count is over");
}
no = 506;
} else {
if (dbobj != null) {
dbobj.setStateString("TryCount:" + try_count);
}
time_count = 0;
var _local2 = new Object();
_local2.level = start_level.toString();
if (dbobj != null) {
dbobj.setStateString("get Rnking DATA Start");
}
sc_block.getRanking(_local2, 0, 10);
if (dbobj != null) {
dbobj.setStateString("get Rnking DATA End");
}
no = 13;
break;
if ((++time_count) > time_out) {
if (dbobj != null) {
dbobj.setStateString("Wait time is over");
}
no = 12;
} else {
no = 14;
break;
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
if (dbobj != null) {
dbobj.setStateString("ACCESS_CONNECT");
}
no = 13;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
if (dbobj != null) {
dbobj.setStateString("god work is end");
}
no = 15;
endflag = true;
break;
default :
if (dbobj != null) {
dbobj.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
}
no = 12;
}
break;
no = 16;
break;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
endflag = true;
}
}
case 13 :
if ((++time_count) > time_out) {
if (dbobj != null) {
dbobj.setStateString("Wait time is over");
}
no = 12;
} else {
no = 14;
break;
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
if (dbobj != null) {
dbobj.setStateString("ACCESS_CONNECT");
}
no = 13;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
if (dbobj != null) {
dbobj.setStateString("god work is end");
}
no = 15;
endflag = true;
break;
default :
if (dbobj != null) {
dbobj.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
}
no = 12;
}
break;
no = 16;
break;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
endflag = true;
}
case 14 :
switch (nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_CONNECT :
if (dbobj != null) {
dbobj.setStateString("ACCESS_CONNECT");
}
no = 13;
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
if (dbobj != null) {
dbobj.setStateString("god work is end");
}
no = 15;
endflag = true;
break;
default :
if (dbobj != null) {
dbobj.setStateString((("Erra NO:" + nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus()) + " Time count:") + time_count);
}
no = 12;
}
break;
case 15 :
no = 16;
break;
case 16 :
break;
case 505 :
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
case 506 :
erramess = nigoro.lib.samieru.ranking.ScoreBlockSystem.getStatus();
erra = true;
no = 507;
break;
case 507 :
endflag = true;
}
return(true);
}
function getRank() {
return(myrank);
}
function errorMess() {
return(erramess);
}
function isError() {
return(erra);
}
function getEnd() {
return(endflag);
}
function getObject() {
return(sc_block.getRankingArray());
}
function finalize(tc) {
}
}
Symbol 1236 MovieClip [__Packages.nigoro.lib.samieru.ranking.ScoreBlockSystem] Frame 0
class nigoro.lib.samieru.ranking.ScoreBlockSystem
{
static var er_message, access_status;
var lvars, score_session, gvars, data_str;
function ScoreBlockSystem () {
setStatus(ACCESS_NONE);
}
static function setERMessage(st) {
er_message = st;
}
static function getERMessage() {
return(er_message);
}
static function setStatus(st) {
var _local1 = access_status;
access_status = st;
return(_local1);
}
function init() {
var _local2 = new LoadVars();
lvars = new nigoro.lib.samieru.ranking.event.ScoreBlockListener();
er_message = "";
if (nigoro.lib.samieru.NigoroFlashManager.getPlayerName() != "") {
_local2.game_id = nigoro.lib.samieru.NigoroFlashManager.getGameID();
_local2.name = nigoro.lib.samieru.NigoroFlashManager.getPlayerName();
if (nigoro.lib.samieru.NigoroFlashManager.getFlashUID() != "") {
_local2.fuid = nigoro.lib.samieru.NigoroFlashManager.getFlashUID();
} else {
_local2.fuid = "";
}
score_session = "";
setStatus(ACCESS_CONNECT);
_local2.sendAndLoad("/ranking/init.php", lvars, "POST");
} else {
setStatus(ACCESS_NODATA);
}
}
function getSessionID() {
return(lvars.SCSYS);
}
function setRanking(data_obj) {
var _local3 = new LoadVars();
for (var _local4 in data_obj) {
_local3[_local4] = data_obj[_local4];
}
_local3.CHECKCODE = makeCheckCode(lvars.SCSYS);
_local3.SCSYS = lvars.SCSYS;
lvars = new nigoro.lib.samieru.ranking.event.ScoreBlockListener();
setStatus(ACCESS_CONNECT);
_local3.sendAndLoad("/ranking/set.php", lvars, "POST");
}
function getRanking(data_obj, page, max) {
var _local2 = new LoadVars();
gvars = new nigoro.lib.samieru.ranking.event.ScoreBlockGetListener();
for (var _local4 in data_obj) {
_local2[_local4] = data_obj[_local4];
}
_local2.game_id = nigoro.lib.samieru.NigoroFlashManager.getGameID();
_local2._PAGENUMBER_ = page;
_local2._MAXCOUNT_ = max;
data_str = "";
setStatus(ACCESS_CONNECT);
_local2.sendAndLoad("/ranking/get.php", gvars, "POST");
}
function getRankingArray() {
return(gvars.getRankingArray());
}
function getData(key) {
return(lvars.getData(key));
}
function getLoadString() {
return(lvars.getLoadString());
}
static function getStatus() {
return(access_status);
}
function getDataString() {
return(gvars.data_str);
}
function makeCheckCode(session) {
var _local2 = 0;
var _local3 = nigoro.lib.samieru.NigoroFlashManager.getGameID();
var _local4 = nigoro.lib.samieru.NigoroFlashManager.getPlayerName();
var _local6;
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = _local2 + _local3.charCodeAt(_local1);
_local1++;
}
_local1 = 0;
while (_local1 < _local4.length) {
_local2 = _local2 + _local4.charCodeAt(_local1);
_local1++;
}
_local1 = 0;
while (_local1 < session.length) {
_local2 = _local2 + session.charCodeAt(_local1);
_local1++;
}
_local2 = _local2 | 598;
_local6 = (new libs.MD5(_local2.toString())).value;
return(_local6);
}
static var ACCESS_NONE = 0;
static var ACCESS_CONNECT = 1;
static var ACCESS_OK = 200;
static var ACCESS_NODATA = 201;
static var ACCESS_ERROR = 500;
static var ACCESS_CONNECT_ERROR = 501;
static var ACCESS_DB_ERROR = 502;
}
Symbol 1237 MovieClip [__Packages.nigoro.lib.samieru.ranking.event.ScoreBlockListener] Frame 0
class nigoro.lib.samieru.ranking.event.ScoreBlockListener extends LoadVars
{
var load_str, SCSYS, code, session_id, fuid, message;
function ScoreBlockListener () {
super();
load_str = "";
SCSYS = "";
}
function onLoad(chk) {
if (chk) {
switch (Number(code)) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
if ((session_id != undefined) && (session_id != "")) {
SCSYS = session_id;
}
if ((fuid != undefined) && (fuid != "")) {
nigoro.lib.samieru.NigoroFlashManager.setFlashUID(fuid);
}
nigoro.lib.samieru.ranking.ScoreBlockSystem.setERMessage(message);
nigoro.lib.samieru.ranking.ScoreBlockSystem.setStatus(nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK);
break;
default :
SCSYS = "";
nigoro.lib.samieru.ranking.ScoreBlockSystem.setERMessage(message);
nigoro.lib.samieru.ranking.ScoreBlockSystem.setStatus(nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_ERROR);
}
} else {
SCSYS = "";
nigoro.lib.samieru.ranking.ScoreBlockSystem.setERMessage("Undefined Error");
nigoro.lib.samieru.ranking.ScoreBlockSystem.setStatus(nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_ERROR);
}
}
function getData(key) {
return(String(this[key]));
}
function getLoadString() {
return(load_str);
}
}
Symbol 1238 MovieClip [__Packages.nigoro.lib.samieru.ranking.event.ScoreBlockGetListener] Frame 0
class nigoro.lib.samieru.ranking.event.ScoreBlockGetListener extends LoadVars
{
var code, data_str, data;
function ScoreBlockGetListener () {
super();
}
function onLoad(chk) {
if (chk) {
switch (Number(code)) {
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK :
nigoro.lib.samieru.ranking.ScoreBlockSystem.setStatus(nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_OK);
data_str = unescape(data);
break;
case nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_NODATA :
nigoro.lib.samieru.ranking.ScoreBlockSystem.setStatus(nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_NODATA);
data_str = "no data";
break;
default :
nigoro.lib.samieru.ranking.ScoreBlockSystem.setStatus(nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_ERROR);
data_str = "ERROR " + code;
}
} else {
nigoro.lib.samieru.ranking.ScoreBlockSystem.setStatus(nigoro.lib.samieru.ranking.ScoreBlockSystem.ACCESS_ERROR);
}
}
function getRankingArray() {
var _local10 = new Array();
if (data_str != "") {
var _local9 = data_str.split(newline);
var _local7 = 0;
while (_local7 < _local9.length) {
if (_local9[_local7] != "") {
var _local8 = new Object();
var _local6 = _local9[_local7].toString().split("&");
var _local2 = 0;
while (_local2 < _local6.length) {
var _local3 = _local6[_local2].toString().split("=");
var _local5 = unescape(_local3[0]);
var _local4 = unescape(_local3[1]);
_local8[_local5] = _local4;
_local2++;
}
_local10.push(_local8);
}
_local7++;
}
}
return(_local10);
}
}
Symbol 1239 MovieClip [__Packages.libs.MD5] Frame 0
class libs.MD5
{
var g_dataArray;
function MD5 (seed) {
g_dataArray = MD5_hash(seed);
}
function toString() {
var _local2;
var _local4;
var _local3;
_local4 = "";
_local2 = 0;
while (_local2 < 16) {
_local3 = g_dataArray[_local2];
_local4 = _local4 + "0123456789abcdef".charAt((_local3 >> 4) & 15);
_local4 = _local4 + "0123456789abcdef".charAt(_local3 & 15);
_local2++;
}
return(_local4);
}
function get value() {
return(toString());
}
function MD5_F(x, y, z) {
return((x & y) | ((~x) & z));
}
function MD5_G(x, y, z) {
return((x & z) | (y & (~z)));
}
function MD5_H(x, y, z) {
return((x ^ y) ^ z);
}
function MD5_I(x, y, z) {
return(y ^ (x | (~z)));
}
function MD5_pack(n32) {
return(new Array(n32 & 255, (n32 >>> 8) & 255, (n32 >>> 16) & 255, (n32 >>> 24) & 255));
}
function MD5_hash(seed) {
var _local13;
var _local11;
var _local9;
var _local2;
var _local3;
var _local12;
var _local7 = new Array(1732584193, 4023233417, 2562383102, 271733878);
var _local4 = new Array(0, 1, 2, 3);
var _local10 = new Array(16);
var _local8 = new Array(4);
var _local5 = new Array();
var _local6 = 0;
_local2 = 0;
while (_local2 < seed.length) {
_local3 = seed.charCodeAt(_local2);
if (_local3 <= 127) {
_local5[_local6++] = _local3;
} else if (_local3 <= 2047) {
_local5[_local6++] = ((_local3 >> 6) & 63) | 192;
_local5[_local6++] = (_local3 & 63) | 128;
} else if (_local3 <= 65535) {
_local5[_local6++] = ((_local3 >> 12) & 15) | 224;
_local5[_local6++] = ((_local3 >> 6) & 63) | 128;
_local5[_local6++] = (_local3 & 63) | 128;
} else {
_local5[_local6++] = ((_local3 >> 18) & 7) | 240;
_local5[_local6++] = ((_local3 >> 12) & 63) | 128;
_local5[_local6++] = ((_local3 >> 6) & 63) | 128;
_local5[_local6++] = (_local3 & 63) | 128;
}
_local2++;
}
var _local15 = _local5.length;
var _local17 = _local15 & 63;
var _local16 = ((_local17 < 56) ? (56 - _local17) : (120 - _local17));
if (_local16 > 0) {
_local5[_local6++] = 128;
_local2 = 0;
while (_local2 < (_local16 - 1)) {
_local5[_local6] = 0;
_local2++;
_local6++;
}
}
_local5 = _local5.concat(MD5_pack(_local15 * 8), MD5_pack(0));
_local15 = _local15 + (_local16 + 8);
_local12 = 0;
while (_local12 < _local15) {
_local2 = 0;
_local3 = _local12;
while (_local2 < 16) {
_local10[_local2] = ((_local5[_local3] | (_local5[_local3 + 1] << 8)) | (_local5[_local3 + 2] << 16)) | (_local5[_local3 + 3] << 24);
_local2++;
_local3 = _local3 + 4;
}
_local2 = 0;
while (_local2 < 4) {
_local8[_local2] = _local7[_local2];
_local2++;
}
_local2 = 0;
while (_local2 < 4) {
_local13 = MD5_round[_local2][0];
_local11 = MD5_round[_local2][1];
_local3 = 0;
while (_local3 < 16) {
MD5_apply_round(_local10, _local8, _local13, _local4, _local11[_local3]);
_local9 = _local4[0];
_local4[0] = _local4[3];
_local4[3] = _local4[2];
_local4[2] = _local4[1];
_local4[1] = _local9;
_local3++;
}
_local2++;
}
_local2 = 0;
while (_local2 < 4) {
_local7[_local2] = _local7[_local2] + _local8[_local2];
_local7[_local2] = MD5_number(_local7[_local2]);
_local2++;
}
_local12 = _local12 + 64;
}
_local5 = new Array();
return(_local5.concat(MD5_pack(_local7[0]), MD5_pack(_local7[1]), MD5_pack(_local7[2]), MD5_pack(_local7[3])));
}
function MD5_number(n) {
while (n < 0) {
n = n + 4294967296;
}
while (n > 4294967295) {
n = n - 4294967296;
}
return(n);
}
function MD5_apply_round(x, s, f, abcd, r) {
var _local5;
var _local4;
var _local10;
var _local8;
var _local12;
var _local6;
var _local13;
var _local2;
var _local9;
_local5 = abcd[0];
_local4 = abcd[1];
_local10 = abcd[2];
_local8 = abcd[3];
_local12 = r[0];
_local6 = r[1];
_local13 = r[2];
_local9 = f(s[_local4], s[_local10], s[_local8]);
_local2 = ((s[_local5] + _local9) + x[_local12]) + MD5_T[_local13];
_local2 = MD5_number(_local2);
_local2 = (_local2 << _local6) | (_local2 >>> (32 - _local6));
_local2 = _local2 + s[_local4];
s[_local5] = MD5_number(_local2);
}
var MD5_T = [0, 3614090360, 3905402710, 606105819, 3250441966, 4118548399, 1200080426, 2821735955, 4249261313, 1770035416, 2336552879, 4294925233, 2304563134, 1804603682, 4254626195, 2792965006, 1236535329, 4129170786, 3225465664, 643717713, 3921069994, 3593408605, 38016083, 3634488961, 3889429448, 568446438, 3275163606, 4107603335, 1163531501, 2850285829, 4243563512, 1735328473, 2368359562, 4294588738, 2272392833, 1839030562, 4259657740, 2763975236, 1272893353, 4139469664, 3200236656, 681279174, 3936430074, 3572445317, 76029189, 3654602809, 3873151461, 530742520, 3299628645, 4096336452, 1126891415, 2878612391, 4237533241, 1700485571, 2399980690, 4293915773, 2240044497, 1873313359, 4264355552, 2734768916, 1309151649, 4149444226, 3174756917, 718787259, 3951481745];
var MD5_round1 = [[0, 7, 1], [1, 12, 2], [2, 17, 3], [3, 22, 4], [4, 7, 5], [5, 12, 6], [6, 17, 7], [7, 22, 8], [8, 7, 9], [9, 12, 10], [10, 17, 11], [11, 22, 12], [12, 7, 13], [13, 12, 14], [14, 17, 15], [15, 22, 16]];
var MD5_round2 = [[1, 5, 17], [6, 9, 18], [11, 14, 19], [0, 20, 20], [5, 5, 21], [10, 9, 22], [15, 14, 23], [4, 20, 24], [9, 5, 25], [14, 9, 26], [3, 14, 27], [8, 20, 28], [13, 5, 29], [2, 9, 30], [7, 14, 31], [12, 20, 32]];
var MD5_round3 = [[5, 4, 33], [8, 11, 34], [11, 16, 35], [14, 23, 36], [1, 4, 37], [4, 11, 38], [7, 16, 39], [10, 23, 40], [13, 4, 41], [0, 11, 42], [3, 16, 43], [6, 23, 44], [9, 4, 45], [12, 11, 46], [15, 16, 47], [2, 23, 48]];
var MD5_round4 = [[0, 6, 49], [7, 10, 50], [14, 15, 51], [5, 21, 52], [12, 6, 53], [3, 10, 54], [10, 15, 55], [1, 21, 56], [8, 6, 57], [15, 10, 58], [6, 15, 59], [13, 21, 60], [4, 6, 61], [11, 10, 62], [2, 15, 63], [9, 21, 64]];
var MD5_round = new Array(new Array(libs.MD5.prototype.MD5_F, libs.MD5.prototype.MD5_round1), new Array(libs.MD5.prototype.MD5_G, libs.MD5.prototype.MD5_round2), new Array(libs.MD5.prototype.MD5_H, libs.MD5.prototype.MD5_round3), new Array(libs.MD5.prototype.MD5_I, libs.MD5.prototype.MD5_round4));
}
Symbol 1240 MovieClip [__Packages.sorce.ranking.MekuriRankingData] Frame 0
class sorce.ranking.MekuriRankingData
{
var data_container;
function MekuriRankingData (s_lv, f_lv, score, pants, pants_cnt, max_combo, sid) {
data_container = new Object();
data_container.start_level = s_lv;
data_container.finish_level = f_lv;
data_container.score = score;
data_container.pants_type = pants;
data_container.pants_count = pants_cnt;
data_container.max_combo = max_combo;
var _local3 = (((((((("256__" + nigoro.lib.samieru.NigoroFlashManager.getPlayerName()) + data_container.start_level) + data_container.finish_level) + data_container.score) + data_container.pants_type) + data_container.pants_count) + data_container.max_combo) + nigoro.lib.samieru.NigoroFlashManager.getFlashUID()) + sid;
var _local2 = (new libs.MD5(_local3)).__get__value();
data_container.mkc = _local2;
}
function getObject() {
return(data_container);
}
}
Symbol 1241 MovieClip [__Packages.nigoro.lib.duplex.Task.TaskCenter] Frame 0
class nigoro.lib.duplex.Task.TaskCenter
{
var tasks, maxtask, db, lc;
function TaskCenter (num, database) {
tasks = new Array(num);
maxtask = num;
if (database == null) {
db = new nigoro.lib.duplex.DB.MiniDB();
} else {
db = database;
}
lc = new nigoro.lib.duplex.Link.LinkCenter();
}
function setTask(tk) {
var _local2;
if (lc.getListNum() >= maxtask) {
trace("\u30BF\u30B9\u30AF\u306E\u751F\u6210\u9650\u754C\u6570\u3092\u8D85\u3048\u3066\u307E\u3059!!");
return(false);
}
_local2 = lc.getListNo();
tasks[_local2] = tk;
tasks[_local2].init(_local2, this);
return(true);
}
function killTask(no) {
tasks[no].finalize(this);
tasks[no] = null;
lc.deleteList(no);
}
function flashTask() {
var _local2;
_local2 = lc.getStartPos();
while (_local2 != -1) {
killTask(_local2);
_local2 = lc.loadNextLinkList(_local2);
}
}
function playTask() {
var _local2;
_local2 = lc.getStartPos();
while (_local2 != -1) {
if (tasks[_local2].run(this) == false) {
killTask(_local2);
}
_local2 = lc.loadNextLinkList(_local2);
}
}
function acssesTask(no, data) {
return(tasks[no].talkTask(data));
}
function regstData(ct, nm, data) {
db.write(ct, nm, data);
}
function checkData(ct, nm) {
return(db.oneread(ct, nm, 0));
}
function getData(ct, nm) {
return(db.read(ct, nm));
}
function elaseData(ct) {
db.deleteCategory(ct);
}
}
Symbol 1242 MovieClip [__Packages.nigoro.lib.duplex.DB.MiniDB] Frame 0
class nigoro.lib.duplex.DB.MiniDB
{
var now_page, max_page, db;
function MiniDB () {
now_page = 0;
max_page = 1;
db = new Array();
db[0] = new nigoro.lib.duplex.DB.DataPool();
}
function createNewPage() {
db[max_page] = new nigoro.lib.duplex.DB.DataPool();
max_page++;
}
function chengePage(p) {
if (p > (max_page - 1)) {
return(false);
}
now_page = p;
return(true);
}
function write(ct, nm, dt) {
db[now_page].write(ct, nm, dt);
}
function overWrite(c, i, n, d) {
db[now_page].overWrite(c, i, n, d);
}
function readCompact(ct, nm) {
var _local3;
var _local4;
var _local2;
_local3 = db[now_page].read(ct, nm);
if (_local3 == null) {
return(null);
}
_local4 = 0;
_local2 = 0;
while (_local2 != _local3.length) {
_local3[_local2 - _local4] = _local3[_local2];
if (_local3[_local2] == null) {
_local4++;
}
_local2++;
}
while (_local4 > 0) {
_local3.pop();
_local4--;
}
return(_local3);
}
function read(ct, nm) {
return(db[now_page].read(ct, nm));
}
function oneread(ct, nm, num) {
return(db[now_page].oneread(ct, nm, num));
}
function deleteCategory(st) {
db[now_page].deleteCategory(st);
}
function deleteName(st, i) {
db[now_page].deleteName(st, i);
}
}
Symbol 1243 MovieClip [__Packages.nigoro.lib.duplex.DB.DataLower] Frame 0
class nigoro.lib.duplex.DB.DataLower
{
var data, id, lc;
function DataLower () {
data = new Array();
id = Array();
lc = new nigoro.lib.duplex.Link.LinkCenter();
}
function getId(st) {
var _local2;
_local2 = lc.getStartPos();
while (_local2 != -1) {
if (id[_local2] == st) {
return(_local2);
}
_local2 = lc.loadNextLinkList(_local2);
}
return(-1);
}
function deleteId(st) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
while (data[_local2].pop() != null) {
}
lc.deleteList(_local2);
id[_local2] = null;
}
}
function read(st) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
return(data[_local2]);
}
return(null);
}
}
Symbol 1244 MovieClip [__Packages.nigoro.lib.duplex.DB.DataPool] Frame 0
class nigoro.lib.duplex.DB.DataPool extends nigoro.lib.duplex.DB.DataLower
{
var getId, lc, data, id, deleteId;
function DataPool () {
super();
}
function write(s, i, d) {
var _local2;
_local2 = getId(s);
if (_local2 == -1) {
_local2 = lc.getListNo();
data[_local2] = new nigoro.lib.duplex.DB.DataLine();
id[_local2] = s;
}
data[_local2].write(d, i);
}
function overWrite(c, i, n, d) {
var _local2;
_local2 = getId(c);
if (_local2 == -1) {
_local2 = lc.getListNo();
data[_local2] = new nigoro.lib.duplex.DB.DataLine();
id[_local2] = c;
}
data[_local2].overWrite(d, i, n);
}
function deleteCategory(st) {
var _local2;
deleteId(st);
}
function deleteName(st, i) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
data[_local2].deleteId(i);
}
}
function read(st, i) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
return(data[_local2].read(i));
}
return(null);
}
function oneread(st, i, n) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
return(data[_local2].oneread(i, n));
}
return(null);
}
}
Symbol 1245 MovieClip [__Packages.nigoro.lib.duplex.DB.DataLine] Frame 0
class nigoro.lib.duplex.DB.DataLine extends nigoro.lib.duplex.DB.DataLower
{
var getId, lc, data, id;
function DataLine () {
super();
}
function write(d, i) {
var _local2;
_local2 = getId(i);
if (_local2 == -1) {
_local2 = lc.getListNo();
data[_local2] = new Array();
id[_local2] = i;
}
data[_local2].push(d);
}
function oneread(st, n) {
var _local2;
_local2 = getId(st);
if (_local2 != -1) {
return(data[_local2][n]);
}
return(null);
}
function overWrite(d, i, n) {
var _local2;
_local2 = getId(i);
if (_local2 == -1) {
_local2 = lc.getListNo();
data[_local2] = new Array();
id[_local2] = i;
}
data[_local2][n] = d;
}
function deleteData(st, d) {
var _local3;
var _local2;
_local3 = getId(st);
if (_local3 != -1) {
_local2 = 0;
while (_local2 != data[_local3].length) {
if (data[_local3][_local2] == d) {
data[_local3][_local2] = null;
}
_local2++;
}
}
}
function deleteDataNo(no, i) {
if (i > (data[i].kebgth - 1)) {
return(undefined);
}
data[i][no] = null;
}
}
Symbol 1246 MovieClip [__Packages.nigoro.lib.duplex.Task.Task] Frame 0
interface nigoro.lib.duplex.Task.Task
{
}
Symbol 1247 MovieClip [__Packages.sorce.task.ButtonLight] Frame 0
class sorce.task.ButtonLight extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, x, st, alp;
function ButtonLight (mmc, no) {
super();
mc = mmc.attachMovie("BL1", "BL1" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
x = [124.8, 149.5, 174.3, 199, 223.8];
mc.stop();
mc.gotoAndStop(no + 1);
mc._x = x[no] + 10;
mc._y = 99.3;
st = 0;
alp = 100;
}
function init(no, tc) {
}
function run(tc) {
switch (st) {
case 0 :
break;
case 1 :
alp = alp - 30;
if (alp <= 0) {
return(false);
}
mc._alpha = alp;
}
return(true);
}
function setPos(i) {
mc._x = x[i] + 10;
mc.gotoAndStop(i + 1);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1248 MovieClip [__Packages.nigoro.lib.duplex.Math.Arithmetic] Frame 0
class nigoro.lib.duplex.Math.Arithmetic
{
var rndseed;
function Arithmetic (s) {
rndseed = s;
}
function atRandom() {
rndseed = ((rndseed * 109) + 1021) % 32768;
return(rndseed);
}
function degToRad(deg) {
return(deg * (Math.PI/180));
}
function radToDeg(rad) {
return(rad * 57.2957795130823);
}
function getAngle(vc) {
return(Math.atan2(vc.y, vc.x));
}
function getBeam(keta, kazu) {
var _local1;
if (keta == 0) {
trace("\u30BC\u30ED\u3067\u5272\u308A\u7B97\u3092\u884C\u304A\u3046\u3068\u3057\u307E\u3057\u305F");
return(0);
}
_local1 = kazu;
_local1 = Math.floor(_local1 / (keta * 10)) * 10;
kazu = Math.floor(kazu / keta);
return(kazu - _local1);
}
static function numToString(n, k, st) {
var _local2 = new Array(k);
var _local1;
var _local3;
var _local4 = "";
_local1 = 0;
while (_local1 < k) {
_local3 = getBeam2(Math.pow(10, _local1), n);
if (_local3 < 0) {
_local2[_local1] = st;
} else {
_local2[_local1] = _local3.toString();
}
_local1++;
}
_local1 = k - 1;
while (_local1 > -1) {
_local4 = _local4 + _local2[_local1];
_local1--;
}
return(_local4);
}
static function getBeam2(keta, kazu) {
var _local2;
if (keta == 0) {
trace("\u30BC\u30ED\u3067\u5272\u308A\u7B97\u3092\u884C\u304A\u3046\u3068\u3057\u307E\u3057\u305F");
return(0);
}
if (keta > kazu) {
return(-1);
}
_local2 = kazu;
_local2 = Math.floor(_local2 / (keta * 10)) * 10;
kazu = Math.floor(kazu / keta);
return(kazu - _local2);
}
}
Symbol 1249 MovieClip [__Packages.nigoro.lib.duplex.Math.Vector2D] Frame 0
class nigoro.lib.duplex.Math.Vector2D
{
var x, y;
function Vector2D (a, b, c, d) {
x = c - a;
y = d - b;
}
}
Symbol 1250 MovieClip [__Packages.sorce.task.WBOut] Frame 0
class sorce.task.WBOut extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, obj, al, st;
function WBOut (mmc, ob, type) {
super();
mc = mmc.createEmptyMovieClip("WBO", mmc.getNextHighestDepth());
obj = ob;
mc.beginFill(16777215);
mc.moveTo(0, 0);
mc.lineTo(0, 400);
mc.lineTo(640, 400);
mc.lineTo(640, 0);
mc.endFill();
mc._alpha = 0;
al = 0;
st = type;
}
function init(no, tc) {
}
function run(tc) {
switch (st) {
case 0 :
al = al + 5;
mc._alpha = al;
if (al == 100) {
st = 1;
obj.gameIO(0);
al = 1;
}
break;
case 1 :
al = al - 0.05;
var _local2 = new flash.geom.ColorTransform(al, al, al, 1, 0, 0, 0, 0);
mc.transform.colorTransform = _local2;
if (al <= 0) {
obj.gameIO(1);
return(false);
}
break;
case 2 :
al = al + 5;
mc._alpha = al;
if (al == 100) {
st = 3;
obj.gameIO(0);
al = 1;
}
break;
case 3 :
al = al - 0.05;
_local2 = new flash.geom.ColorTransform(al, al, al, 1, 0, 0, 0, 0);
mc.transform.colorTransform = _local2;
if (al > 0) {
break;
}
obj.gameIO(3);
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1251 MovieClip [__Packages.sorce.task.Play] Frame 0
class sorce.task.Play extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mbmc, hbmc, bmmc, mmmc, hmmc, himc, swmc, st, score, likepantu, mensuu, startlevel, truestage, coll, hide, starth, startm, startg, IO, ending, missnum, maxyuu, maxryou, maxka, maxcomb, nextwait, nextstage, nokezori, endtero1, endtero2, mc, endingtimer, yuurensa, rensamekuri, acssesblock, net_ret, now_rank, mbuff, bmbuff, bm_counter, ringbuff, ttc, mouse_f, over_t, bringbuff;
function Play (m1, m2, m3, m4, m5, m6, men, i_o, stdb, m7) {
super();
mbmc = m1;
hbmc = m2;
bmmc = m3;
mmmc = m4;
hmmc = m5;
himc = m6;
swmc = m7;
st = stdb;
score = 0;
likepantu = 0;
mensuu = men;
startlevel = Math.floor(men / 7);
truestage = (mensuu / 7) * 5;
coll = new nigoro.lib.duplex.Math.Collosion();
Mouse.addListener(this);
Mouse.hide();
hide = true;
starth = [9, 10, 11, 12, 1, 2];
startm = [30, 30, 30, 30, 30, 30];
startg = [10, 10, 10, 10, 10, 30];
IO = i_o;
ending = false;
missnum = 0;
maxyuu = 0;
maxryou = 0;
maxka = 0;
maxcomb = 0;
nextwait = 0;
nextstage = false;
nokezori = false;
endtero1 = 0;
endtero2 = 0;
if (stdb == 10) {
st = 10001;
mc = hmmc.attachMovie("ending", "ending" + himc.getNextHighestDepth(), himc.getNextHighestDepth());
IO.bgmIO2(1, 100);
endingtimer = getTimer();
}
yuurensa = 0;
rensamekuri = false;
acssesblock = false;
net_ret = 0;
now_rank = -1;
}
function init(no, tc) {
tc.regstData("play", "no", no);
mbuff = new Array(4);
bmbuff = new Array(4);
bm_counter = 0;
mbuff[0] = _root._xmouse;
mbuff[1] = _root._ymouse;
mbuff[2] = _root._xmouse;
mbuff[3] = _root._ymouse;
ringbuff = 0;
ttc = tc;
}
function run(tc) {
var _local5;
switch (st) {
case 0 :
tc.setTask(new sorce.task.Yuka(mbmc, mensuu));
tc.setTask(new sorce.task.Enemy(bmmc, hmmc, mensuu, swmc, hbmc, mmmc));
tc.setTask(new sorce.task.State(himc, starth[mensuu % 7], startm[mensuu % 7], startg[mensuu % 7], score, mensuu, IO.getLike(), likepantu));
tc.setTask(new sorce.task.Banchou(mmmc, himc, hbmc, mensuu, swmc));
var _local4 = mensuu % 7;
tc.setTask(new sorce.task.Text(himc, "gameTexts", 320, 200, _local4, 2));
IO.soundIO(5);
IO.soundIO(20);
st = 10000;
break;
case 1 :
if (mouse_f && (nextstage)) {
IO.bgmIO(-1, 5);
tc.setTask(new sorce.task.BlackOut(himc, 0));
st = 10000;
}
break;
case 2 :
if ((mensuu % 7) == 2) {
st = 4;
} else if ((mensuu % 7) == 5) {
st = 6;
} else {
st = 0;
truestage++;
}
missnum = 0;
nextstage = false;
nokezori = false;
mensuu++;
if (!ending) {
if ((mensuu % 7) == 0) {
if (mensuu == 35) {
ending = true;
}
}
}
break;
case 3 :
if (mouse_f && (!acssesblock)) {
if ((now_rank != -1) && (now_rank < 11)) {
over_t.destroy();
tc.setTask(new sorce.task.Entry(himc, now_rank, score, Math.floor(mensuu / 7) + 1, maxcomb, IO.getLike(), likepantu));
} else {
tc.setTask(new sorce.task.BlackOut(himc, 1));
}
mensuu = 0;
st = 10000;
}
break;
case 4 :
tc.setTask(new sorce.task.BonusBG(mbmc, mensuu, score, himc, swmc, bmmc));
tc.setTask(new sorce.task.Text(himc, "gameTexts", 320, 200, 3, 2));
IO.soundIO(5);
IO.soundIO(20);
st = 10000;
break;
case 5 :
if (mouse_f) {
nextwait = 0;
tc.setTask(new sorce.task.BlackOut(himc, 5));
st = 10000;
}
break;
case 6 :
tc.setTask(new sorce.task.BonusBG2(mbmc, mensuu, score, himc, mmmc));
tc.setTask(new sorce.task.Text(himc, "gameTexts", 320, 200, 15, 2));
IO.soundIO(5);
IO.soundIO(20);
st = 10000;
break;
case 7 :
if (mouse_f) {
nextwait = 0;
tc.setTask(new sorce.task.BlackOut(himc, 6));
st = 10000;
}
break;
case 10000 :
break;
case 10001 :
if (mouse_f) {
st = 10000;
if ((now_rank != -1) && (now_rank < 11)) {
tc.setTask(new sorce.task.Entry(himc, now_rank, score, Math.floor(mensuu / 7) + 1, maxcomb, IO.getLike(), likepantu));
mc.terop1.gotoAndStop(30);
mc.terop2.gotoAndStop(47);
} else {
tc.setTask(new sorce.task.BlackOut(himc, 1));
}
} else {
_local4 = getTimer() - endingtimer;
if (endtero1 < _root.terop1.length) {
if (_root.terop1[endtero1] <= _local4) {
mc.terop1.nextFrame();
endtero1++;
}
}
if (endtero2 >= _root.terop2.length) {
break;
}
if (_root.terop2[endtero2] > _local4) {
break;
}
mc.terop2.nextFrame();
endtero2++;
}
}
tc.elaseData("target");
rensamekuri = false;
tc.idPlayTask(1356);
if (ringbuff == 0) {
mbuff[2] = _root._xmouse;
mbuff[3] = _root._ymouse;
ringbuff = 1;
} else {
mbuff[0] = _root._xmouse;
mbuff[1] = _root._ymouse;
ringbuff = 0;
}
if (_root._ymouse > 399) {
Mouse.show();
} else if (hide) {
Mouse.hide();
}
if (hide) {
tc.setTask(new sorce.task.Hand(himc, _root._xmouse, _root._ymouse));
}
mouse_f = false;
if (bm_counter > 0) {
bm_counter++;
if (bm_counter == 3) {
bm_counter = 0;
}
}
return(true);
}
function finalize(tc) {
tc.elaseData("play");
Mouse.removeListener(this);
if (hide) {
Mouse.show();
}
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
st = 1;
tc.setTask(new sorce.task.Clearpantu(hmmc, missnum));
break;
case 1 :
st = 2;
break;
case 2 :
score = mess[1];
likepantu = mess[2];
break;
case 3 :
over_t = new sorce.task.Overtext(himc);
tc.setTask(over_t);
st = 3;
break;
case 4 :
IO.gameIO(2);
st = 10000;
break;
case 5 :
IO.gameIO(2);
st = 10000;
break;
case 6 :
tc.setTask(new sorce.task.Allflash(hbmc, "hit_damage"));
break;
case 7 :
tc.setTask(new sorce.task.Allflash(hbmc, "hit_perfect"));
bmbuff[0] = mbuff[0];
bmbuff[1] = mbuff[1];
bmbuff[2] = mbuff[2];
bmbuff[3] = mbuff[3];
bringbuff = ringbuff;
bm_counter = 1;
yuurensa++;
break;
case 8 :
mess[0] = ending;
if (ending) {
tc.setTask(new sorce.task.BlackOut(himc, 3));
}
break;
case 9 :
st = 10001;
mc = hmmc.attachMovie("ending", "ending" + himc.getNextHighestDepth(), himc.getNextHighestDepth());
IO.bgmIO2(1, 100);
endingtimer = getTimer();
break;
case 10 :
if (mess[1] > maxcomb) {
maxcomb = mess[1];
}
break;
case 11 :
missnum++;
break;
case 12 :
nextstage = true;
break;
case 13 :
Mouse.show();
hide = false;
break;
case 14 :
if (mess[1] == 0) {
nokezori = false;
} else {
nokezori = true;
}
break;
case 15 :
st = 5;
break;
case 16 :
st = 2;
break;
case 17 :
score = mess[1];
break;
case 18 :
st = 7;
break;
case 19 :
tc.setTask(new sorce.task.Coffebreak(himc));
break;
case 20 :
yuurensa = 0;
break;
case 21 :
if (rensamekuri) {
mess[0] = 1;
} else {
mess[0] = 0;
}
rensamekuri = false;
break;
case 22 :
if (IO.getName() == "") {
break;
}
mess = tc.acssesTask(tc.checkData("score", "no"), [5, 0]);
score = mess[0];
likepantu = mess[1];
tc.setTask(new sorce.task.Save(himc, startlevel, Math.floor(mensuu / 7), score, IO.getLike() + 1, likepantu, maxcomb, IO.getName(), IO.getDebugText()));
acssesblock = true;
net_ret = 0;
break;
case 23 :
acssesblock = false;
net_ret = mess[1];
now_rank = mess[2];
break;
case 100 :
IO.soundIO(mess[1]);
break;
case 101 :
IO.bgmIO(mess[1], mess[2]);
break;
case 102 :
IO.bgmIO2(mess[1], mess[2]);
break;
case 103 :
IO.soundVoiceStop();
}
return(mess);
}
function onMouseDown() {
if (_root._ymouse < 400) {
mouse_f = true;
}
}
function checkLine(x1, y1, x2, y2, jd, type, hantei, no) {
var _local10;
var _local3;
var _local17;
if (nokezori) {
return(false);
}
if (ringbuff == 0) {
if ((mbuff[3] - mbuff[1]) < 0) {
return(false);
}
} else if ((mbuff[1] - mbuff[3]) < 0) {
return(false);
}
_local10 = coll.lineCrossPoint(x1, y1, x2, y2, mbuff[0] - 5, mbuff[1], mbuff[2] - 5, mbuff[3]);
if (!_local10) {
_local10 = coll.lineCrossPoint(x1, y1, x2, y2, mbuff[0] + 5, mbuff[1], mbuff[2] + 5, mbuff[3]);
}
if (_local10) {
if (jd == 3) {
if (hantei == 3) {
var _local4 = ttc.getData("target", "no");
var _local9 = ttc.getTask(no).mc._x;
var _local8 = ttc.getTask(no).mc._y;
var _local6;
var _local5;
_local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3] != no) {
_local6 = ttc.getTask(_local4[_local3]).mc._x;
_local5 = ttc.getTask(_local4[_local3]).mc._y;
_local6 = _local6 - _local9;
_local5 = _local5 - _local8;
if (Math.sqrt((_local6 * _local6) + (_local5 * _local5)) < _root.hani) {
ttc.acssesTask(_local4[_local3], [0, yuurensa]);
rensamekuri = true;
}
}
_local3++;
}
}
}
}
return(_local10);
}
}
Symbol 1252 MovieClip [__Packages.nigoro.lib.duplex.Math.Collosion] Frame 0
class nigoro.lib.duplex.Math.Collosion
{
var hit_x, hit_y;
function Collosion () {
}
function lineCrossPoint(sx1, sy1, sx2, sy2, dx1, dy1, dx2, dy2) {
var _local9;
var _local8;
_local9 = dx2 - dx1;
_local8 = dy2 - dy1;
var _local19 = sx2 - sx1;
var _local15 = sy2 - sy1;
var _local3 = -_local15;
var _local2 = _local19;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if (_local4 > 0) {
_local4 = 1 / _local4;
}
_local3 = _local3 * _local4;
_local2 = _local2 * _local4;
var _local10 = -((sx1 * _local3) + (sy1 * _local2));
var _local5 = (-(((_local3 * dx1) + (_local2 * dy1)) + _local10)) / ((_local3 * _local9) + (_local2 * _local8));
if ((_local5 > 0) && (_local5 <= 1)) {
var _local7 = dx1 + (_local9 * _local5);
var _local6 = dy1 + (_local8 * _local5);
var _local16 = _local7 - sx1;
var _local12 = _local6 - sy1;
var _local21 = _local7 - sx2;
var _local20 = _local6 - sy2;
var _local11 = (_local16 * _local21) + (_local12 * _local20);
if (_local11 <= 0) {
hit_x = _local7;
hit_y = _local6;
return(true);
}
}
return(false);
}
function pointLength(ax, ay, bx, by) {
var _local2 = bx - ax;
var _local1 = by - ay;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
function hitCheck(p1, p2) {
if ((p1.x <= (p2.x + p2.w)) && ((p1.x + p1.w) >= p2.x)) {
if ((p1.y <= (p2.y + p2.h)) && ((p1.y + p1.h) >= p2.y)) {
return(true);
}
}
return(false);
}
function innerCheck(p1, x, y) {
if ((p1.x <= x) && (((p1.x + p1.w) - 1) >= x)) {
if ((p1.y <= y) && (((p1.y + p1.h) - 1) >= y)) {
return(true);
}
}
return(false);
}
function rHitCheck(p1, p2) {
var _local10 = new Array(4);
var _local8 = new Array(4);
var _local9 = new Array(4);
var _local7 = new Array(4);
var _local11;
var _local12;
var _local4;
var _local3;
var _local2;
var _local13;
var _local14;
_local10[0] = (_local10[3] = p1.x);
_local10[1] = (_local10[2] = p1.x + p1.w);
_local8[0] = (_local8[1] = p1.y);
_local8[2] = (_local8[3] = p1.y + p1.h);
_local11 = (p1.w / 2) + p1.x;
_local12 = (p1.h / 2) + p1.y;
_local2 = 0;
while (_local2 != 4) {
_local4 = _local10[_local2] - _local11;
_local3 = _local8[_local2] - _local12;
_local10[_local2] = ((_local4 * Math.cos(p1.r)) - (_local3 * Math.sin(p1.r))) + _local11;
_local8[_local2] = ((_local4 * Math.sin(p1.r)) + (_local3 * Math.cos(p1.r))) + _local12;
_local2++;
}
_local9[0] = (_local9[3] = p2.x);
_local9[1] = (_local9[2] = p2.x + p2.w);
_local7[0] = (_local7[1] = p2.y);
_local7[2] = (_local7[3] = p2.y + p2.h);
_local11 = (p2.w / 2) + p2.x;
_local12 = (p2.h / 2) + p2.y;
_local2 = 0;
while (_local2 != 4) {
_local4 = _local9[_local2] - _local11;
_local3 = _local7[_local2] - _local12;
_local9[_local2] = ((_local4 * Math.cos(p2.r)) - (_local3 * Math.sin(p2.r))) + _local11;
_local7[_local2] = ((_local4 * Math.sin(p2.r)) + (_local3 * Math.cos(p2.r))) + _local12;
_local2++;
}
_local13 = new nigoro.lib.duplex.Math.Box(_local10[0], _local8[0], _local10[1], _local8[1], _local10[2], _local8[2], _local10[3], _local8[3]);
_local14 = new nigoro.lib.duplex.Math.Box(_local9[0], _local7[0], _local9[1], _local7[1], _local9[2], _local7[2], _local9[3], _local7[3]);
_local2 = 0;
while (_local2 != 4) {
if (isBoxIn(_local13, _local9[_local2], _local7[_local2])) {
return(true);
}
_local2++;
}
_local2 = 0;
while (_local2 != 4) {
if (isBoxIn(_local14, _local10[_local2], _local8[_local2])) {
return(true);
}
_local2++;
}
if (isLineCross(_local13, _local14)) {
return(true);
}
return(false);
}
function isLineCross(bx1, bx2) {
var _local3;
var _local2;
_local3 = 0;
while (_local3 != 4) {
_local2 = 0;
while (_local2 != 4) {
if (lineCrossPoint(bx1.x[_local3], bx1.y[_local3], bx1.x[(_local3 + 1) % 3], bx1.y[(_local3 + 1) % 3], bx2.x[_local2], bx2.y[_local2], bx2.x[(_local2 + 1) % 3], bx2.y[(_local2 + 1) % 3])) {
return(true);
}
_local2++;
}
_local3++;
}
return(false);
}
function isBoxIn(bx, x, y) {
var _local3;
var _local1;
var _local4;
var _local2;
var _local9;
var _local5;
_local2 = new Array(4);
_local3 = new Array(4);
_local9 = 0;
_local1 = 0;
while (_local1 != 4) {
_local3[_local1] = new nigoro.lib.duplex.Math.Vector2D(x, y, bx.x[_local1], bx.y[_local1]);
_local1++;
}
_local4 = new nigoro.lib.duplex.Math.Arithmetic(0);
_local1 = 0;
while (_local1 != 4) {
_local2[_local1] = _local4.radToDeg(_local4.getAngle(_local3[_local1]));
_local2[_local1] = (_local2[_local1] + 360) % 360;
_local1++;
}
if (_local2[0] > _local2[1]) {
_local5 = (_local2[1] + 360) - _local2[0];
} else {
_local5 = _local2[1] - _local2[0];
}
if (_local5 > 180) {
return(false);
}
if (_local2[1] > _local2[2]) {
_local5 = (_local2[2] + 360) - _local2[1];
} else {
_local5 = _local2[2] - _local2[1];
}
if (_local5 > 180) {
return(false);
}
if (_local2[2] > _local2[3]) {
_local5 = (_local2[3] + 360) - _local2[2];
} else {
_local5 = _local2[3] - _local2[2];
}
if (_local5 > 180) {
return(false);
}
if (_local2[3] > _local2[0]) {
_local5 = (_local2[0] + 360) - _local2[3];
} else {
_local5 = _local2[0] - _local2[3];
}
if (_local5 > 180) {
return(false);
}
return(true);
}
}
Symbol 1253 MovieClip [__Packages.nigoro.lib.duplex.Math.Rect] Frame 0
class nigoro.lib.duplex.Math.Rect
{
var x, y, w, h;
function Rect (a, b, c, d) {
x = a;
y = b;
w = c;
h = d;
}
}
Symbol 1254 MovieClip [__Packages.nigoro.lib.duplex.Math.FreeRect] Frame 0
class nigoro.lib.duplex.Math.FreeRect
{
var x, y, h, w, r;
function FreeRect (a, b, c, d, e) {
x = a;
y = b;
h = c;
w = d;
r = e;
}
}
Symbol 1255 MovieClip [__Packages.nigoro.lib.duplex.Math.Box] Frame 0
class nigoro.lib.duplex.Math.Box
{
var x, y;
function Box (x1, y1, x2, y2, x3, y3, x4, y4) {
x = new Array(4);
y = new Array(4);
x[0] = x1;
y[0] = y1;
x[1] = x2;
y[1] = y2;
x[2] = x3;
y[2] = y3;
x[3] = x4;
y[3] = y4;
}
}
Symbol 1256 MovieClip [__Packages.sorce.task.Overtext] Frame 0
class sorce.task.Overtext extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, st, alp;
function Overtext (mmc) {
super();
mc = mmc.attachMovie("gameover_terop", "gameover_terop" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 0;
mc._y = 308.1;
st = 0;
alp = 100;
}
function init(no, tc) {
}
function run(tc) {
switch (st) {
case 0 :
break;
case 1 :
alp = alp - 10;
if (alp <= 0) {
return(false);
}
mc._alpha = alp;
}
return(true);
}
function destroy() {
st = 1;
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1257 MovieClip [__Packages.sorce.task.Yuka] Frame 0
class sorce.task.Yuka extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var kmc, wmc, wmc2, mc, lmc, oyamc, pos, speed, stage_no;
function Yuka (mmc, sno) {
super();
kmc = mmc.attachMovie("wallback", "wallback" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
wmc = mmc.attachMovie("wallScroll", "wallScroll" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
wmc2 = mmc.attachMovie("wallScroll", "wallScroll" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc = mmc.attachMovie("yuka", "yuka" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
lmc = mmc.createEmptyMovieClip("LineFace", mmc.getNextHighestDepth());
oyamc = mmc;
kmc.stop();
wmc.stop();
wmc2.stop();
mc.stop();
lmc._y = (mc._y = 250);
wmc2._y = (wmc._y = 40);
wmc2._x = 640;
pos = 0;
speed = 0;
stage_no = sno % 7;
}
function setBG(no) {
kmc.gotoAndStop(no);
wmc.gotoAndStop(no);
wmc2.gotoAndStop(no);
mc.gotoAndStop(no);
}
function init(no, tc) {
tc.regstData("haikei", "no", no);
switch (stage_no) {
case 0 :
case 1 :
setBG(1);
break;
case 2 :
setBG(2);
break;
case 3 :
case 4 :
setBG(3);
break;
case 5 :
case 6 :
setBG(4);
}
}
function run(tc) {
var _local2 = 0;
var _local3 = 0;
lmc.clear();
_local2 = pos;
lmc.lineStyle(1, 8934741, 50);
while (_local3 < 8) {
_local2 = _local2 % 640;
lmc.moveTo(_local2, 0);
lmc.lineTo(_local2 + ((_local2 - 320) * 0.48), 150);
_local2 = _local2 + 80;
_local3++;
}
wmc._x = wmc._x - speed;
if (wmc._x <= -640) {
wmc._x = wmc._x + 640;
} else if (wmc._x > 0) {
wmc._x = wmc._x - 640;
}
wmc2._x = wmc._x + 640;
pos = pos - speed;
if (pos < 0) {
pos = 80 + pos;
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
lmc.removeMovieClip();
lmc = null;
kmc.removeMovieClip();
kmc = null;
wmc.removeMovieClip();
wmc = null;
wmc2.removeMovieClip();
wmc2 = null;
tc.elaseData("haikei");
}
function vismc(f) {
kmc._visible = f;
wmc._visible = f;
wmc2._visible = f;
mc._visible = f;
lmc._visible = f;
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
speed = mess[1];
break;
case 1 :
mess[0] = speed;
break;
case 2 :
if (tc.checkData("super", "no") == null) {
tc.setTask(new sorce.task.Superback(oyamc));
} else {
var _local4 = [1];
tc.acssesTask(tc.checkData("super", "no"), _local4);
}
break;
case 3 :
var _local4 = [0];
tc.acssesTask(tc.checkData("super", "no"), _local4);
break;
case 4 :
vismc(false);
break;
case 5 :
vismc(true);
}
return(mess);
}
}
Symbol 1258 MovieClip [__Packages.sorce.task.Superback] Frame 0
class sorce.task.Superback extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, myalpha, myari, st, waitcount, oya;
function Superback (mmc) {
super();
mc = mmc.attachMovie("super_back", "super_back" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 0;
mc._y = 0;
myalpha = 0;
mc._alpha = myalpha;
myari = new nigoro.lib.duplex.Math.Arithmetic(8456);
st = 0;
waitcount = 0;
}
function init(no, tc) {
var _local2;
tc.regstData("super", "no", no);
oya = tc.checkData("haikei", "no");
_local2 = 0;
while (_local2 != 8) {
tc.setTask(new sorce.task.Superline(mc, (myari.atRandom() % 80) * 8, (myari.atRandom() % 50) * 8, (myari.atRandom() % 50) + 30));
_local2++;
}
}
function run(tc) {
waitcount++;
if (waitcount == 3) {
waitcount = 0;
tc.setTask(new sorce.task.Superline(mc, 640, (myari.atRandom() % 25) * 16, ((myari.atRandom() % 4) * 15) + 30));
}
switch (st) {
case 0 :
myalpha = myalpha + 10;
if (myalpha >= 100) {
myalpha = 100;
st = 1;
var _local2 = [4];
tc.acssesTask(oya, _local2);
}
mc._alpha = myalpha;
break;
case 1 :
break;
case 2 :
myalpha = myalpha - 10;
if (myalpha <= 0) {
myalpha = 0;
return(false);
}
mc._alpha = myalpha;
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
tc.elaseData("super");
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
var _local2 = [5];
tc.acssesTask(oya, _local2);
st = 2;
break;
case 1 :
st = 0;
}
return(mess);
}
}
Symbol 1259 MovieClip [__Packages.sorce.task.Superline] Frame 0
class sorce.task.Superline extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, speed;
function Superline (mmc, x, y, s) {
super();
mc = mmc.attachMovie("super_line", "super_line" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc.blendMode = 8;
mc._x = x;
mc._y = y;
speed = s;
}
function init(no, tc) {
}
function run(tc) {
if (tc.checkData("super", "no") == null) {
return(false);
}
mc._x = mc._x - speed;
if (mc._x <= (-mc._width)) {
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1260 MovieClip [__Packages.sorce.task.Enemy] Frame 0
class sorce.task.Enemy extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var upmc, dnmc, swmc, sta, mae, usiro, u_count, d_count, u_next, d_next, nextpoptime, nextpoptime_r, life, obj_count, llength, now_stage, myari, count1, count2, count3, count4, ns_f, b_no;
function Enemy (up, dn, men, sw, m, u) {
super();
upmc = up;
dnmc = dn;
swmc = sw;
sta = 0;
mae = m;
usiro = u;
u_count = 0;
d_count = 0;
u_next = Math.floor(Math.random() * 10);
d_next = Math.floor(Math.random() * 10);
nextpoptime = 140 - (men * 2);
if (nextpoptime < 10) {
nextpoptime = 10;
}
nextpoptime_r = 90;
life = false;
obj_count = 0;
llength = 0;
now_stage = men;
myari = new nigoro.lib.duplex.Math.Arithmetic(men);
count1 = 0;
count2 = 0;
count3 = 0;
count4 = 0;
ns_f = 1;
}
function init(no, tc) {
tc.regstData("enemy", "no", no);
}
function run(tc) {
var _local2;
if (life) {
var _local5 = [0, 0, 0];
_local5 = tc.acssesTask(b_no, _local5);
llength = llength + _local5[0];
u_count++;
if (llength >= (u_next * ns_f)) {
llength = 0;
u_count = 0;
u_next = nextpoptime + (myari.atRandom() % nextpoptime_r);
_local2 = myari.atRandom() % 7;
var _local4 = Math.floor(now_stage / 7);
var _local3 = now_stage % 7;
if (_local2 > 2) {
switch (_local2) {
case 3 :
if ((myari.atRandom() % 5000) < 2000) {
switch (_local4) {
case 0 :
if ((_local3 < 1) || (count1 > (now_stage * 2))) {
_local2 = myari.atRandom() % 3;
}
break;
default :
if (count1 <= (now_stage * 2)) {
break;
}
_local2 = myari.atRandom() % 3;
}
count1++;
} else {
_local2 = myari.atRandom() % 3;
}
break;
case 4 :
if ((myari.atRandom() % 5000) < 2000) {
switch (_local4) {
case 0 :
if ((_local3 < 2) || (count2 > (now_stage * 2))) {
_local2 = myari.atRandom() % 3;
}
break;
case 1 :
if ((_local3 < 1) || (count2 > (now_stage * 2))) {
_local2 = myari.atRandom() % 3;
}
break;
default :
if (count2 <= (now_stage * 2)) {
break;
}
_local2 = myari.atRandom() % 3;
}
count2++;
} else {
_local2 = myari.atRandom() % 3;
}
break;
case 5 :
if ((myari.atRandom() % 5000) < 2000) {
switch (_local4) {
case 0 :
if ((_local3 < 4) || (count3 > (now_stage * 4))) {
_local2 = myari.atRandom() % 3;
}
break;
case 1 :
if ((_local3 < 2) || (count3 > (now_stage * 4))) {
_local2 = myari.atRandom() % 3;
}
break;
case 2 :
if ((_local3 < 1) || (count3 > (now_stage * 4))) {
_local2 = myari.atRandom() % 3;
}
break;
default :
if (count3 <= (now_stage * 2)) {
break;
}
_local2 = myari.atRandom() % 3;
}
count3++;
} else {
_local2 = myari.atRandom() % 3;
}
break;
case 6 :
if ((myari.atRandom() % 5000) < 2000) {
if ((now_stage < 4) || (count4 > (now_stage * 2))) {
_local2 = myari.atRandom() % 3;
}
switch (_local4) {
case 0 :
if ((_local3 < 5) || (count4 > (now_stage * 2))) {
_local2 = myari.atRandom() % 3;
}
break;
case 1 :
if ((_local3 < 4) || (count4 > (now_stage * 2))) {
_local2 = myari.atRandom() % 3;
}
break;
case 2 :
if ((_local3 < 2) || (count4 > (now_stage * 2))) {
_local2 = myari.atRandom() % 3;
}
break;
case 3 :
if ((_local3 < 1) || (count4 > (now_stage * 2))) {
_local2 = myari.atRandom() % 3;
}
break;
default :
if (count4 <= (now_stage * 2)) {
break;
}
_local2 = myari.atRandom() % 3;
}
count4++;
} else {
_local2 = myari.atRandom() % 3;
}
}
}
if (Math.floor(myari.atRandom() % 10000) < 5000) {
tc.setTask(new sorce.task.Target(upmc, _local2, 0, myari.atRandom() % 3, myari.atRandom() % 3, 270 + (myari.atRandom() % 35), now_stage, swmc, mae));
obj_count++;
} else {
tc.setTask(new sorce.task.Target(dnmc, _local2, 1, myari.atRandom() % 3, myari.atRandom() % 3, 345 + (myari.atRandom() % 35), now_stage, swmc, usiro));
obj_count++;
}
}
}
return(true);
}
function finalize(tc) {
tc.elaseData("enemy");
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
life = mess[1];
break;
case 1 :
obj_count--;
break;
case 2 :
mess[0] = obj_count;
break;
case 3 :
b_no = mess[1];
break;
case 4 :
ns_f = mess[1];
}
return(mess);
}
}
Symbol 1261 MovieClip [__Packages.sorce.task.Target] Frame 0
class sorce.task.Target extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var UID, type, postion, tmc, gaza, pantu_no, hair_no, now_stage, havepantu, now_pantu, linedata, count, mc, tmpbuff, harfw, spx, shadowMC, myalpha, mekuri_f, flash_f, girigiri, color_buckup, sta, checkpoint, hantei, mekuri_wait, get_in, my_no, sc_no, yuka_no, b_no, playno, enemy_no, speed, hitcount;
function Target (mmc, t, p, hair, pantu, my, stag, sw, ga) {
super();
UID = 1356;
type = t;
postion = p;
tmc = mmc;
gaza = ga;
pantu_no = pantu + 1;
hair_no = hair + 1;
now_stage = stag;
havepantu = new Array(7);
havepantu[0] = [0, 1, 2];
havepantu[1] = [7, 8, 3];
havepantu[2] = [4, 5, 6];
havepantu[3] = [4, 3, 6];
havepantu[4] = [1, 4, 2];
havepantu[5] = [-1, -1, -1];
havepantu[6] = [1, 4, 3];
havepantu[7] = [-1, -1, -1];
now_pantu = havepantu[t][pantu];
linedata = new Array(12);
count = 0;
switch (t) {
case 0 :
mc = mmc.attachMovie("girl1", "girl1" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
linedata[0] = sorce.data.CharLine.StGr[0];
linedata[1] = sorce.data.CharLine.StGr[1];
linedata[2] = sorce.data.CharLine.StGr[2];
linedata[3] = sorce.data.CharLine.StGr[3];
linedata[4] = sorce.data.CharLine.StGr[4];
linedata[5] = sorce.data.CharLine.StGr[5];
linedata[6] = sorce.data.CharLine.StGr[6];
linedata[7] = sorce.data.CharLine.StGr[7];
linedata[8] = sorce.data.CharLine.StGr[8];
linedata[9] = sorce.data.CharLine.StGr[9];
linedata[10] = sorce.data.CharLine.StGr[10];
linedata[11] = sorce.data.CharLine.StGr[11];
break;
case 1 :
mc = mmc.attachMovie("girl2", "girl2" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
linedata[0] = sorce.data.CharLine.StGr[0];
linedata[1] = sorce.data.CharLine.StGr[1];
linedata[2] = sorce.data.CharLine.StGr[2];
linedata[3] = sorce.data.CharLine.StGr[3];
linedata[4] = sorce.data.CharLine.StGr[4];
linedata[5] = sorce.data.CharLine.StGr[5];
linedata[6] = sorce.data.CharLine.StGr[6];
linedata[7] = sorce.data.CharLine.StGr[7];
linedata[8] = sorce.data.CharLine.StGr[8];
linedata[9] = sorce.data.CharLine.StGr[9];
linedata[10] = sorce.data.CharLine.StGr[10];
linedata[11] = sorce.data.CharLine.StGr[11];
break;
case 2 :
mc = mmc.attachMovie("girl3", "girl3" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
linedata[0] = sorce.data.CharLine.StGr[0];
linedata[1] = sorce.data.CharLine.StGr[1];
linedata[2] = sorce.data.CharLine.StGr[2];
linedata[3] = sorce.data.CharLine.StGr[3];
linedata[4] = sorce.data.CharLine.StGr[4];
linedata[5] = sorce.data.CharLine.StGr[5];
linedata[6] = sorce.data.CharLine.StGr[6];
linedata[7] = sorce.data.CharLine.StGr[7];
linedata[8] = sorce.data.CharLine.StGr[8];
linedata[9] = sorce.data.CharLine.StGr[9];
linedata[10] = sorce.data.CharLine.StGr[10];
linedata[11] = sorce.data.CharLine.StGr[11];
break;
case 3 :
mc = mmc.attachMovie("sukeban", "sukeban" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
linedata[0] = sorce.data.CharLine.StR1[0];
linedata[1] = sorce.data.CharLine.StR1[1];
linedata[2] = sorce.data.CharLine.StR1[2];
linedata[3] = sorce.data.CharLine.StR1[3];
linedata[4] = sorce.data.CharLine.StR1[4];
linedata[5] = sorce.data.CharLine.StR1[5];
linedata[6] = sorce.data.CharLine.StR1[6];
linedata[7] = sorce.data.CharLine.StR1[7];
linedata[8] = sorce.data.CharLine.StR1[8];
linedata[9] = sorce.data.CharLine.StR1[9];
linedata[10] = sorce.data.CharLine.StR1[10];
linedata[11] = sorce.data.CharLine.StR1[11];
break;
case 4 :
mc = mmc.attachMovie("sukeban2", "sukeban2" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
linedata[0] = sorce.data.CharLine.StR2[0];
linedata[1] = sorce.data.CharLine.StR2[1];
linedata[2] = sorce.data.CharLine.StR2[2];
linedata[3] = sorce.data.CharLine.StR2[3];
linedata[4] = sorce.data.CharLine.StR2[4];
linedata[5] = sorce.data.CharLine.StR2[5];
linedata[6] = sorce.data.CharLine.StR2[6];
linedata[7] = sorce.data.CharLine.StR2[7];
linedata[8] = sorce.data.CharLine.StR2[8];
linedata[9] = sorce.data.CharLine.StR2[9];
linedata[10] = sorce.data.CharLine.StR2[10];
linedata[11] = sorce.data.CharLine.StR2[11];
break;
case 5 :
mc = mmc.attachMovie("waru1", "waru1" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
linedata[0] = sorce.data.CharLine.StBy[0];
linedata[1] = sorce.data.CharLine.StBy[1];
linedata[2] = sorce.data.CharLine.StBy[2];
linedata[3] = sorce.data.CharLine.StBy[3];
linedata[4] = sorce.data.CharLine.StBy[4];
linedata[5] = sorce.data.CharLine.StBy[5];
linedata[6] = sorce.data.CharLine.StBy[6];
linedata[7] = sorce.data.CharLine.StBy[7];
linedata[8] = sorce.data.CharLine.StBy[8];
linedata[9] = sorce.data.CharLine.StBy[9];
linedata[10] = sorce.data.CharLine.StBy[10];
linedata[11] = sorce.data.CharLine.StBy[11];
break;
case 6 :
mc = mmc.attachMovie("teacher", "teacher" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
linedata[0] = sorce.data.CharLine.TeRd[0];
linedata[1] = sorce.data.CharLine.TeRd[1];
linedata[2] = sorce.data.CharLine.TeRd[2];
linedata[3] = sorce.data.CharLine.TeRd[3];
linedata[4] = sorce.data.CharLine.TeRd[4];
linedata[5] = sorce.data.CharLine.TeRd[5];
linedata[6] = sorce.data.CharLine.TeRd[6];
linedata[7] = sorce.data.CharLine.TeRd[7];
linedata[8] = sorce.data.CharLine.TeRd[8];
linedata[9] = sorce.data.CharLine.TeRd[9];
linedata[10] = sorce.data.CharLine.TeRd[10];
linedata[11] = sorce.data.CharLine.TeRd[11];
tmpbuff = Math.floor(Math.random() * 2);
count = Math.floor(Math.random() * 15);
hair_no = tmpbuff + 1;
break;
case 7 :
mc = mmc.attachMovie("mokujin", "mokujin" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
linedata[0] = sorce.data.CharLine.TeMn[0];
linedata[1] = sorce.data.CharLine.TeMn[1];
linedata[2] = sorce.data.CharLine.TeMn[2];
linedata[3] = sorce.data.CharLine.TeMn[3];
linedata[4] = sorce.data.CharLine.TeMn[4];
linedata[5] = sorce.data.CharLine.TeMn[5];
linedata[6] = sorce.data.CharLine.TeMn[6];
linedata[7] = sorce.data.CharLine.TeMn[7];
linedata[8] = sorce.data.CharLine.TeMn[8];
linedata[9] = sorce.data.CharLine.TeMn[9];
linedata[10] = sorce.data.CharLine.TeMn[10];
linedata[11] = sorce.data.CharLine.TeMn[11];
}
linedata[11] = linedata[11] - stag;
if (linedata[11] < -119) {
linedata[11] = -119;
}
mc._x = 700;
mc._y = my;
harfw = (mc._width / 2) * -1;
spx = ((my - 250) / 150) * 0.48;
shadowMC = sw.attachMovie("shadow2", "shadow2" + sw.getNextHighestDepth(), sw.getNextHighestDepth());
shadowMC._X = mc._x - 35;
shadowMC._y = mc._y - 17.9;
myalpha = 100;
mc.gotoAndStop("Wait");
mc.AAA.gotoAndStop(hair_no);
mekuri_f = false;
flash_f = 0;
girigiri = false;
color_buckup = mc.transform.colorTransform;
sta = 0;
checkpoint = false;
hantei = 0;
mekuri_wait = 0;
get_in = true;
}
function init(no, tc) {
var _local4;
my_no = no;
sc_no = tc.checkData("score", "no");
yuka_no = tc.checkData("haikei", "no");
b_no = tc.checkData("banchou", "no");
playno = tc.checkData("play", "no");
enemy_no = tc.checkData("enemy", "no");
}
function frun(tc) {
var _local2;
_local2 = tc.acssesTask(b_no, [0, 0, 0]);
speed = (_local2[0] * spx) + _local2[0];
mc._x = mc._x - speed;
_local2 = tc.acssesTask(b_no, [4]);
if (_local2[0]) {
if (!mekuri_f) {
tc.regstData("target", "no", my_no);
tc.regstData("target", "x", mc._x);
tc.regstData("target", "y", mc._y);
}
}
return(true);
}
function run(tc) {
var _local3;
_local3 = tc.acssesTask(b_no, [4]);
if (_local3[0]) {
if (!mekuri_f) {
if (mc._x <= 60) {
var _local4 = new flash.geom.ColorTransform(0.8, 0.8, 0.8, 1, 0, 0, 0, 0);
mc.transform.colorTransform = _local4;
mekuri_f = true;
if (type < 3) {
tc.setTask(new sorce.task.Judge(tmc, 4, mc._x, mc._y - 200, spx));
_local3[0] = 2;
_local3[1] = sorce.data.MekuriData.Dpoint[0];
_local3[2] = sorce.data.MekuriData.Dpoint[1] - (now_stage * 1.05);
tc.acssesTask(sc_no, _local3);
_local3[0] = 11;
tc.acssesTask(playno, _local3);
tc.acssesTask(playno, [100, 13]);
tc.acssesTask(playno, [20]);
}
return(true);
}
if (!checkpoint) {
switch (type) {
case 0 :
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
if (tc.getTask(playno).checkLine(mc._x + linedata[1], mc._y + linedata[2], mc._x + (linedata[0] + linedata[1]), mc._y + linedata[2], 0, type)) {
if (tc.getTask(playno).checkLine(mc._x + linedata[4], mc._y + linedata[5], mc._x + (linedata[3] + linedata[4]), mc._y + linedata[5], 1, type)) {
if (tc.getTask(playno).checkLine(mc._x + linedata[7], mc._y + linedata[8], mc._x + (linedata[6] + linedata[7]), mc._y + linedata[8], 2, type)) {
hantei = 3;
} else {
hantei = 2;
}
} else {
hantei = 1;
}
checkpoint = true;
mekuri_wait = 0;
nextLine(tc);
}
break;
default :
trace(("\u30AD\u30E3\u30E9\u30AF\u30BF\u30FCErr " + type) + "\u756A\u306E\u30AD\u30E3\u30E9\u30AF\u30BF\u30FC\u306F\u5C45\u306A\u3044");
}
} else {
nextLine(tc);
}
} else if (hitcount > 0) {
hitcount--;
if (hitcount == 0) {
mc.Effect.stop();
}
}
} else {
myalpha = myalpha - 5;
mc._alpha = myalpha;
shadowMC._alpha = myalpha;
}
if (type == 6) {
count++;
if (count > 20) {
count = 0;
tmpbuff = (tmpbuff + 1) % 2;
mc.AAA.gotoAndStop(tmpbuff + 1);
}
}
if (flash_f > 0) {
if (flash_f == 1) {
mc.transform.colorTransform = color_buckup;
}
flash_f--;
}
shadowMC._X = mc._x - 35;
shadowMC._y = mc._y - 17.9;
if ((mc._x < harfw) || (myalpha < 1)) {
return(false);
}
return(true);
}
function nextLine(tc) {
var _local3 = [0, 0, 0, 0];
var _local6;
var _local5;
var _local7 = false;
var _local8 = false;
switch (type) {
case 0 :
case 1 :
case 2 :
if (tc.getTask(playno).checkLine(mc._x + linedata[10], mc._y + linedata[11], mc._x + (linedata[9] + linedata[10]), mc._y + linedata[11], 3, type, hantei, my_no)) {
if (postion == 0) {
_local3[0] = 10;
} else {
_local3[0] = 11;
}
_local3[1] = mc._x;
_local3[2] = mc._y;
tc.acssesTask(b_no, _local3);
mc.gotoAndStop("Mekuri");
mc.BBB.gotoAndStop(pantu_no);
mc.AAA.gotoAndStop(hair_no);
switch (hantei) {
case 1 :
tc.setTask(new sorce.task.Judge(tmc, 3, mc._x, mc._y - 200, spx));
_local3[0] = 2;
_local3[1] = sorce.data.MekuriData.Lpoint[0 + (type * 2)];
_local3[2] = sorce.data.MekuriData.Lpoint[1 + (type * 2)];
_local3[3] = now_pantu;
_local3 = tc.acssesTask(sc_no, _local3);
_local5 = _local3[0];
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
mekuri_f = true;
_local6 = 0;
tc.acssesTask(playno, [20]);
break;
case 2 :
tc.setTask(new sorce.task.Judge(tmc, 2, mc._x, mc._y - 200, spx));
_local3[0] = 2;
_local3[1] = sorce.data.MekuriData.Mpoint[0 + (type * 2)];
_local3[2] = sorce.data.MekuriData.Mpoint[1 + (type * 2)];
_local3[3] = now_pantu;
_local3 = tc.acssesTask(sc_no, _local3);
_local5 = _local3[0];
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
mekuri_f = true;
_local6 = 1;
tc.acssesTask(playno, [20]);
break;
case 3 :
var _local9 = new flash.geom.ColorTransform(1, 0.5, 0.9, 1, 20, 20, 20, 0);
mc.transform.colorTransform = _local9;
flash_f = 4;
tc.setTask(new sorce.task.Judge(tmc, 1, mc._x, mc._y - 200, spx));
_local3 = tc.acssesTask(playno, [21]);
if (_local3[0] == 1) {
tc.setTask(new sorce.task.Rensa(tmc, mc._x, mc._y, mc));
_local7 = true;
}
_local3[0] = 2;
if (_local7) {
_local3[1] = sorce.data.MekuriData.Hpoint[0 + (type * 2)] * _root.yscbai;
_local3[2] = sorce.data.MekuriData.Hpoint[1 + (type * 2)] * _root.ycombbai;
} else {
_local3[1] = sorce.data.MekuriData.Hpoint[0 + (type * 2)];
_local3[2] = sorce.data.MekuriData.Hpoint[1 + (type * 2)];
}
_local3[3] = now_pantu;
_local3 = tc.acssesTask(sc_no, _local3);
_local5 = _local3[0];
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
_local3[0] = 7;
tc.acssesTask(playno, _local3);
mekuri_f = true;
_local6 = 2;
tc.acssesTask(playno, [100, 21]);
break;
}
tc.regstData("pantu", "iro", now_pantu);
tc.regstData("pantu", "level", _local6);
tc.regstData("pantu", "combf", _local5);
tc.acssesTask(playno, [100, Math.floor(Math.random() * 3) + 10]);
return(undefined);
}
_local8 = true;
break;
case 3 :
case 4 :
if (tc.getTask(playno).checkLine(mc._x + linedata[10], mc._y + linedata[11], mc._x + (linedata[9] + linedata[10]), mc._y + linedata[11], 3, type, hantei, my_no)) {
if (postion == 0) {
_local3[0] = 10;
} else {
_local3[0] = 11;
}
_local3[1] = mc._x;
_local3[2] = mc._y;
tc.acssesTask(b_no, _local3);
mc.BBB.gotoAndStop(pantu_no);
if (hantei == 3) {
var _local9 = new flash.geom.ColorTransform(1, 0.5, 0.9, 1, 20, 20, 20, 0);
mc.transform.colorTransform = _local9;
flash_f = 4;
mc.gotoAndStop("Mekuri");
mc.BBB.gotoAndStop(pantu_no);
tc.setTask(new sorce.task.Judge(tmc, 1, mc._x, mc._y - 200, spx));
_local3 = tc.acssesTask(playno, [21]);
if (_local3[0] == 1) {
tc.setTask(new sorce.task.Rensa(tmc, mc._x, mc._y, mc));
_local7 = true;
}
_local3[0] = 2;
if (_local7) {
_local3[1] = sorce.data.MekuriData.Hpoint[0 + (type * 2)] * _root.yscbai;
_local3[2] = sorce.data.MekuriData.Hpoint[1 + (type * 2)] * _root.ycombbai;
} else {
_local3[1] = sorce.data.MekuriData.Hpoint[0 + (type * 2)];
_local3[2] = sorce.data.MekuriData.Hpoint[1 + (type * 2)];
}
_local3[3] = now_pantu;
_local3 = tc.acssesTask(sc_no, _local3);
_local5 = _local3[0];
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
_local3[0] = 7;
tc.acssesTask(playno, _local3);
mekuri_f = true;
tc.regstData("pantu", "iro", now_pantu);
tc.regstData("pantu", "level", 2);
tc.regstData("pantu", "combf", _local5);
if (type == 3) {
tc.acssesTask(playno, [100, 16]);
} else {
tc.acssesTask(playno, [100, Math.floor(Math.random() * 3) + 10]);
}
tc.acssesTask(playno, [100, 21]);
} else if (hantei == 2) {
mc.gotoAndStop("Mekuri");
mc.BBB.gotoAndStop(pantu_no);
tc.setTask(new sorce.task.Judge(tmc, 2, mc._x, mc._y - 200, spx));
_local3[0] = 2;
_local3[1] = sorce.data.MekuriData.Mpoint[0 + (type * 2)];
_local3[2] = sorce.data.MekuriData.Mpoint[1 + (type * 2)];
_local3[3] = now_pantu;
_local3 = tc.acssesTask(sc_no, _local3);
_local5 = _local3[0];
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
mekuri_f = true;
tc.regstData("pantu", "iro", now_pantu);
tc.regstData("pantu", "level", 1);
tc.regstData("pantu", "combf", _local5);
if (type == 3) {
tc.acssesTask(playno, [100, 16]);
} else {
tc.acssesTask(playno, [100, Math.floor(Math.random() * 3) + 10]);
}
tc.acssesTask(playno, [20]);
} else {
mc.gotoAndStop("Hit");
hitcount = 5;
tc.setTask(new sorce.task.Judge(tmc, 4, mc._x, mc._y - 200, spx));
_local3[0] = 2;
_local3[1] = sorce.data.MekuriData.Dpoint[0 + (type * 2)];
_local3[2] = sorce.data.MekuriData.Dpoint[1 + (type * 2)] - (now_stage * 1.05);
_local3[3] = now_pantu;
tc.acssesTask(sc_no, _local3);
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
mekuri_f = true;
_local3[0] = 12;
tc.acssesTask(b_no, _local3);
_local3[0] = 6;
tc.acssesTask(playno, _local3);
_local3[0] = 11;
tc.acssesTask(playno, _local3);
tc.acssesTask(playno, [100, 6]);
tc.acssesTask(playno, [20]);
}
} else {
_local8 = true;
}
break;
case 5 :
if (tc.getTask(playno).checkLine(mc._x + linedata[10], mc._y + linedata[11], mc._x + (linedata[9] + linedata[10]), mc._y + linedata[11], 3, type, hantei, my_no)) {
if (postion == 0) {
_local3[0] = 10;
} else {
_local3[0] = 11;
}
_local3[1] = mc._x;
_local3[2] = mc._y;
tc.acssesTask(b_no, _local3);
mc.gotoAndStop("Hit");
hitcount = 5;
tc.setTask(new sorce.task.Judge(tmc, 4, mc._x, mc._y - 200, spx));
_local3[0] = 2;
_local3[1] = sorce.data.MekuriData.Dpoint[0 + (type * 2)];
_local3[2] = sorce.data.MekuriData.Dpoint[1 + (type * 2)] - (now_stage * 1.05);
_local3[3] = now_pantu;
tc.acssesTask(sc_no, _local3);
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
mekuri_f = true;
_local3[0] = 12;
tc.acssesTask(b_no, _local3);
_local3[0] = 6;
tc.acssesTask(playno, _local3);
_local3[0] = 11;
tc.acssesTask(playno, _local3);
tc.acssesTask(playno, [100, 6]);
tc.acssesTask(playno, [20]);
} else {
_local8 = true;
}
break;
case 6 :
if (tc.getTask(playno).checkLine(mc._x + linedata[10], mc._y + linedata[11], mc._x + (linedata[9] + linedata[10]), mc._y + linedata[11], 3, type, hantei, my_no)) {
if (postion == 0) {
_local3[0] = 10;
} else {
_local3[0] = 11;
}
_local3[1] = mc._x;
_local3[2] = mc._y;
tc.acssesTask(b_no, _local3);
if (tmpbuff == 0) {
mc.gotoAndStop("Hit");
hitcount = 5;
tc.setTask(new sorce.task.Judge(tmc, 4, mc._x, mc._y - 200, spx));
_local3[0] = 2;
_local3[1] = sorce.data.MekuriData.Dpoint[0 + (type * 2)];
_local3[2] = sorce.data.MekuriData.Dpoint[1 + (type * 2)] - (now_stage * 1.05);
_local3[3] = now_pantu;
tc.acssesTask(sc_no, _local3);
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
mekuri_f = true;
_local3[0] = 12;
tc.acssesTask(b_no, _local3);
_local3[0] = 6;
tc.acssesTask(playno, _local3);
_local3[0] = 11;
tc.acssesTask(playno, _local3);
tc.acssesTask(playno, [100, 6]);
tc.acssesTask(playno, [20]);
// unexpected jump
}
mc.gotoAndStop("Mekuri");
mc.BBB.gotoAndStop(pantu_no);
mc.AAA.gotoAndStop(hair_no);
switch (hantei) {
case 1 :
tc.setTask(new sorce.task.Judge(tmc, 3, mc._x, mc._y - 200, spx));
_local3[0] = 2;
_local3[1] = sorce.data.MekuriData.Lpoint[0 + (type * 2)];
_local3[2] = sorce.data.MekuriData.Lpoint[1 + (type * 2)];
_local3[3] = now_pantu;
_local3 = tc.acssesTask(sc_no, _local3);
_local5 = _local3[0];
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
mekuri_f = true;
_local6 = 0;
tc.acssesTask(playno, [20]);
break;
case 2 :
tc.setTask(new sorce.task.Judge(tmc, 2, mc._x, mc._y - 200, spx));
_local3[0] = 2;
_local3[1] = sorce.data.MekuriData.Mpoint[0 + (type * 2)];
_local3[2] = sorce.data.MekuriData.Mpoint[1 + (type * 2)];
_local3[3] = now_pantu;
_local3 = tc.acssesTask(sc_no, _local3);
_local5 = _local3[0];
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
mekuri_f = true;
_local6 = 1;
tc.acssesTask(playno, [20]);
break;
case 3 :
var _local9 = new flash.geom.ColorTransform(1, 0.5, 0.9, 1, 20, 20, 20, 0);
mc.transform.colorTransform = _local9;
flash_f = 4;
tc.setTask(new sorce.task.Judge(tmc, 1, mc._x, mc._y - 200, spx));
_local3 = tc.acssesTask(playno, [21]);
if (_local3[0] == 1) {
tc.setTask(new sorce.task.Rensa(tmc, mc._x, mc._y, mc));
_local7 = true;
}
_local3[0] = 2;
if (_local7) {
_local3[1] = sorce.data.MekuriData.Hpoint[0 + (type * 2)] * _root.yscbai;
_local3[2] = sorce.data.MekuriData.Hpoint[1 + (type * 2)] * _root.ycombbai;
} else {
_local3[1] = sorce.data.MekuriData.Hpoint[0 + (type * 2)];
_local3[2] = sorce.data.MekuriData.Hpoint[1 + (type * 2)];
}
_local3[3] = now_pantu;
_local3 = tc.acssesTask(sc_no, _local3);
_local5 = _local3[0];
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
mekuri_f = true;
_local3[0] = 7;
tc.acssesTask(playno, _local3);
tc.acssesTask(playno, [100, 21]);
_local6 = 2;
break;
}
tc.regstData("pantu", "iro", now_pantu);
tc.regstData("pantu", "level", _local6);
tc.regstData("pantu", "combf", _local5);
tc.acssesTask(playno, [100, 19]);
return(undefined);
} else {
_local8 = true;
}
break;
case 7 :
if (tc.getTask(playno).checkLine(mc._x + linedata[10], mc._y + linedata[11], mc._x + (linedata[9] + linedata[10]), mc._y + linedata[11], 3, type, hantei, my_no)) {
if (postion == 0) {
_local3[0] = 10;
} else {
_local3[0] = 11;
}
_local3[1] = mc._x;
_local3[2] = mc._y;
tc.acssesTask(b_no, _local3);
mc.gotoAndStop("Mekuri");
mc.BBB.gotoAndStop(pantu_no);
mc.AAA.gotoAndStop(hair_no);
switch (hantei) {
case 1 :
tc.setTask(new sorce.task.Judge(tmc, 3, mc._x, mc._y - 200, spx));
_local3[0] = 2;
_local3[1] = sorce.data.MekuriData.Lpoint[0 + (type * 2)];
_local3[2] = sorce.data.MekuriData.Lpoint[1 + (type * 2)];
_local3[3] = now_pantu;
_local3 = tc.acssesTask(sc_no, _local3);
_local5 = _local3[0];
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
mekuri_f = true;
_local6 = 0;
tc.acssesTask(playno, [20]);
break;
case 2 :
tc.setTask(new sorce.task.Judge(tmc, 2, mc._x, mc._y - 200, spx));
_local3[0] = 2;
_local3[1] = sorce.data.MekuriData.Mpoint[0 + (type * 2)];
_local3[2] = sorce.data.MekuriData.Mpoint[1 + (type * 2)];
_local3[3] = now_pantu;
_local3 = tc.acssesTask(sc_no, _local3);
_local5 = _local3[0];
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
mekuri_f = true;
_local6 = 1;
tc.acssesTask(playno, [20]);
break;
case 3 :
var _local9 = new flash.geom.ColorTransform(1, 0.5, 0.9, 1, 20, 20, 20, 0);
mc.transform.colorTransform = _local9;
flash_f = 4;
tc.setTask(new sorce.task.Judge(tmc, 1, mc._x, mc._y - 200, spx));
_local3 = tc.acssesTask(playno, [21]);
if (_local3[0] == 1) {
tc.setTask(new sorce.task.Rensa(tmc, mc._x, mc._y, mc));
_local7 = true;
}
_local3[0] = 2;
if (_local7) {
_local3[1] = sorce.data.MekuriData.Hpoint[0 + (type * 2)] * _root.yscbai;
_local3[2] = sorce.data.MekuriData.Hpoint[1 + (type * 2)] * _root.ycombbai;
} else {
_local3[1] = sorce.data.MekuriData.Hpoint[0 + (type * 2)];
_local3[2] = sorce.data.MekuriData.Hpoint[1 + (type * 2)];
}
_local3[3] = now_pantu;
_local3 = tc.acssesTask(sc_no, _local3);
_local5 = _local3[0];
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
_local3[0] = 7;
tc.acssesTask(playno, _local3);
mekuri_f = true;
_local6 = 2;
tc.acssesTask(playno, [100, 21]);
break;
}
} else {
_local8 = true;
}
}
if (!_local8) {
return(undefined);
}
mekuri_wait++;
if (mekuri_wait > 3) {
checkpoint = false;
tc.setTask(new sorce.task.Judge(tmc, 4, mc._x, mc._y - 200, spx));
_local3[0] = 2;
_local3[1] = 0;
_local3[2] = sorce.data.MekuriData.Mekurimisi - (now_stage * 1.05);
_local3[3] = -1;
tc.acssesTask(sc_no, _local3);
_local3[0] = 11;
tc.acssesTask(playno, _local3);
tc.acssesTask(playno, [100, 13]);
tc.acssesTask(playno, [20]);
}
}
function finalize(tc) {
mc.removeMovieClip();
shadowMC.removeMovieClip();
shadowMC = null;
mc = null;
tmc = null;
gaza = null;
var _local2 = [1];
tc.acssesTask(tc.checkData("enemy", "no"), _local2);
}
function talkTask(mess, tc) {
if (!(mess[0] === 0)) {
} else if (type != 5) {
var _local6;
var _local3 = [0, 0, 0, 0];
mc.gotoAndStop("Mekuri");
mc.BBB.gotoAndStop(pantu_no);
if (type < 3) {
mc.AAA.gotoAndStop(hair_no);
}
var _local7 = new flash.geom.ColorTransform(1, 0.5, 0.9, 1, 20, 20, 20, 0);
mc.transform.colorTransform = _local7;
flash_f = 4;
tc.setTask(new sorce.task.Judge(tmc, 1, mc._x, mc._y - 200, spx));
tc.setTask(new sorce.task.Rensa(tmc, mc._x, mc._y, mc));
var _local8;
if (mess[1] > _root.ycombmax) {
mess[1] = _root.ycombmax;
}
_local3[0] = 2;
_local3[1] = sorce.data.MekuriData.Hpoint[0 + (type * 2)] * _root.yscbai;
_local3[2] = sorce.data.MekuriData.Hpoint[1 + (type * 2)] * _root.ycombbai;
_local3[3] = now_pantu;
_local3 = tc.acssesTask(sc_no, _local3);
_local6 = _local3[0];
_local3[0] = 5;
tc.acssesTask(b_no, _local3);
mekuri_f = true;
tc.regstData("pantu", "iro", now_pantu);
tc.regstData("pantu", "level", 2);
tc.regstData("pantu", "combf", _local6);
if (type == 3) {
tc.acssesTask(playno, [100, 16]);
} else if (type != 7) {
tc.acssesTask(playno, [100, Math.floor(Math.random() * 3) + 10]);
}
tc.acssesTask(playno, [100, 21]);
}
return(mess);
}
}
Symbol 1262 MovieClip [__Packages.sorce.data.CharLine] Frame 0
class sorce.data.CharLine
{
function CharLine () {
}
static var StGr = [45, -20, -83, 20, -10, -83, 8, -4, -83, 45, -20, -100];
static var TeRd = [45, -20, -83, 20, -10, -83, 8, -4, -83, 45, -20, -100];
static var TeMn = [45, -20, -83, 20, -10, -83, 8, -4, -83, 45, -20, -100];
static var StR1 = [45, -20, -83, 20, -10, -83, 8, -4, -83, 45, -20, -100];
static var StR2 = [45, -20, -83, 20, -10, -83, 8, -4, -83, 45, -20, -110];
static var StBy = [45, -20, -83, 20, -10, -83, 8, -4, -83, 45, -20, -110];
}
Symbol 1263 MovieClip [__Packages.sorce.data.MekuriData] Frame 0
class sorce.data.MekuriData
{
function MekuriData () {
}
static var Hpoint = [4, 100, 4, 100, 4, 100, 8, 300, 12, 500, 10, 0, 24, 800, 3, 150];
static var Mpoint = [2, 75, 2, 75, 2, 75, 4, 200, 6, 350, 0, -500, 12, 500, 2, 100];
static var Lpoint = [1, 50, 1, 50, 1, 50, 2, 150, 3, 200, 0, -500, 6, 300, 1, 50];
static var Dpoint = [0, -200, 0, -200, 0, -200, 0, -800, 0, -1000, 0, -1500, 0, -2000, 0, 0];
static var Mekurimisi = -200;
static var superwari = 1.2;
static var supernobi = 0.45;
static var supermax = 5;
}
Symbol 1264 MovieClip [__Packages.sorce.task.Rensa] Frame 0
class sorce.task.Rensa extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, counter;
function Rensa (mmc, x, y, cmc) {
super();
mc = mmc.attachMovie("rensaEffect", "rensaEffect" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
mc.swapDepths(cmc);
counter = 0;
}
function init(no, tc) {
}
function run(tc) {
counter++;
if (counter > 4) {
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1265 MovieClip [__Packages.sorce.task.State] Frame 0
class sorce.task.State extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, clockH, clockM, mBuffer, clockS, clockF, clock_run, game_time, mekuri_now, mekuridraw_f, mekuriud, tensuu, mensuu, daipan_num, minipantu, scnum, pantunum, likepantu, st, supermode, undeath, mc2, mc3, likelove, gopa, nrcomb, yuka_no, b_no;
function State (mmc, h, m, g, sco, stg, like, lpn) {
super();
mc = mmc.attachMovie("param", "param" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 5;
mc._y = 5;
clockH = h;
clockM = (mBuffer = m);
clockS = 0;
clockF = 0;
clock_run = false;
game_time = g;
mekuri_now = 1000;
mekuridraw_f = false;
mekuriud = 0;
tensuu = sco;
mensuu = stg;
daipan_num = 0;
mc.TimeArea.stop();
if ((stg % 7) == 5) {
mc.TimeArea.gotoAndStop(2);
}
minipantu = new Array(10);
minipantu[0] = mc.minip1;
minipantu[1] = mc.minip2;
minipantu[2] = mc.minip3;
minipantu[3] = mc.minip4;
minipantu[4] = mc.minip5;
minipantu[5] = mc.minip6;
minipantu[6] = mc.minip7;
minipantu[7] = mc.minip8;
minipantu[8] = mc.minip9;
minipantu[9] = mc.minip10;
scnum = new Array(8);
scnum[0] = mc.Num1;
scnum[1] = mc.Num10;
scnum[2] = mc.Num100;
scnum[3] = mc.Num1000;
scnum[4] = mc.Num10000;
scnum[5] = mc.Num100000;
scnum[6] = mc.Num1000000;
pantunum = lpn;
likepantu = like;
st = 0;
supermode = false;
undeath = false;
var _local3;
var _local5 = 380;
switch (like) {
case 0 :
_local3 = "panty1";
break;
case 1 :
_local3 = "panty2";
break;
case 2 :
_local3 = "panty3";
break;
case 3 :
_local3 = "panty4";
break;
case 4 :
_local3 = "panty5";
break;
case 5 :
_local3 = "panty6";
break;
case 6 :
_local3 = "panty7";
break;
case 7 :
_local3 = "panty8";
break;
case 8 :
_local3 = "panty9";
_local5 = _local5 - 5.9;
}
mc2 = mmc.attachMovie(_local3, _local3 + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc2.stop();
mc2._x = 3.1;
mc2._y = _local5;
mc3 = mmc.attachMovie("LikePantuNum", "LikePantuNum" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc3._x = 35.9;
mc3._y = 373.6;
likelove = new Array(3);
likelove[0] = mc3.NUM1;
likelove[1] = mc3.NUM10;
likelove[2] = mc3.NUM100;
mc3.NUM100.stop();
mc3.NUM10.stop();
mc3.NUM1.stop();
gopa = 100;
nrcomb = 0;
}
function init(no, tc) {
tc.regstData("score", "no", no);
mekuri_pow(mekuri_now);
animetionStop();
drawStage(mensuu, tc);
clockRun();
drawScore(tensuu);
drawlove(pantunum);
yuka_no = tc.checkData("haikei", "no");
}
function run(tc) {
switch (st) {
case 0 :
if (clock_run) {
clockRun(tc);
}
if (mekuridraw_f) {
drawMekuri();
}
if (supermode) {
superbar(tc);
}
break;
case 1 :
break;
case 2 :
gopa = gopa - 10;
if (gopa <= 0) {
mc2._visible = false;
mc3._visible = false;
st = 1;
break;
}
mc2._alpha = gopa;
mc3._alpha = gopa;
break;
case 3 :
if (mekuridraw_f) {
drawMekuri();
}
if (!supermode) {
break;
}
superbar(tc);
}
if (_root.debug) {
if ((!undeath) && (Key.isDown(32))) {
undeath = true;
tc.setTask(new sorce.task.Judge(mc, 2, 320, 240, 0));
}
}
return(true);
}
function finalize(tc) {
var _local3 = [2, tensuu, pantunum];
tc.acssesTask(tc.checkData("play", "no"), _local3);
tc.elaseData("score");
mc.removeMovieClip();
mc = null;
mc2.removeMovieClip();
mc2 = null;
mc3.removeMovieClip();
mc3 = null;
}
function talkTask(mess, tc) {
var _local4;
switch (mess[0]) {
case 0 :
clock_run = mess[1];
break;
case 1 :
mess[0] = true;
break;
case 2 :
var _local7 = tc.checkData("combo", "no");
var _local6 = 0;
if (_local7 != null) {
var _local5 = [2];
_local5 = tc.acssesTask(_local7, _local5);
tensuu = tensuu + ((mess[1] * _local5[0]) * 10);
_local6 = _local5[0];
} else {
tensuu = tensuu + mess[1];
}
tensuu = tensuu + nrcomb;
drawScore(tensuu);
if (mess[2] > 0) {
if ((nrcomb + _local6) > _root.combmax) {
_local4 = _root.combmax;
} else {
_local4 = nrcomb + _local6;
}
_local4 = Math.floor(_local4 * _root.combbai);
mess[2] = mess[2] + _local4;
}
if (mekuriAdd(mess[2], tc)) {
mess[0] = 1;
} else {
mess[0] = 0;
}
lavepantu(mess[3]);
break;
case 3 :
b_no = mess[1];
break;
case 4 :
st = 2;
break;
case 5 :
mess[0] = tensuu;
mess[1] = pantunum;
}
return(mess);
}
function lavepantu(me) {
if (me == likepantu) {
pantunum++;
if (pantunum > 999) {
return(undefined);
}
drawlove(pantunum);
}
}
function drawlove(num) {
var _local4;
var _local3;
var _local2 = 3;
while (_local2 > -1) {
((_local2 > 0) ? (_local3 = Math.pow(10, _local2)) : (_local3 = 1));
_local4 = Math.floor(num / _local3);
likelove[_local2].gotoAndStop(_local4 + 1);
num = num - (_local4 * _local3);
_local2--;
}
}
function superbar(tc) {
var _local4;
mekuri_now = mekuri_now - 5;
mekuri_pow(mekuri_now);
if (mekuri_now <= 2000) {
mekuri_now = 1000;
mekuriud = -100;
mekuridraw_f = true;
supermode = false;
animetionStop2();
_local4 = tc.checkData("combo", "no");
if (_local4 != null) {
var _local5 = [1];
tc.acssesTask(_local4, _local5);
}
var _local2 = [7];
tc.acssesTask(b_no, _local2);
_local2[0] = 3;
tc.acssesTask(yuka_no, _local2);
}
}
function drawMekuri() {
var _local2 = mc.Mekuribar._width * 10;
_local2 = _local2 + mekuriud;
if (mekuriud > 0) {
if (_local2 >= mekuri_now) {
_local2 = mekuri_now;
mekuridraw_f = false;
}
} else if (_local2 <= mekuri_now) {
_local2 = mekuri_now;
mekuridraw_f = false;
}
mekuri_pow(_local2);
}
function mekuri_pow(ms) {
var _local2 = 300 * (ms / mekuri_max);
mc.Mekuribar._width = _local2;
}
function mekuriAdd(ms, tc) {
var _local2;
var _local5 = false;
if (mekuri_now == 0) {
return(undefined);
}
if (supermode) {
if (ms > 0) {
_local2 = sorce.data.MekuriData.superwari + (sorce.data.MekuriData.supernobi * Math.floor(mensuu / 7));
if (_local2 > sorce.data.MekuriData.supermax) {
_local2 = sorce.data.MekuriData.supermax;
}
ms = ms / _local2;
}
if (ms > 0) {
_local2 = tc.checkData("combo", "no");
if (_local2 == null) {
tc.setTask(new sorce.task.Combo(mc));
} else {
var _local6 = [0];
tc.acssesTask(_local2, _local6);
}
} else {
_local2 = tc.checkData("combo", "no");
if (_local2 != null) {
var _local6 = [1];
tc.acssesTask(_local2, _local6);
}
}
_local5 = true;
} else if (ms > 0) {
nrcomb++;
} else {
nrcomb = 0;
}
_local2 = mekuri_now + ms;
if (_local2 >= 3000) {
mekuri_now = 3000;
if (!supermode) {
animetionPlay();
var _local7 = [6];
tc.acssesTask(b_no, _local7);
_local7[0] = 2;
tc.acssesTask(yuka_no, _local7);
supermode = true;
nrcomb = 0;
}
} else if (_local2 <= 0) {
mekuri_now = 0;
var _local7 = [3];
if (!undeath) {
tc.acssesTask(b_no, _local7);
}
} else {
mekuri_now = _local2;
}
_local2 = mekuri_now - (mc.Mekuribar._width * 10);
mekuriud = _local2 / 6;
mekuridraw_f = true;
return(_local5);
}
function animetionStop() {
mc.Num1.stop();
mc.Num10.stop();
mc.Num100.stop();
mc.Num1000.stop();
mc.Num10000.stop();
mc.Num100000.stop();
mc.Num1000000.stop();
mc.BigNum.stop();
animetionStop2();
}
function animetionStop2() {
mc.Marker.stop();
mc.Marker.gotoAndStop(1);
mc.Mekuribar.stop();
mc.Mekuribar.gotoAndStop(1);
mc.Prate.stop();
mc.Prate.gotoAndStop(1);
}
function animetionPlay() {
mc.Marker.play();
mc.Mekuribar.play();
mc.Prate.play();
}
function drawStage(stg, tc) {
var _local2;
stg = Math.floor(stg / 7);
if (stg < 100) {
_local2 = 1;
while (_local2 != 10) {
minipantu[_local2]._visible = false;
_local2++;
}
var _local4 = stg / 10;
if (stg > 9) {
mc.BigNum.gotoAndStop(Math.floor(_local4) + 1);
} else {
mc.BigPantu._visible = false;
mc.BigNum._visible = false;
}
_local4 = (stg % 10) + 1;
_local2 = 0;
while (_local2 < _local4) {
tc.setTask(new sorce.task.StagePantu(minipantu[_local2], _local2 * 5));
_local2++;
}
} else {
mc.BigNum.gotoAndStop(10);
_local2 = 0;
while (_local2 != 10) {
tc.setTask(new sorce.task.StagePantu(minipantu[_local2], _local2 * 5));
_local2++;
}
}
}
function clockRun(tc) {
var _local4;
clockF++;
if (!(clockF % 2)) {
clockS++;
if (!(clockS % 60)) {
clockM++;
if ((clockM - mBuffer) > game_time) {
clock_run = false;
var _local2 = [8];
tc.acssesTask(b_no, _local2);
st = 3;
}
if (!(clockM % 60)) {
clockH++;
if (!(clockH % 24)) {
clockH = 0;
}
}
}
}
mc.NeedleLow._rotation = ((((clockM % 60) / 60) * 360) + (((clockS % 60) / 60) * 6)) + 180;
mc.NeedleHight._rotation = ((((clockH % 12) / 12) * 360) + (((clockM % 60) / 60) * 30)) + 90;
}
function setTime(h, m) {
clockH = h;
clockM = (mBuffer = m);
clockS = 0;
clockF = 0;
}
function drawScore(sc) {
var _local5;
var _local3;
if (sc > 9999999) {
mc.Num1.gotoAndStop(10);
mc.Num10.gotoAndStop(10);
mc.Num100.gotoAndStop(10);
mc.Num1000.gotoAndStop(10);
mc.Num10000.gotoAndStop(10);
mc.Num100000.gotoAndStop(10);
mc.Num1000000.gotoAndStop(10);
} else {
var _local2 = 6;
while (_local2 > -1) {
((_local2 > 0) ? (_local3 = Math.pow(10, _local2)) : (_local3 = 1));
_local5 = Math.floor(sc / _local3);
scnum[_local2].gotoAndStop(_local5 + 1);
sc = sc - (_local5 * _local3);
_local2--;
}
}
}
static var mekuri_max = 3000;
}
Symbol 1266 MovieClip [__Packages.sorce.task.Combo] Frame 0
class sorce.task.Combo extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, comb, bmc, nums, buff, sta, dis_height, dis_width, data_w, data_h, ari, name_f, fadeout;
function Combo (mmc) {
super();
mc = mmc.attachMovie("combo", "combo" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 360;
mc._y = 46;
comb = 0;
bmc = new Array(3);
bmc[0] = mc.Comb1;
bmc[1] = mc.Comb10;
bmc[2] = mc.Comb100;
nums = new Array(3);
buff = new Array(3);
var _local3 = 0;
while (_local3 != 3) {
nums[_local3] = 0;
buff[_local3] = 0;
bmc[_local3].stop();
_local3++;
}
sta = 0;
dis_height = new Array(3);
dis_width = new Array(3);
_local3 = 0;
while (_local3 != 10) {
data_w[_local3] = 58;
data_h[_local3] = 61;
_local3++;
}
ari = new nigoro.lib.duplex.Math.Arithmetic(100);
}
function init(no, tc) {
addComb();
tc.regstData("combo", "no", no);
name_f = true;
}
function run(tc) {
switch (sta) {
case 0 :
break;
case 1 :
fadeout = fadeout - 10;
mc._alpha = fadeout;
if (fadeout != 0) {
break;
}
return(false);
}
popup();
return(true);
}
function finalize(tc) {
if (name_f) {
tc.elaseData("combo");
}
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
addComb();
break;
case 1 :
tc.elaseData("combo");
name_f = false;
var _local4 = [10, comb];
tc.acssesTask(tc.checkData("play", "no"), _local4);
fadeout = 100;
sta = 1;
break;
case 2 :
mess[0] = comb;
}
return(mess);
}
function popup() {
var _local2;
_local2 = 0;
while (_local2 != 3) {
if (nums[_local2] != 0) {
if (nums[_local2] == 100) {
bmc[_local2]._alpha = 50;
bmc[_local2]._width = data_w[dis_width[_local2]] * 1.1;
bmc[_local2]._height = data_h[dis_width[_local2]] * 1.1;
nums[_local2] = 10;
} else {
nums[_local2] = nums[_local2] - 2;
bmc[_local2]._alpha = bmc[_local2]._alpha + 10;
bmc[_local2]._width = data_w[dis_width[_local2]] * (1 + (nums[_local2] / 100));
bmc[_local2]._height = data_h[dis_width[_local2]] * (1 + (nums[_local2] / 100));
}
}
_local2++;
}
}
function addComb() {
var _local2;
var _local3;
comb++;
_local3 = ari.getBeam(100, comb);
_local2 = ari.getBeam(1, comb);
mc.Comb1.gotoAndStop(_local2 + 1);
dis_width[0] = _local2;
nums[0] = 100;
_local2 = ari.getBeam(10, comb);
if ((_local2 == 0) && (_local3 == 0)) {
mc.Comb10._visible = false;
} else {
mc.Comb10._visible = true;
mc.Comb10.gotoAndStop(_local2 + 1);
dis_width[1] = _local2;
}
if (_local2 != buff[1]) {
nums[1] = 100;
buff[1] = _local2;
}
_local2 = _local3;
if (_local2 == 0) {
mc.Comb100._visible = false;
} else {
mc.Comb100._visible = true;
mc.Comb100.gotoAndStop(_local2 + 1);
dis_width[2] = _local2;
}
if (_local2 != buff[2]) {
nums[2] = 100;
buff[2] = _local2;
}
}
}
Symbol 1267 MovieClip [__Packages.sorce.task.StagePantu] Frame 0
class sorce.task.StagePantu extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, wc, st, al;
function StagePantu (mmc, wt) {
super();
mc = mmc;
wc = wt;
mc._visible = true;
mc._alpha = 0;
st = 0;
al = 0;
}
function init(no, tc) {
}
function run(tc) {
var _local2 = true;
st++;
if (st > wc) {
al = al + 5;
if (al >= 100) {
al = 100;
_local2 = false;
}
mc._alpha = al;
}
return(_local2);
}
function finalize(tc) {
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1268 MovieClip [__Packages.sorce.task.Banchou] Frame 0
class sorce.task.Banchou extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
static var speed_add, NormalSp, MaxSp;
var mymc, stageno, top, mid, nmc, smc, shadowMC, dmc, sta, counter, speed, legfp, armrfp, armlfp, Graphic_f, right_h, left_h, life_f, mekutta, move_pow, move_pow_sub, startdahu, nokezoriwait, yoyakuend, yoyakucounter, haikei_no, score_no, enemy_no, my_no, go_idou, gro_wait;
function Banchou (mmc, tmc, bmc, men, sw) {
super();
var _local4;
mymc = mmc;
stageno = men;
speed_add = 0.015 * (60 / FPS);
_local4 = ((0.01 * Math.floor(stageno / 6)) + 0.23) + ((stageno % 6) * 0.005);
NormalSp = _local4 * (60 / FPS);
MaxSp = (_local4 * 0.5) * (60 / FPS);
top = tmc;
mid = bmc;
nmc = mmc.attachMovie("bancho", "bancho" + mmc.getNextHighestDepth(), 10);
smc = mmc.attachMovie("superbancho", "superbancho" + mmc.getNextHighestDepth(), 11);
shadowMC = sw.attachMovie("shadow1", "shadow1" + sw.getNextHighestDepth(), sw.getNextHighestDepth());
nmc.gotoAndStop("StartDemo");
smc.stop();
smc._visible = false;
smc.gotoAndStop("run");
dmc._x = (nmc._x = (smc._x = 142.5));
dmc._y = (nmc._y = (smc._y = 324.9));
sta = 0;
counter = 0;
speed = 0;
legfp = 1;
armrfp = 1;
armlfp = 1;
Graphic_f = 0;
right_h = 0;
left_h = 0;
life_f = true;
mekutta = false;
move_pow = 0;
move_pow_sub = 0;
startdahu = true;
nokezoriwait = 31;
yoyakuend = false;
yoyakucounter = 0;
}
function init(no, tc) {
haikei_no = tc.checkData("haikei", "no");
score_no = tc.checkData("score", "no");
enemy_no = tc.checkData("enemy", "no");
tc.regstData("banchou", "no", no);
var _local3 = [3, no];
tc.acssesTask(score_no, _local3);
tc.acssesTask(enemy_no, _local3);
my_no = no;
}
function run(tc) {
var _local5 = false;
var _local4;
var _local3;
var _local6;
if (Graphic_f == 0) {
_local3 = nmc;
} else {
_local3 = smc;
}
switch (sta) {
case 0 :
if (nmc.Demo._currentframe == 61) {
_local3.gotoAndStop("run");
nmc.ArmR.stop();
nmc.ArmL.stop();
nmc.Legs.stop();
smc.ArmR.stop();
smc.ArmL.stop();
smc.Legs.stop();
speed = 0.3;
sta = 1;
tc.acssesTask(tc.checkData("play", "no"), [101, 2, 100]);
}
break;
case 1 :
counter = counter + speed;
if (counter >= 1) {
_local5 = true;
counter = counter - 1;
speed = speed + speed_add;
if (speed >= NormalSp) {
speed = NormalSp;
sta = 2;
var _local7 = true;
_local4 = [0, _local7];
tc.acssesTask(score_no, _local4);
_local4[0] = 0;
_local4[1] = _local7;
tc.acssesTask(enemy_no, _local4);
}
_local4 = [0, speed * 32];
tc.acssesTask(haikei_no, _local4);
}
break;
case 2 :
counter = counter + speed;
if (counter >= 1) {
_local5 = true;
counter = counter - 1;
}
break;
case 3 :
counter = counter + speed;
if (counter >= 1) {
_local5 = true;
counter = counter - 1;
}
_local3._x = _local3._x - 8;
if (_local3._x < (-_local3._width)) {
tc.acssesTask(tc.checkData("play", "no"), [22]);
_local4 = [8];
_local4 = tc.acssesTask(tc.checkData("play", "no"), _local4);
if (_local4[0]) {
tc.acssesTask(tc.checkData("play", "no"), [101, -1, 3]);
return(false);
}
tc.acssesTask(tc.checkData("play", "no"), [102, 0, 3]);
nmc.gotoAndStop("Gameover");
sta = 4;
go_idou = 32;
nmc._y = 324.9;
}
break;
case 4 :
_local4 = [2, 0];
_local4 = tc.acssesTask(enemy_no, _local4);
if (_local4[0] < 1) {
sta = 5;
}
break;
case 5 :
speed = speed - 0.05;
if (speed <= -0.6) {
speed = -0.6;
sta = 6;
}
_local4 = [0, speed * 32];
tc.acssesTask(haikei_no, _local4);
break;
case 6 :
_local3._x = _local3._x - ((speed * 32) * 1.25);
if ((_local3._x - (_local3._width / 2)) > 0) {
sta = 7;
}
break;
case 7 :
speed = speed + 0.03;
if (speed >= 0) {
speed = 0;
gro_wait = 0;
tc.setTask(new sorce.task.Text2(top, "gameTexts", 320, 200, 7, 2));
tc.acssesTask(tc.checkData("play", "no"), [100, 20]);
_local4 = [4];
tc.acssesTask(score_no, _local4);
sta = 8;
}
_local4 = [0, speed * 32];
tc.acssesTask(haikei_no, _local4);
_local3._x = _local3._x - (_local4[1] * 1.25);
break;
case 8 :
tc.acssesTask(tc.checkData("play", "no"), [3]);
sta = 9;
break;
case 9 :
break;
case 10 :
counter = counter + speed;
if (counter >= 1) {
_local5 = true;
counter = counter - 1;
}
_local3._x = _local3._x + 16;
if (_local3._x > 720) {
_local4 = [2, 0];
_local4 = tc.acssesTask(enemy_no, _local4);
if (_local4[0] < 1) {
_local4 = [0, 1];
tc.acssesTask(tc.checkData("play", "no"), _local4);
_local6 = tc.checkData("super", "no");
if (_local6 != null) {
_local4[0] = 0;
tc.acssesTask(_local6, _local4);
}
return(false);
}
}
break;
case 11 :
nokezoriwait++;
if (nokezoriwait > 30) {
tc.acssesTask(tc.checkData("play", "no"), [14, 0]);
_local3.gotoAndStop("run");
nmc.ArmR.stop();
nmc.ArmL.stop();
nmc.Legs.stop();
smc.ArmR.stop();
smc.ArmL.stop();
smc.Legs.stop();
sta = 2;
}
counter = counter + speed;
if (counter >= 1) {
_local5 = true;
counter = counter - 1;
}
break;
case 12 :
yoyakucounter++;
if (yoyakucounter == 30) {
if (((stageno + 1) % 7) != 6) {
tc.setTask(new sorce.task.Text2(mymc, "gameTexts", 320, 115, 6, 2));
} else {
tc.setTask(new sorce.task.Text2(mymc, "gameTexts", 320, 115, 8, 2));
}
sta = 10;
tc.acssesTask(tc.checkData("play", "no"), [100, 5]);
}
counter = counter + speed;
if (counter >= 1) {
_local5 = true;
counter = counter - 1;
}
break;
case 10000 :
break;
default :
trace("banchou st = " + sta);
}
if ((sta > 3) && (sta < 10)) {
shadowMC._x = _local3._x - 86.5;
shadowMC._y = _local3._y - 77;
} else {
shadowMC._x = _local3._x - 74.5;
shadowMC._y = _local3._y - 27;
}
if (_local5) {
legfp++;
if (legfp == 6) {
legfp = 1;
}
_local3.Legs.gotoAndStop(legfp);
}
if (life_f) {
var _local8 = false;
if (left_h > 0) {
if (left_h == 7) {
_local3.ArmL.gotoAndStop(1);
left_h = 0;
} else {
_local3.ArmL.gotoAndStop(left_h);
left_h++;
}
}
if (right_h > 0) {
if (right_h == 7) {
_local3.ArmR.gotoAndStop(1);
right_h = 0;
} else {
_local3.ArmR.gotoAndStop(right_h);
right_h++;
}
}
}
return(true);
}
function onMouseDown() {
if (_root._ymouse < 220) {
if (left_h == 0) {
left_h = 2;
}
} else if (right_h == 0) {
right_h = 2;
}
}
function finalize(tc) {
nmc.removeMovieClip();
smc.removeMovieClip();
shadowMC.removeMovieClip();
shadowMC = null;
nmc = null;
smc = null;
mid = null;
mymc = null;
tc.elaseData("banchou");
}
function talkTask(mess, tc) {
var _local4;
var _local6;
switch (mess[0]) {
case 10 :
if (sta == 2) {
if (left_h == 0) {
left_h = 2;
}
nmc._x = mess[1] - 80;
smc._x = mess[1] - 80;
nmc._y = mess[2] + 20;
smc._y = mess[2] + 20;
tc.acssesTask(tc.checkData("play", "no"), [100, Math.floor(Math.random() * 5)]);
mess[0] = 1;
} else {
mess[0] = 0;
}
break;
case 11 :
if (sta == 2) {
if (right_h == 0) {
right_h = 2;
}
nmc._x = mess[1] - 80;
smc._x = mess[1] - 80;
nmc._y = mess[2] - 20;
smc._y = mess[2] - 20;
tc.acssesTask(tc.checkData("play", "no"), [100, Math.floor(Math.random() * 5)]);
mess[0] = 1;
} else {
mess[0] = 0;
}
break;
case 0 :
mess[0] = speed * 32;
break;
case 1 :
mess[0] = left_h;
mess[1] = top;
break;
case 2 :
mess[0] = right_h;
mess[1] = top;
break;
case 3 :
sta = 3;
life_f = false;
nmc.gotoAndStop("Out");
var _local5 = false;
_local4 = [0, _local5];
tc.acssesTask(enemy_no, _local4);
tc.acssesTask(tc.checkData("play", "no"), [13]);
case 4 :
mess[0] = life_f;
break;
case 5 :
mekutta = true;
break;
case 6 :
tc.setTask(new sorce.task.SpeedUD(my_no, speed, 0));
tc.setTask(new sorce.task.BanchouFlash1(mymc, smc._x, smc._y, my_no));
tc.acssesTask(tc.checkData("play", "no"), [100, 17]);
tc.acssesTask(tc.checkData("play", "no"), [100, 15]);
tc.acssesTask(tc.checkData("play", "no"), [101, 3, 30]);
_local4 = [4, 0.5];
tc.acssesTask(enemy_no, _local4);
nmc._visible = false;
smc._visible = true;
smc.gotoAndStop("run");
smc.ArmR.gotoAndStop(nmc.ArmR._currentframe);
smc.ArmL.gotoAndStop(nmc.ArmL._currentframe);
smc.Legs.gotoAndStop(nmc.Legs._currentframe);
smc.Legs.gotoAndStop(legfp);
Graphic_f = 1;
break;
case 7 :
tc.acssesTask(tc.checkData("play", "no"), [100, 18]);
tc.acssesTask(tc.checkData("play", "no"), [101, 2, 30]);
tc.setTask(new sorce.task.SpeedUD(my_no, speed, 1));
_local4 = [4, 1];
tc.acssesTask(enemy_no, _local4);
nmc._visible = true;
smc._visible = false;
nmc.gotoAndStop(smc._currentframe);
nmc.ArmR.gotoAndStop(smc.ArmR._currentframe);
nmc.ArmL.gotoAndStop(smc.ArmL._currentframe);
nmc.Legs.gotoAndStop(smc.Legs._currentframe);
Graphic_f = 0;
if (yoyakuend) {
life_f = false;
yoyakucounter = 0;
sta = 12;
_local5 = false;
_local4 = [0, _local5];
tc.acssesTask(enemy_no, _local4);
}
break;
case 8 :
if (life_f) {
if (Graphic_f == 1) {
yoyakuend = true;
} else {
if (((stageno + 1) % 7) != 6) {
tc.setTask(new sorce.task.Text2(mymc, "gameTexts", 320, 115, 6, 2));
} else {
tc.setTask(new sorce.task.Text2(mymc, "gameTexts", 320, 115, 8, 2));
}
life_f = false;
sta = 10;
_local5 = false;
_local4 = [0, _local5];
tc.acssesTask(enemy_no, _local4);
tc.acssesTask(tc.checkData("play", "no"), [100, 5]);
}
}
break;
case 9 :
speed = mess[1];
_local6 = [0, speed * 32];
tc.acssesTask(haikei_no, _local6);
break;
case 12 :
tc.acssesTask(tc.checkData("play", "no"), [103]);
tc.acssesTask(tc.checkData("play", "no"), [100, Math.floor(Math.random() * 3) + 7]);
if (life_f) {
nokezoriwait = 0;
tc.acssesTask(tc.checkData("play", "no"), [14, 1]);
nmc.ArmR.gotoAndStop(1);
smc.ArmR.gotoAndStop(1);
left_h = 0;
right_h = 0;
nmc.gotoAndStop("Damage");
smc.gotoAndStop("Damage");
nmc.Legs.stop();
smc.Legs.stop();
nmc.Legs.gotoAndStop(legfp);
smc.Legs.gotoAndStop(legfp);
sta = 11;
startdahu = true;
}
break;
case 13 :
mess[0] = smc._x;
mess[1] = smc._y;
break;
case 14 :
mess[0] = sta;
}
return(mess);
}
var FPS = 60;
}
Symbol 1269 MovieClip [__Packages.sorce.task.Text2] Frame 0
class sorce.task.Text2 extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, count, end;
function Text2 (mmc, st, x, y, t, se) {
super();
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
mc.stop();
mc.gotoAndStop(3);
mc.Mojimoji.Nakamoji.stop();
mc.Mojimoji.Nakamoji.gotoAndStop(t + 1);
count = 1;
end = false;
}
function init(no, tc) {
tc.regstData("textover", "no", no);
}
function run(tc) {
if (end) {
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
tc.elaseData("textover");
}
function talkTask(mess, tc) {
if (!(mess[0] === 0)) {
} else {
end = true;
}
return(mess);
}
}
Symbol 1270 MovieClip [__Packages.sorce.task.SpeedUD] Frame 0
class sorce.task.SpeedUD extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var speed, b_no, type;
function SpeedUD (no, sp, ty) {
super();
speed = sp;
b_no = no;
type = ty;
}
function init(no, tc) {
}
function run(tc) {
var _local3;
var _local2 = true;
if (type == 0) {
speed = speed - sorce.task.Banchou.speed_add;
if (speed <= sorce.task.Banchou.MaxSp) {
speed = sorce.task.Banchou.MaxSp;
_local2 = false;
}
} else {
speed = speed + sorce.task.Banchou.speed_add;
if (speed >= sorce.task.Banchou.NormalSp) {
speed = sorce.task.Banchou.NormalSp;
_local2 = false;
}
}
_local3 = [9, speed];
tc.acssesTask(b_no, _local3);
return(_local2);
}
function finalize(tc) {
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1271 MovieClip [__Packages.sorce.task.BanchouFlash1] Frame 0
class sorce.task.BanchouFlash1 extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, mc2, wait, b_no;
function BanchouFlash1 (mmc, x, y, no) {
super();
mc = mmc.attachMovie("super_spark", "super_spark" + mmc.getNextHighestDepth(), 12);
mc._x = x + 40;
mc._y = y - 155;
mc2 = mmc.attachMovie("super_flash", "super_flash" + mmc.getNextHighestDepth(), 9);
mc2._x = x + 20;
mc2._y = y - 110;
mc2.stop();
wait = 0;
mc.blendMode = 8;
mc2.blendMode = 8;
b_no = no;
}
function init(no, tc) {
}
function run(tc) {
var _local2 = [13, 0];
_local2 = tc.acssesTask(b_no, _local2);
mc._x = _local2[0] + 40;
mc._y = _local2[1] - 155;
mc2._x = _local2[0] + 20;
mc2._y = _local2[1] - 110;
wait++;
if (wait < 12) {
mc2.gotoAndStop(wait);
}
if (wait > 31) {
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
mc2.removeMovieClip();
mc2 = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1272 MovieClip [__Packages.sorce.task.Text] Frame 0
class sorce.task.Text extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, count;
function Text (mmc, st, x, y, t, se) {
super();
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
mc.stop();
mc.gotoAndStop(2);
mc.Mojimoji.stop();
mc.Mojimoji.Nakamozi.stop();
mc.Mojimoji.Nakamozi.gotoAndStop(t + 1);
count = 1;
}
function init(no, tc) {
}
function run(tc) {
if (count == mc.Mojimoji._totalframes) {
return(false);
}
count = count + 1;
mc.Mojimoji.gotoAndStop(Math.floor(count));
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1273 MovieClip [__Packages.sorce.task.BlackOut] Frame 0
class sorce.task.BlackOut extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, count, death, type;
function BlackOut (mmc, t) {
super();
mc = mmc.attachMovie("BLscreen", "BLscreen" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
count = 0;
mc._alpha = count;
death = false;
type = t;
}
function init(no, tc) {
if (type != 0) {
tc.acssesTask(tc.checkData("play", "no"), [101, -1, 3]);
}
}
function run(tc) {
switch (type) {
case 0 :
if (death) {
var _local5 = [1];
tc.acssesTask(tc.checkData("play", "no"), _local5);
return(false);
}
count = count + 3;
if (count > 100) {
tc.killTask(tc.checkData("haikei", "no"));
tc.killTask(tc.checkData("score", "no"));
tc.killTask(tc.checkData("enemy", "no"));
var _local4 = tc.checkData("textover", "no");
if (_local4 != null) {
tc.killTask(_local4);
}
tc.killTask(tc.checkData("nextstage", "no"));
var _local5 = [1];
tc.acssesTask(tc.checkData("clearpantu", "no"), _local5);
death = true;
count = 100;
}
mc._alpha = count;
break;
case 1 :
if (death) {
var _local5 = [4];
tc.acssesTask(tc.checkData("play", "no"), _local5);
return(false);
}
count = count + 3;
if (count > 100) {
death = true;
count = 100;
}
mc._alpha = count;
break;
case 2 :
if (death) {
var _local5 = [5];
tc.acssesTask(tc.checkData("play", "no"), _local5);
return(false);
}
count = count + 3;
if (count > 100) {
death = true;
count = 100;
}
mc._alpha = count;
break;
case 3 :
if (death) {
var _local5 = [9];
tc.acssesTask(tc.checkData("play", "no"), _local5);
type = 4;
break;
}
count = count + 3;
if (count > 100) {
tc.killTask(tc.checkData("haikei", "no"));
tc.killTask(tc.checkData("score", "no"));
var _local3 = tc.checkData("enemy", "no");
if (_local3 != null) {
tc.killTask(_local3);
}
death = true;
count = 100;
}
mc._alpha = count;
break;
case 4 :
count = count - 1;
if (count == 0) {
return(false);
}
mc._alpha = count;
break;
case 5 :
count = count + 3;
if (count > 100) {
tc.killTask(tc.checkData("textover", "no"));
tc.killTask(tc.checkData("bonus1", "no"));
tc.killTask(tc.checkData("nextstage", "no"));
tc.acssesTask(tc.checkData("play", "no"), [16]);
count = 100;
return(false);
}
mc._alpha = count;
break;
case 6 :
count = count + 3;
if (count > 100) {
tc.killTask(tc.checkData("textover", "no"));
tc.killTask(tc.checkData("bonus2", "no"));
tc.killTask(tc.checkData("nextstage", "no"));
tc.acssesTask(tc.checkData("play", "no"), [19]);
count = 100;
return(false);
}
mc._alpha = count;
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1274 MovieClip [__Packages.sorce.task.Entry] Frame 0
class sorce.task.Entry extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var himc, mc, counter, mouse_f, st;
function Entry (mmc, rk, sc, lv, comb, pat, pat_num) {
super();
var _local3;
var _local4;
himc = mmc;
Mouse.addListener(this);
mc = mmc.attachMovie("RankingEntryMC", "RankingEntryMC" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 0;
mc._y = 40;
var _local5 = new Array(7);
_local5[0] = mc.RECORD.SC1;
_local5[1] = mc.RECORD.SC10;
_local5[2] = mc.RECORD.SC100;
_local5[3] = mc.RECORD.SC1000;
_local5[4] = mc.RECORD.SC10000;
_local5[5] = mc.RECORD.SC100000;
_local5[6] = mc.RECORD.SC1000000;
_local4 = 0;
while (_local4 < 7) {
_local3 = nigoro.lib.duplex.Math.Arithmetic.getBeam2(Math.pow(10, _local4), sc) + 1;
if (_local3 < 1) {
_local3 = 1;
}
_local5[_local4].gotoAndStop(_local3);
_local4++;
}
_local3 = nigoro.lib.duplex.Math.Arithmetic.getBeam2(1, lv) + 1;
if (_local3 < 1) {
_local3 = 1;
}
mc.RECORD.LV1.gotoAndStop(_local3);
_local3 = nigoro.lib.duplex.Math.Arithmetic.getBeam2(10, lv) + 1;
if (_local3 < 1) {
_local3 = 1;
}
mc.RECORD.LV10.gotoAndStop(_local3);
_local3 = nigoro.lib.duplex.Math.Arithmetic.getBeam2(1, comb) + 1;
if (_local3 < 1) {
_local3 = 1;
}
mc.RECORD.CO1.gotoAndStop(_local3);
_local3 = nigoro.lib.duplex.Math.Arithmetic.getBeam2(10, comb) + 1;
if (_local3 < 1) {
_local3 = 1;
}
mc.RECORD.CO10.gotoAndStop(_local3);
mc.RECORD.PANTU.gotoAndStop(pat + 1);
_local3 = nigoro.lib.duplex.Math.Arithmetic.getBeam2(1, pat_num) + 1;
if (_local3 < 1) {
_local3 = 1;
}
mc.RECORD.PA1.gotoAndStop(_local3);
_local3 = nigoro.lib.duplex.Math.Arithmetic.getBeam2(10, pat_num) + 1;
if (_local3 < 1) {
_local3 = 1;
}
mc.RECORD.PA10.gotoAndStop(_local3);
_local3 = nigoro.lib.duplex.Math.Arithmetic.getBeam2(100, pat_num) + 1;
if (_local3 < 1) {
_local3 = 1;
}
mc.RECORD.PA100.gotoAndStop(_local3);
trace("rank = " + rk);
if (rk == 1) {
} else if (rk < 10) {
mc.RECORD.RANK.gotoAndStop(2);
mc.RECORD.RANK.NUM1.gotoAndStop(rk + 1);
if (rk == 2) {
mc.RECORD.RANK.GREAD.stop();
} else if (rk == 3) {
mc.RECORD.RANK.GREAD.gotoAndStop(2);
} else {
mc.RECORD.RANK.GREAD.gotoAndStop(3);
}
} else {
mc.RECORD.RANK.gotoAndStop(3);
mc.RECORD.RANK.NUM1.stop();
mc.RECORD.RANK.NUM10.gotoAndStop(2);
mc.RECORD.RANK.GREAD.gotoAndStop(3);
}
counter = 0;
mouse_f = false;
st = 0;
}
function init(no, tc) {
}
function run(tc) {
counter++;
switch (st) {
case 0 :
if (counter > 15) {
if (mouse_f) {
tc.setTask(new sorce.task.BlackOut(himc, 1));
st = 1;
}
}
break;
case 1 :
}
mouse_f = false;
return(true);
}
function onMouseDown() {
if (_root._ymouse < 400) {
mouse_f = true;
}
}
function finalize(tc) {
Mouse.removeListener(this);
mc.removeMovieClip();
mc = null;
himc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1275 MovieClip [__Packages.sorce.task.BonusBG] Frame 0
class sorce.task.BonusBG extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var swmc, gmc, kmc, wmc, mc, desk_sd, obachang, desk, lmc, mbmc, mensuu, gril_no, score, komono_no, coll, st, hmc, getitem, getitem_no, getsc, scbuff, mbuff, ringbuff, mekuline, ybuff, counter, ovacounter, my_no, stat_no, ban_no, coin_no, bout_no;
function BonusBG (mmc, men, sco, hhh, sw, om) {
super();
swmc = sw;
gmc = om;
kmc = mmc.attachMovie("wallback", "wallback" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
wmc = mmc.attachMovie("wallScroll", "wallScroll" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc = mmc.attachMovie("yuka", "yuka" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
desk_sd = mmc.attachMovie("desk_shadow", "desk_shadow" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
desk_sd._alpha = 50;
obachang = mmc.attachMovie("obachan", "obachan" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
desk = mmc.attachMovie("desk", "desk" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
desk_sd.stop();
obachang.stop();
desk.stop();
desk_sd._x = 530;
desk_sd._y = 273;
desk._x = 531;
desk._y = 209;
obachang._x = 561;
obachang._y = 148;
kmc.stop();
wmc.stop();
mc.stop();
kmc.gotoAndStop(2);
wmc.gotoAndStop(2);
mc.gotoAndStop(2);
mc._y = 250;
wmc._y = 40;
var _local3 = 0;
var _local5 = 0;
mc.lineStyle(1, 8934741, 50);
while (_local5 < 8) {
_local3 = _local3 % 640;
lmc.moveTo(_local3, 0);
lmc.lineTo(_local3 + ((_local3 - 320) * 0.48), 150);
_local3 = _local3 + 80;
_local5++;
}
mbmc = mmc;
mensuu = men;
gril_no = new Array(9);
score = sco;
komono_no = new Array(10);
coll = new nigoro.lib.duplex.Math.Collosion();
st = 100;
hmc = hhh;
getitem = 0;
getitem_no = -1;
getsc = 11;
scbuff = [1000000, 500000, 300000, 100000, 50000, 30000, 10000, 5000, 3000, 1000];
}
function init(no, tc) {
var _local3;
tc.regstData("bonus1", "no", no);
tc.setTask(new sorce.task.Bonuskomono(mbmc, 1, 549, 206, 0, no));
tc.setTask(new sorce.task.Bonuskomono(mbmc, 5, 546, 210, 1, no));
tc.setTask(new sorce.task.Bonuskomono(mbmc, 2, 543, 214, 2, no));
tc.setTask(new sorce.task.Bonuskomono(mbmc, 4, 552, 217.5, 3, no));
tc.setTask(new sorce.task.Bonuskomono(mbmc, 3, 561, 221, 4, no));
tc.setTask(new sorce.task.Bonuskomono(mbmc, 3, 564.5, 227.5, 5, no));
tc.setTask(new sorce.task.Bonuskomono(mbmc, 4, 568, 234, 6, no));
tc.setTask(new sorce.task.Bonuskomono(mbmc, 2, 565.5, 238.5, 7, no));
tc.setTask(new sorce.task.Bonuskomono(mbmc, 5, 562, 243, 8, no));
tc.setTask(new sorce.task.Bonuskomono(mbmc, 1, 565.5, 249, 9, no));
_local3 = 0;
while (_local3 != 9) {
tc.setTask(new sorce.task.BonusGirl(gmc, _local3 % 3, 135 + (_local3 * 47.7), no, Math.floor(Math.random() * 3) + 1, _local3, swmc));
_local3++;
}
tc.setTask(new sorce.task.Boban1(gmc, no));
tc.setTask(new sorce.task.BonusState(gmc, 12, 0, 10, score, mensuu, no));
mbuff = new Array(4);
mbuff[0] = _root._xmouse;
mbuff[1] = _root._ymouse;
mbuff[2] = _root._xmouse;
mbuff[3] = _root._ymouse;
ringbuff = 0;
mekuline = 0;
ybuff = new Array(10);
counter = -1;
ovacounter = 0;
my_no = no;
}
function run(tc) {
switch (st) {
case 0 :
while (mekuline < 9) {
if (checkLine(mekuline)) {
if (mekuline == 0) {
tc.acssesTask(stat_no, [1]);
if (ringbuff == 0) {
ybuff[mekuline] = mbuff[1];
} else {
ybuff[mekuline] = mbuff[3];
}
counter = 0;
} else if (ringbuff == 0) {
ybuff[mekuline] = mbuff[1];
} else {
ybuff[mekuline] = mbuff[3];
}
mekuline++;
} else {
if (mekuline > 0) {
var _local5;
if (ringbuff == 0) {
_local5 = mbuff[0];
} else {
_local5 = mbuff[2];
}
if (sorce.data.BonusData1.Line[mekuline * 4] < _local5) {
st = 2;
}
}
break;
}
}
if (counter > -1) {
counter++;
}
if ((counter > 10) || (mekuline == 9)) {
st = 1;
}
break;
case 1 :
var _local7;
_local7 = tc.acssesTask(stat_no, [2]);
if (mekuline == 9) {
if (_local7[0] >= 2700) {
var _local3;
var _local6;
_local6 = 0;
_local3 = 0;
while (_local3 != 9) {
_local6 = _local6 + ybuff[_local3];
_local3++;
}
_local6 = ybuff[0] - (_local6 / 9);
if ((_local6 > -0.2) && (_local6 < 0.2)) {
if (counter < 2) {
getitem = 5;
getsc = 2;
} else if (counter < 4) {
getitem = 4;
getsc = 3;
} else if (counter < 6) {
getitem = 3;
getsc = 4;
} else if (counter < 8) {
getitem = 2;
getsc = 5;
} else {
getitem = 1;
getsc = 6;
}
} else if ((_local6 > -3) && (_local6 < 3)) {
if (counter < 3) {
getitem = 5;
getsc = 3;
} else if (counter < 6) {
getitem = 4;
getsc = 4;
} else if (counter < 8) {
getitem = 3;
getsc = 5;
} else if (counter < 9) {
getitem = 2;
getsc = 6;
} else {
getitem = 1;
getsc = 7;
}
} else if (counter < 4) {
getitem = 3;
getsc = 6;
} else if (counter < 8) {
getitem = 2;
getsc = 7;
} else {
getitem = 1;
getsc = 8;
}
} else {
mekuline = Math.floor(mekuline * (_local7[0] / 3000));
}
} else {
mekuline = Math.floor(mekuline * (_local7[0] / 3000));
}
st = 2;
break;
case 2 :
var _local3 = 0;
while (_local3 < mekuline) {
tc.acssesTask(gril_no[_local3], [0, _local3 * 3]);
_local3++;
}
if (mekuline == 9) {
_local3 = 0;
while (_local3 < komono_no.length) {
tc.acssesTask(komono_no[_local3], [0, 30]);
_local3++;
}
}
tc.acssesTask(ban_no, [0]);
st = 3;
break;
case 3 :
ovacounter++;
if (ovacounter > 30) {
if (mekuline == 9) {
obachang.gotoAndStop(2);
tc.acssesTask(tc.checkData("play", "no"), [100, 24]);
tc.acssesTask(tc.checkData("play", "no"), [100, 16]);
st = 4;
tc.setTask(new sorce.task.B1Gold(mbmc, my_no));
} else {
st = 4;
}
ovacounter = 0;
tc.acssesTask(ban_no, [3]);
}
break;
case 4 :
ovacounter++;
if (ovacounter == 30) {
st = 5;
}
break;
case 5 :
if (getitem > 0) {
tc.acssesTask(ban_no, [1]);
tc.setTask(new sorce.task.B1getitem(hmc, my_no, getitem));
} else {
tc.acssesTask(ban_no, [2]);
}
ovacounter = 100;
st = 6;
break;
case 6 :
ovacounter++;
if (ovacounter > 30) {
if (getitem > 0) {
tc.setTask(new sorce.task.Text2(hmc, "gameTexts", 320, 130, 9 + getitem, 2));
score = score + scbuff[getsc - 1];
tc.acssesTask(stat_no, [3, score]);
tc.acssesTask(tc.checkData("play", "no"), [17, score]);
} else {
tc.setTask(new sorce.task.Text2(hmc, "gameTexts", 320, 130, 9, 2));
}
tc.acssesTask(tc.checkData("play", "no"), [100, 20]);
st = 9;
ovacounter = 0;
}
break;
case 7 :
ovacounter++;
if (ovacounter > 60) {
tc.setTask(new sorce.task.NextStage(hmc, 244, 339.5));
st = 8;
}
break;
case 8 :
tc.acssesTask(tc.checkData("play", "no"), [15, my_no]);
st = 100;
break;
case 9 :
ovacounter++;
if (ovacounter > 5) {
tc.setTask(new sorce.task.BountSc(hmc, 320, 290, my_no, getsc));
ovacounter = 0;
st = 7;
}
break;
case 100 :
}
if (ringbuff == 0) {
mbuff[2] = _root._xmouse;
mbuff[3] = _root._ymouse;
ringbuff = 1;
} else {
mbuff[0] = _root._xmouse;
mbuff[1] = _root._ymouse;
ringbuff = 0;
}
return(true);
}
function checkLine(no) {
no = no * 4;
var _local3;
if (ringbuff == 0) {
if ((mbuff[0] - mbuff[2]) < 0) {
return(false);
}
} else if ((mbuff[2] - mbuff[0]) < 0) {
return(false);
}
_local3 = coll.lineCrossPoint(sorce.data.BonusData1.Line[no], sorce.data.BonusData1.Line[no + 1], sorce.data.BonusData1.Line[no + 2], sorce.data.BonusData1.Line[no + 3], mbuff[0], mbuff[1], mbuff[2], mbuff[3]);
return(_local3);
}
function finalize(tc) {
var _local2;
mc.removeMovieClip();
mc = null;
kmc.removeMovieClip();
kmc = null;
wmc.removeMovieClip();
wmc = null;
hmc = null;
obachang.removeMovieClip();
desk_sd.removeMovieClip();
desk.removeMovieClip();
_local2 = 0;
while (_local2 != 9) {
tc.killTask(gril_no[_local2]);
_local2++;
}
tc.killTask(ban_no);
tc.killTask(stat_no);
_local2 = 0;
while (_local2 != komono_no.length) {
tc.killTask(komono_no[_local2]);
_local2++;
}
if (getitem_no > 0) {
tc.killTask(coin_no);
tc.killTask(getitem_no);
}
tc.killTask(bout_no);
tc.elaseData("bonus1");
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
gril_no[mess[1]] = mess[2];
break;
case 1 :
ban_no = mess[1];
break;
case 2 :
stat_no = mess[1];
break;
case 3 :
tc.acssesTask(stat_no, [0]);
break;
case 4 :
tc.setTask(new sorce.task.Bonus1Arrow(gmc, my_no));
break;
case 5 :
komono_no[mess[1]] = mess[2];
break;
case 6 :
coin_no = mess[1];
break;
case 7 :
getitem_no = mess[1];
break;
case 8 :
bout_no = mess[1];
break;
case 9 :
st = 0;
tc.acssesTask(tc.checkData("play", "no"), [101, 4, 10]);
tc.acssesTask(tc.checkData("play", "no"), [100, 15]);
break;
case 10 :
score = score + mess[1];
tc.acssesTask(stat_no, [3, score]);
}
return(mess);
}
}
Symbol 1276 MovieClip [__Packages.sorce.task.Bonuskomono] Frame 0
class sorce.task.Bonuskomono extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, my, oya, st, counter, bai, myadd, wait;
function Bonuskomono (mmc, type, x, y, m, no) {
super();
mc = mmc.attachMovie("bonusitem", "bonusitem" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
mc.stop();
mc.gotoAndStop(type);
my = m;
oya = no;
st = 0;
counter = 0;
bai = 0;
myadd = ((Math.random() * 12) + 3) / 100;
}
function init(no, tc) {
tc.acssesTask(oya, [5, my, no]);
}
function run(tc) {
switch (st) {
case 0 :
break;
case 1 :
counter++;
if (counter > wait) {
st = 2;
}
break;
case 2 :
bai = bai + myadd;
mc._x = mc._x + (8 * bai);
mc._y = mc._y + (((my - 7) * 1.1) * bai);
if (mc._x > (640 + mc._width)) {
st = 3;
}
break;
case 3 :
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
if (!(mess[0] === 0)) {
} else {
st = 1;
wait = mess[1];
}
return(mess);
}
}
Symbol 1277 MovieClip [__Packages.sorce.task.BonusGirl] Frame 0
class sorce.task.BonusGirl extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, shadowMC, h_no, oya, my, st, counter, wait;
function BonusGirl (mmc, t, x, no, hair_no, my_no, sw) {
super();
switch (t) {
case 0 :
mc = mmc.attachMovie("girl1", "girl1" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._xscale = -100;
break;
case 1 :
mc = mmc.attachMovie("girl2", "girl2" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
break;
case 2 :
mc = mmc.attachMovie("girl3", "girl3" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
}
shadowMC = sw.attachMovie("shadow2", "shadow2" + sw.getNextHighestDepth(), sw.getNextHighestDepth());
shadowMC.stop();
mc._y = 328;
mc._x = x;
shadowMC._x = mc._x - 35;
shadowMC._y = mc._y - 17.9;
mc.gotoAndStop("Wait");
mc.AAA.gotoAndStop(hair_no);
h_no = hair_no;
oya = no;
my = my_no;
st = 0;
counter = 0;
}
function init(no, tc) {
tc.acssesTask(oya, [0, my, no]);
}
function run(tc) {
switch (st) {
case 0 :
break;
case 1 :
counter++;
if (counter <= wait) {
break;
}
mc.gotoAndStop("Mekuri");
mc.BBB.gotoAndStop(Math.floor(Math.random() * 3) + 1);
mc.AAA.gotoAndStop(h_no);
tc.acssesTask(tc.checkData("play", "no"), [100, 10 + Math.floor(Math.random() * 3)]);
st = 2;
tc.acssesTask(oya, [10, 3000]);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
shadowMC.removeMovieClip();
shadowMC = null;
mc = null;
}
function talkTask(mess, tc) {
if (!(mess[0] === 0)) {
} else {
wait = mess[1];
st = 1;
}
return(mess);
}
}
Symbol 1278 MovieClip [__Packages.sorce.task.Boban1] Frame 0
class sorce.task.Boban1 extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, oya, count, st;
function Boban1 (mmc, no) {
super();
mc = mmc.attachMovie("superbanchoBonus", "superbanchoBonus" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 55;
mc._y = 350;
mc.stop();
mc.gotoAndStop(7);
oya = no;
count = 0;
st = 0;
}
function init(no, tc) {
tc.acssesTask(oya, [1, no]);
}
function run(tc) {
switch (st) {
case 0 :
count++;
if (count == 30) {
tc.acssesTask(oya, [3]);
}
if (count == 60) {
tc.acssesTask(oya, [4]);
mc.gotoAndStop(1);
st = 1;
}
break;
case 1 :
break;
case 2 :
count++;
mc.ArmL.gotoAndStop(count + 1);
if (count != 6) {
break;
}
st = 1;
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
st = 2;
mc.gotoAndStop(3);
mc.ArmL.stop();
count = 0;
break;
case 1 :
st = 1;
mc.gotoAndStop(5);
break;
case 2 :
st = 1;
mc.gotoAndStop(6);
break;
case 3 :
st = 1;
mc.gotoAndStop(4);
}
return(mess);
}
}
Symbol 1279 MovieClip [__Packages.sorce.task.BonusState] Frame 0
class sorce.task.BonusState extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, oya, clockH, clockM, mBuffer, clockS, clockF, clock_run, game_time, mekuri_now, mekuridraw_f, mekuriud, minipantu, scnum, mensuu, score, cosnum, st, counter;
function BonusState (mmc, h, m, g, sco, stg, no) {
super();
mc = mmc.attachMovie("param", "param" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 5;
mc._y = 5;
mc.TimeArea.stop();
oya = no;
clockH = h;
clockM = (mBuffer = m);
clockS = 0;
clockF = 0;
clock_run = false;
game_time = g;
mekuri_now = 0;
mekuridraw_f = false;
mekuriud = 0;
minipantu = new Array(10);
minipantu[0] = mc.minip1;
minipantu[1] = mc.minip2;
minipantu[2] = mc.minip3;
minipantu[3] = mc.minip4;
minipantu[4] = mc.minip5;
minipantu[5] = mc.minip6;
minipantu[6] = mc.minip7;
minipantu[7] = mc.minip8;
minipantu[8] = mc.minip9;
minipantu[9] = mc.minip10;
scnum = new Array(8);
scnum[0] = mc.Num1;
scnum[1] = mc.Num10;
scnum[2] = mc.Num100;
scnum[3] = mc.Num1000;
scnum[4] = mc.Num10000;
scnum[5] = mc.Num100000;
scnum[6] = mc.Num1000000;
mensuu = stg;
score = sco;
cosnum = 0;
st = 0;
counter = 0;
}
function init(no, tc) {
tc.acssesTask(oya, [2, no]);
animetionStop();
drawScore(score);
drawStage(mensuu, tc);
mekuri_pow(0);
animetionStop();
clockRun();
}
function run(tc) {
var _local2;
switch (st) {
case 0 :
counter++;
if (counter == 60) {
st = 1;
}
break;
case 1 :
if (!mekuridraw_f) {
break;
}
if (mekuriud == 0) {
cosnum = cosnum + 4;
mekuri_now = mekuri_now + cosnum;
if (mekuri_now >= mekuri_max) {
mekuriud = 1;
mekuri_now = mekuri_max;
}
} else {
mekuriud = 0;
mekuri_now = 0;
cosnum = 0;
}
mekuri_pow(mekuri_now);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
mekuridraw_f = true;
break;
case 1 :
mekuridraw_f = false;
break;
case 2 :
mess[0] = mekuri_now;
break;
case 3 :
drawScore(mess[1]);
}
return(mess);
}
function drawStage(stg, tc) {
var _local2;
stg = Math.floor(stg / 7);
if (stg < 100) {
_local2 = 1;
while (_local2 != 10) {
minipantu[_local2]._visible = false;
_local2++;
}
var _local4 = stg / 10;
if (stg > 9) {
mc.BigNum.gotoAndStop(Math.floor(_local4) + 1);
} else {
mc.BigPantu._visible = false;
mc.BigNum._visible = false;
}
_local4 = (stg % 10) + 1;
_local2 = 0;
while (_local2 < _local4) {
tc.setTask(new sorce.task.StagePantu(minipantu[_local2], _local2 * 5));
_local2++;
}
} else {
mc.BigNum.gotoAndStop(10);
_local2 = 0;
while (_local2 != 10) {
tc.setTask(new sorce.task.StagePantu(minipantu[_local2], _local2 * 5));
_local2++;
}
}
}
function mekuri_pow(ms) {
var _local2 = 300 * (ms / mekuri_max);
mc.Mekuribar._width = _local2;
}
function clockRun(tc) {
var _local2;
clockF++;
if (!(clockF % 2)) {
clockS++;
if (!(clockS % 60)) {
clockM++;
if ((clockM - mBuffer) > game_time) {
}
if (!(clockM % 60)) {
clockH++;
if (!(clockH % 24)) {
clockH = 0;
}
}
}
}
mc.NeedleLow._rotation = ((((clockM % 60) / 60) * 360) + (((clockS % 60) / 60) * 6)) + 180;
mc.NeedleHight._rotation = ((((clockH % 12) / 12) * 360) + (((clockM % 60) / 60) * 30)) + 90;
}
function drawScore(sc) {
var _local5;
var _local3;
if (sc > 9999999) {
mc.Num1.gotoAndStop(10);
mc.Num10.gotoAndStop(10);
mc.Num100.gotoAndStop(10);
mc.Num1000.gotoAndStop(10);
mc.Num10000.gotoAndStop(10);
mc.Num100000.gotoAndStop(10);
mc.Num1000000.gotoAndStop(10);
} else {
var _local2 = 6;
while (_local2 > -1) {
((_local2 > 0) ? (_local3 = Math.pow(10, _local2)) : (_local3 = 1));
_local5 = Math.floor(sc / _local3);
scnum[_local2].gotoAndStop(_local5 + 1);
sc = sc - (_local5 * _local3);
_local2--;
}
}
}
function animetionStop() {
mc.Num1.stop();
mc.Num10.stop();
mc.Num100.stop();
mc.Num1000.stop();
mc.Num10000.stop();
mc.Num100000.stop();
mc.Num1000000.stop();
mc.BigNum.stop();
animetionStop2();
}
function animetionStop2() {
mc.Marker.stop();
mc.Marker.gotoAndStop(1);
mc.Mekuribar.stop();
mc.Mekuribar.gotoAndStop(1);
mc.Prate.stop();
mc.Prate.gotoAndStop(1);
}
static var mekuri_max = 3000;
}
Symbol 1280 MovieClip [__Packages.sorce.data.BonusData1] Frame 0
class sorce.data.BonusData1
{
function BonusData1 () {
}
static var Line = [137, 208, 137, 255, 181, 208, 181, 255, 235, 208, 235, 255, 282, 208, 282, 255, 330, 208, 330, 255, 379, 208, 379, 255, 422, 208, 422, 255, 474, 208, 474, 255, 521, 208, 521, 255];
}
Symbol 1281 MovieClip [__Packages.sorce.task.B1Gold] Frame 0
class sorce.task.B1Gold extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, st, count, oya;
function B1Gold (mmc, no) {
super();
mc = mmc.attachMovie("coin", "coin" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 576;
mc._y = 255;
mc.stop();
mc.gotoAndStop(2);
st = 0;
count = 0;
oya = no;
}
function init(no, tc) {
tc.acssesTask(oya, [6, no]);
}
function run(tc) {
switch (st) {
case 0 :
mc._y = mc._y + 1;
if (mc._y > 265) {
mc.gotoAndStop(1);
st = 1;
count = 0;
}
break;
case 1 :
count++;
if (count == 10) {
mc.gotoAndStop(2);
st = 2;
}
break;
case 2 :
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1282 MovieClip [__Packages.sorce.task.B1getitem] Frame 0
class sorce.task.B1getitem extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, oya, st;
function B1getitem (mmc, no, item) {
super();
mc = mmc.attachMovie("bonusitem", "bonusitem" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc.stop();
mc._x = 72;
mc._y = 66;
mc.gotoAndStop(item);
oya = no;
st = 0;
}
function init(no, tc) {
tc.acssesTask(oya, [7, no]);
}
function run(tc) {
switch (st) {
case 0 :
mc._y = mc._y + 1;
if (mc._y > 103) {
st = 1;
}
break;
case 1 :
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1283 MovieClip [__Packages.sorce.task.NextStage] Frame 0
class sorce.task.NextStage extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, bx, by, bh, bw, ba, br;
function NextStage (mmc, x, y) {
super();
mc = mmc.attachMovie("nextstage", "nextstage" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
bx = (mc._x = x);
by = (mc._y = y);
bh = mc._height;
bw = mc._width;
ba = 0;
br = 4;
mc._height = bh * br;
mc._width = bh * br;
mc._alpha = ba;
}
function init(no, tc) {
tc.regstData("nextstage", "no", no);
tc.acssesTask(tc.checkData("play", "no"), [100, 25]);
}
function run(tc) {
if (ba < 100) {
ba = ba + 20;
if (ba > 100) {
ba = 100;
}
mc._alpha = ba;
br = (1 - (ba / 100)) * 1.05;
mc._height = bh * (1 + br);
mc._width = bw * (1 + br);
mc._x = bx - ((mc._width - bw) / 2);
mc._y = by - ((mc._height - bh) / 2);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
tc.elaseData("nextstage");
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1284 MovieClip [__Packages.sorce.task.BountSc] Frame 0
class sorce.task.BountSc extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, oya, count, score;
function BountSc (mmc, x, y, no, sc) {
super();
mc = mmc.attachMovie("bonuspoint_mc", "bonuspoint_mc" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
mc.stop();
oya = no;
count = 0;
score = sc;
}
function init(no, tc) {
tc.acssesTask(oya, [8, no]);
}
function run(tc) {
count++;
if (count < 46) {
mc.gotoAndStop(count);
if (count == 15) {
mc.bonuspoint.stop();
mc.bonuspoint.gotoAndStop(score);
}
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1285 MovieClip [__Packages.sorce.task.Bonus1Arrow] Frame 0
class sorce.task.Bonus1Arrow extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, count, alp, st, oya;
function Bonus1Arrow (mmc, no) {
super();
mc = mmc.attachMovie("bonus1_guide", "bonus1_guide" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 90.3;
mc._y = 205.2;
count = 0;
alp = 0;
st = 0;
oya = no;
}
function init(no, tc) {
}
function run(tc) {
switch (st) {
case 0 :
alp = alp + 10;
if (alp >= 100) {
tc.acssesTask(oya, [9]);
st = 1;
alp = 100;
}
mc._alpha = alp;
break;
case 1 :
count++;
if (count == 30) {
st = 2;
}
break;
case 2 :
alp = alp - 5;
if (alp <= 0) {
return(false);
}
mc._alpha = alp;
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1286 MovieClip [__Packages.sorce.task.BonusBG2] Frame 0
class sorce.task.BonusBG2 extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, mbmc, mensuu, score, hmc, dmc, douzo_no, bloken, st, seikou, scbuff, start_f, sensei_no, my_no, endcounter, state_no, ban_no, bount_no;
function BonusBG2 (mmc, men, sco, hhh, mmm) {
super();
mc = mmc.attachMovie("bonus2_mc", "bonus2_mc" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc.stop();
mbmc = mmc;
mensuu = men;
score = sco;
hmc = hhh;
dmc = mmm;
douzo_no = -1;
bloken = 0;
st = 0;
seikou = 3 + Math.floor(men / 7);
if (seikou > 10) {
seikou = 10;
}
scbuff = [1000000, 500000, 300000, 100000, 50000, 30000, 10000, 5000, 3000, 1000];
start_f = 0;
sensei_no = -1;
}
function init(no, tc) {
tc.setTask(new sorce.task.Boban2(dmc, no));
tc.setTask(new sorce.task.Douzoushadow(mbmc, 134, no));
tc.setTask(new sorce.task.BonusState2(mbmc, 4, 0, 1, score, mensuu, no));
my_no = no;
tc.regstData("bonus2", "no", no);
endcounter = 0;
}
function run(tc) {
switch (st) {
case 0 :
break;
case 1 :
tc.setTask(new sorce.task.Douzoushadow(mbmc, -300, my_no));
st = 0;
break;
case 2 :
if (bloken >= seikou) {
tc.setTask(new sorce.task.Text2(hmc, "gameTexts", 320, 200, 16, 2));
} else {
tc.setTask(new sorce.task.Text2(hmc, "gameTexts", 320, 200, 17, 2));
}
tc.acssesTask(tc.checkData("play", "no"), [100, 20]);
if (douzo_no > -1) {
tc.acssesTask(douzo_no, [1]);
}
st = 3;
break;
case 3 :
endcounter++;
if (endcounter > 5) {
endcounter = 0;
if (bloken >= seikou) {
var _local3 = Math.floor((10 - (bloken / 2)) - 2);
if (_local3 < 1) {
_local3 = 1;
}
tc.setTask(new sorce.task.BountSc(hmc, 320, 290, my_no, _local3));
tc.acssesTask(state_no, [3, scbuff[_local3 - 1] + score]);
tc.acssesTask(tc.checkData("play", "no"), [17, scbuff[_local3 - 1] + score]);
tc.acssesTask(ban_no, [0, 1]);
} else {
tc.setTask(new sorce.task.BountSc(hmc, 320, 290, my_no, 11));
tc.acssesTask(ban_no, [0, 0]);
}
st = 4;
}
break;
case 4 :
endcounter++;
if (endcounter <= 60) {
break;
}
tc.setTask(new sorce.task.NextStage(hmc, 244, 339.5));
tc.setTask(new sorce.task.BTe(dmc, my_no));
tc.acssesTask(tc.checkData("play", "no"), [18]);
st = 0;
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
hmc = null;
if (douzo_no > -1) {
tc.killTask(douzo_no);
}
tc.killTask(state_no);
tc.killTask(bount_no);
if (tc.checkData("combo", "no") != null) {
tc.killTask(tc.checkData("combo", "no"));
}
tc.elaseData("bonus2");
if (sensei_no != -1) {
tc.killTask(sensei_no);
}
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
ban_no = mess[1];
break;
case 1 :
douzo_no = mess[1];
break;
case 2 :
state_no = mess[1];
break;
case 3 :
bloken++;
if (tc.checkData("combo", "no") != null) {
tc.acssesTask(tc.checkData("combo", "no"), [0]);
} else {
tc.setTask(new sorce.task.Combo2(mbmc));
}
douzo_no = -1;
if (st < 2) {
st = 1;
}
break;
case 4 :
st = 2;
break;
case 5 :
tc.setTask(new sorce.task.Judge2(dmc, mess[1], 285 + Math.floor(Math.random() * 32), 94 + Math.floor(Math.random() * 32)));
break;
case 6 :
start_f = start_f + 1;
if (start_f == 2) {
tc.acssesTask(state_no, [4]);
tc.acssesTask(tc.checkData("play", "no"), [101, 4, 10]);
tc.acssesTask(tc.checkData("play", "no"), [100, 15]);
}
break;
case 7 :
tc.acssesTask(ban_no, [1]);
break;
case 8 :
bount_no = mess[1];
break;
case 9 :
mess[0] = start_f;
break;
case 10 :
score = score + mess[1];
tc.acssesTask(state_no, [3, score]);
break;
case 11 :
sensei_no = mess[1];
}
return(mess);
}
}
Symbol 1287 MovieClip [__Packages.sorce.task.Boban2] Frame 0
class sorce.task.Boban2 extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, count, st, oya, renzoku, lf, rf, legframe;
function Boban2 (mmc, no) {
super();
mc = mmc.attachMovie("banchoBonus", "banchoBonus" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc.stop();
mc.gotoAndStop(7);
mc._x = 200.5;
mc._y = 379;
count = 0;
st = 0;
oya = no;
renzoku = 0;
lf = 0;
rf = 0;
legframe = 0;
}
function init(no, tc) {
tc.acssesTask(oya, [0, no]);
}
function run(tc) {
switch (st) {
case 0 :
count++;
if (count == 61) {
mc.gotoAndStop(2);
st = 1;
tc.acssesTask(oya, [6]);
}
break;
case 1 :
break;
case 2 :
if (lf > 0) {
lf++;
if (lf == 8) {
lf = 0;
}
mc.ArmL.gotoAndStop(lf);
}
if (rf > 0) {
rf++;
if (rf == 8) {
rf = 0;
}
mc.ArmR.gotoAndStop(rf);
}
if ((lf == 0) && (rf == 0)) {
mc.gotoAndStop(2);
st = 1;
}
break;
case 3 :
legframe++;
if (legframe > 11) {
legframe = 0;
}
mc.Legs.gotoAndStop(Math.floor(legframe / 3) + 1);
mc._x = mc._x + 8;
if (mc._x <= (640 + mc._width)) {
break;
}
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
if (mess[1] == 0) {
mc.gotoAndStop(6);
} else {
mc.gotoAndStop(5);
}
mc.Legs.stop();
st = 3;
break;
case 1 :
mc.gotoAndStop(3);
mc.ArmR.stop();
mc.ArmL.stop();
if (renzoku == 0) {
mc.ArmL.gotoAndStop(1);
lf = 1;
renzoku = 1;
} else {
mc.ArmR.gotoAndStop(1);
rf = 1;
renzoku = 0;
}
tc.acssesTask(tc.checkData("play", "no"), [100, 6]);
st = 2;
}
return(mess);
}
}
Symbol 1288 MovieClip [__Packages.sorce.task.Douzoushadow] Frame 0
class sorce.task.Douzoushadow extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, douy, oya, hp, bmc, coll, mbuff, ringbuff, st, end, douzou_no;
function Douzoushadow (mmc, y, no) {
super();
mc = mmc.attachMovie("shadow_b2", "shadow_b2" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 276;
mc._y = 263;
mc.stop();
mc._alpha = 50;
douy = y;
oya = no;
hp = 4;
bmc = mmc;
coll = new nigoro.lib.duplex.Math.Collosion();
mbuff = new Array(4);
ringbuff = 0;
st = 0;
end = false;
}
function init(no, tc) {
tc.setTask(new sorce.task.Douzou(bmc, douy, no));
tc.acssesTask(oya, [1, no]);
}
function run(tc) {
var _local5;
switch (st) {
case 0 :
break;
case 1 :
var _local4 = tc.acssesTask(oya, [9]);
if (_local4[0] != 2) {
break;
}
if (!checkLine(0)) {
break;
}
tc.setTask(new sorce.task.DAttack(bmc, coll.hit_x, coll.hit_y));
if (checkLine(1)) {
if (checkLine(2)) {
tc.setTask(new sorce.task.Broken(bmc));
tc.acssesTask(oya, [5, 1]);
tc.acssesTask(oya, [3]);
tc.acssesTask(oya, [7]);
tc.acssesTask(oya, [10, 5000]);
return(false);
}
tc.acssesTask(oya, [7]);
hp = hp - 2;
tc.acssesTask(oya, [5, 2]);
if (hp <= 0) {
tc.setTask(new sorce.task.Broken(bmc));
tc.acssesTask(oya, [3]);
tc.acssesTask(oya, [10, 5000]);
return(false);
}
tc.acssesTask(douzou_no, [0, hp]);
} else {
tc.acssesTask(oya, [7]);
hp = hp - 1;
tc.acssesTask(oya, [5, 3]);
if (hp <= 0) {
tc.setTask(new sorce.task.Broken(bmc));
tc.acssesTask(oya, [3]);
tc.acssesTask(oya, [10, 5000]);
return(false);
}
tc.acssesTask(douzou_no, [0, hp]);
}
}
if (ringbuff == 0) {
mbuff[2] = _root._xmouse;
mbuff[3] = _root._ymouse;
ringbuff = 1;
} else {
mbuff[0] = _root._xmouse;
mbuff[1] = _root._ymouse;
ringbuff = 0;
}
return(true);
}
function checkLine(no) {
no = no * 4;
var _local2;
var _local6;
if (ringbuff == 0) {
if ((mbuff[3] - mbuff[1]) < 0) {
return(false);
}
} else if ((mbuff[1] - mbuff[3]) < 0) {
return(false);
}
_local2 = coll.lineCrossPoint(sorce.data.BonusData2.Line[no], sorce.data.BonusData2.Line[no + 1], sorce.data.BonusData2.Line[no + 2], sorce.data.BonusData2.Line[no + 3], mbuff[0], mbuff[1], mbuff[2], mbuff[3]);
if (_local2) {
var _local5 = mbuff[0] - mbuff[2];
_local5 = _local5 * _local5;
var _local4 = mbuff[1] - mbuff[3];
_local4 = _local4 * _local4;
_local6 = Math.abs(Math.sqrt(_local5 + _local4));
switch (no) {
case 0 :
if (_local6 < 30) {
_local2 = false;
}
break;
case 4 :
if (_local6 < 50) {
_local2 = false;
}
break;
case 8 :
if (_local6 >= 80) {
break;
}
_local2 = false;
}
}
return(_local2);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
bmc = null;
tc.killTask(douzou_no);
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
douzou_no = mess[1];
break;
case 1 :
end = true;
st = 0;
break;
case 2 :
if (end) {
break;
}
st = 1;
}
return(mess);
}
}
Symbol 1289 MovieClip [__Packages.sorce.task.Douzou] Frame 0
class sorce.task.Douzou extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, st, oya;
function Douzou (mmc, y, no) {
super();
mc = mmc.attachMovie("bronze", "bronze" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc.stop();
mc.gotoAndStop(Math.floor(Math.random() * 3) + 1);
mc.Hibi.stop();
mc.Hibi._visible = false;
mc._x = 285;
mc._y = y;
st = 0;
oya = no;
}
function init(no, tc) {
tc.acssesTask(oya, [0, no]);
}
function run(tc) {
switch (st) {
case 0 :
mc._y = mc._y + 32;
if (mc._y >= 134) {
mc._y = 134;
st = 1;
tc.acssesTask(oya, [2]);
tc.acssesTask(tc.checkData("play", "no"), [100, 22]);
}
break;
case 1 :
}
return(true);
}
function drawHibi(hp) {
if (hp < 4) {
mc.Hibi._visible = true;
mc.Hibi.gotoAndStop(4 - hp);
}
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
if (!(mess[0] === 0)) {
} else {
drawHibi(mess[1]);
}
return(mess);
}
}
Symbol 1290 MovieClip [__Packages.sorce.task.DAttack] Frame 0
class sorce.task.DAttack extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, counter;
function DAttack (mmc, x, y) {
super();
mc = mmc.attachMovie("d-ttack", "d-ttack" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
mc.blendMode = 8;
counter = 0;
}
function init(no, tc) {
}
function run(tc) {
counter++;
if (counter > 4) {
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1291 MovieClip [__Packages.sorce.task.Broken] Frame 0
class sorce.task.Broken extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, counter;
function Broken (mmc) {
super();
mc = mmc.attachMovie("broken", "broken" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 275;
mc._y = 134;
counter = 0;
}
function init(no, tc) {
tc.acssesTask(tc.checkData("play", "no"), [100, 26]);
}
function run(tc) {
counter++;
if (counter == 10) {
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1292 MovieClip [__Packages.sorce.data.BonusData2] Frame 0
class sorce.data.BonusData2
{
function BonusData2 () {
}
static var Line = [287, 225, 348, 225, 302, 225, 333, 225, 315, 225, 320, 225];
}
Symbol 1293 MovieClip [__Packages.sorce.task.BonusState2] Frame 0
class sorce.task.BonusState2 extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, oya, clockH, clockM, mBuffer, clockS, clockF, clock_run, game_time, mekuri_now, mekuridraw_f, mekuriud, minipantu, scnum, mensuu, score, cosnum, st, counter;
function BonusState2 (mmc, h, m, g, sco, stg, no) {
super();
mc = mmc.attachMovie("param", "param" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 5;
mc._y = 5;
mc.TimeArea.stop();
oya = no;
clockH = h;
clockM = (mBuffer = m);
clockS = 0;
clockF = 0;
clock_run = false;
game_time = g;
mekuri_now = 0;
mekuridraw_f = false;
mekuriud = 0;
minipantu = new Array(10);
minipantu[0] = mc.minip1;
minipantu[1] = mc.minip2;
minipantu[2] = mc.minip3;
minipantu[3] = mc.minip4;
minipantu[4] = mc.minip5;
minipantu[5] = mc.minip6;
minipantu[6] = mc.minip7;
minipantu[7] = mc.minip8;
minipantu[8] = mc.minip9;
minipantu[9] = mc.minip10;
scnum = new Array(8);
scnum[0] = mc.Num1;
scnum[1] = mc.Num10;
scnum[2] = mc.Num100;
scnum[3] = mc.Num1000;
scnum[4] = mc.Num10000;
scnum[5] = mc.Num100000;
scnum[6] = mc.Num1000000;
mensuu = stg;
score = sco;
cosnum = 0;
st = 0;
counter = 0;
}
function init(no, tc) {
tc.acssesTask(oya, [2, no]);
animetionStop();
drawScore(score);
drawStage(mensuu, tc);
mekuri_pow(0);
animetionStop();
clockRun();
}
function run(tc) {
var _local3;
switch (st) {
case 3 :
counter++;
if (counter == 60) {
st = 0;
}
break;
case 0 :
mekuri_now = mekuri_now + 50;
if (mekuri_now > 3000) {
mekuri_now = 3000;
st = 1;
tc.acssesTask(oya, [6]);
}
mekuri_pow(mekuri_now);
break;
case 1 :
break;
case 2 :
mekuri_now = mekuri_now - 10;
if (mekuri_now < 0) {
mekuri_now = 0;
tc.acssesTask(oya, [4]);
st = 1;
}
mekuri_pow(mekuri_now);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
mekuridraw_f = true;
break;
case 1 :
mekuridraw_f = false;
break;
case 2 :
mess[0] = mekuri_now;
break;
case 3 :
drawScore(mess[1]);
break;
case 4 :
st = 2;
}
return(mess);
}
function drawStage(stg, tc) {
var _local2;
stg = Math.floor(stg / 7);
if (stg < 100) {
_local2 = 1;
while (_local2 != 10) {
minipantu[_local2]._visible = false;
_local2++;
}
var _local4 = stg / 10;
if (stg > 9) {
mc.BigNum.gotoAndStop(Math.floor(_local4) + 1);
} else {
mc.BigPantu._visible = false;
mc.BigNum._visible = false;
}
_local4 = (stg % 10) + 1;
_local2 = 0;
while (_local2 < _local4) {
tc.setTask(new sorce.task.StagePantu(minipantu[_local2], _local2 * 5));
_local2++;
}
} else {
mc.BigNum.gotoAndStop(10);
_local2 = 0;
while (_local2 != 10) {
tc.setTask(new sorce.task.StagePantu(minipantu[_local2], _local2 * 5));
_local2++;
}
}
}
function mekuri_pow(ms) {
var _local2 = 300 * (ms / mekuri_max);
mc.Mekuribar._width = _local2;
}
function clockRun(tc) {
var _local2;
clockF++;
if (!(clockF % 2)) {
clockS++;
if (!(clockS % 60)) {
clockM++;
if ((clockM - mBuffer) > game_time) {
}
if (!(clockM % 60)) {
clockH++;
if (!(clockH % 24)) {
clockH = 0;
}
}
}
}
mc.NeedleLow._rotation = ((((clockM % 60) / 60) * 360) + (((clockS % 60) / 60) * 6)) + 180;
mc.NeedleHight._rotation = ((((clockH % 12) / 12) * 360) + (((clockM % 60) / 60) * 30)) + 90;
}
function drawScore(sc) {
var _local5;
var _local3;
if (sc > 9999999) {
mc.Num1.gotoAndStop(10);
mc.Num10.gotoAndStop(10);
mc.Num100.gotoAndStop(10);
mc.Num1000.gotoAndStop(10);
mc.Num10000.gotoAndStop(10);
mc.Num100000.gotoAndStop(10);
mc.Num1000000.gotoAndStop(10);
} else {
var _local2 = 6;
while (_local2 > -1) {
((_local2 > 0) ? (_local3 = Math.pow(10, _local2)) : (_local3 = 1));
_local5 = Math.floor(sc / _local3);
scnum[_local2].gotoAndStop(_local5 + 1);
sc = sc - (_local5 * _local3);
_local2--;
}
}
}
function animetionStop() {
mc.Num1.stop();
mc.Num10.stop();
mc.Num100.stop();
mc.Num1000.stop();
mc.Num10000.stop();
mc.Num100000.stop();
mc.Num1000000.stop();
mc.BigNum.stop();
animetionStop2();
}
function animetionStop2() {
mc.Marker.stop();
mc.Marker.gotoAndStop(1);
mc.Mekuribar.stop();
mc.Mekuribar.gotoAndStop(1);
mc.Prate.stop();
mc.Prate.gotoAndStop(1);
}
static var mekuri_max = 3000;
}
Symbol 1294 MovieClip [__Packages.sorce.task.BTe] Frame 0
class sorce.task.BTe extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, oya, fr;
function BTe (mmc, o) {
super();
mc = mmc.attachMovie("teacherBonus", "teacherBonus" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc.stop();
mc._x = -84;
mc._y = 179;
oya = o;
fr = 1;
}
function init(no, tc) {
tc.acssesTask(oya, [11, no]);
}
function run(tc) {
mc._x = mc._x + 6;
fr++;
if (fr > 11) {
fr = 0;
}
mc.gotoAndStop(Math.floor(fr / 3) + 1);
if (mc._x > (640 + mc._width)) {
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
tc.acssesTask(oya, [11, -1]);
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1295 MovieClip [__Packages.sorce.task.Combo2] Frame 0
class sorce.task.Combo2 extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, comb, bmc, nums, buff, sta, dis_height, dis_width, data_w, data_h, ari, name_f, fadeout;
function Combo2 (mmc) {
super();
mc = mmc.attachMovie("combo", "combo" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 360;
mc._y = 46;
comb = 0;
bmc = new Array(3);
bmc[0] = mc.Comb1;
bmc[1] = mc.Comb10;
bmc[2] = mc.Comb100;
nums = new Array(3);
buff = new Array(3);
var _local3 = 0;
while (_local3 != 3) {
nums[_local3] = 0;
buff[_local3] = 0;
bmc[_local3].stop();
_local3++;
}
sta = 0;
dis_height = new Array(3);
dis_width = new Array(3);
_local3 = 0;
while (_local3 != 10) {
data_w[_local3] = 58;
data_h[_local3] = 61;
_local3++;
}
ari = new nigoro.lib.duplex.Math.Arithmetic(100);
}
function init(no, tc) {
addComb();
tc.regstData("combo", "no", no);
name_f = true;
}
function run(tc) {
switch (sta) {
case 0 :
break;
case 1 :
fadeout = fadeout - 10;
mc._alpha = fadeout;
if (fadeout != 0) {
break;
}
return(false);
}
popup();
return(true);
}
function finalize(tc) {
if (name_f) {
tc.elaseData("combo");
}
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
addComb();
break;
case 1 :
tc.elaseData("combo");
name_f = false;
var _local4 = [10, comb];
tc.acssesTask(tc.checkData("play", "no"), _local4);
fadeout = 100;
sta = 1;
break;
case 2 :
mess[0] = comb;
}
return(mess);
}
function popup() {
var _local2;
_local2 = 0;
while (_local2 != 3) {
if (nums[_local2] != 0) {
if (nums[_local2] == 100) {
bmc[_local2]._alpha = 50;
bmc[_local2]._width = data_w[dis_width[_local2]] * 1.3;
bmc[_local2]._height = data_h[dis_width[_local2]] * 1.3;
nums[_local2] = 10;
} else {
nums[_local2] = nums[_local2] - 2;
bmc[_local2]._alpha = bmc[_local2]._alpha + 10;
bmc[_local2]._width = data_w[dis_width[_local2]] * (1 + nums[_local2]);
bmc[_local2]._height = data_h[dis_width[_local2]] * (1 + nums[_local2]);
}
}
_local2++;
}
}
function addComb() {
var _local2;
comb++;
_local2 = ari.getBeam(1, comb);
mc.Comb1.gotoAndStop(_local2 + 1);
dis_width[0] = _local2;
nums[0] = 100;
_local2 = ari.getBeam(10, comb);
if (_local2 == 0) {
mc.Comb10._visible = false;
} else {
mc.Comb10._visible = true;
mc.Comb10.gotoAndStop(_local2 + 1);
dis_width[1] = _local2;
}
if (_local2 != buff[1]) {
nums[1] = 100;
buff[1] = _local2;
}
_local2 = ari.getBeam(100, comb);
if (_local2 == 0) {
mc.Comb100._visible = false;
} else {
mc.Comb100._visible = true;
mc.Comb100.gotoAndStop(_local2 + 1);
dis_width[2] = _local2;
}
if (_local2 != buff[2]) {
nums[2] = 100;
buff[2] = _local2;
}
}
}
Symbol 1296 MovieClip [__Packages.sorce.task.Judge2] Frame 0
class sorce.task.Judge2 extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, count, b_no;
function Judge2 (mmc, t, x, y) {
super();
mc = mmc.attachMovie("judgeMark", "judgeMark" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc.gotoAndStop(2);
mc.farstMC.scondMC.gotoAndStop(t);
mc._x = x;
mc._y = y;
count = 0;
}
function init(no, tc) {
b_no = tc.checkData("banchou", "no");
}
function run(tc) {
count++;
if (count > 30) {
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1297 MovieClip [__Packages.sorce.task.Hand] Frame 0
class sorce.task.Hand extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, count, add;
function Hand (mmc, x, y) {
super();
mc = mmc.attachMovie("hand_cursol", "hand_cursol" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = x;
mc._y = y;
count = 0;
add = 0;
}
function init(no, tc) {
}
function run(tc) {
var _local5;
var _local7;
var _local4;
var _local6;
var _local2;
add++;
if (add == 2) {
mc.blendMode = 8;
}
_local5 = (100 - (count * 1.5)) / 100;
_local7 = _local5;
_local4 = _local7;
_local6 = (100 - count) / 100;
_local2 = count * 3.85;
var _local3 = new flash.geom.ColorTransform(_local5, _local7, _local4, _local6, 0, 0, _local2, 0);
mc.transform.colorTransform = _local3;
count = count + 20;
if (count > 100) {
return(false);
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1298 MovieClip [__Packages.sorce.task.Clearpantu] Frame 0
class sorce.task.Clearpantu extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, life, p_count, st, wait, miss, paar, lvar, combf, comb_no, my_no, up, yuu, ryou, ka, putline, last, mouse_f;
function Clearpantu (mmc, m) {
super();
mc = mmc;
Mouse.addListener(this);
life = 0;
p_count = 0;
st = 6;
wait = 0;
miss = m;
}
function init(no, tc) {
tc.regstData("clearpantu", "no", no);
paar = tc.getData("pantu", "iro");
lvar = tc.getData("pantu", "level");
combf = tc.getData("pantu", "combf");
comb_no = tc.checkData("combo", "no");
if (comb_no != null) {
var _local4 = [1];
tc.acssesTask(comb_no, _local4);
}
my_no = no;
up = [186.1, 206.6, 227, 247.4, 268];
yuu = 0;
ryou = 0;
ka = 0;
var _local2 = 0;
while (_local2 < lvar.length) {
switch (lvar[_local2]) {
case 0 :
ka++;
break;
case 1 :
ryou++;
break;
case 2 :
yuu++;
}
_local2++;
}
putline = 50;
last = 0;
mouse_f = false;
}
function run(tc) {
switch (st) {
case 6 :
wait++;
if (wait > 30) {
st = 0;
}
break;
case 0 :
if (mouse_f) {
tc.setTask(new sorce.task.Yrkf(mc, 1, 121.3, 292.4, yuu, 171.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 2, 219.9, 292.4, ryou, 266.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 3, 321.9, 292.4, ka, 365.3, 301.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 4, 418.4, 292.4, miss, 469.3, 301.4, my_no));
st = 5;
p_count = 15;
break;
}
life = 0;
if (p_count < paar.length) {
tc.setTask(new sorce.task.Drawpantu(mc, 136.1 + ((p_count % 10) * 37.75), 186.1 + (Math.floor(p_count / 10) * 20.5), my_no, paar[p_count], lvar[p_count], combf[p_count], 0));
p_count++;
if (p_count == putline) {
if (p_count < paar.length) {
putline = 60;
life = 2;
st = 3;
}
}
} else {
st = 4;
break;
}
break;
case 1 :
if (life == 3) {
life = 1;
st = 2;
}
break;
case 2 :
return(false);
case 3 :
if (mouse_f) {
tc.setTask(new sorce.task.Yrkf(mc, 1, 121.3, 292.4, yuu, 171.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 2, 219.9, 292.4, ryou, 266.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 3, 321.9, 292.4, ka, 365.3, 301.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 4, 418.4, 292.4, miss, 469.3, 301.4, my_no));
st = 5;
p_count = 15;
} else {
life = 0;
if (p_count < paar.length) {
tc.setTask(new sorce.task.Drawpantu(mc, 136.1 + ((p_count % 10) * 37.75), 268.1, my_no, paar[p_count], lvar[p_count], combf[p_count], 0));
p_count++;
if (p_count == putline) {
if (p_count < paar.length) {
putline = putline + 10;
life = 2;
}
}
} else {
st = 4;
break;
}
break;
tc.setTask(new sorce.task.Yrkf(mc, 1, 121.3, 292.4, yuu, 171.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 2, 219.9, 292.4, ryou, 266.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 3, 321.9, 292.4, ka, 365.3, 301.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 4, 418.4, 292.4, miss, 469.3, 301.4, my_no));
life = 0;
p_count = 0;
st = 5;
break;
p_count++;
if (p_count > 15) {
if (last == 4) {
tc.setTask(new sorce.task.NextStage(mc, 244, 339.5));
var _local5 = [12];
tc.acssesTask(tc.checkData("play", "no"), _local5);
st = 1;
}
}
break;
var _local2;
var _local3;
if (paar.length > 50) {
_local2 = 60;
while (paar.length > _local2) {
_local2 = _local2 + 10;
}
_local2 = _local2 - 50;
} else {
_local2 = 0;
}
_local3 = 0;
while (_local3 < paar.length) {
tc.setTask(new sorce.task.Drawpantu(mc, 136.1 + ((_local3 % 10) * 37.75), 186.1 + (Math.floor(_local3 / 10) * 20.5), my_no, paar[_local2], lvar[_local2], combf[_local2], 2));
_local2++;
_local3++;
}
life = 1;
st = 4;
}
case 4 :
tc.setTask(new sorce.task.Yrkf(mc, 1, 121.3, 292.4, yuu, 171.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 2, 219.9, 292.4, ryou, 266.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 3, 321.9, 292.4, ka, 365.3, 301.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 4, 418.4, 292.4, miss, 469.3, 301.4, my_no));
life = 0;
p_count = 0;
st = 5;
break;
case 5 :
p_count++;
if (p_count > 15) {
if (last == 4) {
tc.setTask(new sorce.task.NextStage(mc, 244, 339.5));
var _local5 = [12];
tc.acssesTask(tc.checkData("play", "no"), _local5);
st = 1;
}
}
break;
case 7 :
var _local2;
var _local3;
if (paar.length > 50) {
_local2 = 60;
while (paar.length > _local2) {
_local2 = _local2 + 10;
}
_local2 = _local2 - 50;
} else {
_local2 = 0;
}
_local3 = 0;
while (_local3 < paar.length) {
tc.setTask(new sorce.task.Drawpantu(mc, 136.1 + ((_local3 % 10) * 37.75), 186.1 + (Math.floor(_local3 / 10) * 20.5), my_no, paar[_local2], lvar[_local2], combf[_local2], 2));
_local2++;
_local3++;
}
life = 1;
st = 4;
}
mouse_f = false;
return(true);
}
function onMouseDown() {
if (_root._ymouse < 400) {
mouse_f = true;
}
}
function finalize(tc) {
tc.elaseData("pantu");
tc.elaseData("clearpantu");
Mouse.removeListener(this);
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
mess[0] = life;
break;
case 1 :
life = 3;
break;
case 2 :
last++;
}
return(mess);
}
}
Symbol 1299 MovieClip [__Packages.sorce.task.Yrkf] Frame 0
class sorce.task.Yrkf extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc1, mc2, likelove, count, st, cnt, oya;
function Yrkf (mmc, d1, x1, y1, d2, x2, y2, no) {
super();
mc1 = mmc.attachMovie("judgeMarkF", "judgeMarkF" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc1.stop();
mc1.gotoAndStop(d1);
switch (d1) {
case 1 :
mc1._width = 50.5;
mc1._height = 41;
break;
case 2 :
mc1._width = 50.5;
mc1._height = 41;
break;
case 3 :
mc1._width = 50.5;
mc1._height = 41;
break;
case 4 :
mc1._width = 50.5;
mc1._height = 41;
}
mc1._x = x1 + (mc1._width / 2);
mc1._y = y1 + (mc1._height / 2);
mc2 = mmc.attachMovie("LikePantuNum", "LikePantuNum" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc2._x = x2;
mc2._y = y2;
likelove = new Array(3);
likelove[0] = mc2.NUM1;
likelove[1] = mc2.NUM10;
likelove[2] = mc2.NUM100;
mc2.NUM100.stop();
mc2.NUM10.stop();
mc2.NUM1.stop();
count = d2 - 1;
st = 0;
cnt = d2;
if (cnt > 999) {
cnt = 999;
}
oya = no;
}
function init(no, tc) {
}
function run(tc) {
switch (st) {
case 0 :
count++;
if (cnt < count) {
var _local2 = [2];
tc.acssesTask(oya, _local2);
st = 1;
break;
}
drawlove(count);
break;
case 1 :
var _local2 = [0];
_local2 = tc.acssesTask(oya, _local2);
if (_local2[0] != 1) {
break;
}
return(false);
}
return(true);
}
function finalize(tc) {
mc1.removeMovieClip();
mc1 = null;
mc2.removeMovieClip();
mc2 = null;
}
function talkTask(mess, tc) {
return(mess);
}
function drawlove(num) {
var _local4;
var _local3;
var _local2 = 3;
while (_local2 > -1) {
((_local2 > 0) ? (_local3 = Math.pow(10, _local2)) : (_local3 = 1));
_local4 = Math.floor(num / _local3);
likelove[_local2].gotoAndStop(_local4 + 1);
num = num - (_local4 * _local3);
_local2--;
}
}
}
Symbol 1300 MovieClip [__Packages.sorce.task.Drawpantu] Frame 0
class sorce.task.Drawpantu extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var death_c, mc, bx, by, bh, bw, oya, comb_f, death_f, sccount, myalpha;
function Drawpantu (mmc, x, y, no, pno, lvn, cbf, fff) {
super();
death_c = fff;
var _local3;
switch (pno) {
case 0 :
_local3 = "panty1";
break;
case 1 :
_local3 = "panty2";
break;
case 2 :
_local3 = "panty3";
break;
case 3 :
_local3 = "panty4";
break;
case 4 :
_local3 = "panty5";
break;
case 5 :
_local3 = "panty6";
break;
case 6 :
_local3 = "panty7";
break;
case 7 :
_local3 = "panty8";
break;
case 8 :
_local3 = "panty9";
}
mc = mmc.attachMovie(_local3, _local3 + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc.stop();
bx = (mc._x = x);
by = (mc._y = y);
bh = mc._height;
bw = mc._width;
if (lvn == 2) {
mc.gotoAndStop(2);
}
oya = no;
comb_f = cbf;
if (comb_f == 1) {
mc._height = mc._height * 2;
mc._width = mc._width * 2;
comb_f = 2;
mc._x = bx - ((mc._width - bw) / 2);
mc._y = by - ((mc._height - bh) / 2);
}
death_f = false;
sccount = 0;
myalpha = 100;
}
function init(no, tc) {
tc.acssesTask(tc.checkData("play", "no"), [100, 14]);
}
function run(tc) {
death_c--;
if (comb_f > 1) {
comb_f = comb_f - 0.1;
mc._height = bh * comb_f;
mc._width = bw * comb_f;
mc._x = bx - ((mc._width - bw) / 2);
mc._y = by - ((mc._height - bh) / 2);
} else {
mc._y = by;
}
if (death_f) {
myalpha = myalpha - 20;
if (myalpha == 0) {
return(false);
}
mc._alpha = myalpha;
}
var _local2 = [0];
_local2 = tc.acssesTask(oya, _local2);
if (_local2[0] == 1) {
if (death_c < 0) {
return(false);
}
}
if (_local2[0] == 2) {
if (mc._y < 196) {
death_f = true;
}
sccount = 5;
}
if (sccount > 0) {
sccount--;
by = by - 4.1;
}
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1301 MovieClip [__Packages.sorce.task.Allflash] Frame 0
class sorce.task.Allflash extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, count;
function Allflash (mmc, st) {
super();
mc = mmc.attachMovie(st, st + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc.blendMode = 8;
count = 0;
}
function init(no, tc) {
}
function run(tc) {
if (count == 3) {
return(false);
}
count++;
return(true);
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1302 MovieClip [__Packages.sorce.task.Coffebreak] Frame 0
class sorce.task.Coffebreak extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, st, mouse_f, timer;
function Coffebreak (mmc) {
super();
mc = mmc.attachMovie("coffeebreak", "coffeebreak" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 0;
mc._y = 0;
mc.break_picture.stop();
mc.break_picture.gotoAndStop(Math.floor(Math.random() * 6) + 1);
st = 0;
Mouse.addListener(this);
mouse_f = false;
timer = getTimer();
}
function init(no, tc) {
}
function run(tc) {
switch (st) {
case 0 :
if (mc._currentframe == 30) {
mc.stop();
tc.acssesTask(tc.checkData("play", "no"), [102, 5]);
st = 3;
}
break;
case 3 :
if ((getTimer() - timer) >= 5500) {
mc.play();
st = 1;
}
case 1 :
if (mc._currentframe == 35) {
if (mouse_f) {
mc.play();
st = 2;
}
}
break;
case 2 :
if (mc._currentframe != 65) {
break;
}
var _local3 = [1];
tc.acssesTask(tc.checkData("play", "no"), _local3);
return(false);
}
mouse_f = false;
return(true);
}
function onMouseDown() {
mouse_f = true;
}
function finalize(tc) {
mc.removeMovieClip();
mc = null;
Mouse.removeListener(this);
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1303 MovieClip [__Packages.sorce.task.Save] Frame 0
class sorce.task.Save extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var dnet;
function Save (mmc, sl, el, sc, lp, lpn, max, user, db) {
super();
dnet = new sorce.task.Net(mmc, sl, el, sc, lp, lpn, max, user, 0, db);
}
function init(no, tc) {
}
function run(tc) {
dnet.run();
if (dnet.getEnd()) {
if (dnet.isError()) {
tc.acssesTask(tc.checkData("play", "no"), [23, 1, -1]);
} else {
tc.acssesTask(tc.checkData("play", "no"), [23, 0, dnet.getRank()]);
}
return(false);
}
return(true);
}
function finalize(tc) {
dnet = null;
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1304 MovieClip [__Packages.sorce.task.TryPlay] Frame 0
class sorce.task.TryPlay extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mbmc, hbmc, bmmc, mmmc, hmmc, himc, swmc, st, score, likepantu, mensuu, truestage, coll, hide, starth, startm, startg, IO, ending, missnum, maxyuu, maxryou, maxka, maxcomb, nextwait, nextstage, nokezori, endtero1, endtero2, mc, endingtimer, yuurensa, rensamekuri, mbuff, bmbuff, bm_counter, ringbuff, ttc, mouse_f, bringbuff;
function TryPlay (m1, m2, m3, m4, m5, m6, men, i_o, stdb, m7) {
super();
mbmc = m1;
hbmc = m2;
bmmc = m3;
mmmc = m4;
hmmc = m5;
himc = m6;
swmc = m7;
st = stdb;
score = 0;
likepantu = 0;
mensuu = men;
truestage = (mensuu / 7) * 5;
coll = new nigoro.lib.duplex.Math.Collosion();
Mouse.addListener(this);
Mouse.hide();
hide = true;
starth = [9, 10, 11, 12, 1, 2];
startm = [30, 30, 30, 30, 30, 30];
startg = [10, 10, 10, 10, 10, 30];
IO = i_o;
ending = false;
missnum = 0;
maxyuu = 0;
maxryou = 0;
maxka = 0;
maxcomb = 0;
nextwait = 0;
nextstage = false;
nokezori = false;
endtero1 = 0;
endtero2 = 0;
if (stdb == 10) {
st = 10001;
mc = hmmc.attachMovie("ending", "ending" + himc.getNextHighestDepth(), himc.getNextHighestDepth());
IO.bgmIO2(1, 100);
endingtimer = getTimer();
}
yuurensa = 0;
rensamekuri = false;
}
function init(no, tc) {
tc.regstData("play", "no", no);
mbuff = new Array(4);
bmbuff = new Array(4);
bm_counter = 0;
mbuff[0] = _root._xmouse;
mbuff[1] = _root._ymouse;
mbuff[2] = _root._xmouse;
mbuff[3] = _root._ymouse;
ringbuff = 0;
ttc = tc;
}
function run(tc) {
var _local5;
switch (st) {
case 0 :
tc.setTask(new sorce.task.Yuka(mbmc, mensuu));
tc.setTask(new sorce.task.TryEnemy(bmmc, hmmc, mensuu, swmc, hbmc, mmmc));
tc.setTask(new sorce.task.TryState(himc, starth[mensuu % 7], startm[mensuu % 7], startg[mensuu % 7], score, mensuu, IO.getLike(), likepantu));
tc.setTask(new sorce.task.TryBanchou(mmmc, himc, hbmc, 0, swmc));
var _local4 = mensuu % 7;
tc.setTask(new sorce.task.Text(himc, "gameTexts", 320, 200, 18, 2));
IO.soundIO(5);
IO.soundIO(20);
st = 10000;
break;
case 1 :
if (mouse_f && (nextstage)) {
IO.bgmIO(-1, 5);
tc.setTask(new sorce.task.BlackOut(himc, 1));
st = 10000;
}
break;
case 2 :
if ((mensuu % 7) == 2) {
st = 4;
} else if ((mensuu % 7) == 5) {
st = 6;
} else {
st = 0;
truestage++;
}
missnum = 0;
nextstage = false;
nokezori = false;
mensuu++;
if (!ending) {
if ((mensuu % 7) == 0) {
if (mensuu == 35) {
ending = true;
}
}
}
break;
case 3 :
if (mouse_f) {
tc.setTask(new sorce.task.BlackOut(himc, 1));
mensuu = 0;
st = 10000;
}
break;
case 4 :
tc.setTask(new sorce.task.BonusBG(mbmc, mensuu, score, himc, swmc, bmmc));
tc.setTask(new sorce.task.Text(himc, "gameTexts", 320, 200, 3, 2));
IO.soundIO(5);
IO.soundIO(20);
st = 10000;
break;
case 5 :
if (mouse_f) {
nextwait = 0;
tc.setTask(new sorce.task.BlackOut(himc, 5));
st = 10000;
}
break;
case 6 :
tc.setTask(new sorce.task.BonusBG2(mbmc, mensuu, score, himc, mmmc));
tc.setTask(new sorce.task.Text(himc, "gameTexts", 320, 200, 15, 2));
IO.soundIO(5);
IO.soundIO(20);
st = 10000;
break;
case 7 :
if (mouse_f) {
nextwait = 0;
tc.setTask(new sorce.task.BlackOut(himc, 6));
st = 10000;
}
break;
case 10000 :
break;
case 10001 :
if (mouse_f) {
st = 10000;
tc.setTask(new sorce.task.BlackOut(himc, 2));
}
_local4 = getTimer() - endingtimer;
if (endtero1 < _root.terop1.length) {
if (_root.terop1[endtero1] <= _local4) {
mc.terop1.nextFrame();
endtero1++;
}
}
if (endtero2 >= _root.terop2.length) {
break;
}
if (_root.terop2[endtero2] > _local4) {
break;
}
mc.terop2.nextFrame();
endtero2++;
}
tc.elaseData("target");
rensamekuri = false;
tc.idPlayTask(1356);
if (ringbuff == 0) {
mbuff[2] = _root._xmouse;
mbuff[3] = _root._ymouse;
ringbuff = 1;
} else {
mbuff[0] = _root._xmouse;
mbuff[1] = _root._ymouse;
ringbuff = 0;
}
if (_root._ymouse > 399) {
Mouse.show();
} else if (hide) {
Mouse.hide();
}
if (hide) {
tc.setTask(new sorce.task.Hand(himc, _root._xmouse, _root._ymouse));
}
mouse_f = false;
if (bm_counter > 0) {
bm_counter++;
if (bm_counter == 3) {
bm_counter = 0;
}
}
return(true);
}
function finalize(tc) {
tc.elaseData("play");
Mouse.removeListener(this);
if (hide) {
Mouse.show();
}
mc.removeMovieClip();
mc = null;
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
st = 1;
tc.setTask(new sorce.task.TryClearpantu(hmmc, missnum));
break;
case 1 :
st = 2;
break;
case 2 :
score = mess[1];
likepantu = mess[2];
break;
case 3 :
st = 3;
break;
case 4 :
IO.gameIO(2);
st = 10000;
break;
case 5 :
IO.gameIO(2);
st = 10000;
break;
case 6 :
tc.setTask(new sorce.task.Allflash(hbmc, "hit_damage"));
break;
case 7 :
tc.setTask(new sorce.task.Allflash(hbmc, "hit_perfect"));
bmbuff[0] = mbuff[0];
bmbuff[1] = mbuff[1];
bmbuff[2] = mbuff[2];
bmbuff[3] = mbuff[3];
bringbuff = ringbuff;
bm_counter = 1;
yuurensa++;
break;
case 8 :
mess[0] = ending;
if (ending) {
tc.setTask(new sorce.task.BlackOut(himc, 3));
}
break;
case 9 :
st = 10001;
mc = hmmc.attachMovie("ending", "ending" + himc.getNextHighestDepth(), himc.getNextHighestDepth());
IO.bgmIO2(1, 100);
endingtimer = getTimer();
break;
case 10 :
if (mess[1] > maxcomb) {
maxcomb = mess[1];
}
break;
case 11 :
missnum++;
break;
case 12 :
nextstage = true;
break;
case 13 :
Mouse.show();
hide = false;
break;
case 14 :
if (mess[1] == 0) {
nokezori = false;
} else {
nokezori = true;
}
break;
case 15 :
st = 5;
break;
case 16 :
st = 2;
break;
case 17 :
score = mess[1];
break;
case 18 :
st = 7;
break;
case 19 :
tc.setTask(new sorce.task.Coffebreak(himc));
break;
case 20 :
yuurensa = 0;
break;
case 21 :
if (rensamekuri) {
mess[0] = 1;
} else {
mess[0] = 0;
}
rensamekuri = false;
break;
case 100 :
IO.soundIO(mess[1]);
break;
case 101 :
IO.bgmIO(mess[1], mess[2]);
break;
case 102 :
IO.bgmIO2(mess[1], mess[2]);
break;
case 103 :
IO.soundVoiceStop();
}
return(mess);
}
function onMouseDown() {
if (_root._ymouse < 400) {
mouse_f = true;
}
}
function checkLine(x1, y1, x2, y2, jd, type, hantei, no) {
var _local10;
var _local3;
var _local17;
if (nokezori) {
return(false);
}
if (ringbuff == 0) {
if ((mbuff[3] - mbuff[1]) < 0) {
return(false);
}
} else if ((mbuff[1] - mbuff[3]) < 0) {
return(false);
}
_local10 = coll.lineCrossPoint(x1, y1, x2, y2, mbuff[0] - 5, mbuff[1], mbuff[2] - 5, mbuff[3]);
if (!_local10) {
_local10 = coll.lineCrossPoint(x1, y1, x2, y2, mbuff[0] + 5, mbuff[1], mbuff[2] + 5, mbuff[3]);
}
if (_local10) {
if (jd == 3) {
if (hantei == 3) {
var _local4 = ttc.getData("target", "no");
var _local9 = ttc.getTask(no).mc._x;
var _local8 = ttc.getTask(no).mc._y;
var _local6;
var _local5;
_local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3] != no) {
_local6 = ttc.getTask(_local4[_local3]).mc._x;
_local5 = ttc.getTask(_local4[_local3]).mc._y;
_local6 = _local6 - _local9;
_local5 = _local5 - _local8;
if (Math.sqrt((_local6 * _local6) + (_local5 * _local5)) < _root.hani) {
ttc.acssesTask(_local4[_local3], [0, yuurensa]);
rensamekuri = true;
}
}
_local3++;
}
}
}
}
return(_local10);
}
}
Symbol 1305 MovieClip [__Packages.sorce.task.TryEnemy] Frame 0
class sorce.task.TryEnemy extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var upmc, dnmc, swmc, sta, mae, usiro, u_count, d_count, u_next, d_next, nextpoptime, nextpoptime_r, life, obj_count, llength, now_stage, myari, count1, count2, count3, count4, ns_f, b_no;
function TryEnemy (up, dn, men, sw, m, u) {
super();
upmc = up;
dnmc = dn;
swmc = sw;
sta = 0;
mae = m;
usiro = u;
u_count = 0;
d_count = 0;
u_next = Math.floor(Math.random() * 10);
d_next = Math.floor(Math.random() * 10);
nextpoptime = 140 - (men * 2);
if (nextpoptime < 10) {
nextpoptime = 10;
}
nextpoptime_r = 90;
life = false;
obj_count = 0;
llength = 0;
now_stage = men;
myari = new nigoro.lib.duplex.Math.Arithmetic(men);
count1 = 0;
count2 = 0;
count3 = 0;
count4 = 0;
ns_f = 1;
}
function init(no, tc) {
tc.regstData("enemy", "no", no);
}
function run(tc) {
var _local4;
if (life) {
var _local2 = [0, 0, 0];
_local2 = tc.acssesTask(b_no, _local2);
llength = llength + _local2[0];
u_count++;
if (llength >= (u_next * ns_f)) {
llength = 0;
u_count = 0;
u_next = nextpoptime + (myari.atRandom() % nextpoptime_r);
_local4 = myari.atRandom() % 7;
if (Math.floor(myari.atRandom() % 10000) < 5000) {
tc.setTask(new sorce.task.Target(upmc, 7, 0, myari.atRandom() % 3, myari.atRandom() % 3, 270 + (myari.atRandom() % 35), now_stage, swmc, mae));
obj_count++;
} else {
tc.setTask(new sorce.task.Target(dnmc, 7, 1, myari.atRandom() % 3, myari.atRandom() % 3, 345 + (myari.atRandom() % 35), now_stage, swmc, usiro));
obj_count++;
}
}
}
return(true);
}
function finalize(tc) {
tc.elaseData("enemy");
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
life = mess[1];
break;
case 1 :
obj_count--;
break;
case 2 :
mess[0] = obj_count;
break;
case 3 :
b_no = mess[1];
break;
case 4 :
ns_f = mess[1];
}
return(mess);
}
}
Symbol 1306 MovieClip [__Packages.sorce.task.TryState] Frame 0
class sorce.task.TryState extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, clockH, clockM, mBuffer, clockS, clockF, clock_run, game_time, mekuri_now, mekuridraw_f, mekuriud, tensuu, mensuu, daipan_num, minipantu, scnum, pantunum, likepantu, st, supermode, undeath, gopa, nrcomb, yuka_no, mc2, mc3, b_no;
function TryState (mmc, h, m, g, sco, stg, like, lpn) {
super();
mc = mmc.attachMovie("param", "param" + mmc.getNextHighestDepth(), mmc.getNextHighestDepth());
mc._x = 5;
mc._y = 5;
clockH = h;
clockM = (mBuffer = m);
clockS = 0;
clockF = 0;
clock_run = false;
game_time = g;
mekuri_now = 1000;
mekuridraw_f = false;
mekuriud = 0;
tensuu = sco;
mensuu = stg;
daipan_num = 0;
mc.TimeArea.stop();
if ((stg % 7) == 5) {
mc.TimeArea.gotoAndStop(2);
}
minipantu = new Array(10);
minipantu[0] = mc.minip1;
minipantu[1] = mc.minip2;
minipantu[2] = mc.minip3;
minipantu[3] = mc.minip4;
minipantu[4] = mc.minip5;
minipantu[5] = mc.minip6;
minipantu[6] = mc.minip7;
minipantu[7] = mc.minip8;
minipantu[8] = mc.minip9;
minipantu[9] = mc.minip10;
scnum = new Array(8);
scnum[0] = mc.Num1;
scnum[1] = mc.Num10;
scnum[2] = mc.Num100;
scnum[3] = mc.Num1000;
scnum[4] = mc.Num10000;
scnum[5] = mc.Num100000;
scnum[6] = mc.Num1000000;
pantunum = lpn;
likepantu = like;
st = 0;
supermode = false;
undeath = true;
gopa = 100;
nrcomb = 0;
}
function init(no, tc) {
tc.regstData("score", "no", no);
mekuri_pow(mekuri_now);
animetionStop();
drawStage(mensuu, tc);
clockRun();
drawScore(tensuu);
yuka_no = tc.checkData("haikei", "no");
}
function run(tc) {
switch (st) {
case 0 :
if (clock_run) {
clockRun(tc);
}
if (mekuridraw_f) {
drawMekuri();
}
if (supermode) {
superbar(tc);
}
break;
case 1 :
break;
case 2 :
gopa = gopa - 10;
if (gopa <= 0) {
mc2._visible = false;
mc3._visible = false;
st = 1;
break;
}
mc2._alpha = gopa;
mc3._alpha = gopa;
break;
case 3 :
if (mekuridraw_f) {
drawMekuri();
}
if (!supermode) {
break;
}
superbar(tc);
}
if (_root.debug) {
if ((!undeath) && (Key.isDown(32))) {
undeath = true;
tc.setTask(new sorce.task.Judge(mc, 2, 320, 240, 0));
}
}
return(true);
}
function finalize(tc) {
var _local3 = [2, tensuu, pantunum];
tc.acssesTask(tc.checkData("play", "no"), _local3);
tc.elaseData("score");
mc.removeMovieClip();
mc = null;
mc2.removeMovieClip();
mc2 = null;
mc3.removeMovieClip();
mc3 = null;
}
function talkTask(mess, tc) {
var _local4;
switch (mess[0]) {
case 0 :
clock_run = mess[1];
break;
case 1 :
mess[0] = true;
break;
case 2 :
var _local7 = tc.checkData("combo", "no");
var _local6 = 0;
if (_local7 != null) {
var _local5 = [2];
_local5 = tc.acssesTask(_local7, _local5);
tensuu = tensuu + ((mess[1] * _local5[0]) * 10);
_local6 = _local5[0];
} else {
tensuu = tensuu + mess[1];
}
tensuu = tensuu + nrcomb;
drawScore(tensuu);
if (mess[2] > 0) {
if ((nrcomb + _local6) > _root.combmax) {
_local4 = _root.combmax;
} else {
_local4 = nrcomb + _local6;
}
_local4 = Math.floor(_local4 * _root.combbai);
mess[2] = mess[2] + _local4;
}
if (mekuriAdd(mess[2], tc)) {
mess[0] = 1;
} else {
mess[0] = 0;
}
break;
case 3 :
b_no = mess[1];
break;
case 4 :
st = 2;
}
return(mess);
}
function superbar(tc) {
var _local4;
mekuri_now = mekuri_now - 5;
mekuri_pow(mekuri_now);
if (mekuri_now <= 2000) {
mekuri_now = 1000;
mekuriud = -100;
mekuridraw_f = true;
supermode = false;
animetionStop2();
_local4 = tc.checkData("combo", "no");
if (_local4 != null) {
var _local5 = [1];
tc.acssesTask(_local4, _local5);
}
var _local2 = [7];
tc.acssesTask(b_no, _local2);
_local2[0] = 3;
tc.acssesTask(yuka_no, _local2);
}
}
function drawMekuri() {
var _local2 = mc.Mekuribar._width * 10;
_local2 = _local2 + mekuriud;
if (mekuriud > 0) {
if (_local2 >= mekuri_now) {
_local2 = mekuri_now;
mekuridraw_f = false;
}
} else if (_local2 <= mekuri_now) {
_local2 = mekuri_now;
mekuridraw_f = false;
}
mekuri_pow(_local2);
}
function mekuri_pow(ms) {
var _local2 = 300 * (ms / mekuri_max);
mc.Mekuribar._width = _local2;
}
function mekuriAdd(ms, tc) {
var _local2;
var _local4 = false;
if (mekuri_now == 0) {
return(undefined);
}
if (supermode) {
if (ms > 0) {
_local2 = sorce.data.MekuriData.superwari + (sorce.data.MekuriData.supernobi * Math.floor(mensuu / 7));
if (_local2 > sorce.data.MekuriData.supermax) {
_local2 = sorce.data.MekuriData.supermax;
}
ms = ms / _local2;
}
_local4 = true;
} else if (ms > 0) {
nrcomb++;
} else {
nrcomb = 0;
}
_local2 = mekuri_now + ms;
if (_local2 >= 3000) {
ms = 3000 - mekuri_now;
mekuri_now = 3000;
if (!supermode) {
animetionPlay();
var _local6 = [6];
tc.acssesTask(b_no, _local6);
_local6[0] = 2;
tc.acssesTask(yuka_no, _local6);
supermode = true;
nrcomb = 0;
}
} else if (_local2 <= 0) {
ms = -mekuri_now;
mekuri_now = 1;
var _local6 = [3];
if (!undeath) {
tc.acssesTask(b_no, _local6);
}
} else {
mekuri_now = _local2;
}
_local2 = mekuri_now - (mc.Mekuribar._width * 10);
mekuriud = _local2 / 6;
mekuridraw_f = true;
return(_local4);
}
function animetionStop() {
mc.Num1.stop();
mc.Num10.stop();
mc.Num100.stop();
mc.Num1000.stop();
mc.Num10000.stop();
mc.Num100000.stop();
mc.Num1000000.stop();
mc.BigNum.stop();
animetionStop2();
}
function animetionStop2() {
mc.Marker.stop();
mc.Marker.gotoAndStop(1);
mc.Mekuribar.stop();
mc.Mekuribar.gotoAndStop(1);
mc.Prate.stop();
mc.Prate.gotoAndStop(1);
}
function animetionPlay() {
mc.Marker.play();
mc.Mekuribar.play();
mc.Prate.play();
}
function drawStage(stg, tc) {
var _local2;
_local2 = 0;
while (_local2 != 10) {
minipantu[_local2]._visible = false;
_local2++;
}
mc.BigPantu._visible = false;
mc.BigNum._visible = false;
}
function clockRun(tc) {
var _local4;
clockF++;
if (!(clockF % 2)) {
clockS++;
if (!(clockS % 60)) {
clockM++;
if ((clockM - mBuffer) > game_time) {
clock_run = false;
var _local2 = [8];
tc.acssesTask(b_no, _local2);
st = 3;
}
if (!(clockM % 60)) {
clockH++;
if (!(clockH % 24)) {
clockH = 0;
}
}
}
}
mc.NeedleLow._rotation = ((((clockM % 60) / 60) * 360) + (((clockS % 60) / 60) * 6)) + 180;
mc.NeedleHight._rotation = ((((clockH % 12) / 12) * 360) + (((clockM % 60) / 60) * 30)) + 90;
}
function setTime(h, m) {
clockH = h;
clockM = (mBuffer = m);
clockS = 0;
clockF = 0;
}
function drawScore(sc) {
var _local5;
var _local3;
if (sc > 9999999) {
mc.Num1.gotoAndStop(10);
mc.Num10.gotoAndStop(10);
mc.Num100.gotoAndStop(10);
mc.Num1000.gotoAndStop(10);
mc.Num10000.gotoAndStop(10);
mc.Num100000.gotoAndStop(10);
mc.Num1000000.gotoAndStop(10);
} else {
var _local2 = 6;
while (_local2 > -1) {
((_local2 > 0) ? (_local3 = Math.pow(10, _local2)) : (_local3 = 1));
_local5 = Math.floor(sc / _local3);
scnum[_local2].gotoAndStop(_local5 + 1);
sc = sc - (_local5 * _local3);
_local2--;
}
}
}
static var mekuri_max = 3000;
}
Symbol 1307 MovieClip [__Packages.sorce.task.TryBanchou] Frame 0
class sorce.task.TryBanchou extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
static var speed_add, NormalSp, MaxSp;
var mymc, stageno, top, mid, nmc, smc, shadowMC, dmc, sta, counter, speed, legfp, armrfp, armlfp, Graphic_f, right_h, left_h, life_f, mekutta, move_pow, move_pow_sub, startdahu, nokezoriwait, yoyakuend, yoyakucounter, haikei_no, score_no, enemy_no, my_no, go_idou, gro_wait;
function TryBanchou (mmc, tmc, bmc, men, sw) {
super();
var _local8;
mymc = mmc;
stageno = men;
speed_add = 0.015;
NormalSp = 0.15;
MaxSp = 0.075;
top = tmc;
mid = bmc;
nmc = mmc.attachMovie("bancho", "bancho" + mmc.getNextHighestDepth(), 10);
smc = mmc.attachMovie("superbancho", "superbancho" + mmc.getNextHighestDepth(), 11);
shadowMC = sw.attachMovie("shadow1", "shadow1" + sw.getNextHighestDepth(), sw.getNextHighestDepth());
nmc.gotoAndStop("StartDemo");
smc.stop();
smc._visible = false;
smc.gotoAndStop("run");
dmc._x = (nmc._x = (smc._x = 142.5));
dmc._y = (nmc._y = (smc._y = 324.9));
sta = 0;
counter = 0;
speed = 0;
legfp = 1;
armrfp = 1;
armlfp = 1;
Graphic_f = 0;
right_h = 0;
left_h = 0;
life_f = true;
mekutta = false;
move_pow = 0;
move_pow_sub = 0;
startdahu = true;
nokezoriwait = 31;
yoyakuend = false;
yoyakucounter = 0;
}
function init(no, tc) {
haikei_no = tc.checkData("haikei", "no");
score_no = tc.checkData("score", "no");
enemy_no = tc.checkData("enemy", "no");
tc.regstData("banchou", "no", no);
var _local3 = [3, no];
tc.acssesTask(score_no, _local3);
tc.acssesTask(enemy_no, _local3);
my_no = no;
}
function run(tc) {
var _local5 = false;
var _local4;
var _local3;
var _local6;
if (Graphic_f == 0) {
_local3 = nmc;
} else {
_local3 = smc;
}
switch (sta) {
case 0 :
if (nmc.Demo._currentframe == 61) {
_local3.gotoAndStop("run");
nmc.ArmR.stop();
nmc.ArmL.stop();
nmc.Legs.stop();
smc.ArmR.stop();
smc.ArmL.stop();
smc.Legs.stop();
speed = 0.3;
sta = 1;
tc.acssesTask(tc.checkData("play", "no"), [101, 2, 100]);
}
break;
case 1 :
counter = counter + speed;
if (counter >= 1) {
_local5 = true;
counter = counter - 1;
speed = speed + speed_add;
if (speed >= NormalSp) {
speed = NormalSp;
sta = 2;
var _local7 = true;
_local4 = [0, _local7];
tc.acssesTask(score_no, _local4);
_local4[0] = 0;
_local4[1] = _local7;
tc.acssesTask(enemy_no, _local4);
}
_local4 = [0, speed * 32];
tc.acssesTask(haikei_no, _local4);
}
break;
case 2 :
counter = counter + speed;
if (counter >= 1) {
_local5 = true;
counter = counter - 1;
}
break;
case 3 :
counter = counter + speed;
if (counter >= 1) {
_local5 = true;
counter = counter - 1;
}
_local3._x = _local3._x - 8;
if (_local3._x < (-_local3._width)) {
_local4 = [8];
_local4 = tc.acssesTask(tc.checkData("play", "no"), _local4);
if (_local4[0]) {
tc.acssesTask(tc.checkData("play", "no"), [101, -1, 3]);
return(false);
}
tc.acssesTask(tc.checkData("play", "no"), [102, 0, 3]);
nmc.gotoAndStop("Gameover");
sta = 4;
go_idou = 32;
nmc._y = 324.9;
}
break;
case 4 :
_local4 = [2, 0];
_local4 = tc.acssesTask(enemy_no, _local4);
if (_local4[0] < 1) {
sta = 5;
}
break;
case 5 :
speed = speed - 0.05;
if (speed <= -0.6) {
speed = -0.6;
sta = 6;
}
_local4 = [0, speed * 32];
tc.acssesTask(haikei_no, _local4);
break;
case 6 :
_local3._x = _local3._x - ((speed * 32) * 1.25);
if ((_local3._x - (_local3._width / 2)) > 0) {
sta = 7;
}
break;
case 7 :
speed = speed + 0.03;
if (speed >= 0) {
speed = 0;
gro_wait = 0;
tc.setTask(new sorce.task.Text2(top, "gameTexts", 320, 200, 7, 2));
tc.setTask(new sorce.task.Overtext(top));
tc.acssesTask(tc.checkData("play", "no"), [100, 20]);
_local4 = [4];
tc.acssesTask(score_no, _local4);
sta = 8;
}
_local4 = [0, speed * 32];
tc.acssesTask(haikei_no, _local4);
_local3._x = _local3._x - (_local4[1] * 1.25);
break;
case 8 :
gro_wait++;
if (gro_wait > 60) {
_local4 = [3];
tc.acssesTask(tc.checkData("play", "no"), _local4);
sta = 9;
}
break;
case 9 :
break;
case 10 :
counter = counter + speed;
if (counter >= 1) {
_local5 = true;
counter = counter - 1;
}
_local3._x = _local3._x + 16;
if (_local3._x > 720) {
_local4 = [2, 0];
_local4 = tc.acssesTask(enemy_no, _local4);
if (_local4[0] < 1) {
_local4 = [0, 1];
tc.acssesTask(tc.checkData("play", "no"), _local4);
_local6 = tc.checkData("super", "no");
if (_local6 != null) {
_local4[0] = 0;
tc.acssesTask(_local6, _local4);
}
return(false);
}
}
break;
case 11 :
nokezoriwait++;
if (nokezoriwait > 30) {
tc.acssesTask(tc.checkData("play", "no"), [14, 0]);
_local3.gotoAndStop("run");
nmc.ArmR.stop();
nmc.ArmL.stop();
nmc.Legs.stop();
smc.ArmR.stop();
smc.ArmL.stop();
smc.Legs.stop();
sta = 2;
}
counter = counter + speed;
if (counter >= 1) {
_local5 = true;
counter = counter - 1;
}
break;
case 12 :
yoyakucounter++;
if (yoyakucounter == 30) {
if (((stageno + 1) % 7) != 6) {
tc.setTask(new sorce.task.Text2(mymc, "gameTexts", 320, 115, 6, 2));
} else {
tc.setTask(new sorce.task.Text2(mymc, "gameTexts", 320, 115, 8, 2));
}
sta = 10;
tc.acssesTask(tc.checkData("play", "no"), [100, 5]);
}
counter = counter + speed;
if (counter >= 1) {
_local5 = true;
counter = counter - 1;
}
break;
case 10000 :
break;
default :
trace("banchou st = " + sta);
}
if ((sta > 3) && (sta < 10)) {
shadowMC._x = _local3._x - 86.5;
shadowMC._y = _local3._y - 77;
} else {
shadowMC._x = _local3._x - 74.5;
shadowMC._y = _local3._y - 27;
}
if (_local5) {
legfp++;
if (legfp == 6) {
legfp = 1;
}
_local3.Legs.gotoAndStop(legfp);
}
if (life_f) {
var _local8 = false;
if (left_h > 0) {
if (left_h == 7) {
_local3.ArmL.gotoAndStop(1);
left_h = 0;
} else {
_local3.ArmL.gotoAndStop(left_h);
left_h++;
}
}
if (right_h > 0) {
if (right_h == 7) {
_local3.ArmR.gotoAndStop(1);
right_h = 0;
} else {
_local3.ArmR.gotoAndStop(right_h);
right_h++;
}
}
}
return(true);
}
function onMouseDown() {
if (_root._ymouse < 220) {
if (left_h == 0) {
left_h = 2;
}
} else if (right_h == 0) {
right_h = 2;
}
}
function finalize(tc) {
nmc.removeMovieClip();
smc.removeMovieClip();
shadowMC.removeMovieClip();
shadowMC = null;
nmc = null;
smc = null;
mid = null;
mymc = null;
tc.elaseData("banchou");
}
function talkTask(mess, tc) {
var _local4;
var _local6;
switch (mess[0]) {
case 10 :
if (sta == 2) {
if (left_h == 0) {
left_h = 2;
}
nmc._x = mess[1] - 80;
smc._x = mess[1] - 80;
nmc._y = mess[2] + 20;
smc._y = mess[2] + 20;
tc.acssesTask(tc.checkData("play", "no"), [100, Math.floor(Math.random() * 5)]);
mess[0] = 1;
} else {
mess[0] = 0;
}
break;
case 11 :
if (sta == 2) {
if (right_h == 0) {
right_h = 2;
}
nmc._x = mess[1] - 80;
smc._x = mess[1] - 80;
nmc._y = mess[2] - 20;
smc._y = mess[2] - 20;
tc.acssesTask(tc.checkData("play", "no"), [100, Math.floor(Math.random() * 5)]);
mess[0] = 1;
} else {
mess[0] = 0;
}
break;
case 0 :
mess[0] = speed * 32;
break;
case 1 :
mess[0] = left_h;
mess[1] = top;
break;
case 2 :
mess[0] = right_h;
mess[1] = top;
break;
case 3 :
sta = 3;
life_f = false;
nmc.gotoAndStop("Out");
var _local5 = false;
_local4 = [0, _local5];
tc.acssesTask(enemy_no, _local4);
tc.acssesTask(tc.checkData("play", "no"), [13]);
case 4 :
mess[0] = life_f;
break;
case 5 :
mekutta = true;
break;
case 6 :
tc.setTask(new sorce.task.TrySpeedUD(my_no, speed, 0));
tc.setTask(new sorce.task.BanchouFlash1(mymc, smc._x, smc._y, my_no));
tc.acssesTask(tc.checkData("play", "no"), [100, 17]);
tc.acssesTask(tc.checkData("play", "no"), [100, 15]);
tc.acssesTask(tc.checkData("play", "no"), [101, 3, 30]);
_local4 = [4, 0.5];
tc.acssesTask(enemy_no, _local4);
nmc._visible = false;
smc._visible = true;
smc.gotoAndStop("run");
smc.ArmR.gotoAndStop(nmc.ArmR._currentframe);
smc.ArmL.gotoAndStop(nmc.ArmL._currentframe);
smc.Legs.gotoAndStop(nmc.Legs._currentframe);
smc.Legs.gotoAndStop(legfp);
Graphic_f = 1;
break;
case 7 :
tc.acssesTask(tc.checkData("play", "no"), [100, 18]);
tc.acssesTask(tc.checkData("play", "no"), [101, 2, 30]);
tc.setTask(new sorce.task.TrySpeedUD(my_no, speed, 1));
_local4 = [4, 1];
tc.acssesTask(enemy_no, _local4);
nmc._visible = true;
smc._visible = false;
nmc.gotoAndStop(smc._currentframe);
nmc.ArmR.gotoAndStop(smc.ArmR._currentframe);
nmc.ArmL.gotoAndStop(smc.ArmL._currentframe);
nmc.Legs.gotoAndStop(smc.Legs._currentframe);
Graphic_f = 0;
if (yoyakuend) {
life_f = false;
yoyakucounter = 0;
sta = 12;
_local5 = false;
_local4 = [0, _local5];
tc.acssesTask(enemy_no, _local4);
}
break;
case 8 :
if (life_f) {
if (Graphic_f == 1) {
yoyakuend = true;
} else {
if (((stageno + 1) % 7) != 6) {
tc.setTask(new sorce.task.Text2(mymc, "gameTexts", 320, 115, 6, 2));
} else {
tc.setTask(new sorce.task.Text2(mymc, "gameTexts", 320, 115, 8, 2));
}
life_f = false;
sta = 10;
_local5 = false;
_local4 = [0, _local5];
tc.acssesTask(enemy_no, _local4);
tc.acssesTask(tc.checkData("play", "no"), [100, 5]);
}
}
break;
case 9 :
speed = mess[1];
_local6 = [0, speed * 32];
tc.acssesTask(haikei_no, _local6);
break;
case 12 :
tc.acssesTask(tc.checkData("play", "no"), [103]);
tc.acssesTask(tc.checkData("play", "no"), [100, Math.floor(Math.random() * 3) + 7]);
if (life_f) {
nokezoriwait = 0;
tc.acssesTask(tc.checkData("play", "no"), [14, 1]);
nmc.ArmR.gotoAndStop(1);
smc.ArmR.gotoAndStop(1);
left_h = 0;
right_h = 0;
nmc.gotoAndStop("Damage");
smc.gotoAndStop("Damage");
nmc.Legs.stop();
smc.Legs.stop();
nmc.Legs.gotoAndStop(legfp);
smc.Legs.gotoAndStop(legfp);
sta = 11;
startdahu = true;
}
break;
case 13 :
mess[0] = smc._x;
mess[1] = smc._y;
break;
case 14 :
mess[0] = sta;
}
return(mess);
}
var FPS = 60;
}
Symbol 1308 MovieClip [__Packages.sorce.task.TrySpeedUD] Frame 0
class sorce.task.TrySpeedUD extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var speed, b_no, type;
function TrySpeedUD (no, sp, ty) {
super();
speed = sp;
b_no = no;
type = ty;
}
function init(no, tc) {
}
function run(tc) {
var _local3;
var _local2 = true;
if (type == 0) {
speed = speed - sorce.task.TryBanchou.speed_add;
if (speed <= sorce.task.TryBanchou.MaxSp) {
speed = sorce.task.TryBanchou.MaxSp;
_local2 = false;
}
} else {
speed = speed + sorce.task.TryBanchou.speed_add;
if (speed >= sorce.task.TryBanchou.NormalSp) {
speed = sorce.task.TryBanchou.NormalSp;
_local2 = false;
}
}
_local3 = [9, speed];
tc.acssesTask(b_no, _local3);
return(_local2);
}
function finalize(tc) {
}
function talkTask(mess, tc) {
return(mess);
}
}
Symbol 1309 MovieClip [__Packages.sorce.task.TryClearpantu] Frame 0
class sorce.task.TryClearpantu extends sorce.task.OYA implements nigoro.lib.duplex.Task.Task2
{
var mc, life, p_count, st, wait, miss, paar, lvar, combf, comb_no, my_no, up, yuu, ryou, ka, putline, last, mouse_f;
function TryClearpantu (mmc, m) {
super();
mc = mmc;
Mouse.addListener(this);
life = 0;
p_count = 0;
st = 6;
wait = 0;
miss = m;
}
function init(no, tc) {
tc.regstData("clearpantu", "no", no);
paar = tc.getData("pantu", "iro");
lvar = tc.getData("pantu", "level");
combf = tc.getData("pantu", "combf");
comb_no = tc.checkData("combo", "no");
if (comb_no != null) {
var _local4 = [1];
tc.acssesTask(comb_no, _local4);
}
my_no = no;
up = [186.1, 206.6, 227, 247.4, 268];
yuu = 0;
ryou = 0;
ka = 0;
var _local2 = 0;
while (_local2 < lvar.length) {
switch (lvar[_local2]) {
case 0 :
ka++;
break;
case 1 :
ryou++;
break;
case 2 :
yuu++;
}
_local2++;
}
putline = 50;
last = 0;
mouse_f = false;
}
function run(tc) {
switch (st) {
case 6 :
wait++;
if (wait > 30) {
st = 5;
}
break;
case 0 :
if (mouse_f) {
tc.setTask(new sorce.task.Yrkf(mc, 1, 121.3, 292.4, yuu, 171.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 2, 219.9, 292.4, ryou, 266.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 3, 321.9, 292.4, ka, 365.3, 301.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 4, 418.4, 292.4, miss, 469.3, 301.4, my_no));
st = 5;
p_count = 15;
break;
}
life = 0;
if (p_count < paar.length) {
tc.setTask(new sorce.task.Drawpantu(mc, 136.1 + ((p_count % 10) * 37.75), 186.1 + (Math.floor(p_count / 10) * 20.5), my_no, paar[p_count], lvar[p_count], combf[p_count], 0));
p_count++;
if (p_count == putline) {
if (p_count < paar.length) {
putline = 60;
life = 2;
st = 3;
}
}
} else {
st = 4;
break;
}
break;
case 1 :
if (life == 3) {
life = 1;
st = 2;
}
break;
case 2 :
return(false);
case 3 :
if (mouse_f) {
tc.setTask(new sorce.task.Yrkf(mc, 1, 121.3, 292.4, yuu, 171.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 2, 219.9, 292.4, ryou, 266.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 3, 321.9, 292.4, ka, 365.3, 301.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 4, 418.4, 292.4, miss, 469.3, 301.4, my_no));
st = 5;
p_count = 15;
} else {
life = 0;
if (p_count < paar.length) {
tc.setTask(new sorce.task.Drawpantu(mc, 136.1 + ((p_count % 10) * 37.75), 268.1, my_no, paar[p_count], lvar[p_count], combf[p_count], 0));
p_count++;
if (p_count == putline) {
if (p_count < paar.length) {
putline = putline + 10;
life = 2;
}
}
} else {
st = 4;
break;
}
break;
tc.setTask(new sorce.task.Yrkf(mc, 1, 121.3, 292.4, yuu, 171.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 2, 219.9, 292.4, ryou, 266.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 3, 321.9, 292.4, ka, 365.3, 301.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 4, 418.4, 292.4, miss, 469.3, 301.4, my_no));
life = 0;
p_count = 0;
st = 5;
break;
p_count++;
if (p_count > 15) {
tc.setTask(new sorce.task.NextStage(mc, 244, 339.5));
var _local5 = [12];
tc.acssesTask(tc.checkData("play", "no"), _local5);
st = 1;
}
break;
var _local2;
var _local3;
if (paar.length > 50) {
_local2 = 60;
while (paar.length > _local2) {
_local2 = _local2 + 10;
}
_local2 = _local2 - 50;
} else {
_local2 = 0;
}
_local3 = 0;
while (_local3 < paar.length) {
tc.setTask(new sorce.task.Drawpantu(mc, 136.1 + ((_local3 % 10) * 37.75), 186.1 + (Math.floor(_local3 / 10) * 20.5), my_no, paar[_local2], lvar[_local2], combf[_local2], 2));
_local2++;
_local3++;
}
life = 1;
st = 4;
}
case 4 :
tc.setTask(new sorce.task.Yrkf(mc, 1, 121.3, 292.4, yuu, 171.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 2, 219.9, 292.4, ryou, 266.7, 300.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 3, 321.9, 292.4, ka, 365.3, 301.4, my_no));
tc.setTask(new sorce.task.Yrkf(mc, 4, 418.4, 292.4, miss, 469.3, 301.4, my_no));
life = 0;
p_count = 0;
st = 5;
break;
case 5 :
p_count++;
if (p_count > 15) {
tc.setTask(new sorce.task.NextStage(mc, 244, 339.5));
var _local5 = [12];
tc.acssesTask(tc.checkData("play", "no"), _local5);
st = 1;
}
break;
case 7 :
var _local2;
var _local3;
if (paar.length > 50) {
_local2 = 60;
while (paar.length > _local2) {
_local2 = _local2 + 10;
}
_local2 = _local2 - 50;
} else {
_local2 = 0;
}
_local3 = 0;
while (_local3 < paar.length) {
tc.setTask(new sorce.task.Drawpantu(mc, 136.1 + ((_local3 % 10) * 37.75), 186.1 + (Math.floor(_local3 / 10) * 20.5), my_no, paar[_local2], lvar[_local2], combf[_local2], 2));
_local2++;
_local3++;
}
life = 1;
st = 4;
}
mouse_f = false;
return(true);
}
function onMouseDown() {
if (_root._ymouse < 400) {
mouse_f = true;
}
}
function finalize(tc) {
tc.elaseData("pantu");
tc.elaseData("clearpantu");
Mouse.removeListener(this);
}
function talkTask(mess, tc) {
switch (mess[0]) {
case 0 :
mess[0] = life;
break;
case 1 :
life = 3;
break;
case 2 :
last++;
}
return(mess);
}
}
Symbol 634 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 635 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 636 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.2.126";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 655 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 656 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 657 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 658 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 659 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 660 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.126";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 661 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 662 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 663 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 664 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 665 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.126";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 666 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 667 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 668 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.126";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 669 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 670 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.126";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 671 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 672 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 673 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 674 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}