Frame 1
function volLabel() {
return(("[[ \u73FE\u5728\u97F3\u91CF(Current Volume)\uFF1A " + soundVolume) + "% ]]");
}
function upVolume() {
flashSound.setVolume((soundVolume = soundVolume + 20));
testSound.start(0, 2);
downSong_cmi.enabled = true;
volMoni_cmi.caption = volLabel();
if (soundVolume >= 100) {
upSong_cmi.enabled = false;
}
}
function downVolume() {
flashSound.setVolume((soundVolume = soundVolume - 20));
testSound.start(0, 2);
upSong_cmi.enabled = true;
volMoni_cmi.caption = volLabel();
if (soundVolume <= 0) {
downSong_cmi.enabled = false;
}
}
function volumeTest() {
testSound.start(0, 2);
}
function resetKeyConfig() {
_root.cookie.data.keyConfig = [38, 40, 37, 39, 90, 88, 16, 17, 27];
_root.cookie.flush();
}
function newWindow() {
getURL (_root._url, "_top");
}
function toHome() {
getURL ("http://yuki.kitune.info/", "_blank");
}
var soundVolume = 60;
var flashSound = new Sound();
flashSound.attachSound(this);
flashSound.setVolume(soundVolume);
var testSound = new Sound();
testSound.attachSound("bell");
var menu_cm = new ContextMenu();
menu_cm.hideBuiltInItems();
menu_cm.builtInItems.quality = true;
menu_cm.builtInItems.zoom = true;
var volMoni_cmi = new ContextMenuItem(volLabel(), volumeTest, true, true, true);
var upSong_cmi = new ContextMenuItem("\u97F3\u91CF +20% (Volume +20%)", upVolume, false, true, true);
var downSong_cmi = new ContextMenuItem("\u97F3\u91CF -20% (Volume -20%)", downVolume, false, true, true);
menu_cm.customItems.push(volMoni_cmi);
menu_cm.customItems.push(upSong_cmi);
menu_cm.customItems.push(downSong_cmi);
var resetKeyConfig_cmi = new ContextMenuItem("\u30AD\u30FC\u30B3\u30F3\u30D5\u30A3\u30B0\u521D\u671F\u5316 (Reset Key Config)", resetKeyConfig, true, true, true);
menu_cm.customItems.push(resetKeyConfig_cmi);
var maximize_cmi = new ContextMenuItem("\u6700\u5927\u5316\uFF06\u6700\u521D\u304B\u3089 (Maximize && Reload)", newWindow, true, true, true);
menu_cm.customItems.push(maximize_cmi);
menu_cm.customItems.push(new ContextMenuItem("\u3086\u304D\u304D\u3064\u306D (to Home)", toHome, true, true, true));
_root.menu = menu_cm;
stop();
Frame 2
System.IME.setEnabled(false);
var debugHit = 70;
var cookie = SharedObject.getLocal("th01clone");
if (cookie.data.score == undefined) {
cookie.data.hiScore = 10000;
cookie.data.stage = 1;
cookie.data.rank = 1;
cookie.data.players = 3;
cookie.data.keyConfig = [38, 40, 37, 39, 90, 88, 16, 17, 27];
cookie.data.voice = true;
cookie.data.bgm = true;
cookie.data.spellCards = "0,0";
cookie.flush();
}
stop();
Symbol 3 MovieClip Frame 1
function runDos1() {
switch (dosNum) {
case 0 :
this.text = "A>shinki -v\n";
break;
case 3 :
this.text = this.text + (("\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306F " + System.capabilities.version) + " \u307F\u305F\u3044\u3060\u306A\u3002\n");
version = getVersion().split(" ");
versions = version[1].split(",");
if (versions[0] < 8) {
this.text = this.text + "\u3061\u3087\u3063\u3068\u53E4\u3044\u307F\u305F\u3044\u3060\u305C\u3002\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3057\u305F\u65B9\u304C\u3044\u3044\u304B\u3082\u306A\u3002";
} else {
this.text = this.text + "\u3058\u3083\u3042\u3044\u304F\u305C\u2606";
}
this.text = this.text + "\n\n";
break;
case 7 :
this.text = this.text + "A>shinki th01clone -f\n";
break;
case 10 :
this.text = this.text + "\u300C\u6771\u65B9\uFA19\u7570\u4F1D\u300D(Touhou KamuyDen)\u3000by Rera Kamuy\n\u3061\u3087\u3063\u3068\u304A\u3058\u3083\u307E\u3059\u308B\u305C\u3002\n\n";
break;
case 14 :
fileName = _root._url.split("/").pop();
this.text = this.text + (("A>shinki " + fileName) + " -l\n");
break;
case 17 :
this.text = this.text + (("total size: " + Math.round(_root.getBytesTotal() / 1024)) + "KB\n");
break;
case 19 :
this.text = this.text + "\u5C11\u5973\u53D7\u4FE1\u4E2D ";
clearInterval(dosInterval);
dosInterval = setInterval(this, "runDos2", 40);
}
dosNum++;
}
function runDos2() {
if (loaded <= (_root.getBytesLoaded() / _root.getBytesTotal())) {
loaded = loaded + 0.1;
this.text = this.text + ".";
} else if (loaded > 1) {
clearInterval(dosInterval);
dosInterval = setInterval(this, "runDos3", 120);
}
}
function runDos3() {
switch (dosNum) {
case 22 :
this.text = this.text + " complete!\n\n";
break;
case 28 :
this.text = this.text + "A>th01clone";
break;
case 36 :
clearInterval(dosInterval);
Key.removeListener(keyListener);
_root.gotoAndPlay(_root._currentframe + 1);
}
dosNum++;
}
var dosNum = 0;
var loaded = 0;
var keyListener = new Object();
Key.addListener(keyListener);
keyListener.onKeyDown = function () {
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
clearInterval(dosInterval);
Key.removeListener(keyListener);
_root.gotoAndPlay(_root._currentframe + 1);
}
};
stop();
dosInterval = setInterval(this, "runDos1", 120);
Symbol 5 MovieClip Frame 1
stop();
Symbol 5 MovieClip Frame 2
play();
Symbol 5 MovieClip Frame 254
stop();
Symbol 7 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 1
function startBgm(num) {
bgm.stop();
if (_root.cookie.data.bgm && (_currentframe != (num + 2))) {
gotoAndPlay("bgm" + num);
}
}
function stopBgm() {
bgm.stop();
if (_currentframe != 2) {
gotoAndPlay ("stop");
}
}
var bgm = new Sound();
bgm.attachSound(this);
Symbol 12 MovieClip Frame 2
stop();
Symbol 12 MovieClip Frame 3
stop();
Instance of Symbol 5 MovieClip in Symbol 12 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (2);
}
Symbol 12 MovieClip Frame 4
stop();
Instance of Symbol 7 MovieClip in Symbol 12 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay (2);
}
Symbol 12 MovieClip Frame 5
stop();
Instance of Symbol 9 MovieClip in Symbol 12 MovieClip Frame 5
onClipEvent (load) {
gotoAndPlay (2);
}
Symbol 12 MovieClip Frame 6
stop();
Symbol 12 MovieClip Frame 7
stop();
Symbol 12 MovieClip Frame 8
stop();
Symbol 12 MovieClip Frame 9
stop();
Symbol 12 MovieClip Frame 10
stop();
Symbol 12 MovieClip Frame 11
stop();
Symbol 12 MovieClip Frame 12
stop();
Instance of Symbol 11 MovieClip in Symbol 12 MovieClip Frame 12
onClipEvent (load) {
gotoAndPlay (2);
}
Symbol 12 MovieClip Frame 13
stop();
Symbol 12 MovieClip Frame 14
stop();
Symbol 12 MovieClip Frame 15
stop();
Symbol 12 MovieClip Frame 16
stop();
Symbol 25 MovieClip Frame 1
function setText(str) {
text = str;
}
function choice(bool) {
if (bool) {
cursor._alpha = 100;
} else {
cursor._alpha = 0;
}
}
setText("");
choice(false);
stop();
Symbol 32 MovieClip Frame 1
function pressLeft() {
}
function pressRight() {
}
function pressZ() {
}
function pressX() {
}
function moveCursor(num) {
if (num == 0) {
choice = 1;
} else {
choice = choice + num;
if (choice < 1) {
choice = 4;
} else if (choice > 4) {
choice = 1;
}
}
moveCursorObject(choice);
}
function moveCursorObject(num) {
menu1.choice(false);
menu2.choice(false);
menu3.choice(false);
menu4.choice(false);
this["menu" + num].choice(true);
}
function changeConfig(data, change, min, max) {
if ((change == -1) && (data == min)) {
return(max);
}
if ((change == 1) && (data == max)) {
return(min);
}
return(data + change);
}
var choice = 1;
var stageSelected = 0;
Symbol 32 MovieClip Frame 2
function key(code) {
switch (code) {
case _root.cookie.data.keyConfig[0] :
moveCursor(-1);
break;
case _root.cookie.data.keyConfig[1] :
moveCursor(1);
break;
case _root.cookie.data.keyConfig[2] :
pressLeft();
break;
case _root.cookie.data.keyConfig[3] :
pressRight();
break;
case _root.cookie.data.keyConfig[4] :
pressZ();
break;
case _root.cookie.data.keyConfig[5] :
pressX();
}
}
Symbol 32 MovieClip Frame 3
function pressLeft() {
if (!(choice === 2)) {
} else {
selectStage((stageSelected = changeConfig(stageSelected, -1, 0, stageMax)));
}
}
function pressRight() {
if (!(choice === 2)) {
} else {
selectStage((stageSelected = changeConfig(stageSelected, 1, 0, stageMax)));
}
}
function pressZ() {
switch (choice) {
case 1 :
_parent._parent.bgm.stopBgm();
_parent.endMenu();
_root.main.startGame(1);
break;
case 2 :
_parent._parent.bgm.stopBgm();
_parent.endMenu();
if (stageSelected == 0) {
_root.main.startGame(1);
} else if (stageSelected == 1) {
_root.main.startGame(6);
} else if (stageSelected == 2) {
_root.main.startGame(11);
} else if (stageSelected == 3) {
_root.main.startGame(17);
} else if (stageSelected == 4) {
_root.main.startGame(24);
}
break;
case 3 :
gotoAndPlay ("config");
break;
case 4 :
gotoAndPlay ("sound");
}
}
function pressX() {
}
function selectStage(num) {
menu2.setText("CONTINUE " + stageList[num]);
}
var stageList = [" [JIGOKU]", "[MUGENKAN]", " [FOREST]", " [SHRINE]", "[MAKAI/EX]"];
var stageMax;
if (_root.cookie.data.stage > 23) {
stageMax = 4;
} else if (_root.cookie.data.stage > 16) {
stageMax = 3;
} else if (_root.cookie.data.stage > 10) {
stageMax = 2;
} else if (_root.cookie.data.stage > 5) {
stageMax = 1;
} else {
stageMax = 0;
}
menu1.setText("NEW GAME");
selectStage(stageSelected);
menu3.setText("CONFIG");
menu4.setText("SOUND");
moveCursor(0);
_root.cookie.flush();
stop();
Symbol 32 MovieClip Frame 4
function pressLeft() {
switch (choice) {
case 1 :
selectRank((_root.cookie.data.rank = changeConfig(_root.cookie.data.rank, -1, 0, 3)));
break;
case 2 :
selectPlayers((_root.cookie.data.players = changeConfig(_root.cookie.data.players, -1, 1, 7)));
}
}
function pressRight() {
switch (choice) {
case 1 :
selectRank((_root.cookie.data.rank = changeConfig(_root.cookie.data.rank, 1, 0, 3)));
break;
case 2 :
selectPlayers((_root.cookie.data.players = changeConfig(_root.cookie.data.players, 1, 1, 7)));
}
}
function pressZ() {
switch (choice) {
case 3 :
gotoAndPlay ("key");
return;
case 4 :
gotoAndPlay ("top");
}
}
function pressX() {
gotoAndPlay ("top");
}
function selectRank(num) {
switch (num) {
case 0 :
menu1.setText("PLAY RANK [easy]");
break;
case 1 :
menu1.setText("PLAY RANK [normal]");
break;
case 2 :
menu1.setText("PLAY RANK [hard]");
break;
case 3 :
menu1.setText("PLAY RANK [lunatic]");
}
}
function selectPlayers(num) {
menu2.setText(("PLAYERS [" + num) + "]");
}
selectRank(_root.cookie.data.rank);
selectPlayers(_root.cookie.data.players);
menu3.setText("KEY CONFIG");
menu4.setText("BACK");
moveCursor(0);
stop();
Symbol 32 MovieClip Frame 5
function pressLeft() {
switch (choice) {
case 1 :
selectVoice((_root.cookie.data.voice = !_root.cookie.data.voice));
break;
case 2 :
selectBgm((_root.cookie.data.bgm = !_root.cookie.data.bgm));
}
}
function pressRight() {
switch (choice) {
case 1 :
selectVoice((_root.cookie.data.voice = !_root.cookie.data.voice));
break;
case 2 :
selectBgm((_root.cookie.data.bgm = !_root.cookie.data.bgm));
}
}
function pressZ() {
switch (choice) {
case 3 :
return;
case 4 :
gotoAndPlay ("top");
}
}
function pressX() {
gotoAndPlay ("top");
}
function selectVoice(bool) {
if (bool) {
menu1.setText("VOICE [on]");
} else {
menu1.setText("VOICE [off]");
}
}
function selectBgm(bool) {
if (bool) {
menu2.setText("BGM [on]");
} else {
menu2.setText("BGM [off]");
}
}
selectVoice(_root.cookie.data.voice);
selectBgm(_root.cookie.data.bgm);
menu3.setText("SOUND TEST");
menu4.setText("BACK");
moveCursor(0);
stop();
Symbol 32 MovieClip Frame 6
function key(code) {
keytext = keytext + (keyCodes[code] + newline);
newKey.push(code);
trace(newKey[newKey.length - 1]);
if ((++count) >= 9) {
_root.cookie.data.keyConfig = newKey;
gotoAndPlay ("init2");
}
}
var newKey = [];
var count = 0;
keytext = "";
var keyCodes = ["", "", "", "", "", "", "", "", "BackSpace", "Tab", "", "", "Clear", "Enter", "", "", "Shift", "Ctrl", "Alt", "Pause", "CapsLock", "", "", "", "", "", "", "Esc", "", "", "", "", "Space", "PageUp", "PageDown", "End", "Home", "Left", "Up", "Right", "Down", "", "", "", "", "Insert", "Delete", "Help", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "", "", "", "", "", "", "", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "", "", "", "", "", "Tenkey 0", "Tenkey 1", "Tenkey 2", "Tenkey 3", "Tenkey 4", "Tenkey 5", "Tenkey 6", "Tenkey '", "Tenkey 8", "Tenkey 9", "*", "+", "Tenkey Enter", "-", ".", "/", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ":", ";", "\\", "-", ".", "/", "@", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "[", "\\", "]", "^", "", "", "", "\\", "", "", "Japanese"];
stop();
Symbol 32 MovieClip Frame 7
function pressLeft() {
}
function pressRight() {
}
function pressZ() {
}
function pressX() {
}
stop();
Symbol 33 MovieClip Frame 1
var listener = new Object();
Key.addListener(listener);
listener.onKeyDown = function () {
gotoAndStop(_currentframe + 1);
Key.removeListener(listener);
};
_parent.bgm.startBgm(1);
stop();
Symbol 33 MovieClip Frame 2
function endMenu() {
Key.removeListener(keyListener);
}
var keyListener = new Object();
Key.addListener(keyListener);
keyListener.onKeyDown = function () {
menu.key(Key.getCode());
};
stop();
Symbol 36 MovieClip Frame 55
_parent.endEffect();
Symbol 47 MovieClip Frame 16
_parent.gotoAndPlay("stage" + _parent.stage);
stop();
Symbol 50 MovieClip Frame 1
function setTitle(str) {
title = str;
}
stop();
Symbol 57 MovieClip Frame 1
function setHistory(spellNo) {
var _local2 = _root.cookie.data.spellCards.split(",");
if ((total == undefined) || (total == 0)) {
got = (_local2[spellNo * 2] = 0);
total = (_local2[(spellNo * 2) + 1] = 1);
} else {
total = (_local2[(spellNo * 2) + 1] = _local2[(spellNo * 2) + 1] + 1);
}
setArray(_local2);
}
function getCard(spellNo) {
var _local2 = _root.cookie.data.spellCards.split(",");
_local2[spellNo * 2] = Number(_local2[spellNo * 2]) + 1;
setArray(_local2);
}
function setArray(arr) {
var _local4 = "0,0";
var _local2 = 1;
while (_local2 < (arr.length / 2)) {
_local4 = _local4 + ((("," + arr[_local2 * 2]) + ",") + arr[(_local2 * 2) + 1]);
_local2++;
}
_root.cookie.data.spellCards = _local4;
_root.cookie.data.flush();
}
Symbol 64 MovieClip Frame 1
function setBoss(char) {
gotoAndPlay(char);
}
Symbol 64 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 3
stop();
Symbol 64 MovieClip Frame 4
stop();
Symbol 64 MovieClip Frame 5
stop();
Symbol 64 MovieClip Frame 6
stop();
Symbol 64 MovieClip Frame 7
stop();
Symbol 65 MovieClip Frame 61
_parent.initSpellCard();
stop();
Symbol 75 MovieClip Frame 55
_parent.endEffect();
stop();
Symbol 78 MovieClip Frame 55
_parent.endEffect();
stop();
Symbol 79 MovieClip Frame 1
function startEffect(num, titleCall) {
stage = num;
if (titleCall) {
gotoAndPlay ("title");
} else {
gotoAndPlay("stage" + stage);
}
}
function startSpellCard(char, name, spellNo, obj) {
gotoAndPlay ("spellCard");
_parent.dataBase.spellCarding = true;
spellData = [char, name, spellNo, obj];
}
function whiteOutIn() {
gotoAndPlay ("white");
}
function endEffect() {
gotoAndPlay ("init");
_parent.dataBase.spellCarding = false;
}
mx.transitions.OnEnterFrameBeacon.init();
var stage;
var spellData;
stop();
Symbol 79 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 3
stop();
Symbol 79 MovieClip Frame 4
stop();
Symbol 79 MovieClip Frame 6
function initSpellCard() {
_parent.bulletBase.initBullet();
MovieClip.addListener(spellData[3]);
}
function getCard() {
spell.history.getCard(spellData[2]);
}
spell.boss.setBoss(spellData[0]);
spell.title.setTitle(spellData[1]);
spell.history.setHistory(spellData[2]);
_parent.player.setMuteki(spell._totalframes + 10, false);
_parent.stage.boss.setMuteki(spell._totalframes + 30, false);
_parent.dataBase.spellCardBonus = true;
stop();
Symbol 79 MovieClip Frame 7
stop();
Symbol 79 MovieClip Frame 8
stop();
Symbol 82 MovieClip Frame 1
function setBombs(num) {
gotoAndPlay("bomb" + num);
}
stop();
Symbol 82 MovieClip Frame 2
stop();
Symbol 82 MovieClip Frame 3
stop();
Symbol 82 MovieClip Frame 4
stop();
Symbol 82 MovieClip Frame 5
stop();
Symbol 82 MovieClip Frame 6
stop();
Symbol 82 MovieClip Frame 7
stop();
Symbol 82 MovieClip Frame 8
stop();
Symbol 85 MovieClip Frame 1
function setPlayers(num) {
gotoAndPlay("player" + num);
}
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 3
stop();
Symbol 85 MovieClip Frame 4
stop();
Symbol 85 MovieClip Frame 5
stop();
Symbol 85 MovieClip Frame 6
stop();
Symbol 85 MovieClip Frame 7
stop();
Symbol 85 MovieClip Frame 8
stop();
Symbol 100 MovieClip Frame 1
function setBossLifeBlock(num) {
gotoAndPlay("life" + num);
}
function setBossLifeCount(num) {
if (num == 0) {
bossLifeNum = "";
} else {
bossLifeNum = num;
}
}
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 3
stop();
Symbol 100 MovieClip Frame 4
stop();
Symbol 100 MovieClip Frame 5
stop();
Symbol 100 MovieClip Frame 6
stop();
Symbol 100 MovieClip Frame 7
stop();
Symbol 100 MovieClip Frame 8
stop();
Symbol 100 MovieClip Frame 9
stop();
Symbol 100 MovieClip Frame 10
stop();
Symbol 100 MovieClip Frame 11
stop();
Symbol 100 MovieClip Frame 12
stop();
Symbol 107 MovieClip Frame 1
function dead() {
spellCardBonus = false;
removePlayer();
limitBonus();
}
function initPlayer() {
players = _root.cookie.data.players;
playerNum.setPlayers(players - 1);
}
function addPlayer() {
if (players < 7) {
playerNum.setPlayers((++players) - 1);
}
}
function removePlayer() {
if (players > 1) {
playerNum.setPlayers((--players) - 1);
addBomb();
} else {
trace("game over");
}
}
function initBomb() {
bombNum.setBombs((bomb = 2));
}
function addBomb() {
if (bomb < 6) {
bombNum.setBombs(++bomb);
}
}
function removeBomb() {
if (bomb > 0) {
bombNum.setBombs(--bomb);
}
}
function initBossLife(count, block) {
bossLifeCount = count;
bossLife.setBossLifeCount(count);
bossLifeBlock = block;
bossLife.setBossLifeBlock(block);
}
function damageBoss() {
bossLife.setBossLifeBlock(--bossLifeBlock);
if (bossLifeBlock <= 0) {
return([true, spellCardBonus]);
}
return([false, false]);
}
function initScore() {
score = 0;
hiScore = _root.cookie.data.hiScore;
}
function getScore(num) {
score = score + num;
if (score > hiScore) {
hiScore = score;
}
}
function initGraze() {
graze = 0;
}
function getGraze() {
graze++;
}
function initSplice() {
splice = 0;
point = 100 * _parent.stage.stageArea;
}
function getSplice() {
point = point + Math.max(((splice++) * 40) - 20, 0);
getScore(point);
return(point);
}
function initLimit(num) {
timeLimit = (timeLimitTemp = num);
}
function limitBonus() {
if (timeLimit == 0) {
timeLimit = timeLimitTemp;
_parent.stage.timeOver();
} else {
timeLimit = timeLimit + 10000;
}
}
function startCount() {
MovieClip.addListener(obj);
}
function stopCount() {
MovieClip.removeListener(obj);
}
function setVisible(boo) {
if (boo && (_currentframe == 4)) {
gotoAndPlay ("on");
} else if ((!boo) && (_currentframe == 3)) {
gotoAndPlay ("off");
}
}
function saveData() {
_root.cookie.data.hiScore = hiScore;
_root.cookie.flush();
trace("dataBase/save");
}
var timeLimit = 0;
var timeLimitTemp = 0;
var temp = 0;
var point;
var players;
var bombs;
var bossLifeCount;
var bossLifeBlock;
var spellCardBonus = false;
var spellCarding = false;
mx.transitions.OnEnterFrameBeacon.init();
var obj = new Object();
obj.onEnterFrame = function () {
if (temp != 0) {
timeLimit = timeLimit - (getTimer() - temp);
if (timeLimit < 0) {
timeLimit = 0;
}
}
temp = getTimer();
};
Symbol 107 MovieClip Frame 2
initPlayer();
initBomb();
if (bossLifeCount == undefined) {
initBossLife(0, 0);
}
initScore();
initGraze();
initSplice();
Symbol 107 MovieClip Frame 3
stop();
Symbol 107 MovieClip Frame 4
stop();
Symbol 110 MovieClip Frame 1
function outOfMonitor() {
if (bullet._y < 65) {
exitBullet();
}
}
function exitBullet() {
MovieClip.removeListener(obj);
_parent.endKamiBullet(no);
this.removeMovieClip();
}
function stopBullet() {
MovieClip.removeListener(obj);
}
function startBullet() {
MovieClip.addListener(obj);
}
mx.transitions.OnEnterFrameBeacon.init();
var obj = new Object();
MovieClip.addListener(obj);
var no;
bullet._y = 385;
stop();
Symbol 110 MovieClip Frame 2
obj.onEnterFrame = function () {
bullet._y = bullet._y - 25;
if (_parent._parent.ball.ball.hitTest(bullet)) {
if ((Math.pow(_parent._parent.ball.ball._x - bullet._x, 2) + Math.pow(_parent._parent.ball.ball._y - bullet._y, 2)) < 550) {
_parent._parent.ball.hitAction("bullet", _parent._parent.ball.ball._x - bullet._x, 0, 0);
exitBullet();
}
}
outOfMonitor();
};
stop();
Symbol 111 MovieClip Frame 1
function setKamiBullet(startX) {
if (noList.length != 0) {
no = noList.shift();
mc = kamiBullet.duplicateMovieClip("kamiBullet" + no, no);
mc.gotoAndPlay("start");
mc.bullet._x = startX;
mc.no = no;
}
}
function endKamiBullet(no) {
noList.push(no);
}
var noList = [1, 2, 3, 4, 5, 6, 7, 8];
var no;
var mc;
stop();
Symbol 114 MovieClip Frame 1
function initBall() {
ball._x = 627;
ball._y = 305;
mx = -8;
my = -16;
sukimaTime = 0;
ball._xscale = 100;
ball._yscale = 100;
}
function startBall() {
MovieClip.addListener(obj);
}
function stopBall() {
MovieClip.removeListener(obj);
}
function endBall() {
MovieClip.removeListener(obj);
ball._x = -100;
}
function hitAction(status, ballDirection, kamiDirection, power) {
switch (status) {
case "slide" :
case "slide2" :
dir = kamiDirection;
pow = 21;
break;
case "stopSumar" :
case "moveSumar" :
case "hit" :
if (ballDirection < 0) {
dir = -1;
} else {
dir = 1;
}
pow = (25 - power) * 2.5;
break;
case "bullet" :
if (ballDirection < 0) {
dir = -1;
} else {
dir = 1;
}
pow = (Math.abs(ballDirection) / 4) + 20;
}
mx = 8 * dir;
my = (40 - pow) * -1;
}
function hitObject(direction, position, from) {
switch (direction) {
case "top" :
case "bottom" :
if ((my * from) <= 0) {
ball._y = position;
my = my * decayBottom;
mx = mx * friction;
} else {
mx = mx * decaySide;
}
break;
case "side" :
if ((mx * from) <= 0) {
ball._x = position;
mx = mx * decaySide;
} else {
my = my * decayBottom;
mx = mx * friction;
}
}
}
function sendSukima(inX, inY, outX, outY) {
if (sukimaTime < -5) {
sukimaTime = 26;
this.inX = inX;
this.inY = inY;
this.outX = outX;
this.outY = outY;
}
}
mx.transitions.OnEnterFrameBeacon.init();
var obj = new Object();
ball.hitRange._alpha = _root.debugHit;
var ballSize = 12.5;
var top = (64 + ballSize);
var bottom = (400 - ballSize);
var left = (0 + ballSize);
var right = (640 - ballSize);
var mx;
var my;
var decayBottom = -0.79;
var decaySide = -0.95;
var friction = 1;
var gravity = 0.7;
var sukimaTime = 0;
var inX;
var inY;
var outX;
var outY;
ball._x = -100;
obj.onEnterFrame = function () {
if ((--sukimaTime) < 0) {
ball._x = ball._x + mx;
ball._y = ball._y + my;
if (ball._x < left) {
hitObject("side", left, 1);
} else if (ball._x > right) {
hitObject("side", right, -1);
}
if (ball._y <= top) {
hitObject("top", top, 1);
}
if (ball._y >= bottom) {
hitObject("bottom", bottom, -1);
_parent.dataBase.initSplice();
}
my = my + gravity;
} else {
switch (sukimaTime) {
case 25 :
ball._x = inX;
ball._y = inY;
break;
case 20 :
ball._xscale = 50;
ball._yscale = 50;
break;
case 15 :
ball._x = outX;
ball._y = outY;
break;
case 10 :
ball._xscale = 100;
ball._yscale = 100;
case 0 :
my = (Math.floor(Math.random() * 10) * 4) - 25;
if (Math.random() < 0.1) {
mx = 0;
} else if (Math.random() < 0.5) {
mx = -8;
} else {
mx = 8;
}
}
}
};
stop();
Symbol 125 MovieClip Frame 1
function setBulletSize(num) {
size = num;
grazeRange = Math.pow((num + 4) + _parent.grazeRange, 2);
hitRange = Math.pow(num + 4, 2);
}
function outOfMonitor() {
if ((((bullet._x < -15) || (bullet._x > 665)) || (bullet._y < 20)) || (bullet._y > 415)) {
exitBullet();
}
}
function exitBullet() {
MovieClip.removeListener(obj);
this.removeMovieClip();
}
function stopBullet() {
MovieClip.removeListener(obj);
}
function startBullet() {
MovieClip.addListener(obj);
}
mx.transitions.OnEnterFrameBeacon.init();
var obj = new Object();
MovieClip.addListener(obj);
var size;
var bulletType;
var angle;
var curve;
var speed;
var isGrazed = false;
var hitRange;
var grazeRange;
var time;
stop();
Symbol 125 MovieClip Frame 2
setBulletSize(4);
var speedX = (speed * Math.cos(angle));
var speedY = (speed * Math.sin(angle));
var isReflected = false;
obj.onEnterFrame = function () {
if (_parent.resetBulletFlag) {
exitBullet();
}
if (!_parent.stopBulletFlag) {
bullet._x = bullet._x + speedX;
bullet._y = bullet._y + speedY;
}
outOfMonitor();
if (bullet.hitTest(_parent._parent.player.kami)) {
temp = Math.pow(bullet._x - _parent._parent.player.kami._x, 2) + Math.pow(bullet._y - _parent._parent.player.kami._y, 2);
if ((temp < hitRange) && (_parent._parent.player.muteki < 0)) {
_parent._parent.player.dead();
exitBullet();
} else if (((temp < 1050) && (_parent._parent.player.kamiStatus == "hit")) && (!isReflected)) {
angle = Math.atan2(bullet._y - _parent._parent.player.kami._y, bullet._x - _parent._parent.player.kami._x);
speedX = (speed * 1.3) * Math.cos(angle);
speedY = (speed * 1.3) * Math.sin(angle);
isReflected = true;
} else if (((temp < grazeRange) && (!isGrazed)) && (_parent._parent.player.muteki < 0)) {
isGrazed = true;
_parent._parent.dataBase.getGraze();
}
}
if (_parent._parent.ball.ball.hitTest(bullet)) {
if ((Math.pow(_parent._parent.ball.ball._x - bullet._x, 2) + Math.pow(_parent._parent.ball.ball._y - bullet._y, 2)) < 272) {
_parent._parent.dataBase.getScore(50);
exitBullet();
}
}
};
stop();
Symbol 125 MovieClip Frame 3
setBulletSize(5);
var speedX = (speed * Math.cos(angle));
var speedY = (speed * Math.sin(angle));
obj.onEnterFrame = function () {
if (_parent.resetBulletFlag) {
exitBullet();
}
if (!_parent.stopBulletFlag) {
bullet._x = bullet._x + speedX;
bullet._y = bullet._y + speedY;
}
outOfMonitor();
if (bullet.hitTest(_parent._parent.player.kami)) {
temp = Math.pow(bullet._x - _parent._parent.player.kami._x, 2) + Math.pow(bullet._y - _parent._parent.player.kami._y, 2);
if ((temp < hitRange) && (_parent._parent.player.muteki < 0)) {
_parent._parent.player.dead();
exitBullet();
} else if (((temp < grazeRange) && (!isGrazed)) && (_parent._parent.player.muteki < 0)) {
isGrazed = true;
_parent._parent.dataBase.getGraze();
}
}
};
stop();
Symbol 125 MovieClip Frame 4
setBulletSize(8);
var speedX = (speed * Math.cos(angle));
var speedY = (speed * Math.sin(angle));
obj.onEnterFrame = function () {
if (_parent.resetBulletFlag) {
exitBullet();
}
if (!_parent.stopBulletFlag) {
bullet._x = bullet._x + speedX;
bullet._y = bullet._y + speedY;
}
if (bullet._y > 390) {
speedY = speedY * -1;
}
outOfMonitor();
if (bullet.hitTest(_parent._parent.player.kami)) {
temp = Math.pow(bullet._x - _parent._parent.player.kami._x, 2) + Math.pow(bullet._y - _parent._parent.player.kami._y, 2);
if ((temp < hitRange) && (_parent._parent.player.muteki < 0)) {
_parent._parent.player.dead();
exitBullet();
} else if (((temp < grazeRange) && (!isGrazed)) && (_parent._parent.player.muteki < 0)) {
isGrazed = true;
_parent._parent.dataBase.getGraze();
}
}
};
stop();
Symbol 125 MovieClip Frame 5
setBulletSize(size);
obj.onEnterFrame = function () {
if ((--time) <= 0) {
exitBullet();
}
if (bullet.hitTest(_parent._parent.player.kami)) {
temp = Math.pow(bullet._x - _parent._parent.player.kami._x, 2) + Math.pow(bullet._y - _parent._parent.player.kami._y, 2);
if ((temp < hitRange) && (_parent._parent.player.muteki < 0)) {
_parent._parent.player.dead();
exitBullet();
} else if (((temp < grazeRange) && (!isGrazed)) && (_parent._parent.player.muteki < 0)) {
isGrazed = true;
_parent._parent.dataBase.getGraze();
}
}
};
stop();
Symbol 126 MovieClip Frame 1
function setBulletLine(type, startX, startY, angle, speed) {
if (!resetBulletFlag) {
mc = bulletA.duplicateMovieClip("bullet" + (++i), i);
if (angle == "jiki") {
mc.angle = Math.atan2(_parent.player.kami._y - startY, _parent.player.kami._x - startX);
} else {
mc.angle = (angle / 180) * Math.PI;
}
mc.bulletType = type;
mc.speed = speed;
mc.gotoAndPlay("bullet" + type);
mc.bullet._x = startX;
mc.bullet._y = startY;
}
}
function setBulletWay(type, startX, startY, angle, speed, range, amount) {
if (angle == "jiki") {
angle = (Math.atan2(_parent.player.kami._y - startY, _parent.player.kami._x - startX) / Math.PI) * 180;
}
temp = range / (amount - 1);
var _local2 = 0;
while (_local2 < amount) {
setBulletLine(type, startX, startY, (angle - (range / 2)) + (temp * _local2), speed);
_local2++;
}
}
function setBulletDummy(startX, startY, size, time) {
mc = bulletA.duplicateMovieClip("bullet" + (++i), i);
mc.gotoAndPlay("dummy");
mc.time = time;
mc.size = size;
mc.bullet._xscale = size;
mc.bullet._yscale = size;
mc.bullet._x = startX;
mc.bullet._y = startY;
}
function clearBullet() {
resetBulletFlag = true;
i = 1;
}
function stopBullet() {
stopBulletFlag = true;
}
function startBullet() {
resetBulletFlag = false;
stopBulletFlag = false;
}
function formatBullet() {
trace("\u30D0\u30B0\uFF1A\u6575\u5F3E/\u5EC3\u6B62\u3055\u308C\u305F\u30E1\u30BD\u30C3\u30C9formatBullet()");
}
var i = 1;
var mc;
var resetBulletFlag = false;
var stopBulletFlag = false;
var grazeRange = 12;
stop();
Symbol 126 MovieClip Frame 2
stop();
Symbol 131 MovieClip Frame 1
function stopEffect() {
gotoAndPlay ("off");
}
function startEffect() {
gotoAndPlay ("on");
}
stop();
Symbol 131 MovieClip Frame 6
if (_parent._parent.muteki > 4) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
Symbol 187 MovieClip Frame 1
hitRange._alpha = _root.debugHit;
Symbol 187 MovieClip Frame 2
stop();
Symbol 187 MovieClip Frame 3
stop();
Symbol 187 MovieClip Frame 4
stop();
Symbol 187 MovieClip Frame 5
stop();
Symbol 187 MovieClip Frame 6
stop();
Symbol 187 MovieClip Frame 7
stop();
Symbol 187 MovieClip Frame 8
stop();
Symbol 187 MovieClip Frame 9
stop();
Symbol 187 MovieClip Frame 10
stop();
Symbol 187 MovieClip Frame 11
stop();
Symbol 187 MovieClip Frame 12
stop();
Symbol 187 MovieClip Frame 13
stop();
Symbol 187 MovieClip Frame 14
stop();
Symbol 187 MovieClip Frame 15
stop();
Symbol 187 MovieClip Frame 16
stop();
Symbol 188 MovieClip Frame 1
function initPlayer() {
if (kamiStatus != "stand") {
changeStatus("stand", 0);
}
kami._x = 320;
kami._y = 384;
}
function startPlayer() {
kami.kami.start();
MovieClip.addListener(obj);
Key.addListener(keyListener);
}
function stopPlayer() {
kami.kami.stop();
MovieClip.removeListener(obj);
Key.removeListener(keyListener);
}
function endPlayer() {
MovieClip.removeListener(obj);
kami._y = -200;
}
function changeStatus(status, direction) {
kamiDirection = direction;
combable = false;
switch (status) {
case "stand" :
kami.gotoAndPlay("stand");
kamiStatus = "stand";
break;
case "move" :
if (direction < 0) {
kami.gotoAndPlay("moveL");
} else {
kami.gotoAndPlay("moveR");
}
kamiStatus = "move";
break;
case "slide" :
if (direction < 0) {
kami.gotoAndPlay("slideL");
} else {
kami.gotoAndPlay("slideR");
}
kamiStatus = "slide";
suspendCount = 0;
actionCount = actionTime[0];
combable = true;
setMuteki(3, false);
break;
case "slide2" :
if (direction < 0) {
kami.gotoAndPlay("slide2L");
} else {
kami.gotoAndPlay("slide2R");
}
kamiStatus = "slide2";
suspendCount = 0;
actionCount = actionTime[0];
combable = true;
setMuteki(3, false);
break;
case "moveSumar" :
if (direction < 0) {
kami.gotoAndPlay("moveSumarL");
} else {
kami.gotoAndPlay("moveSumarR");
}
kamiStatus = "moveSumar";
actionCount = actionTime[1];
if ((++sumarCombo) < 3) {
combable = true;
} else {
sumarCombo = 0;
}
setMuteki(5, false);
break;
case "stopSumar" :
if (direction < 0) {
kami.gotoAndPlay("stopSumarL");
} else {
kami.gotoAndPlay("stopSumarR");
}
kamiStatus = "stuoSumer";
actionCount = actionTime[2];
setMuteki(5, false);
break;
case "hit" :
kami.gotoAndPlay("hit");
kamiStatus = "hit";
suspendCount = 0;
actionCount = actionTime[3];
break;
case "shot" :
kami.gotoAndPlay("shot");
kamiStatus = "shot";
actionCount = 3;
break;
case "dead" :
kami.gotoAndPlay("dead");
kamiStatus = "dead";
actionCount = 20;
break;
case "win" :
kami.gotoAndPlay("win");
kamiStatus = "win";
}
}
function setMuteki(time, effect) {
if (muteki < time) {
muteki = time;
}
if (effect) {
kami.effect.startEffect();
}
}
function movePlayer(num) {
if ((kami._x + num) < left) {
kami._x = left;
} else if ((kami._x + num) > right) {
kami._x = right;
} else {
kami._x = kami._x + num;
}
}
function makeSpeed(num) {
if (Key.isDown(_parent.keys[6])) {
return(speedListSlow[num]);
}
return(speedListNormal[num]);
}
function dead() {
suspendCount = 0;
changeStatus("dead", 0);
currentSpeed = 0;
setMuteki(100, true);
_parent.shakeWindow();
_parent.bulletBase.clearBullet();
_parent.dataBase.dead();
}
mx.transitions.OnEnterFrameBeacon.init();
var obj = new Object();
var keyListener = new Object();
var keyListenerPause = new Object();
var kamiStatus = "stand";
var kamiDirection = 0;
var actionCount = 0;
var slowFlag = false;
var suspendCount = 0;
var suspendCountMax = 2;
var currentSpeed = 0;
var speedListNormal = [9, 12, 6];
var speedListSlow = [5, 8, 4];
var actionTime = [10, 14, 14, 20];
var comboLimit = 3;
var combable = false;
var comboFrag = false;
var sumarCombo = 0;
var muteki = 0;
var kamiSize = 16;
var left = (0 + kamiSize);
var right = (640 - kamiSize);
hitRange._alpha = _root.debugHit;
actionRange._alpha = _root.debugHit;
Symbol 188 MovieClip Frame 2
keyListener.onKeyDown = function () {
code = Key.getCode();
switch (code) {
case _parent.keys[4] :
if ((kamiStatus == "stand") || (kamiStatus == "move")) {
if (Key.isDown(_parent.keys[0]) && (Key.isDown(_parent.keys[1]))) {
trace("\u30DC\u30E0");
} else {
_parent.kamiBulletBase.setKamiBullet(kami._x);
changeStatus("shot", 0);
}
}
break;
case _parent.keys[5] :
if ((kamiStatus == "stand") || (kamiStatus == "move")) {
if (Key.isDown(_parent.keys[2])) {
changeStatus("slide", -1);
currentSpeed = makeSpeed(1) * -1;
} else if (Key.isDown(_parent.keys[3])) {
changeStatus("slide", 1);
currentSpeed = makeSpeed(1);
} else {
suspendCount = suspendCountMax;
}
} else if ((actionCount < comboLimit) && (combable)) {
if (Key.isDown(_parent.keys[2])) {
temp = -1;
} else if (Key.isDown(_parent.keys[3])) {
temp = 1;
} else {
temp = 0;
}
if ((kamiDirection == temp) && (sumarCombo == 0)) {
if (kamiStatus == "slide") {
changeStatus("slide2", kamiDirection);
} else if (kamiStatus == "slide2") {
changeStatus("slide", kamiDirection);
}
} else if ((kamiDirection == (temp * -1)) && (sumarCombo == 0)) {
changeStatus("stopSumar", 0);
currentSpeed = 0;
} else if (temp == 0) {
changeStatus("moveSumar", kamiDirection);
currentSpeed = makeSpeed(2) * kamiDirection;
}
}
break;
case _parent.keys[2] :
if (suspendCount > 0) {
changeStatus("slide", -1);
currentSpeed = makeSpeed(1) * -1;
}
break;
case _parent.keys[3] :
if (suspendCount > 0) {
changeStatus("slide", 1);
currentSpeed = makeSpeed(1);
}
break;
case _parent.keys[8] :
_parent.stopGame();
changeStatus("win", 0);
Key.addListener(keyListenerPause);
}
};
keyListenerPause.onKeyDown = function () {
code = Key.getCode();
if (!(code === _parent.keys[8])) {
} else {
Key.removeListener(keyListener2);
_parent.startGame();
}
};
obj.onEnterFrame = function () {
if (Key.isDown(_parent.keys[6])) {
kami.hiticon._alpha = 50;
} else {
kami.hiticon._alpha = 0;
}
if ((--suspendCount) == 0) {
changeStatus("hit", 0);
}
if ((kamiStatus == "dead") && (actionCount == 1)) {
_parent.bulletBase.startBullet();
}
muteki--;
if ((--actionCount) <= 0) {
if (Key.isDown(_parent.keys[2])) {
currentSpeed = makeSpeed(0) * -1;
changeStatus("move", -1);
} else if (Key.isDown(_parent.keys[3])) {
currentSpeed = makeSpeed(0);
changeStatus("move", 1);
} else {
currentSpeed = 0;
changeStatus("stand", 0);
}
}
movePlayer(currentSpeed);
if (kami.hitTest(_parent.ball.ball)) {
temp = Math.pow(kami._x - _parent.ball.ball._x, 2) + Math.pow(kami._y - _parent.ball.ball._y, 2);
if ((((actionCount > 0) && (temp < 1300)) && (kamiStatus != "dead")) && (kamiStatus != "shot")) {
_parent.ball.hitAction(kamiStatus, _parent.ball.ball._x - kami._x, kamiDirection, actionCount);
} else if ((((temp < 700) && ((actionCount <= -2) || (kamiStatus == "shot"))) && (muteki < 0)) && (suspendCount < 0)) {
dead();
}
}
};
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 2
play();
Symbol 190 MovieClip Frame 16
this.removeMovieClip();
Symbol 192 MovieClip Frame 1
size = 25;
stop();
Symbol 192 MovieClip Frame 2
stop();
Symbol 192 MovieClip Frame 3
stop();
Symbol 198 MovieClip Frame 50
stop();
Symbol 199 MovieClip Frame 50
stop();
Symbol 200 MovieClip Frame 1
function setEffect(name) {
gotoAndPlay(name);
}
function endEffect() {
gotoAndPlay ("none");
}
Symbol 200 MovieClip Frame 2
stop();
Symbol 200 MovieClip Frame 3
stop();
Symbol 203 MovieClip Frame 50
_parent.gotoAndPlay("stand");
Symbol 210 MovieClip Frame 15
_parent._parent._parent[_parent._parent._name]._x = Math.floor(Math.random() * 400) + 140;
_parent._parent._parent[_parent._parent._name]._y = 130;
Symbol 210 MovieClip Frame 32
_parent.gotoAndPlay("stand");
Symbol 211 MovieClip Frame 1
function setFigure(status) {
gotoAndPlay(status);
}
function defeatBoss() {
switch (actionCode) {
case 1 :
trace("\u30B9\u30DA\u30AB\uFF11\u8D77\u52D5");
actionCode = 2;
_parent._parent._parent.effect.startSpellCard("mima", "\u661F\u7B26\u300C\u30B7\u30E5\u30FC\u30C6\u30A3\u30F3\u30B0\u30B9\u30BF\u30FC\u300D", 1);
_parent._parent._parent.dataBase.initBossLife(1, 3);
MovieClip.removeListener(obj1);
i = 0;
_parent.wait("spell", obj2, true);
var _local2 = new mx.transitions.Tween(_parent._parent[_parent._name], "_x", mx.transitions.easing.Regular.easeOut, _parent._parent[_parent._name]._x, 320, 30, false);
break;
case 2 :
trace("\u30B9\u30DA\u30AB\uFF11\u7D42\u4E86");
MovieClip.removeListener(obj2);
_parent._parent._parent.effect.endEffect();
enemy.setMuteki(25, false);
_parent.wait(25, obj2a, true);
if (_currentframe != 3) {
gotoAndPlay (3);
}
break;
case 3 :
MovieClip.removeListener(obj3);
_parent.endBoss();
}
}
var i = 0;
var actionCode = 0;
_parent._parent._parent.dataBase.initBossLife(2, 2);
mx.transitions.OnEnterFrameBeacon.init();
var obj0 = new Object();
var obj1 = new Object();
var obj2 = new Object();
var obj2a = new Object();
var obj3 = new Object();
obj0.onEnterFrame = function () {
actionCode = 0;
switch (++i) {
case 1 :
_parent._parent._parent._parent.bgm.stopBgm();
break;
case 20 :
_parent._parent._parent._parent.bgm.startBgm(3);
setFigure("start");
break;
case 80 :
_parent._parent._parent.effect.startEffect(5, false);
break;
case 160 :
_parent._parent._parent.startGame();
i = 0;
MovieClip.addListener(obj1);
MovieClip.removeListener(obj0);
}
};
obj1.onEnterFrame = function () {
actionCode = 1;
switch (++i) {
case 1 :
moveX = -4;
break;
case 41 :
moveX = 4;
break;
case 121 :
moveX = -4;
break;
case 161 :
moveX = 0;
break;
case 201 :
i = 0;
break;
case 51 :
case 131 :
_parent._parent._parent.bulletBase.setBulletWay(2, _parent._parent[_parent._name]._x, _parent._parent[_parent._name]._y, "jiki", 10, 80, 5);
break;
case 11 :
case 91 :
case 171 :
_parent._parent._parent.bulletBase.setBulletWay(2, _parent._parent[_parent._name]._x, _parent._parent[_parent._name]._y, "jiki", 8, 60, 4);
}
_parent._parent[_parent._name]._x = _parent._parent[_parent._name]._x + moveX;
};
obj2.onEnterFrame = function () {
actionCode = 2;
switch (++i) {
case 5 :
gotoAndPlay ("shot");
temp = 90;
tempAdd = 0;
break;
case 30 :
tempAdd = 2.5;
break;
case 60 :
tempAdd = -2.5;
break;
case 130 :
tempAdd = 2.5;
break;
case 170 :
temp = 90;
tempAdd = 0;
break;
case 200 :
gotoAndPlay ("stand");
break;
case 230 :
_parent._parent._parent.bulletBase.setBulletWay(1, _parent._parent[_parent._name]._x, _parent._parent[_parent._name]._y, "jiki", 10, 360, 24);
break;
case 210 :
case 250 :
_parent._parent._parent.bulletBase.setBulletWay(1, _parent._parent[_parent._name]._x, _parent._parent[_parent._name]._y, "jiki", 10, 360, 25);
break;
case 300 :
i = 0;
}
if (((i % 5) == 0) && (i < 190)) {
temp = temp + tempAdd;
_parent._parent._parent.bulletBase.setBulletWay(3, _parent._parent[_parent._name]._x, _parent._parent[_parent._name]._y, temp, 10, 45, 2);
}
};
obj2a.onEnterFrame = function () {
trace("\u30B9\u30DA\u30AB\u8D77\u52D5\uFF12");
actionCode = 2;
_parent._parent._parent.effect.startSpellCard("mima", "\u300C\u30D6\u30EC\u30A4\u30B8\u30F3\u30B0\u30E0\u30FC\u30F3\u300D", 2);
_parent._parent._parent.dataBase.initBossLife(0, 3);
MovieClip.removeListener(obj2a);
i = 0;
temp = 0;
tempAdd = 0;
_parent.wait("spell", obj3, true);
};
obj3.onEnterFrame = function () {
actionCode = 3;
switch (++i) {
case 2 :
effectB.setEffect("charge");
gotoAndPlay ("charge");
break;
case 60 :
effectB.endEffect();
gotoAndPlay ("shot");
var _local2 = new mx.transitions.Tween(_parent._parent[_parent._name], "_y", mx.transitions.easing.Elastic.easeOut, _parent._parent[_parent._name]._y, 320, 20, false);
_parent._parent._parent.bulletBase.setBulletDummy(_parent._parent[_parent._name]._x, 380, 140, 40);
break;
case 100 :
gotoAndPlay ("warp");
break;
case 160 :
gotoAndPlay ("shot");
temp1 = 120;
temp2 = 60;
tempAdd = 8;
break;
case 300 :
gotoAndPlay ("stand");
break;
case 330 :
i = 0;
}
if ((((i % 2) == 0) && (i > 160)) && (i < 300)) {
temp1 = temp1 - tempAdd;
_parent._parent._parent.bulletBase.setBulletLine(1, _parent._parent[_parent._name]._x, _parent._parent[_parent._name]._y, temp1, 8);
temp2 = temp2 + tempAdd;
_parent._parent._parent.bulletBase.setBulletLine(1, _parent._parent[_parent._name]._x, _parent._parent[_parent._name]._y, temp2, 8);
}
};
MovieClip.addListener(obj0);
stop();
Symbol 211 MovieClip Frame 2
stop();
Symbol 211 MovieClip Frame 3
stop();
Symbol 211 MovieClip Frame 4
stop();
Symbol 211 MovieClip Frame 5
stop();
Symbol 211 MovieClip Frame 6
stop();
Symbol 212 MovieClip Frame 1
function calc(rad) {
return((rad / Math.PI) * 180);
}
function setEnemy(num) {
gotoAndPlay("boss" + num);
MovieClip.addListener(hitCheck);
}
function startEnemy() {
boss.gotoAndPlay("start");
}
function setMuteki(num, boo) {
mutekiSuspend = num;
}
function wait(time, func, clearBullet) {
waitTime = time;
waitFunc = func;
if (clearBullet) {
_parent._parent.bulletBase.clearBullet();
}
MovieClip.addListener(waitInit);
}
function endBoss() {
_parent._parent.effect.whiteOutIn();
_parent._parent.player.setMuteki(50, false);
_parent._parent.dataBase.stopCount();
_parent._parent._parent.bgm.stopBgm();
enemy.setMuteki(50, false);
wait(30, endBossFunc, false);
}
mx.transitions.OnEnterFrameBeacon.init();
var hitCheck = new Object();
var waitInit = new Object();
var waitStart = new Object();
var waitFunc = new Object();
var endBossFunc = new Object();
var hitSuspend = 0;
var mutekiSuspend = 0;
var waitTime;
hitCheck.onEnterFrame = function () {
mutekiSuspend--;
if ((((--hitSuspend) < 0) && (mutekiSuspend < 0)) && (enemy.hit.hitTest(_parent._parent.ball.ball))) {
hitSuspend = 50;
angle = calc(Math.atan2(_parent._parent.ball.ball._y - _parent[_name]._y, _parent._parent.ball.ball._x - _parent[_name]._x));
if ((angle > 130) || (angle < -130)) {
_parent._parent.ball.hitObject("side", _parent[_name]._x - enemy.hit.size, -1);
} else if ((angle > -50) && (angle < 50)) {
_parent._parent.ball.hitObject("side", _parent[_name]._x + enemy.hit.size, 1);
}
if ((angle > -135) && (angle < -45)) {
_parent._parent.ball.hitObject("bottom", _parent[_name]._y - enemy.hit.size, -1);
} else if ((angle > 45) && (angle < 135)) {
_parent._parent.ball.hitObject("top", _parent[_name]._y + enemy.hit.size, 1);
}
temp = _parent._parent.dataBase.damageBoss();
if (temp[0]) {
if (temp[1] && (_parent._parent.dataBase.spellCarding)) {
trace("\u30B9\u30DA\u30EB\u30AB\u30FC\u30C9\u53D6\u5F97");
_parent._parent.effect.getCard();
}
enemy.defeatBoss();
}
}
};
waitInit.onEnterFrame = function () {
if (waitTime == "spell") {
waitTime = _parent._parent.effect.spell._totalframes;
} else if (waitTime == "defete") {
waitTime = 30;
}
i = 0;
_parent._parent.bulletBase.startBullet();
MovieClip.addListener(waitStart);
MovieClip.removeListener(waitInit);
};
waitStart.onEnterFrame = function () {
if (!((++i) === waitTime)) {
} else {
MovieClip.addListener(waitFunc);
MovieClip.removeListener(waitStart);
}
};
endBossFunc.onEnterFrame = function () {
_parent._parent.stopGame();
enemu.gotoAndPlay("init");
gotoAndPlay ("init");
_parent.gotoAndPlay(_parent._currentframe + 1);
MovieClip.removeListener(endBossFunc);
};
Symbol 212 MovieClip Frame 2
stop();
Symbol 212 MovieClip Frame 3
_parent[_name]._x = 320;
_parent[_name]._y = 140;
stop();
Symbol 212 MovieClip Frame 4
stop();
Symbol 212 MovieClip Frame 5
stop();
Symbol 212 MovieClip Frame 6
stop();
Symbol 216 MovieClip Frame 1
mx.transitions.OnEnterFrameBeacon.init();
var obj = new Object();
var suspend = 0;
obj.onEnterFrame = function () {
if ((Math.pow(_parent._parent.ball.ball._x - _parent[_name]._x, 2) + Math.pow(_parent._parent.ball.ball._y - _parent[_name]._y, 2)) < 1000) {
_parent._parent.ball.sendSukima(_parent[_name]._x, _parent[_name]._y, target._x, target._y);
}
};
MovieClip.addListener(obj);
stop();
Instance of Symbol 215 MovieClip in Symbol 216 MovieClip Frame 1
onClipEvent (unload) {
MovieClip.removeListener(_parent.obj);
}
Symbol 229 MovieClip Frame 1
mx.transitions.OnEnterFrameBeacon.init();
var obj = new Object();
var i = 1;
obj.onEnterFrame = function () {
if (hit.hitTest(_parent._parent.ball.ball)) {
MovieClip.removeListener(obj);
gotoAndPlay(_currentframe + 1);
_parent.displayPoint(_parent[_name]._x, _parent[_name]._y, _parent._parent.dataBase.getSplice());
}
};
this.gotoAndPlay("panel" + hp);
stop();
Symbol 229 MovieClip Frame 2
MovieClip.addListener(obj);
stop();
Symbol 229 MovieClip Frame 11
MovieClip.addListener(obj);
stop();
Symbol 229 MovieClip Frame 20
MovieClip.addListener(obj);
stop();
Symbol 229 MovieClip Frame 29
MovieClip.addListener(obj);
stop();
Symbol 229 MovieClip Frame 38
_parent.endPanel();
stop();
Symbol 235 MovieClip Frame 1
function calc(rad) {
return((rad / Math.PI) * 180);
}
mx.transitions.OnEnterFrameBeacon.init();
var obj = new Object();
var suspend = 0;
var lock = false;
var size = 32;
obj.onEnterFrame = function () {
if (object.hitTest(_parent._parent.ball.ball)) {
if (!lock) {
angle = calc(Math.atan2(_parent._parent.ball.ball._y - _parent[_name]._y, _parent._parent.ball.ball._x - _parent[_name]._x));
if ((angle > 125) || (angle < -125)) {
_parent._parent.ball.hitObject("side", _parent[_name]._x - size, -1);
} else if ((angle > -45) && (angle < 45)) {
_parent._parent.ball.hitObject("side", _parent[_name]._x + size, 1);
}
if ((angle > -145) && (angle < -35)) {
_parent._parent.ball.hitObject("bottom", _parent[_name]._y - size, -1);
} else if ((angle > 35) && (angle < 145)) {
_parent._parent.ball.hitObject("top", _parent[_name]._y + size, 1);
}
lock = true;
}
} else {
lock = false;
}
};
MovieClip.addListener(obj);
stop();
Instance of Symbol 234 MovieClip "object" in Symbol 235 MovieClip Frame 1
onClipEvent (unload) {
MovieClip.removeListener(_parent.obj);
}
Symbol 238 MovieClip Frame 1
function calc(rad) {
return((rad / Math.PI) * 180);
}
mx.transitions.OnEnterFrameBeacon.init();
var obj = new Object();
var suspend = 0;
var lock = false;
var size = 16;
obj.onEnterFrame = function () {
if (object.hitTest(_parent._parent.ball.ball)) {
if (!lock) {
if (_parent._parent.ball.ball._y < _parent[_name]._y) {
_parent._parent.ball.hitObject("bottom", _parent[_name]._y - size, -1);
} else {
_parent._parent.ball.hitObject("top", _parent[_name]._y + size, 1);
}
lock = true;
}
} else {
lock = false;
}
};
MovieClip.addListener(obj);
stop();
Symbol 248 MovieClip Frame 1
mx.transitions.OnEnterFrameBeacon.init();
var obj = new Object();
var ect = new Object();
var suspend = interval;
obj.onEnterFrame = function () {
if (((--suspend) <= 0) && (!_parent._parent.bulletBase.stopBulletFlag)) {
mySetBullet();
suspend = interval;
}
};
ect.onEnterFrame = function () {
if (_parent.isWork) {
MovieClip.removeListener(ect);
MovieClip.addListener(obj);
}
};
MovieClip.addListener(ect);
stop();
Instance of Symbol 247 MovieClip in Symbol 248 MovieClip Frame 1
onClipEvent (unload) {
MovieClip.removeListener(_parent.obj);
}
Symbol 249 MovieClip Frame 1
function initStageA() {
i = 0;
_parent.dataBase.setVisible(true);
MovieClip.addListener(objA);
}
function initStageB() {
i = 0;
MovieClip.addListener(objB);
}
function initStageC() {
i = 0;
_parent._parent.bgm.stopBgm();
MovieClip.addListener(objC);
}
function initStageD() {
i = 0;
_parent.player.endPlayer();
_parent.ball.endBall();
_parent.dataBase.setVisible(false);
_parent.bulletBase.clearBullet();
MovieClip.addListener(objD);
}
function displayPoint(x, y, point) {
temp = pointMc.duplicateMovieClip("point" + (++j), j);
temp._x = x;
temp._y = y;
temp.point = point;
temp.gotoAndPlay(2);
}
function countPanel() {
panels++;
}
function endPanel() {
if ((--panels) == 0) {
isWork = false;
_parent.stopGame();
_parent.player.changeStatus("win", 0);
i = 0;
MovieClip.addListener(ect);
}
}
function setStage(num) {
stageNo = num;
gotoAndPlay("stage" + num);
}
mx.transitions.OnEnterFrameBeacon.init();
var objA = new Object();
var objB = new Object();
var objC = new Object();
var objD = new Object();
var ect = new Object();
var stageName = "";
var isWork = false;
var stageArea;
var bgmNo;
var j = 0;
objA.onEnterFrame = function () {
switch (++i) {
case 1 :
_parent.initGame();
_parent.effect.startEffect(stageNo, true);
break;
case 2 :
temp1 = _parent.effect.titleCall._totalframes + 5;
break;
case temp1 :
_parent._parent.bgm.startBgm(bgmNo);
break;
case temp1 + 1 :
temp2 = (temp1 + _parent.effect.stageCall._totalframes) + 25;
break;
case temp2 :
isWork = true;
_parent.startGame();
MovieClip.removeListener(objA);
}
};
objB.onEnterFrame = function () {
switch (++i) {
case 1 :
_parent.initGame();
break;
case 25 :
isWork = true;
_parent.startGame();
MovieClip.removeListener(objB);
}
};
objC.onEnterFrame = function () {
if (!((++i) === 1)) {
} else {
boss.setEnemy(stageNo);
_parent.initGame();
MovieClip.removeListener(objC);
}
};
objD.onEnterFrame = function () {
switch (++i) {
case 1 :
_parent._parent.bgm.startBgm(10);
_parent.dataBase.saveData();
break;
case 300 :
_parent._parent.bgm.stopBgm();
MovieClip.removeListener(objD);
_parent._parent.gotoAndPlay("menu");
}
};
var panels = 0;
ect.onEnterFrame = function () {
if (!((++i) === 20)) {
} else {
setStage(stageNo + 1);
MovieClip.removeListener(ect);
}
};
this.setStage(_root.main.startNo);
stop();
Symbol 249 MovieClip Frame 2
stop();
Symbol 249 MovieClip Frame 3
stageName = "1 (\u5730\u7344)";
stageArea = 1;
bgmNo = 2;
_parent.dataBase.initLimit(25000);
initStageA();
stop();
Instance of Symbol 216 MovieClip "sukima1" in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.target = _parent.sukima2;
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 216 MovieClip "sukima2" in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.target = _parent.sukima1;
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Symbol 249 MovieClip Frame 4
stageName = "2 (\u5730\u7344)";
stageArea = 1;
_parent.dataBase.initLimit(30000);
initStageB();
stop();
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 4
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Symbol 249 MovieClip Frame 5
stageName = "3 (\u5730\u7344)";
stageArea = 1;
_parent.dataBase.initLimit(30000);
initStageB();
stop();
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 216 MovieClip "sukima1" in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.target = _parent.sukima1;
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 5
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Symbol 249 MovieClip Frame 6
stageName = "4 (\u5730\u7344)";
stageArea = 1;
_parent.dataBase.initLimit(30000);
initStageB();
stop();
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Instance of Symbol 229 MovieClip in Symbol 249 MovieClip Frame 6
onClipEvent (load) {
this.hp = 1;
_parent.countPanel();
}
Symbol 249 MovieClip Frame 7
stageName = "5 (\u5730\u7344/\u30DC\u30B9)";
stageArea = 1;
_parent.dataBase.initLimit(60000);
initStageC();
stop();
Symbol 249 MovieClip Frame 8
initStageD();
stop();
Symbol 249 MovieClip Frame 9
setStage(1);
Instance of Symbol 248 MovieClip in Symbol 249 MovieClip Frame 9
onClipEvent (load) {
function mySetBullet() {
_parent._parent.bulletBase.setBulletWay(1, _parent[_name]._x, _parent[_name]._y, "jiki", 8, 90, 3);
}
interval = 60;
i = 0;
}
onClipEvent (unload) {
MovieClip.removeListener(obj);
}
Symbol 250 MovieClip Frame 1
function initGame() {
bulletBase.clearBullet();
ball.initBall();
player.initPlayer();
dataBase.initSplice();
}
function startGame() {
bulletBase.startBullet();
ball.startBall();
player.startPlayer();
dataBase.startCount();
}
function stopGame() {
ball.stopBall();
player.stopPlayer();
bulletBase.stopBullet();
dataBase.stopCount();
}
function shakeWindow() {
count = 0;
MovieClip.removeListener(obj);
MovieClip.addListener(obj);
}
var keys = _root.cookie.data.keyConfig;
mx.transitions.OnEnterFrameBeacon.init();
var obj = new Object();
obj.onEnterFrame = function () {
switch (++count) {
case 2 :
case 8 :
case 10 :
case 14 :
case 16 :
_parent._y = _parent._y + 10;
break;
case 4 :
case 6 :
case 12 :
case 18 :
_parent._y = _parent._y - 10;
break;
case 19 :
_parent._y = 0;
MovieClip.removeListener(obj);
}
};
Symbol 250 MovieClip Frame 2
stop();
Symbol 251 MovieClip Frame 1
function startGame(num) {
title.Key.removeListener(listener);
startNo = num;
gotoAndPlay ("game");
}
_root.fpsMoni = new FpsRateMonitor(25);
var startNo;
Symbol 251 MovieClip Frame 2
stop();
Symbol 251 MovieClip Frame 3
stop();
Symbol 251 MovieClip Frame 4
stop();
Symbol 252 MovieClip [__Packages.FpsRateMonitor] Frame 0
class FpsRateMonitor
{
var setFps, constant;
function FpsRateMonitor (fps) {
setFps = fps;
constant = (100000 * Math.ceil(setFps)) / setFps;
mx.transitions.OnEnterFrameBeacon.init();
MovieClip.addListener(this);
}
function onEnterFrame() {
if ((++count) >= setFps) {
_root._fpsrate = Math.round(constant / (getTimer() - time)) + "%fps";
count = 0;
time = getTimer();
}
}
var count = 0;
var time = getTimer();
}
Symbol 253 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 254 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 255 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 256 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 257 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}