Frame 1
_level0._root.menub3.flg = 2;
stop();
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100));
if (100 == Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100)) {
_root.gotoAndPlay(3);
}
}
Frame 2
gotoAndStop (1);
Frame 13
function oto_on() {
o_bgm.setVolume(40);
o_se_demo.setVolume(40);
o_se_ok.setVolume(40);
o_se_ng.setVolume(40);
o_se_flower.setVolume(40);
o_kettei.setVolume(40);
o_owari.setVolume(40);
}
function oto_off() {
o_bgm.setVolume(0);
o_se_demo.setVolume(0);
o_se_ok.setVolume(0);
o_se_ng.setVolume(0);
o_se_flower.setVolume(0);
o_kettei.setVolume(0);
o_owari.setVolume(0);
}
o_bgm = new Sound(_root.bgm);
o_se_demo = new Sound(_root.demo);
o_se_ok = new Sound(_root.ok);
o_se_ng = new Sound(_root.ng);
o_se_flower = new Sound(_root.flower);
o_kettei = new Sound(_root.kettei);
o_owari = new Sound(_root.owari);
o_bgm.attachSound("bgm00");
o_se_demo.attachSound("se_demo");
o_se_ok.attachSound("se_ok");
o_se_ng.attachSound("se_ng");
o_se_flower.attachSound("se_flower");
o_kettei.attachSound("se_kettei");
o_owari.attachSound("se_end");
o_bgm.start(0, 99);
oto_on();
time_0_txt.text = "00.";
time_1_txt.text = "00";
honsu_txt.text = 0;
var is_lightButton = false;
var step0 = 0;
var cursol = 0;
this.onEnterFrame = function () {
switch (step0) {
case 0 :
step0++;
step1 = 0;
cursol = 0;
return;
case 1 :
if (step1 == 0) {
setsumei_btn._visible = true;
hazimeru_btn._visible = true;
modoru_mc._visible = false;
setsumei_bunsyo_mc._visible = false;
step1++;
}
return;
case 2 :
if (step1 != 0) {
break;
}
setsumei_btn._visible = false;
hazimeru_btn._visible = false;
modoru_mc._visible = true;
setsumei_bunsyo_mc._visible = true;
step1++;
}
};
mouichido_mc.onLoad = function () {
this._visible = false;
};
stop();
Instance of Symbol 39 MovieClip in Frame 13
onClipEvent (load) {
sp = (Math.floor(Math.random() * 10) + 4) / 10;
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x >= 607) {
this._x = -95;
this._y = this._y + (Math.floor(Math.random() * 100) - 50);
sp = (Math.floor(Math.random() * 10) + 4) / 10;
}
}
Instance of Symbol 39 MovieClip in Frame 13
onClipEvent (load) {
sp = (Math.floor(Math.random() * 10) + 4) / 10;
}
onClipEvent (enterFrame) {
this._x = this._x + sp;
if (this._x >= 607) {
this._x = -95;
this._y = this._y + (Math.floor(Math.random() * 100) - 50);
sp = (Math.floor(Math.random() * 10) + 4) / 10;
}
}
Instance of Symbol 39 MovieClip in Frame 13
onClipEvent (load) {
sp = (Math.floor(Math.random() * 10) + 4) / 10;
}
onClipEvent (enterFrame) {
this._x = this._x + 0.4;
if (this._x >= 607) {
this._x = -95;
this._y = this._y + (Math.floor(Math.random() * 100) - 50);
sp = (Math.floor(Math.random() * 10) + 4) / 10;
}
}
Instance of Symbol 47 MovieClip "zimen0_mc" in Frame 13
onClipEvent (enterFrame) {
if (_y > 0) {
_x = (_x - _root.back_scroll_diff);
if (_x < (-_width)) {
_x = (_x + (_width * 2));
}
}
}
Instance of Symbol 47 MovieClip "zimen1_mc" in Frame 13
onClipEvent (enterFrame) {
if (_y > 0) {
_x = (_x - _root.back_scroll_diff);
if (_x < (-_width)) {
_x = (_x + (_width * 2));
}
}
}
Instance of Symbol 123 MovieClip "modoru_mc" in Frame 13
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 125 MovieClip "setsumei_bunsyo_mc" in Frame 13
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 134 MovieClip in Frame 13
on (release) {
if (_level0._root.menub3.flg2 == 0) {
_level0._root.menub3.flg = 0;
} else {
_level0._root.menub3.flg = 1;
}
loadMovieNum ("04asobi/top.swf", 2);
}
Frame 14
function func_init() {
mondai_mc._visible = false;
start_mc._visible = false;
shippai_mc._visible = false;
mouichido_mc._visible = false;
youi_mc._visible = false;
end_mc._visible = false;
saruflg = 0;
honsu_txt.text = 0;
count_light = count_first;
game_timer = timer_max;
back_scroll = 0;
back_scroll_now = 0;
hana_delete = true;
time_nextLight = time_nextLight_max;
step0++;
step1 = 0;
}
function func_demoPlay() {
switch (step1) {
case 0 :
mondai_mc._visible = true;
hana_delete = false;
timer = time_mondai;
step1++;
break;
case 1 :
if ((--timer) <= 0) {
mondai_mc._visible = false;
var _local1 = 0;
while (_local1 < count_light) {
array_light_index[_local1] = Math.floor(7 * Math.random());
_local1++;
}
step1++;
step2 = 0;
timer = time_demoStart;
}
break;
case 2 :
if ((--timer) <= 0) {
o_se_demo.start();
switch (array_light_index[step2]) {
case 0 :
en01_set_mc.en01_mc.gotoAndPlay(2);
break;
case 1 :
en02_set_mc.en02_mc.gotoAndPlay(2);
break;
case 2 :
en03_set_mc.en03_mc.gotoAndPlay(2);
break;
case 3 :
en04_set_mc.en04_mc.gotoAndPlay(2);
break;
case 4 :
en05_set_mc.en05_mc.gotoAndPlay(2);
break;
case 5 :
en06_set_mc.en06_mc.gotoAndPlay(2);
break;
case 6 :
en07_set_mc.en07_mc.gotoAndPlay(2);
}
if ((++step2) >= count_light) {
step1++;
if (time_nextLight > time_nextLight_min) {
time_nextLight = time_nextLight - time_nextLight_minus;
}
timer = time_goStart;
} else {
timer = time_nextLight;
}
}
break;
case 3 :
if ((--timer) > 0) {
break;
}
step0++;
step1 = 0;
}
}
function func_gamePlay() {
switch (step1) {
case 0 :
youi_mc._visible = true;
timer = time_youi;
step1++;
break;
case 1 :
if ((--timer) <= 0) {
youi_mc._visible = false;
start_mc._visible = true;
is_lightButton = true;
trigger_light = false;
timer = time_start;
step2 = 0;
step1++;
}
break;
case 2 :
if ((--timer) <= 0) {
start_mc._visible = false;
}
game_timer = game_timer - 2.7;
if (game_timer <= 0) {
game_timer = 0;
start_mc._visible = false;
step0++;
step = 0;
} else if (trigger_light == true) {
if (lindex_light == array_light_index[step2]) {
var _local2 = Number(honsu_txt.text);
var _local3 = "hana_array" + _local2;
var _local4 = Math.floor(Math.random() * 5);
if (_local2 % 2) {
switch (_local4) {
case 0 :
flowersU_mc.hana01_set_mc.duplicateMovieClip(_local3, _local2 + 1);
break;
case 1 :
flowersU_mc.hana02_set_mc.duplicateMovieClip(_local3, _local2 + 1);
break;
case 2 :
flowersU_mc.hana03_set_mc.duplicateMovieClip(_local3, _local2 + 1);
break;
case 3 :
flowersU_mc.hana04_set_mc.duplicateMovieClip(_local3, _local2 + 1);
break;
case 4 :
flowersU_mc.hana05_set_mc.duplicateMovieClip(_local3, _local2 + 1);
}
_root.flowersU_mc[_local3]._y = pos_flower_y0;
_root.flowersU_mc[_local3]._x = (pos_flower_x + (flower_distance * _local2)) - back_scroll_now;
} else {
switch (_local4) {
case 0 :
flowersB_mc.hana01_set_mc.duplicateMovieClip(_local3, _local2 + 1);
break;
case 1 :
flowersB_mc.hana02_set_mc.duplicateMovieClip(_local3, _local2 + 1);
break;
case 2 :
flowersB_mc.hana03_set_mc.duplicateMovieClip(_local3, _local2 + 1);
break;
case 3 :
flowersB_mc.hana04_set_mc.duplicateMovieClip(_local3, _local2 + 1);
break;
case 4 :
flowersB_mc.hana05_set_mc.duplicateMovieClip(_local3, _local2 + 1);
}
_root.flowersB_mc[_local3]._y = pos_flower_y1;
_root.flowersB_mc[_local3]._x = (pos_flower_x + (flower_distance * _local2)) - back_scroll_now;
}
if (_local2 >= flower_scroll_start) {
back_scroll = back_scroll + flower_distance;
}
honsu_txt.text = _local2 + 1;
step2++;
if (step2 == count_light) {
start_mc._visible = false;
step1++;
is_lightButton = false;
timer = time_OK;
o_se_ok.start();
} else {
o_se_flower.start();
}
} else {
start_mc._visible = false;
o_se_ng.start();
shippai_mc._visible = true;
is_lightButton = false;
step0++;
step1 = 0;
}
trigger_light = false;
}
break;
case 3 :
if ((--timer) >= 0) {
break;
}
count_light++;
step0 = 1;
step1 = 0;
}
}
function func_gameEnd() {
if (saruflg == 0) {
saruflg = 1;
}
mouichido_mc._visible = true;
}
var time_mondai = 40;
var time_demoStart = 10;
var time_nextLight_max = 60;
var time_nextLight_min = 20;
var time_nextLight_minus = 4;
var time_goStart = 50;
var time_youi = 40;
var time_start = 40;
var time_OK = 40;
var count_first = 3;
var timer_max = 3000;
var flower_distance = 36;
var speed_scroll = 4;
var pos_flower_x = 250;
var pos_flower_y0 = 210;
var pos_flower_y1 = 195;
var flower_scroll_start = 5;
var count_light = count_first;
var array_light_index = new Array();
var trigger_light = false;
var index_light = 0;
var game_timer = 0;
var back_scroll = 0;
var back_scroll_now = 0;
var back_scroll_diff = 0;
var hana_delete = true;
var time_nextLight = 0;
var step0 = 0;
var step1 = 0;
var step2 = 0;
var timer = 0;
var saruflg = 0;
this.onEnterFrame = function () {
switch (step0) {
case 0 :
func_init();
break;
case 1 :
func_demoPlay();
break;
case 2 :
func_gamePlay();
break;
case 3 :
func_gameEnd();
}
var _local1 = Math.floor(game_timer / 100);
var _local2 = Math.floor(game_timer - (_local1 * 100));
if (_local1 < 10) {
time_0_txt.text = ("0" + _local1) + ".";
} else {
time_0_txt.text = _local1 + ".";
}
if (_local2 < 10) {
time_1_txt.text = ("0" + _local2) + ".";
} else {
time_1_txt.text = _local2 + ".";
}
if (back_scroll > back_scroll_now) {
back_scroll_diff = speed_scroll;
back_scroll_now = back_scroll_now + back_scroll_diff;
} else {
back_scroll_diff = 0;
}
};
Instance of Symbol 169 MovieClip "mondai_mc" in Frame 14
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 173 MovieClip "start_mc" in Frame 14
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 176 MovieClip "shippai_mc" in Frame 14
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 179 MovieClip "mouichido_mc" in Frame 14
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 182 MovieClip "youi_mc" in Frame 14
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 185 MovieClip "end_mc" in Frame 14
onClipEvent (load) {
this._visible = false;
}
Symbol 15 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 51
gotoAndPlay (1);
Symbol 54 MovieClip Frame 1
_visible = false;
Symbol 58 MovieClip Frame 1
stop();
hitArea = en_hit_mc;
var hikari = false;
var index = 0;
this.onEnterFrame = function () {
if (hikari == true) {
play();
}
};
this.onPress = function () {
if (_root.is_lightButton && (_root.trigger_light == false)) {
_root.trigger_light = true;
_root.lindex_light = index;
gotoAndPlay (2);
}
};
Symbol 58 MovieClip Frame 2
_root.en01_set_mc.swapDepths(_root.getNextHighestDepth());
Symbol 58 MovieClip Frame 40
hikari = false;
gotoAndStop (1);
Symbol 65 MovieClip Frame 1
stop();
hitArea = en_hit_mc;
var hikari = false;
var index = 1;
this.onEnterFrame = function () {
if (hikari == true) {
play();
}
};
this.onPress = function () {
if (_root.is_lightButton && (_root.trigger_light == false)) {
_root.trigger_light = true;
_root.lindex_light = index;
gotoAndPlay (2);
}
};
Symbol 65 MovieClip Frame 2
_root.en02_set_mc.swapDepths(_root.getNextHighestDepth());
Symbol 65 MovieClip Frame 40
hikari = false;
gotoAndStop (1);
Symbol 72 MovieClip Frame 1
stop();
hitArea = en_hit_mc;
var hikari = false;
var index = 2;
this.onEnterFrame = function () {
if (hikari == true) {
play();
}
};
this.onPress = function () {
if (_root.is_lightButton && (_root.trigger_light == false)) {
_root.trigger_light = true;
_root.lindex_light = index;
gotoAndPlay (2);
}
};
Symbol 72 MovieClip Frame 2
_root.en03_set_mc.swapDepths(_root.getNextHighestDepth());
Symbol 72 MovieClip Frame 40
hikari = false;
gotoAndStop (1);
Symbol 79 MovieClip Frame 1
stop();
hitArea = en_hit_mc;
var hikari = false;
var index = 3;
this.onEnterFrame = function () {
if (hikari == true) {
play();
}
};
this.onPress = function () {
if (_root.is_lightButton && (_root.trigger_light == false)) {
_root.trigger_light = true;
_root.lindex_light = index;
gotoAndPlay (2);
}
};
Symbol 79 MovieClip Frame 2
_root.en04_set_mc.swapDepths(_root.getNextHighestDepth());
Symbol 79 MovieClip Frame 40
hikari = false;
gotoAndStop (1);
Symbol 86 MovieClip Frame 1
stop();
hitArea = en_hit_mc;
var hikari = false;
var index = 4;
this.onEnterFrame = function () {
if (hikari == true) {
play();
}
};
this.onPress = function () {
if (_root.is_lightButton && (_root.trigger_light == false)) {
_root.trigger_light = true;
_root.lindex_light = index;
gotoAndPlay (2);
}
};
Symbol 86 MovieClip Frame 2
_root.en05_set_mc.swapDepths(_root.getNextHighestDepth());
Symbol 86 MovieClip Frame 40
hikari = false;
gotoAndStop (1);
Symbol 93 MovieClip Frame 1
stop();
hitArea = en_hit_mc;
var hikari = false;
var index = 5;
this.onEnterFrame = function () {
if (hikari == true) {
play();
}
};
this.onPress = function () {
if (_root.is_lightButton && (_root.trigger_light == false)) {
_root.trigger_light = true;
_root.lindex_light = index;
gotoAndPlay (2);
}
};
Symbol 93 MovieClip Frame 2
_root.en06_set_mc.swapDepths(_root.getNextHighestDepth());
Symbol 93 MovieClip Frame 40
hikari = false;
gotoAndStop (1);
Symbol 100 MovieClip Frame 1
stop();
hitArea = en_hit_mc;
var hikari = false;
var index = 6;
this.onEnterFrame = function () {
if (hikari == true) {
play();
}
};
this.onPress = function () {
if (_root.is_lightButton && (_root.trigger_light == false)) {
_root.trigger_light = true;
_root.lindex_light = index;
gotoAndPlay (2);
}
};
Symbol 100 MovieClip Frame 2
_root.en07_set_mc.swapDepths(_root.getNextHighestDepth());
Symbol 100 MovieClip Frame 40
hikari = false;
gotoAndStop (1);
Symbol 115 Button
on (release) {
_root.title._visible = false;
_root.o_kettei.start();
_root.step0++;
_root.step1 = 0;
}
Symbol 120 Button
on (release) {
_root.o_kettei.start();
_root.gotoAndStop(14);
}
Symbol 123 MovieClip Frame 1
onPress = function () {
_root.title._visible = true;
_root.step0--;
_root.step1 = 0;
_root.o_kettei.start();
};
Symbol 142 Button
on (release) {
nextFrame();
}
Symbol 143 Button
on (release) {
prevFrame();
}
Symbol 144 MovieClip Frame 1
_root.oto_on();
stop();
Symbol 144 MovieClip Frame 2
_root.oto_off();
Symbol 149 MovieClip Frame 1
var scroll_pos = 0;
Symbol 149 MovieClip Frame 13
stop();
Symbol 153 MovieClip Frame 13
stop();
Symbol 157 MovieClip Frame 13
stop();
Symbol 161 MovieClip Frame 13
stop();
Symbol 165 MovieClip Frame 13
stop();
Instance of Symbol 149 MovieClip "hana01_set_mc" in Symbol 166 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_y > 0) {
_x = (_x - _root.back_scroll_diff);
if (_root.hana_delete || (_x < -50)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 153 MovieClip "hana02_set_mc" in Symbol 166 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_y > 0) {
_x = (_x - _root.back_scroll_diff);
if (_root.hana_delete || (_x < -50)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 157 MovieClip "hana03_set_mc" in Symbol 166 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_y > 0) {
_x = (_x - _root.back_scroll_diff);
if (_root.hana_delete || (_x < -50)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 161 MovieClip "hana04_set_mc" in Symbol 166 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_y > 0) {
_x = (_x - _root.back_scroll_diff);
if (_root.hana_delete || (_x < -50)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 165 MovieClip "hana05_set_mc" in Symbol 166 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_y > 0) {
_x = (_x - _root.back_scroll_diff);
if (_root.hana_delete || (_x < -50)) {
this.removeMovieClip();
}
}
}
Symbol 179 MovieClip Frame 1
onPress = function () {
_root.o_kettei.start();
_root.step0 = 0;
_root.step1 = 0;
};