Frame 1
stop();
if (_root.top1 == undefined) {
_root.top1 = 10000;
_root.top2 = 6000;
_root.top3 = 3000;
_root.effect = true;
}
if (_root.effect) {
_root.eff.gotoAndStop(1);
} else {
_root.eff.gotoAndStop(2);
}
Instance of Symbol 20 MovieClip "eff" in Frame 1
on (release) {
if (_root.effect) {
_root.effect = false;
_root.eff.gotoAndStop(2);
} else {
_root.effect = true;
_root.eff.gotoAndStop(1);
}
}
on (keyPress "<Space>") {
_root.hantei = !_root.hantei;
}
Frame 2
_root.lastshot = 0;
_root.total = 0;
_root.totalb = 0;
_root.totals = 0;
_root.rankin._y = 500;
_global.lineTest = function (x1, y1, x2, y2, tar, range) {
var x1;
var y1;
var x2;
var y2;
var range;
x1 = x1 - tar._x;
x2 = x2 - tar._x;
y1 = y1 - tar._y;
y2 = y2 - tar._y;
ltes = function () {
if ((x1 - x2) != 0) {
m = (y1 - y2) / (x1 - x2);
n = y1 - (m * x1);
kyori = Math.sqrt((n * n) / (1 + (m * m)));
if (kyori < range) {
kekka = true;
}
} else if ((Math.max(x1, x2) < range) && (Math.min(x1, x2) > (-range))) {
kekka = true;
}
};
kekka = false;
if (((y1 * y2) > 0) && ((x1 * x2) < 0)) {
if (Math.min(Math.abs(y1), Math.abs(y2)) < range) {
ltes();
}
} else if (((x1 * x2) > 0) && ((y1 * y2) < 0)) {
if (Math.min(Math.abs(x1), Math.abs(x2)) < range) {
ltes();
}
} else if (!(((x1 * x2) > 0) && ((y1 * y2) > 0))) {
ltes();
}
if (Math.min(Math.sqrt((x1 * x1) + (y1 * y1)), Math.sqrt((x2 * x2) + (y2 * y2))) < range) {
kekka = true;
}
return(kekka);
};
Instance of Symbol 47 MovieClip "ballba" in Frame 2
onClipEvent (load) {
camera = 15;
scale = 100;
_xscale = scale;
_yscale = scale;
_root.zimen._yscale = scale;
ikisugi = 10000;
old = new Date();
starttime = old.getTime();
if (_root.effect) {
i = 0;
while (i < 25) {
this.hayasi.attachMovie("ki", "ki" + i, i);
this.hayasi["ki" + i]._x = 500 * i;
this.hayasi["ki" + i]._y = 270;
i++;
}
}
}
onClipEvent (enterFrame) {
if ((camera++) > 20) {
scale = (((100 - (ball.vector * 3)) - scale) / 50) + scale;
if (scale < 1) {
scale = 1;
}
_xscale = scale;
_yscale = scale;
_x = (((-ball._x) * (scale / 100)) + 250);
if ((ball.vector < 1) && (ball._y > 334)) {
idouy = ((((-ball._y) - (_y * (100 / scale))) + (340 * (100 / scale))) / 4) / (100 / scale);
} else {
idouy = ((((-ball._y) - (_y * (100 / scale))) + (200 * (100 / scale))) / 16) / (100 / scale);
}
_y = (_y + idouy);
_root.zimen._y = _y - (340 - (340 * (scale / 100)));
if ((ball._x > ikisugi) && (ball.vector < 3)) {
ball._x = ball._x - ikisugi;
ki._x = ki._x - ikisugi;
_x = (_x + (ikisugi * (scale / 100)));
center._x = center._x - ikisugi;
club._x = club._x - ikisugi;
}
}
if ((ball.vector < 3) && (ball._y > 334)) {
center._x = ((ball._x - center._x) / 10) + center._x;
}
now = new Date();
nokori = (10000 - (now.getTime() - starttime)) / 1000;
if (nokori <= 0) {
_root.total = Math.floor(_root.total);
if (_root.total > _root.top1) {
_root.top3 = _root.top2;
_root.top2 = _root.top1;
_root.top1 = _root.total;
_root.rankin._y = 307;
} else if (_root.total > _root.top2) {
_root.top3 = _root.top2;
_root.top2 = _root.total;
_root.rankin._y = 339;
} else if (_root.total > _root.top3) {
_root.top3 = _root.total;
_root.rankin._y = 371;
}
_root.gotoAndStop(3);
}
}
Instance of Symbol 50 MovieClip "zimen" in Frame 2
onClipEvent (load) {
if (!_root.effect) {
this.gotoAndStop(2);
_parent.haikei.gotoAndStop(2);
}
}
Instance of Symbol 56 MovieClip in Frame 3
on (release) {
_root.gotoAndStop(1);
}
Symbol 3 MovieClip [sen] Frame 1
this.onEnterFrame = function () {
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 7 MovieClip [happa] Frame 1
addx = Math.random() * 5;
addy = (-Math.random()) * 5;
addr = (Math.random() * 60) - 30;
scale = (Math.random() * 70) + 30;
_xscale = scale;
_yscale = scale;
this.onEnterFrame = function () {
_x = (_x + addx);
_y = (_y + addy);
addy = addy + 0.5;
_rotation = (_rotation + addr);
if (_y > 335) {
this.removeMovieClip();
}
};
Symbol 8 MovieClip [senh] Frame 1
alpha = 50;
this.onEnterFrame = function () {
alpha = alpha - 5;
if (alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 13 Button
on (release) {
getURL ("http://sapporo.cool.ne.jp/f1ash/");
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 25 Button
on (release) {
gotoAndStop (2);
}
Symbol 27 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 14
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 36
_parent.center.gotoAndStop(1);
this.gotoAndStop(1);
Symbol 44 MovieClip Frame 75
_parent.center.gotoAndStop(1);
this.gotoAndStop(1);
Instance of Symbol 41 MovieClip "ball" in Symbol 47 MovieClip Frame 1
onClipEvent (load) {
addx = 0;
addy = 0;
fdep = 0;
}
onClipEvent (enterFrame) {
if (_y > 335) {
_y = 335;
addy = addy * -0.4;
addx = addx * 0.95;
}
addx = addx * 0.98;
addy = addy * 0.98;
vector = Math.sqrt((addx * addx) + (addy * addy));
addy = addy + 0.5;
if (vector > 1) {
if (_root.effect) {
_parent.blur.attachMovie("sen", "sen" + (++fdep), fdep);
_parent.blur["sen" + fdep].lineStyle(5, 16777215, 100);
_parent.blur["sen" + fdep].moveTo(_x + (addx * 0.96), _y + (addy * 0.96));
_parent.blur["sen" + fdep].lineTo(_x, _y);
_parent.blur["sen" + fdep]._alpha = addx * 2;
}
_x = (_x + addx);
_root.lastshot = _root.lastshot + addx;
_root.total = _root.lastshot + _root.totalb;
_root.totals = Math.floor(_root.total);
}
_y = (_y + addy);
}
Instance of Symbol 44 MovieClip "club" in Symbol 47 MovieClip Frame 1
onClipEvent (load) {
oto = new Sound();
sendep = 1;
}
onClipEvent (mouseDown) {
if (80 > Math.sqrt((_parent.center._xmouse * _parent.center._xmouse) + (_parent.center._ymouse * _parent.center._ymouse))) {
_parent.center.gotoAndStop(2);
drag = true;
oldx = undefined;
oldy = undefined;
}
}
onClipEvent (enterFrame) {
if (drag) {
radian = Math.atan2(_parent.center._ymouse, _parent.center._xmouse);
_rotation = ((radian * 180) / Math.PI);
if (80 > Math.sqrt((_parent.center._xmouse * _parent.center._xmouse) + (_parent.center._ymouse * _parent.center._ymouse))) {
xiti = _parent.center._xmouse + _parent.ball._x;
yiti = _parent.center._ymouse + _parent.center._y;
} else {
xiti = (Math.cos(radian) * 80) + _parent.ball._x;
yiti = (Math.sin(radian) * 80) + _parent.center._y;
}
_x = xiti;
if (yiti > 210) {
yiti = 210;
}
_y = yiti;
nowx = (Math.cos(radian) * 135) + _x;
nowy = (Math.sin(radian) * 135) + _y;
if (_root.hantei) {
_parent.hante.attachMovie("senh", "atari" + (++sendep), sendep);
_parent.hante["atari" + sendep].lineStyle(3, 16711680, 100);
_parent.hante["atari" + sendep].moveTo(oldx, oldy);
_parent.hante["atari" + sendep].lineTo(nowx, nowy);
}
if (lineTest(oldx, oldy, nowx, nowy, _parent.ball, 10)) {
if (_root.hantei) {
_parent.hante.attachMovie("senh", "atari" + (++sendep), sendep);
_parent.hante["atari" + sendep].lineStyle(3, 255, 100);
_parent.hante["atari" + sendep].moveTo(oldx, oldy);
_parent.hante["atari" + sendep].lineTo(nowx, nowy);
}
if ((nowy > 341) || (oldy > 341)) {
_parent.ball.addx = (nowx - oldx) / 5;
_parent.ball.addy = (nowx - oldx) / 2.5;
if (_parent.ball.addx > 10) {
this.gotoAndPlay(37);
drag = false;
oto.attachSound("hit");
oto.start();
i = 1000;
while (i < 1005) {
_parent.hayasi.attachMovie("happa", "ha" + i, i);
_parent.hayasi["ha" + i]._x = _parent.ball._x + (Math.random() * 10);
_parent.hayasi["ha" + i]._y = 334;
i++;
}
}
} else {
_parent.ball.addx = (nowx - oldx) / 2;
_parent.ball.addy = (nowx - oldx) / 2;
if (_parent.ball.addx > 10) {
this.play();
drag = false;
oto.attachSound("swing");
oto.start();
}
}
_parent.camera = 0;
_root.totalb = _root.totalb + _root.lastshot;
_root.lastshot = 0;
}
oldx = nowx;
oldy = nowy;
}
}
onClipEvent (mouseUp) {
if (_currentframe == 1) {
_parent.center.gotoAndStop(1);
}
drag = false;
}
Instance of Symbol 46 MovieClip in Symbol 47 MovieClip Frame 1
onClipEvent (load) {
_x = -7000;
}
Symbol 50 MovieClip Frame 1
stop();