Instance of Symbol 22 MovieClip in Frame 1
onClipEvent (load) {
MAX_SUICA = 200;
suica = new Array(MAX_SUICA);
i = 0;
while (i < MAX_SUICA) {
suica[i] = 0;
i++;
}
suicaW = 100;
suicaH = 100;
ct = 0;
esc_ct = 0;
}
onClipEvent (enterFrame) {
ct++;
if (ct > 0) {
ct = 0;
i = 0;
while (i < MAX_SUICA) {
if (suica[i] == 0) {
suica[i] = 1;
do {
pos = Math.floor(Math.random() * 1399) + 1;
} while (this.getInstanceAtDepth(pos) != undefined);
attachMovie("suica", "suica" + i, pos);
var dst = eval ("suica" + i);
dst.stop();
p = Math.random();
if (p < 0.005) {
p = 9;
} else if (p < 0.02) {
p = 3;
} else {
p = 1;
}
dst._width = suicaW * p;
dst._height = suicaH * p;
if (pos <= 800) {
dst._x = (800 * pos) / 700;
dst._y = -dst._height;
} else {
dst._x = 800;
dst._y = (((pos / 700) * 800) - 800) - dst._height;
}
dst._y = dst._y + ((p - 1) * 32);
dst.speed = Math.random() * (Math.floor(p / 3) + 1);
break;
}
i++;
}
}
i = 0;
while (i < MAX_SUICA) {
if (suica[i] != 0) {
var dst = eval ("suica" + i);
dst.nextFrame();
if (suica[i] == 1) {
dst._x = dst._x - ((16 * dst.speed) + 4);
dst._y = dst._y + ((8 * dst.speed) + 2);
if (dst._currentframe > 4) {
dst.gotoAndStop(1);
}
if (Math.random() < 0.01) {
dst.gotoAndStop(5);
suica[i] = 2;
}
} else if (suica[i] == 2) {
if (dst._currentframe == 25) {
dst.gotoAndStop(1);
suica[i] = 1;
}
}
if ((dst._x < (-dst._width)) || (dst._y > (600 + (dst._height * 2)))) {
suica[i] = 0;
dst.removeMovieClip();
esc_ct = esc_ct + 1;
iti = esc_ct % 10000;
man = Math.floor(esc_ct / 10000) % 10000;
oku = Math.floor(esc_ct / 100000000);
_root.count = "";
if (iti > 0) {
_root.count = iti;
}
if (man > 0) {
_root.count = (man + "\u4E07") + _root.count;
}
if (oku > 0) {
_root.count = (oku + "\u5104") + _root.count;
}
_root.count = _root.count + "\u9B3C\u591C\u884C";
}
}
i++;
}
}