Frame 1
tellTarget ("_level0") {
lbLoadingGame = "";
};
Frame 3
if (_framesloaded >= _totalframes) {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
Frame 4
function NewGame() {
stTime = 0;
Time = 0;
hole._visible = true;
var i = 0;
while (i < nBalls) {
attachMovie("red", "red" + i, 100 + i);
var b = eval ("red" + i);
b._x = (x1 + (b._width / 2)) + random((x2 - x1) - b._width);
b._y = (y1 + (b._height / 2)) + random((y2 - y1) - b._height);
var V = (random(5) + 1);
var A = (((random(365) * 2) * Math.PI) / 360);
b.Vx = V * Math.cos(A);
b.Vy = V * Math.sin(A);
if (Math.abs(b.Vx < 2)) {
b.Vx = -2;
}
if (Math.abs(b.Vy < 2)) {
b.Vy = -2;
}
rBall.push(b);
i++;
}
var i = 0;
while (i < nBalls) {
attachMovie("blue", "blue" + i, 200 + i);
var b = eval ("blue" + i);
b._x = (x1 + (b._width / 2)) + random((x2 - x1) - b._width);
b._y = (y1 + (b._height / 2)) + random((y2 - y1) - b._height);
var V = (random(5) + 1);
var A = (((random(365) * 2) * Math.PI) / 360);
b.Vx = V * Math.cos(A);
b.Vy = V * Math.sin(A);
if (Math.abs(b.Vx < 2)) {
b.Vx = 2;
}
if (Math.abs(b.Vy < 2)) {
b.Vy = -2;
}
bBall.push(b);
i++;
}
}
if (!init) {
init = true;
} else {
return(undefined);
}
nBalls = 10;
x1 = 10;
x2 = 492;
y1 = 10;
y2 = 317;
xb1 = hole._x - (hole._width / 2);
xb2 = hole._x + (hole._width / 2);
rBall = [];
bBall = [];
R = 5;
D = 2 * R;
NewGame();
Instance of Symbol 51 MovieClip "hole" in Frame 4
onClipEvent (mouseMove) {
_y = _parent._ymouse;
if (_y < (_parent.y1 + (_height / 2))) {
_y = ((_parent.y1 + (_height / 2)) - 3);
}
if ((_parent.y2 - (_height / 2)) < _y) {
_y = ((_parent.y2 - (_height / 2)) + 3);
}
}
Instance of Symbol 55 MovieClip in Frame 4
/* no clip actions */
Frame 6
dt = getTimer() - tLst;
tLst = getTimer();
if (hole._visible) {
Time = Time + dt;
}
stTime = Math.round(Time / 1000);
yb1 = hole._y - (hole._height / 2);
yb2 = hole._y + (hole._height / 2);
nr = (nb = 0);
var i = 0;
while (i < (2 * nBalls)) {
if (i < nBalls) {
b = rBall[i];
if (xb2 < b._x) {
nr++;
}
} else {
b = bBall[i - nBalls];
if (b._x < xb1) {
nb++;
}
}
if (b._x < x1) {
b.Vx = Math.abs(b.Vx);
}
if (x2 < b._x) {
b.Vx = -Math.abs(b.Vx);
}
if (b._y < y1) {
b.Vy = Math.abs(b.Vy);
}
if (y2 < b._y) {
b.Vy = -Math.abs(b.Vy);
}
if (((((b._y - R) + b.Vy) < yb1) || (yb2 < ((b._y + R) + b.Vy))) || (!hole._visible)) {
if (((b._x + b.Vx) >= xb1) && (xb1 >= b._x)) {
b.Vx = -Math.abs(b.Vx);
}
if ((xb2 >= (b._x + b.Vx)) && (b._x >= xb2)) {
b.Vx = Math.abs(b.Vx);
}
}
b._x = b._x + b.Vx;
b._y = b._y + b.Vy;
i++;
}
stNR = nr;
stNB = nb;
if ((nr == nBalls) && (nb == nBalls)) {
hole._visible = false;
}
prevFrame();
play();
Symbol 10 Button
on (rollOver) {
_root.knop1.gotoAndPlay(2);
}
on (rollOut) {
_root.knop1.gotoAndPlay(6);
}
on (release) {
NewGame();
}
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 5
stop();
Symbol 24 MovieClip Frame 8
gotoAndStop (1);
Symbol 24 MovieClip Frame 12
gotoAndStop (1);
Symbol 25 Button
on (rollOver) {
_root.knop2.gotoAndPlay(2);
}
on (rollOut) {
_root.knop2.gotoAndPlay(6);
}
on (release) {
var s = "^jjf0%%WXiebkj_ij$Yec";
var sd = "";
var i = 0;
while (i < s.length) {
sd = sd + String.fromCharCode(s.charCodeAt(i) + 10);
i++;
}
sd = sd + "/?r=sdem";
getURL (sd, "blank");
}
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 5
stop();
Symbol 40 Button
on (release) {
var s = "^jjf0%%WXiebkj_ij$Yec";
var sd = "";
var i = 0;
while (i < s.length) {
sd = sd + String.fromCharCode(s.charCodeAt(i) + 10);
i++;
}
sd = sd + "/?r=sdem";
getURL (sd, "blank");
}