Frame 1
function change_sound(val) {
list_name = eval (("bpm_" + val) + "_sound_list");
if (val == 1) {
artist = "cornelius-";
} else if (val == 2) {
artist = "mercedeath-";
} else if (val == 3) {
artist = "poloreally-";
}
i = 0;
while (i <= 15) {
if (i == 0) {
list_name[i] = artist + "1.aif";
} else {
list_name[i] = (artist + Math.floor((Math.random() * 8) + 1)) + ".aif";
}
i++;
}
}
function set_zero() {
if (isLocal == false) {
if ((bpm_2.click_flag == 1) && (bpm_3.click_flag == 0)) {
getURL ("JavaScript:call_gmap(2);");
} else if ((bpm_2.click_flag == 0) && (bpm_3.click_flag == 1)) {
getURL ("JavaScript:call_gmap(3);");
} else if ((bpm_2.click_flag == 1) && (bpm_3.click_flag == 1)) {
getURL ("JavaScript:call_gmap(23);");
} else {
getURL ("JavaScript:call_gmap(1);");
}
}
_root.init_timer = getTimer();
bpm_0.timer_flag = 1;
bpm_1_time_list = [];
bpm_2_time_list = [];
bpm_3_time_list = [];
i = 1;
while (i <= 3) {
bpm_clip = eval ("bpm_" + i);
ball_clip = eval ("ball_" + i);
ball_clip.click_clip.gotoAndPlay("blink");
if (bpm_clip.click_flag == 1) {
play_snd(i, 1);
ball_clip = eval ("ball_" + i);
ball_clip.shake(1);
list_name = eval (("bpm_" + i) + "_time_list");
bpm_clip.timer_flag = 1;
bpm_clip.haku_cnt = 1;
a = bpm_clip.haku - 1;
b = bpm_clip.my_tick;
m = 0;
while (m <= a) {
list_name[m] = b * m;
m++;
}
}
i++;
}
if (_root.silence_flag == 1) {
this.gotoAndStop("silence");
}
}
function set_bpm(val) {
_root.my_bpm = val;
_root.bpm_duration = Number(Math.floor(240000 / val));
bpm_1.my_tick = Math.floor(_root.bpm_duration / bpm_1.haku);
bpm_2.my_tick = Math.floor(_root.bpm_duration / bpm_2.haku);
bpm_3.my_tick = Math.floor(_root.bpm_duration / bpm_3.haku);
}
function play_snd(which_bpm, cnt) {
if (which_bpm == 1) {
snd_1.stop();
snd_1 = new Sound(ball_1);
snd_name_1 = bpm_1_sound_list[cnt - 1];
snd_1.attachSound(snd_name_1);
snd_1.setPan(0);
snd_1.start();
} else if (which_bpm == 2) {
snd_2.stop();
snd_2 = new Sound(ball_2);
snd_name_2 = bpm_2_sound_list[cnt - 1];
snd_2.attachSound(snd_name_2);
snd_2.setPan(-85);
snd_2.start();
} else if (which_bpm == 3) {
snd_3.stop();
snd_3 = new Sound(ball_3);
snd_name_3 = bpm_3_sound_list[cnt - 1];
snd_3.attachSound(snd_name_3);
snd_3.setPan(85);
snd_3.start();
}
}
function expand_ball() {
i = 1;
while (i <= 3) {
temp_ball_clip = eval ("ball_" + i);
temp_ball_clip.gotoAndStop(1);
temp_ball_clip.ball_1.gotoAndPlay("expand");
i++;
}
}
function play_chaos(which_chaos, val) {
pan = Math.floor((Math.random() * 200) - 100);
if (which_chaos == 1) {
artist = "cornelius-";
snd_1.stop();
snd_1 = new Sound(ball_1);
snd_name = (artist + val) + ".aif";
snd_1.attachSound(snd_name);
snd_1.setPan(pan);
snd_1.start();
} else if (which_chaos == 2) {
artist = "mercedeath-";
snd_2.stop();
snd_2 = new Sound(ball_2);
snd_name = (artist + val) + ".aif";
snd_2.attachSound(snd_name);
snd_2.setPan(pan);
snd_2.start();
} else if (which_chaos == 3) {
artist = "poloreally-";
snd_3.stop();
snd_3 = new Sound(ball_3);
snd_name = (artist + val) + ".aif";
snd_3.attachSound(snd_name);
snd_3.setPan(pan);
snd_3.start();
}
}
function show_chaos(which_chaos, ptn) {
ball_clip = eval ("ball_" + which_chaos);
rnd_x = Math.random() * 720;
rnd_y = Math.random() * 500;
rnd_sc = Math.random() * 400;
ball_clip._x = rnd_x;
ball_clip._y = rnd_y;
ball_clip._xscale = rnd_sc;
ball_clip._yscale = rnd_sc;
}
if (this._url.indexOf("http://", 0) == -1) {
isLocal = true;
} else {
isLocal = false;
}
bpm_1_sound_list = [];
bpm_2_sound_list = [];
bpm_3_sound_list = [];
silence_flag = 0;
bpm_1_time_list = [];
bpm_2_time_list = [];
bpm_3_time_list = [];
set_bpm(120);
Frame 2
totalBytes = this.getBytesTotal();
loadedBytes = this.getBytesLoaded();
percent = Math.floor((loadedBytes / totalBytes) * 100);
if (percent >= 100) {
this.gotoAndStop("intro");
} else {
this.gotoAndPlay(this._currentframe + 1);
}
Instance of Symbol 33 MovieClip "scratch_clip" in Frame 2
onClipEvent (load) {
loader.loadMovie("scratch_gmap.swf");
}
Frame 3
loadedBytes = this.getBytesLoaded();
percent = Math.floor((loadedBytes / totalBytes) * 100);
this.play();
Frame 5
loadedBytes = this.getBytesLoaded();
percent = Math.floor((loadedBytes / totalBytes) * 100);
if (percent >= 100) {
this.gotoAndStop("intro");
} else {
this.gotoAndPlay(this._currentframe - 1);
}
Frame 6
change_sound(1);
change_sound(2);
change_sound(3);
this.stop();
Instance of Symbol 38 MovieClip "ball_3" in Frame 6
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 38 MovieClip "ball_1" in Frame 6
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 38 MovieClip "ball_2" in Frame 6
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 54 MovieClip "bpm_1" in Frame 13
onClipEvent (load) {
this._alpha = 0;
my_tick = 2000;
haku = 1;
haku_cnt = 1;
timer_flag = 0;
click_flag = 1;
}
onClipEvent (enterFrame) {
if (click_flag == 1) {
if (timer_flag == 1) {
b = getTimer() - _root.init_timer;
if (b > _root.bpm_1_time_list[haku_cnt]) {
haku_cnt = haku_cnt + 1;
_root.play_snd(1, haku_cnt);
_root.ball_1.shake(haku_cnt);
if (haku_cnt == haku) {
timer_flag = 0;
}
}
}
}
}
Instance of Symbol 54 MovieClip "bpm_2" in Frame 13
onClipEvent (load) {
this._alpha = 0;
my_tick = 2000;
haku = 1;
haku_cnt = 1;
timer_flag = 0;
click_flag = 0;
}
onClipEvent (enterFrame) {
if (click_flag == 1) {
if (timer_flag == 1) {
b = getTimer() - _root.init_timer;
if (b > _root.bpm_2_time_list[haku_cnt]) {
haku_cnt = haku_cnt + 1;
_root.play_snd(2, haku_cnt);
_root.ball_2.shake(haku_cnt);
if (haku_cnt == haku) {
timer_flag = 0;
}
}
}
}
}
Instance of Symbol 54 MovieClip "bpm_3" in Frame 13
onClipEvent (load) {
this._alpha = 0;
my_tick = 2000;
haku = 1;
haku_cnt = 1;
timer_flag = 0;
click_flag = 0;
}
onClipEvent (enterFrame) {
if (click_flag == 1) {
if (timer_flag == 1) {
b = getTimer() - _root.init_timer;
if (b > _root.bpm_3_time_list[haku_cnt]) {
haku_cnt = haku_cnt + 1;
_root.play_snd(3, haku_cnt);
_root.ball_3.shake(haku_cnt);
if (haku_cnt == haku) {
timer_flag = 0;
}
}
}
}
}
Instance of Symbol 54 MovieClip "bpm_0" in Frame 13
onClipEvent (load) {
timer_flag = 0;
}
onClipEvent (enterFrame) {
if (timer_flag == 1) {
b = getTimer() - _root.init_timer;
if (b > _root.bpm_duration) {
_root.set_zero();
}
}
}
Frame 14
i = 1;
while (i <= 3) {
temp_ball_clip = eval ("ball_" + i);
temp_ball_clip._visible = 1;
temp_ball_clip.click_clip._visible = 1;
temp_ball_clip.click_clip.gotoAndPlay("blink");
i++;
}
_root.set_zero();
this.stop();
Frame 25
i = 1;
while (i <= 3) {
temp_ball_clip = eval ("ball_" + i);
temp_ball_clip.click_clip._visible = 0;
temp_ball_clip.shrink();
i++;
}
time_counter.gotoAndPlay("silence");
scratch_clip.loader.gotoAndStop("ready");
this.stop();
Instance of Symbol 81 MovieClip "chaos_2" in Frame 35
onClipEvent (load) {
my_num = 2;
tick_max = 45;
haku_max = 8;
this._alpha = 0;
roll_flag = Math.floor(Math.random() * 2);
if (roll_flag == 1) {
haku = Math.floor(Math.random() * haku_max) + 1;
haku_cnt = 0;
}
my_tick = tick_max;
rnd_snd_num = Math.floor(Math.random() * 8) + 1;
init_timer = getTimer();
timer_flag = 1;
}
onClipEvent (enterFrame) {
if (timer_flag == 1) {
if (roll_flag == 1) {
b = getTimer() - init_timer;
if (b > my_tick) {
haku_cnt = haku_cnt + 1;
_root.play_chaos(my_num, rnd_snd_num);
init_timer = getTimer();
if (haku_cnt > haku) {
roll_flag = Math.floor(Math.random() * 2);
if (roll_flag == 1) {
haku = Math.floor(Math.random() * haku_max) + 1;
haku_cnt = 0;
}
my_tick = tick_max;
rnd_snd_num = Math.floor(Math.random() * 8) + 1;
init_timer = getTimer();
}
_root.show_chaos(my_num, 1);
}
} else {
b = getTimer() - init_timer;
if (b > my_tick) {
_root.play_chaos(my_num, rnd_snd_num);
roll_flag = Math.floor(Math.random() * 2);
if (roll_flag == 1) {
haku = Math.floor(Math.random() * haku_max) + 1;
haku_cnt = 0;
}
my_tick = tick_max;
rnd_snd_num = Math.floor(Math.random() * 8) + 1;
init_timer = getTimer();
_root.show_chaos(my_num, 0);
}
}
}
}
Instance of Symbol 81 MovieClip "chaos_1" in Frame 35
onClipEvent (load) {
my_num = 1;
tick_max = 37;
haku_max = 8;
this._alpha = 0;
roll_flag = Math.floor(Math.random() * 2);
if (roll_flag == 1) {
haku = Math.floor(Math.random() * haku_max) + 1;
haku_cnt = 0;
}
my_tick = tick_max;
rnd_snd_num = Math.floor(Math.random() * 8) + 1;
init_timer = getTimer();
timer_flag = 1;
}
onClipEvent (enterFrame) {
if (timer_flag == 1) {
if (roll_flag == 1) {
b = getTimer() - init_timer;
if (b > my_tick) {
haku_cnt = haku_cnt + 1;
_root.play_chaos(my_num, rnd_snd_num);
init_timer = getTimer();
if (haku_cnt > haku) {
roll_flag = Math.floor(Math.random() * 2);
if (roll_flag == 1) {
haku = Math.floor(Math.random() * haku_max) + 1;
haku_cnt = 0;
}
my_tick = tick_max;
rnd_snd_num = Math.floor(Math.random() * 8) + 1;
init_timer = getTimer();
}
_root.show_chaos(my_num, 1);
}
} else {
b = getTimer() - init_timer;
if (b > my_tick) {
_root.play_chaos(my_num, rnd_snd_num);
roll_flag = Math.floor(Math.random() * 2);
if (roll_flag == 1) {
haku = Math.floor(Math.random() * haku_max) + 1;
haku_cnt = 0;
}
my_tick = tick_max;
rnd_snd_num = Math.floor(Math.random() * 8) + 1;
init_timer = getTimer();
_root.show_chaos(my_num, 0);
}
}
}
}
Instance of Symbol 81 MovieClip "chaos_3" in Frame 35
onClipEvent (load) {
my_num = 3;
tick_max = 25;
haku_max = 8;
this._alpha = 0;
roll_flag = Math.floor(Math.random() * 2);
if (roll_flag == 1) {
haku = Math.floor(Math.random() * haku_max) + 1;
haku_cnt = 0;
}
my_tick = tick_max;
rnd_snd_num = Math.floor(Math.random() * 8) + 1;
init_timer = getTimer();
timer_flag = 1;
}
onClipEvent (enterFrame) {
if (timer_flag == 1) {
if (roll_flag == 1) {
b = getTimer() - init_timer;
if (b > my_tick) {
haku_cnt = haku_cnt + 1;
_root.play_chaos(my_num, rnd_snd_num);
init_timer = getTimer();
if (haku_cnt > haku) {
roll_flag = Math.floor(Math.random() * 2);
if (roll_flag == 1) {
haku = Math.floor(Math.random() * haku_max) + 1;
haku_cnt = 0;
}
my_tick = tick_max;
rnd_snd_num = Math.floor(Math.random() * 8) + 1;
init_timer = getTimer();
}
_root.show_chaos(my_num, 1);
}
} else {
b = getTimer() - init_timer;
if (b > my_tick) {
_root.play_chaos(my_num, rnd_snd_num);
roll_flag = Math.floor(Math.random() * 2);
if (roll_flag == 1) {
haku = Math.floor(Math.random() * haku_max) + 1;
haku_cnt = 0;
}
my_tick = tick_max;
rnd_snd_num = Math.floor(Math.random() * 8) + 1;
init_timer = getTimer();
_root.show_chaos(my_num, 0);
}
}
}
}
Frame 36
time_counter.gotoAndPlay("auto_start");
scratch_clip.loader.gotoAndStop("all_loc");
if (_root.isLocal == false) {
getURL ("JavaScript:hide_gmap();");
}
this.stop();
Frame 47
ending_se = new Sound();
ending_se.attachSound("ending_symbal.aif");
scratch_clip.loader.gotoAndStop("iroha");
this.play();
Frame 66
time_counter.ending_roll_se.stop();
ending_se.start();
Frame 67
wait_cnt = 0;
wait_frame = 31;
this.play();
Frame 69
wait_cnt = wait_cnt + 1;
if (wait_cnt > wait_frame) {
this.play();
} else {
this.gotoAndPlay(this._currentframe - 1);
}
Frame 70
if (isLocal == false) {
getURL ("JavaScript:VS_sLyr('youtube_content');");
}
this.stop();
Symbol 35 MovieClip Frame 1
this.stop();
Symbol 35 MovieClip Frame 2
this.play();
Symbol 35 MovieClip Frame 23
this.stop();
Symbol 35 MovieClip Frame 24
this.play();
Symbol 35 MovieClip Frame 44
this.stop();
Symbol 35 MovieClip Frame 45
this.play();
Symbol 35 MovieClip Frame 107
this.stop();
Symbol 37 MovieClip Frame 1
this.stop();
Symbol 37 MovieClip Frame 2
this.play();
Symbol 37 MovieClip Frame 4
this.gotoAndStop(1);
Symbol 38 MovieClip Frame 1
function shake(val) {
ball_clip = eval ("ball_" + val);
ball_clip.gotoAndPlay(2);
}
function shrink() {
i = 1;
while (i <= 16) {
ball_clip = eval ("ball_" + i);
ball_clip.gotoAndPlay("shrink");
i++;
}
}
this.stop();
Instance of Symbol 37 MovieClip "click_clip" in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
}
Symbol 50 MovieClip Frame 1
this.stop();
Symbol 51 MovieClip Frame 1
function go_frame(val) {
i = 1;
while (i <= 3) {
txt_clip = eval ("txt_" + i);
txt_clip.gotoAndStop(val);
i++;
}
}
this.stop();
Symbol 52 MovieClip Frame 11
all_txt.gotoAndStop(1);
all_txt.go_frame(1);
Symbol 52 MovieClip Frame 22
all_txt.go_frame(2);
Symbol 52 MovieClip Frame 30
all_txt.go_frame(3);
Symbol 52 MovieClip Frame 39
all_txt.go_frame(4);
Symbol 52 MovieClip Frame 55
all_txt.go_frame(5);
Symbol 52 MovieClip Frame 64
all_txt.go_frame(6);
Symbol 52 MovieClip Frame 149
all_txt.gotoAndStop(2);
all_txt.go_frame(7);
Symbol 52 MovieClip Frame 160
all_txt.go_frame(8);
Symbol 52 MovieClip Frame 182
all_txt.go_frame(9);
Symbol 52 MovieClip Frame 358
all_txt.gotoAndStop(3);
all_txt.go_frame(10);
Symbol 52 MovieClip Frame 398
_parent.gotoAndStop("init");
this.stop();
Symbol 56 Button
on (release) {
_root.ball_1.click_clip._visible = 0;
bpm_1.click_flag = 1;
haku_list = [1, 2, 3, 4, 6, 8, 12, 16];
i = 0;
while (i <= 7) {
if (hyoushi_1 == haku_list[i]) {
if (i == 7) {
hyoushi_1 = 1;
_root.ball_1.gotoAndStop(1);
_root.change_sound(1);
} else {
hyoushi_1 = haku_list[i + 1];
_root.ball_1.gotoAndStop(i + 2);
}
break;
}
i++;
}
bpm_1.haku = hyoushi_1;
bpm_1.haku_cnt = 1;
bpm_1.my_tick = Math.floor(_root.bpm_duration / bpm_1.haku);
bpm_1.timer_flag = 0;
if (_root.time_counter.counter_flag == 0) {
_root.time_counter.gotoAndPlay("interact");
}
}
Symbol 57 Button
on (release) {
if (bpm_2.click_flag == 0) {
_root.ball_2.click_clip._visible = 0;
bpm_2.timer_flag = 0;
bpm_2.click_flag = 1;
} else {
haku_list = [1, 2, 3, 4, 6, 8, 12, 16];
i = 0;
while (i <= 7) {
if (hyoushi_2 == haku_list[i]) {
if (i == 7) {
hyoushi_2 = 1;
_root.ball_2.gotoAndStop(1);
_root.change_sound(2);
} else {
hyoushi_2 = haku_list[i + 1];
_root.ball_2.gotoAndStop(i + 2);
}
break;
}
i++;
}
bpm_2.haku = hyoushi_2;
bpm_2.haku_cnt = 1;
bpm_2.my_tick = Math.floor(_root.bpm_duration / bpm_2.haku);
bpm_2.timer_flag = 0;
}
if (_root.time_counter.counter_flag == 0) {
_root.time_counter.gotoAndPlay("interact");
}
}
Symbol 58 Button
on (release) {
if (bpm_3.click_flag == 0) {
_root.ball_3.click_clip._visible = 0;
bpm_3.timer_flag = 0;
bpm_3.click_flag = 1;
} else {
haku_list = [1, 2, 3, 4, 6, 8, 12, 16];
i = 0;
while (i <= 7) {
if (hyoushi_3 == haku_list[i]) {
if (i == 7) {
hyoushi_3 = 1;
_root.ball_3.gotoAndStop(1);
_root.change_sound(3);
} else {
hyoushi_3 = haku_list[i + 1];
_root.ball_3.gotoAndStop(i + 2);
}
break;
}
i++;
}
bpm_3.haku = hyoushi_3;
bpm_3.haku_cnt = 1;
bpm_3.my_tick = Math.floor(_root.bpm_duration / bpm_3.haku);
bpm_3.timer_flag = 0;
}
if (_root.time_counter.counter_flag == 0) {
_root.time_counter.gotoAndPlay("interact");
}
}
Symbol 61 Button
on (release) {
change_sound(1);
}
Symbol 65 Button
on (release) {
change_sound(2);
}
Symbol 67 Button
on (release) {
change_sound(3);
}
Symbol 72 MovieClip Frame 1
this.stop();
Instance of Symbol 70 MovieClip "aka" in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
_parent.val = 120;
this._x = 120;
}
on (press) {
this.startDrag(0, 30, 0, 240, 0);
_parent.gotoAndPlay("drag");
}
on (release, releaseOutside) {
this.stopDrag();
_parent.val = Math.floor(Math.floor(this._x) / 1);
_root.set_bpm(_parent.val);
_parent.gotoAndStop(1);
}
Symbol 72 MovieClip Frame 2
this.play();
Symbol 72 MovieClip Frame 4
val = Math.floor(Math.floor(aka._x) / 1);
_root.set_bpm(val);
this.gotoAndPlay(this._currentframe - 1);
Symbol 75 Button
on (release) {
_root.set_zero();
}
Symbol 79 MovieClip Frame 1
ending_roll_se = new Sound(this);
ending_roll_se.attachSound("ending_roll.aif");
counter_flag = 0;
this.stop();
Symbol 79 MovieClip Frame 2
counter_flag = 1;
this.stop();
Instance of Symbol 78 MovieClip in Symbol 79 MovieClip Frame 2
onClipEvent (load) {
wait_sec = 60000;
time_0 = getTimer();
count_flag = 1;
}
onClipEvent (enterFrame) {
if (count_flag == 1) {
passing = getTimer() - time_0;
if (passing > wait_sec) {
_root.silence_flag = 1;
_root.btn_1.enabled = 0;
_root.btn_2.enabled = 0;
_root.btn_3.enabled = 0;
count_flag = 0;
}
}
}
Symbol 79 MovieClip Frame 4
Symbol 79 MovieClip Frame 13
this.stop();
Instance of Symbol 78 MovieClip in Symbol 79 MovieClip Frame 13
onClipEvent (load) {
wait_sec = 2000;
time_0 = getTimer();
count_flag = 1;
}
onClipEvent (enterFrame) {
if (count_flag == 1) {
passing = getTimer() - time_0;
if (passing > wait_sec) {
_parent.play();
count_flag = 0;
}
}
}
Symbol 79 MovieClip Frame 15
Symbol 79 MovieClip Frame 16
_root.expand_ball();
Symbol 79 MovieClip Frame 78
_parent.gotoAndStop("auto_start");
this.stop();
Symbol 79 MovieClip Frame 90
this.stop();
Instance of Symbol 78 MovieClip in Symbol 79 MovieClip Frame 90
onClipEvent (load) {
wait_sec = 4000;
time_0 = getTimer();
count_flag = 1;
}
onClipEvent (enterFrame) {
if (count_flag == 1) {
passing = getTimer() - time_0;
if (passing > wait_sec) {
_parent.play();
count_flag = 0;
}
}
}
Symbol 79 MovieClip Frame 92
Symbol 79 MovieClip Frame 93
_root.snd_1.stop();
_root.snd_2.stop();
_root.snd_3.stop();
_root.gotoAndPlay("ending");
a = 6;
se_vol = Math.floor((0.2 * a) * a);
ending_roll_se.setVolume(se_vol);
ending_roll_se.start(0, 200);
this.play();
Symbol 79 MovieClip Frame 95
a = a + 1;
se_vol = Math.floor((0.2 * a) * a);
ending_roll_se.setVolume(se_vol);
if (se_vol > 100) {
ending_roll_se.setVolume(100);
this.stop();
} else {
this.gotoAndPlay(this._currentframe - 1);
}