Frame 1
function toHome() {
getURL ("http://yuki.kitune.info/", "_blank");
}
function upper() {
flashSound.setVolume((soundVolume = soundVolume + 20));
downSong_cmi.enabled = true;
if (soundVolume >= 100) {
upSong_cmi.enabled = false;
}
}
function downer() {
flashSound.setVolume((soundVolume = soundVolume - 20));
upSong_cmi.enabled = true;
if (soundVolume <= 0) {
downSong_cmi.enabled = false;
}
}
function max() {
getURL (_root._url, "_top");
}
fps = 18;
_quality = "medium";
var menu_cm = new ContextMenu();
menu_cm.hideBuiltInItems();
menu_cm.builtInItems.quality = true;
menu_cm.builtInItems.zoom = true;
menu_cm.customItems.push(new ContextMenuItem("\u3086\u304D\u304D\u3064\u306D (to Home)", toHome));
var upSong_cmi = new ContextMenuItem("\u97F3\u91CF \u5897 (Sound Volume +20%)", upper, true, false, true);
var downSong_cmi = new ContextMenuItem("\u97F3\u91CF \u6E1B (Sound Volume -20%)", downer, false, true, true);
var maximize_cmi = new ContextMenuItem("\u5358\u4F53\u8868\u793A/\u6700\u5927\u5316 (Maximize && Reload)", max, true, true, true);
menu_cm.customItems.push(upSong_cmi);
menu_cm.customItems.push(downSong_cmi);
menu_cm.customItems.push(maximize_cmi);
var flashSound = new Sound();
var soundVolume = 100;
flashSound.attachSound(this);
_root.menu = menu_cm;
Frame 2
version = getVersion();
versions = version.split(" ");
versionList = versions[1].split(",");
if (versionList[0] < 8) {
monitor0.gotoAndStop(3);
stop();
}
Frame 6
var cookie = SharedObject.getLocal("jake01");
if (cookie.data.score == undefined) {
cookie.data.hiScore = 0;
cookie.flush();
}
stop();
Frame 7
stop();
Frame 8
var countHit = 0;
var countType = 0;
_root.bgm.startBGM(1);
stop();
Frame 9
_root.bgm.startBGM(2);
stop();
Symbol 8 MovieClip Frame 1
loadrate = ("now loading.... " + Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100)) + "%";
Symbol 8 MovieClip Frame 2
gotoAndPlay (1);
Symbol 8 MovieClip Frame 3
stop();
Symbol 20 MovieClip Frame 1
function rolling() {
if (rad > 3.14) {
rad = 0;
rev = rev * -1;
rnd = (Math.random() + 1) * rev;
}
rad = rad + 0.02;
tate._rotation = ((tate._rotation - (Math.sin(rad) * rnd)) % 40) + 40;
yoko._y = (yoko._y + 12) % 500;
}
var rnd;
var rev = 1;
var rad = 3.15;
var backInterval = setInterval(this, "rolling", 50);
Symbol 48 MovieClip Frame 1
function cursol() {
mouse_yoko._y = mouse._y;
mouse_tate._x = mouse._x;
}
function rateMonitor() {
loadedRate = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
countdown = Math.round(((getTimer() * (_root.getBytesTotal() - _root.getBytesLoaded())) / _root.getBytesLoaded()) / 1000);
if (loadedRate >= 100) {
_root.kami.end();
clearInterval(monitorInterval);
startBtn._visible = true;
startBtn.onPress = function () {
_root.gotoAndPlay(_root._currentframe + 1);
};
}
mouse_yoko.loaded.text = loadedRate + "% loaded";
mouse_tate.remainder.text = ("remaind " + countdown) + " sec";
}
mouse.startDrag(true);
startBtn._visible = false;
mouseInterval = setInterval(this, "cursol", 45);
var loadedRate = "";
var countdown = "";
monitorInterval = setInterval(this, "rateMonitor", 1000);
Symbol 75 MovieClip Frame 46
gotoAndPlay(Math.round(Math.random() * 25) + 1);
Symbol 76 MovieClip Frame 1
function appear() {
this._y = this._y - ((this._y - baseY) / 6);
if ((this._y - baseY) <= 0.5) {
this._y = baseY;
clearInterval(appearInterval);
}
}
function casting() {
degreeCast = degreeCast + (_root.monitor.mouse._x / 30);
i = 0;
while (i < namesLength) {
if (names[i] != none) {
rolling(degreeCast - (roll * i), names[i]);
}
i++;
}
rad = degree * 0.017453;
kami._x = (60 * fadeOut) * Math.cos(rad * 0.9);
kami._y = (30 * fadeOut) * Math.cos(rad * 2.9);
degree = degree + 3;
}
function rolling(degree, target) {
rad = degree * 0.017453;
target._x = (Math.cos(rad) * 250) * (2 - fadeOut);
target._y = (Math.sin(rad) * _root.monitor.mouse._y) * 0.8;
target._xscale = Math.sin(rad) * 100;
target.swapDepths((Math.sin(rad) + 1.1) * 2000);
if (target.getDepth() > 2000) {
target._alpha = 100 * fadeOut;
} else {
target._alpha = 45 * fadeOut;
}
}
function end() {
castEndInterval = setInterval(this, "ending", 45);
}
function ending() {
fadeOut = fadeOut - 0.04;
if (fadeOut < 0) {
i = 0;
while (i < namesLength) {
if (names[i] != none) {
names[i]._visible = false;
}
i++;
}
clearInterval(castInterval);
clearInterval(castEndInterval);
}
}
var baseY = this._y;
this._y = this._y + 600;
var appearInterval = setInterval(this, "appear", 45);
var names = [char_1, char_l, char_2, char_o, char_3, char_a, char_4, char_d, char_5, none];
var namesLength = names.length;
var roll = (360 / namesLength);
var fadeOut = 1;
var degree = 660;
var rad;
var degreeCast = 0;
kami.swapDepths(2000);
var castInterval = setInterval(this, "casting", 45);
Symbol 150 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 151 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 85 MovieClip Frame 1
function startVoice(num) {
cv.stop();
if (num == 1) {
cv.attachSound("cv01");
cv.start();
} else if (num == 2) {
cv.attachSound("cv02");
cv.start();
} else if (num == 3) {
cv.attachSound("cv03");
cv.start();
} else if (num == 4) {
cv.attachSound("cv04");
cv.start();
} else if (num == 5) {
cv.attachSound("cv05");
cv.start();
} else if (num == 6) {
cv.attachSound("cv06");
cv.start();
} else if (num == 7) {
cv.attachSound("cv07");
cv.start();
} else if (num == 8) {
cv.attachSound("cv08");
cv.start();
}
}
cv = new Sound(this);
stop();
Symbol 88 MovieClip Frame 1
function startBGM(num) {
bgm.stop();
if (num == 1) {
bgm.attachSound("bgm01");
bgm.start();
} else if (num == 2) {
bgm.attachSound("bgm02");
bgm.start();
}
}
bgm = new Sound(_root);
stop();
Symbol 101 MovieClip Frame 1
stop();
if (test != 1) {
gotoAndPlay (2);
} else {
test = 1;
}
Symbol 101 MovieClip Frame 127
var keyListenerStart = new Object();
Key.addListener(keyListenerStart);
keyListenerStart.onKeyDown = function () {
Key.removeListener(keyListenerStart);
_root.gotoAndPlay(8);
};
stop();
Symbol 111 MovieClip Frame 1
function outOfMonitor() {
if ((cross._y < -20) || (cross._y > 400)) {
exitCross();
}
}
function exitCross() {
i = 0;
while (i < _parent.keysNow.length) {
if (_parent.keysNow[i].toString() == char.toString()) {
_parent.keysNow.splice(i, 1);
}
i++;
}
_parent.keys.push(char.toString());
MovieClip.removeListener(obj);
Key.removeListener(keyListener);
this.removeMovieClip();
}
mx.transitions.OnEnterFrameBeacon.init();
var obj = new Object();
var keyListener = new Object();
var size;
var speed;
var char;
stop();
Symbol 111 MovieClip Frame 2
function playSound() {
rnd = Math.random();
if (rnd < 0.2) {
_parent.sounds.gotoAndPlay(2);
} else if (rnd < 0.4) {
_parent.sounds.gotoAndPlay(3);
} else if (rnd < 0.6) {
_parent.sounds.gotoAndPlay(4);
} else if (rnd < 0.8) {
_parent.sounds.gotoAndPlay(5);
} else {
_parent.sounds.gotoAndPlay(6);
}
}
Key.addListener(keyListener);
MovieClip.addListener(obj);
obj.onEnterFrame = function () {
cross._y = cross._y + speed;
outOfMonitor();
};
keyListener.onKeyDown = function () {
if (char.toString() == chr(Key.getAscii()).toUpperCase()) {
playSound();
_root.countHit = _root.countHit + 1;
exitCross();
}
};
stop();
Symbol 128 MovieClip Frame 1
function changeLV(num) {
if (num == 1) {
gotoAndPlay ("LV1");
} else if ((num == 2) && (_currentframe < 3)) {
gotoAndPlay ("LV2");
} else if ((num == 3) && (_currentframe < 24)) {
gotoAndPlay ("LV3");
} else if ((num == 4) && (_currentframe < 45)) {
gotoAndPlay ("LV4");
} else if ((num == 5) && (_currentframe < 66)) {
gotoAndPlay ("LV5");
}
}
Symbol 128 MovieClip Frame 2
stop();
Symbol 128 MovieClip Frame 23
stop();
Symbol 128 MovieClip Frame 44
stop();
Symbol 128 MovieClip Frame 65
stop();
Symbol 128 MovieClip Frame 86
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
gotoAndPlay (1);
Symbol 134 MovieClip Frame 3
gotoAndPlay (1);
Symbol 134 MovieClip Frame 4
gotoAndPlay (1);
Symbol 134 MovieClip Frame 5
gotoAndPlay (1);
Symbol 134 MovieClip Frame 6
gotoAndPlay (1);
Symbol 135 MovieClip Frame 2
function createCross(size, speed) {
if (keys.length > 0) {
mc = crossB.duplicateMovieClip("cross" + (++crossNum), crossNum);
mc.setCrossSize(size);
mc._x = (Math.random() * 500) + 50;
mc._y = -20;
mc._xscale = size;
mc._yscale = size;
mc.speed = speed;
mc.char = getChar();
mc.gotoAndStop(2);
}
}
function getChar() {
num = Math.random();
if (num == 1) {
num = 0;
}
num = Math.floor(num * keys.length);
char = keys.splice(num, 1);
keysNow.push(char);
return(char);
}
mx.transitions.OnEnterFrameBeacon.init();
var obj = new Object();
MovieClip.addListener(obj);
var keyListenerMain = new Object();
Key.addListener(keyListenerMain);
var crossNum = 1;
var mc;
var keys = ["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"];
var countTime = 0;
var countTimeEnd = 1260;
var createSpeed = 0;
var createWait = 0;
var createWaitLast = 0;
keyListenerMain.onKeyDown = function () {
_root.countType = _root.countType + 1;
};
obj.onEnterFrame = function () {
if (_root.countHit < 4) {
createSpeed = 1.5;
createWait = 20;
} else if (_root.countHit < 15) {
createSpeed = 2;
createWait = 15;
bg.changeLV(2);
} else if (_root.countHit < 30) {
createSpeed = 3;
createWait = 11;
bg.changeLV(3);
} else if (_root.countHit < 50) {
createSpeed = 4;
createWait = 8;
bg.changeLV(4);
} else {
createSpeed = 5;
createWait = 5;
bg.changeLV(5);
}
if ((--createWaitLast) < 0) {
createCross((Math.random() * 40) + 120, (((Math.random() * createSpeed) * 2) + (createSpeed * 0.1)) + 4);
createWaitLast = createWait * ((Math.random() * 0.5) + 0.75);
}
if ((++countTime) > countTimeEnd) {
Key.removeListener(keyListenerMain);
_root.gotoAndStop(_root._currentframe + 1);
} else {
_root.time.bar._xscale = ((countTimeEnd - countTime) / countTimeEnd) * 100;
}
};
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 2
gotoAndPlay (1);
Symbol 145 MovieClip Frame 3
gotoAndPlay (1);
Symbol 149 MovieClip Frame 1
function zeroPadding(number, size) {
var _local1 = number.toString();
while (_local1.length < size) {
_local1 = "0" + _local1;
}
return(_local1);
}
function restart() {
}
se = new Sound(_root);
txtResult1 = "";
txtResult2 = "";
txtResult3 = "";
txtResult4 = "";
Symbol 149 MovieClip Frame 21
txtResult1 = "\u6210\u529F\uFF1A " + zeroPadding(_root.countHit, 5);
sounds.gotoAndPlay(2);
Symbol 149 MovieClip Frame 31
txtResult2 = "\u5931\u6557\uFF1A " + zeroPadding(_root.countType - _root.countHit, 5);
sounds.gotoAndPlay(2);
Symbol 149 MovieClip Frame 43
if (((_root.countHit * 2) - _root.countType) > 0) {
txtResult3 = "\u5408\u8A08\uFF1A " + zeroPadding((_root.countHit + _root.countHit) - _root.countType, 5);
} else {
txtResult3 = "\u5408\u8A08\uFF1A " + zeroPadding(0, 5);
}
if (((_root.countHit + _root.countHit) - _root.countType) > _root.cookie.data.hiScore) {
_root.cookie.data.hiScore = (_root.countHit + _root.countHit) - _root.countType;
_root.cookie.flush();
}
txtResult4 = "\u30CF\u30A4\u30B9\u30B3\u30A2\uFF1A " + zeroPadding(_root.cookie.data.hiScore, 5);
sounds.gotoAndPlay(3);
Symbol 149 MovieClip Frame 70
function restart() {
Key.removeListener(keyListenerRestart);
_root.gotoAndPlay(8);
}
var keyListenerRestart = new Object();
Key.addListener(keyListenerRestart);
keyListenerRestart.onKeyDown = function () {
restart();
};
btnRestart.onPress = function () {
restart();
};
num = (_root.countHit + _root.countHit) - _root.countType;
if (num >= 100) {
_root.voice.startVoice(8);
} else if (num > 0) {
_root.voice.startVoice(7);
} else {
_root.voice.startVoice(6);
}
stop();