Combined Code
movieClip 2 cursor_p02 {
frame 1 {
this.onEnterFrame = function () {
vy += 1;
this._x += vx;
this._y += vy;
};
}
frame 15 {
this.removeMovieClip();
}
}
movieClip 15 {
}
movieClip 17 {
}
movieClip 32 {
frame 15 {
stop();
}
}
button 33 {
on (release) {
_parent.play();
}
}
movieClip 34 {
frame 1 {
byteTotal = _root.getBytesTotal();
byteLoaded = _root.getBytesLoaded();
percentage = Math.floor((byteLoaded / byteTotal) * 1000) * 0.1;
stop();
_parent.stop();
this.onEnterFrame = function () {
byteLoaded = _root.getBytesLoaded();
percentage = Math.floor((byteLoaded / byteTotal) * 1000) * 0.1;
if (byteLoaded == byteTotal) {
this.onEnterFrame = function () {};
this.gotoAndPlay('start');
}
};
}
instance of movieClip 17 {
onClipEvent (enterFrame) {
this._yscale = _parent.percentage;
}
}
frame 34 {
stop();
}
}
movieClip 35 {
}
movieClip 36 {
frame 1 {
}
instance of movieClip 35 {
onClipEvent (load) {
x_array = new Array();
y_array = new Array();
spark_layer = 500;
Mouse.hide();
}
onClipEvent (mouseMove) {
this._x = _parent._xmouse;
this._y = _parent._ymouse;
_parent.thunder.clear();
_parent.thunder = _parent.createEmptyMovieClip('thunder', 300);
_parent.thunder._x = 0;
_parent.thunder._y = 0;
_parent.thunder.moveTo(_parent._xmouse, _parent._ymouse);
i = 0;
while (i < x_array.length) {
_parent.thunder.lineStyle(0.5, 16777215, 100 - 2 * i);
_parent.thunder.lineTo(x_array[x_array.length - 1 - i], y_array[y_array.length - 1 - i]);
++i;
}
if (x_array.length > 0) {
dx = _parent._xmouse - x_array[x_array.length - 1];
dy = _parent._ymouse - y_array[y_array.length - 1];
} else {
dx = 0;
dy = 0;
}
dist = Math.sqrt(dx * dx + dy * dy);
x_array.push(_parent._xmouse + Math.random() * dist - dist / 2);
y_array.push(_parent._ymouse + Math.random() * dist - dist / 2);
if (x_array.length > 50) {
x_array.splice(0, 1);
y_array.splice(0, 1);
}
if (Math.random() < 0.1) {
_parent.attachMovie('cursor_p02', 'spark' + spark_layer, spark_layer);
_parent['spark' + spark_layer]._x = this._x;
_parent['spark' + spark_layer]._y = this._y;
_parent['spark' + spark_layer].vx = Math.random() * dist - dist / 2;
_parent['spark' + spark_layer].vy = Math.random() * dist - dist / 2;
++spark_layer;
if (spark_layer > 1000) {
spark_layer = 500;
}
}
}
onClipEvent (enterFrame) {
_parent.thunder.clear();
_parent.thunder = _parent.createEmptyMovieClip('thunder', 300);
_parent.thunder._x = 0;
_parent.thunder._y = 0;
_parent.thunder.moveTo(_parent._xmouse, _parent._ymouse);
i = 0;
while (i < x_array.length) {
_parent.thunder.lineStyle(0.5, 16777215, 100 - 2 * i);
_parent.thunder.lineTo(x_array[x_array.length - 1 - i], y_array[y_array.length - 1 - i]);
++i;
}
if (x_array.length > 0) {
dx = _parent._xmouse - x_array[x_array.length - 1];
dy = _parent._ymouse - y_array[y_array.length - 1];
} else {
dx = 0;
dy = 0;
}
dist = Math.sqrt(dx * dx + dy * dy);
x_array.push(_parent._xmouse + Math.random() * dist - dist / 2);
y_array.push(_parent._ymouse + Math.random() * dist - dist / 2);
if (x_array.length > 50) {
x_array.splice(0, 1);
y_array.splice(0, 1);
}
}
onClipEvent (unload) {
Mouse.show();
}
}
}
button 1377 {
on (release) {
getURL('http://clairvoyance.hp.infoseek.co.jp/', '_blank');
}
}
button 1378 {
on (release) {
getURL('http://www107.sakura.ne.jp/~onoken/', '_blank');
}
}
movieClip 1380 {
}
frame 6141 {
stop();
}
button 1384 {
on (release) {
gotoAndPlay('animationStart');
}
}