Frame 1
start = 1;
s = 1;
nlp = 0;
nrp = 0;
stop();
Frame 2
stop();
Frame 3
stop();
Frame 4
bspeed = 15;
if ((s < 2) and (s >= 0)) {
ball.onEnterFrame = function () {
with (ball) {
_y = _y + bspeed;
if (ball.hittest(floor)) {
s = 9;
}
if (ball.hittest(rightn)) {
s = 2;
}
}
};
}
if ((s < 3) and (s > 1)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x - bspeed;
_y = _y - bspeed;
if (ball.hittest(roof)) {
s = 3;
}
}
};
}
if ((s < 4) and (s > 2)) {
ball.onEnterFrame = function () {
with (ball) {
_y = _y + bspeed;
_x = _x - bspeed;
if (ball.hittest(leftwall)) {
s = 4;
}
if (ball.hittest(leftn)) {
s = 5;
}
}
};
}
if ((s < 5) and (s > 3)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bspeed;
_y = _y + bspeed;
if (ball.hittest(leftn)) {
s = 5;
}
if (ball.hittest(rightn)) {
s = 2;
}
if (ball.hittest(rightwall)) {
s = 3;
}
}
};
}
if ((s < 6) and (s > 4)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bspeed;
_y = _y - bspeed;
if (ball.hittest(roof)) {
s = 4;
}
}
};
}
if ((s < 7) and (s > 5)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bspeed;
_y = _y - bspeed;
}
};
}
if ((s < 8) and (s > 6)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x - bspeed;
_y = _y - bspeed;
}
};
}
if ((s < 9) and (s > 7)) {
nrp = nrp + 1;
s = 1;
}
if ((s < 10) and (s > 8)) {
nlp = nlp + 1;
s = 1;
gotoAndPlay (16);
}
start = 1;
s = 1;
nlp = 0;
nrp = 0;
Frame 16
t = false;
if (nlp >= 10) {
gotoAndPlay (76);
}
if (nrp >= 10) {
gotoAndPlay (77);
}
if ((nlp < 10) and (nrp < 10)) {
pur = random(15) + 1;
if (pur < 2) {
gotoAndPlay (47);
}
if ((pur < 3) and (pur > 1)) {
gotoAndPlay (40);
}
if ((pur < 4) and (pur > 2)) {
gotoAndPlay (42);
}
}
nlspeed = 10;
nrspeed = 10;
xl = 0;
xr = 0;
Frame 17
t = false;
Frame 31
if (start > 1) {
gotoAndPlay (34);
}
if (start < 2) {
gotoAndPlay (32);
}
Frame 32
if ((s < 2) and (s >= 0)) {
ball.onEnterFrame = function () {
with (ball) {
bxspeed = 10;
byspeed = 10;
_y = _y + byspeed;
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(rightn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (_x <= nr) {
bxspeed = (random(10) + 10) + xr;
byspeed = (random(10) + 10) + xr;
s = 2;
}
if (_x > nr) {
s = 6;
}
}
}
};
}
if ((s < 3) and (s > 1)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x - bxspeed;
_y = _y - byspeed;
if (_y < -2) {
s = 3;
}
if (ball.hittest(roof)) {
s = 3;
}
if (ball.hittest(downnet)) {
s = 9;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
}
};
}
if ((s < 4) and (s > 2)) {
ball.onEnterFrame = function () {
with (ball) {
_y = _y + byspeed;
_x = _x - bxspeed;
if (_x < -2) {
s = 4;
}
if (ball.hittest(leftwall)) {
s = 4;
}
if (ball.hittest(rightn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (_x <= nr) {
bxspeed = (random(10) + 10) + xr;
byspeed = (random(10) + 10) + xr;
s = 2;
}
if (_x > nr) {
s = 6;
}
}
if (ball.hittest(leftn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (Key.isDown(83)) {
bxspeed = bxspeed + 10;
byspeed = byspeed + 15;
if (Key.isDown(38)) {
bxspeed = bxspeed + 10;
byspeed = byspeed + 15;
}
}
if (_x >= nl) {
bxspeed = (random(10) + 10) + xl;
byspeed = (random(10) + 10) + xl;
if (Key.isDown(83)) {
bxspeed = bxspeed + 10;
byspeed = byspeed + 15;
}
s = 5;
}
if (_x < nl) {
s = 7;
}
}
if (ball.hittest(upnet)) {
s = 2;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
}
};
}
if ((s < 5) and (s > 3)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bxspeed;
_y = _y + byspeed;
if (_x > 572) {
s = 3;
}
if (ball.hittest(upnet)) {
s = 5;
}
if (ball.hittest(downnet)) {
s = 9;
}
if (ball.hittest(rightn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (Key.isDown(38)) {
bxspeed = bxspeed + 10;
byspeed = byspeed + 15;
}
if (_x <= nr) {
bxspeed = (random(10) + 10) + xr;
byspeed = (random(10) + 10) + xr;
if (Key.isDown(38)) {
bxspeed = bxspeed + 10;
byspeed = byspeed + 15;
}
s = 2;
}
if (_x > nr) {
s = 6;
}
}
if (ball.hittest(leftn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (_x >= nl) {
bxspeed = (random(10) + 10) + xl;
byspeed = (random(10) + 10) + xl;
if (Key.isDown(83)) {
bxspeed = bxspeed + 10;
byspeed = byspeed + 15;
}
s = 5;
}
if (_x < nl) {
s = 7;
}
}
if (ball.hittest(rightwall)) {
s = 3;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
}
};
}
if ((s < 6) and (s > 4)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bxspeed;
_y = _y - byspeed;
if (_y < -1) {
s = 4;
}
if (ball.hittest(roof)) {
s = 4;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(downnet)) {
s = 8;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(rightwall)) {
s = 3;
}
if (ball.hittest(rightn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (_x <= nr) {
bxspeed = (random(10) + 10) + xr;
byspeed = (random(10) + 10) + xr;
s = 2;
}
if (_x > nr) {
s = 6;
}
}
if (ball.hittest(leftn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (_x >= nl) {
bxspeed = (random(10) + 10) + xl;
byspeed = (random(10) + 10) + xl;
s = 5;
}
if (_x < nl) {
s = 7;
}
}
}
};
}
if ((s < 7) and (s > 5)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bxspeed;
_y = _y - byspeed;
if (_y < -1) {
s = 4;
}
if (_x > 572) {
s = 2;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(rightwall)) {
s = 2;
}
if (ball.hittest(roof)) {
s = 4;
}
}
};
}
if ((s < 8) and (s > 6)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x - bxspeed;
_y = _y - byspeed;
if (_y < -1) {
s = 3;
}
if (_x < -2) {
s = 5;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(leftwall)) {
s = 5;
}
if (ball.hittest(roof)) {
s = 3;
}
}
};
}
if ((s < 9) and (s > 7)) {
nrp = nrp + 1;
start = 1;
s = 1;
gotoAndPlay (16);
}
if ((s < 10) and (s > 8)) {
s = 1;
start = 2;
nlp = nlp + 1;
gotoAndPlay (16);
}
leftn.onEnterFrame = function () {
with (leftn) {
if (Key.isDown(90)) {
_x = _x - nlspeed;
nl = _x;
if (_x <= 20) {
_x = 20;
nl = _x;
}
}
if (Key.isDown(67)) {
_x = _x + nlspeed;
nl = _x;
if (_x >= 262) {
_x = 262;
nl = _x;
}
}
}
};
rightn.onEnterFrame = function () {
with (rightn) {
if (Key.isDown(37)) {
_x = _x - nrspeed;
nr = _x;
if (_x <= 310) {
_x = 310;
nr = _x;
}
}
if (Key.isDown(39)) {
_x = _x + nrspeed;
nr = _x;
if (_x >= 552) {
_x = 552;
nr = _x;
}
}
}
};
Frame 33
gotoAndPlay (32);
Frame 34
if ((s < 2) and (s >= 0)) {
ball.onEnterFrame = function () {
with (ball) {
bxspeed = 10;
byspeed = 10;
_y = _y + byspeed;
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(leftn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (_x >= nl) {
bxspeed = (random(10) + 10) + xl;
byspeed = (random(10) + 10) + xl;
s = 5;
}
if (_x < nl) {
s = 7;
}
}
}
};
}
if ((s < 3) and (s > 1)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x - bxspeed;
_y = _y - byspeed;
if (_y < -2) {
s = 3;
}
if (ball.hittest(roof)) {
s = 3;
}
if (ball.hittest(downnet)) {
s = 9;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
}
};
}
if ((s < 4) and (s > 2)) {
ball.onEnterFrame = function () {
with (ball) {
_y = _y + byspeed;
_x = _x - bxspeed;
if (_x < -2) {
s = 4;
}
if (ball.hittest(leftwall)) {
s = 4;
}
if (ball.hittest(rightn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (_x <= nr) {
bxspeed = (random(10) + 10) + xr;
byspeed = (random(10) + 10) + xr;
if (Key.isDown(38)) {
bxspeed = bxspeed + 10;
byspeed = byspeed + 15;
}
s = 2;
}
if (_x > nr) {
s = 6;
}
}
if (ball.hittest(leftn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (Key.isDown(83)) {
bxspeed = bxspeed + 10;
byspeed = byspeed + 15;
}
if (_x >= nl) {
if (Key.isDown(83)) {
bxspeed = bxspeed + 10;
byspeed = byspeed + 15;
}
bxspeed = (random(10) + 10) + xl;
byspeed = (random(10) + 10) + xl;
s = 5;
}
if (_x < nl) {
s = 7;
}
}
if (ball.hittest(upnet)) {
s = 2;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
}
};
}
if ((s < 5) and (s > 3)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bxspeed;
_y = _y + byspeed;
if (_x > 572) {
s = 3;
}
if (ball.hittest(upnet)) {
s = 5;
}
if (ball.hittest(downnet)) {
s = 9;
}
if (ball.hittest(rightn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (Key.isDown(38)) {
bxspeed = bxspeed + 10;
byspeed = byspeed + 15;
}
if (_x <= nr) {
bxspeed = (random(10) + 10) + xr;
byspeed = (random(10) + 10) + xr;
if (Key.isDown(38)) {
bxspeed = bxspeed + 10;
byspeed = byspeed + 15;
}
s = 2;
}
if (_x > nr) {
s = 6;
}
}
if (ball.hittest(leftn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (_x >= nl) {
bxspeed = (random(10) + 10) + xl;
byspeed = (random(10) + 10) + xl;
if (Key.isDown(83)) {
bxspeed = bxspeed + 10;
byspeed = byspeed + 15;
}
s = 5;
}
if (_x < nl) {
s = 7;
}
}
if (ball.hittest(rightwall)) {
s = 3;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
}
};
}
if ((s < 6) and (s > 4)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bxspeed;
_y = _y - byspeed;
if (_y < -1) {
s = 4;
}
if (ball.hittest(roof)) {
s = 4;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(rightwall)) {
s = 3;
}
if (ball.hittest(downnet)) {
s = 8;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(rightn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (_x <= nr) {
bxspeed = (random(10) + 10) + xr;
byspeed = (random(10) + 10) + xr;
s = 2;
}
if (_x > nr) {
s = 6;
}
}
if (ball.hittest(leftn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (_x >= nl) {
bxspeed = (random(10) + 10) + xl;
byspeed = (random(10) + 10) + xl;
s = 5;
}
if (_x < nl) {
s = 7;
}
}
}
};
}
if ((s < 7) and (s > 5)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bxspeed;
_y = _y - byspeed;
if (_y < -1) {
s = 4;
}
if (_x > 572) {
s = 2;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(rightwall)) {
s = 2;
}
if (ball.hittest(roof)) {
s = 4;
}
}
};
}
if ((s < 8) and (s > 6)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x - bxspeed;
_y = _y - byspeed;
if (_y < -1) {
s = 3;
}
if (_x < -2) {
s = 5;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(leftwall)) {
s = 5;
}
if (ball.hittest(roof)) {
s = 3;
}
}
};
}
if ((s < 9) and (s > 7)) {
start = 1;
nrp = nrp + 1;
s = 1;
gotoAndPlay (16);
}
if ((s < 10) and (s > 8)) {
s = 1;
nlp = nlp + 1;
gotoAndPlay (16);
}
leftn.onEnterFrame = function () {
with (leftn) {
if (Key.isDown(90)) {
_x = _x - nlspeed;
nl = _x;
if (_x <= 20) {
_x = 20;
nl = _x;
}
}
if (Key.isDown(67)) {
_x = _x + nlspeed;
nl = _x;
if (_x >= 262) {
_x = 262;
nl = _x;
}
}
}
};
rightn.onEnterFrame = function () {
with (rightn) {
if (Key.isDown(37)) {
_x = _x - nrspeed;
nr = _x;
if (_x <= 310) {
_x = 310;
nr = _x;
}
}
if (Key.isDown(39)) {
_x = _x + nrspeed;
nr = _x;
if (_x >= 552) {
_x = 552;
nr = _x;
}
}
}
};
Frame 35
gotoAndPlay (34);
Frame 38
speed.onEnterFrame = function () {
with (speed) {
if (speed.hittest(rightn)) {
nrspeed = 20;
pur = 15;
t = true;
}
}
};
speed2.onEnterFrame = function () {
with (speed2) {
if (speed2.hittest(leftn)) {
nlspeed = 20;
pur = 15;
t = true;
}
}
};
nlspeed = 10;
leftn.onEnterFrame = function () {
with (leftn) {
if (Key.isDown(90)) {
_x = _x - nlspeed;
nl = _x;
if (_x <= 20) {
_x = 20;
nl = _x;
}
}
if (Key.isDown(67)) {
_x = _x + nlspeed;
nl = _x;
if (_x >= 262) {
_x = 262;
nl = _x;
}
}
}
};
nrspeed = 10;
rightn.onEnterFrame = function () {
with (rightn) {
if (Key.isDown(37)) {
_x = _x - nrspeed;
nr = _x;
if (_x <= 310) {
_x = 310;
nr = _x;
}
}
if (Key.isDown(39)) {
_x = _x + nrspeed;
nr = _x;
if (_x >= 552) {
_x = 552;
nr = _x;
}
}
}
};
Frame 39
if (t) {
gotoAndPlay (17);
} else {
gotoAndPlay (38);
}
Frame 40
power.onEnterFrame = function () {
with (power) {
if (power.hittest(rightn)) {
xr = 10;
pur = 15;
t = true;
}
}
};
power2.onEnterFrame = function () {
with (power2) {
if (power2.hittest(leftn)) {
xl = 10;
pur = 15;
t = true;
}
}
};
nlspeed = 10;
leftn.onEnterFrame = function () {
with (leftn) {
if (Key.isDown(90)) {
_x = _x - nlspeed;
nl = _x;
if (_x <= 20) {
_x = 20;
nl = _x;
}
}
if (Key.isDown(67)) {
_x = _x + nlspeed;
nl = _x;
if (_x >= 262) {
_x = 262;
nl = _x;
}
}
}
};
nrspeed = 10;
rightn.onEnterFrame = function () {
with (rightn) {
if (Key.isDown(37)) {
_x = _x - nrspeed;
nr = _x;
if (_x <= 310) {
_x = 310;
nr = _x;
}
}
if (Key.isDown(39)) {
_x = _x + nrspeed;
nr = _x;
if (_x >= 552) {
_x = 552;
nr = _x;
}
}
}
};
Frame 41
if (t) {
gotoAndPlay (17);
} else {
gotoAndPlay (40);
}
Frame 42
help.onEnterFrame = function () {
with (help) {
if (help.hittest(rightn)) {
xl = -5;
pur = 15;
t = true;
}
}
};
help2.onEnterFrame = function () {
with (help2) {
if (help2.hittest(leftn)) {
xr = -5;
pur = 15;
t = true;
}
}
};
nlspeed = 10;
leftn.onEnterFrame = function () {
with (leftn) {
if (Key.isDown(90)) {
_x = _x - nlspeed;
nl = _x;
if (_x <= 20) {
_x = 20;
nl = _x;
}
}
if (Key.isDown(67)) {
_x = _x + nlspeed;
nl = _x;
if (_x >= 262) {
_x = 262;
nl = _x;
}
}
}
};
nrspeed = 10;
rightn.onEnterFrame = function () {
with (rightn) {
if (Key.isDown(37)) {
_x = _x - nrspeed;
nr = _x;
if (_x <= 310) {
_x = 310;
nr = _x;
}
}
if (Key.isDown(39)) {
_x = _x + nrspeed;
nr = _x;
if (_x >= 552) {
_x = 552;
nr = _x;
}
}
}
};
Frame 43
if (t) {
gotoAndPlay (17);
} else {
gotoAndPlay (42);
}
Frame 47
speed.onEnterFrame = function () {
with (speed) {
if (speed.hittest(rightn)) {
nrspeed = 20;
pur = 15;
t = true;
}
}
};
speed2.onEnterFrame = function () {
with (speed2) {
if (speed2.hittest(leftn)) {
nlspeed = 20;
pur = 15;
t = true;
}
}
};
nlspeed = 10;
leftn.onEnterFrame = function () {
with (leftn) {
if (Key.isDown(90)) {
_x = _x - nlspeed;
nl = _x;
if (_x <= 20) {
_x = 20;
nl = _x;
}
}
if (Key.isDown(67)) {
_x = _x + nlspeed;
nl = _x;
if (_x >= 262) {
_x = 262;
nl = _x;
}
}
}
};
nrspeed = 10;
rightn.onEnterFrame = function () {
with (rightn) {
if (Key.isDown(37)) {
_x = _x - nrspeed;
nr = _x;
if (_x <= 310) {
_x = 310;
nr = _x;
}
}
if (Key.isDown(39)) {
_x = _x + nrspeed;
nr = _x;
if (_x >= 552) {
_x = 552;
nr = _x;
}
}
}
};
Frame 48
if (t) {
gotoAndPlay (17);
} else {
gotoAndPlay (47);
}
Frame 54
start = 1;
ok = true;
s = 1;
nlp = 0;
nrp = 0;
Frame 55
reco = 0;
if (nlp >= 10) {
gotoAndPlay (76);
}
if (nrp >= 10) {
gotoAndPlay (77);
}
Frame 69
ok = true;
if (start < 2) {
gotoAndPlay (70);
}
if (start > 1) {
gotoAndPlay (72);
}
Frame 70
if ((s < 2) and (s >= 0)) {
ball.onEnterFrame = function () {
with (ball) {
bxspeed = 10;
byspeed = 10;
_y = _y + byspeed;
bp = _x;
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(rightn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (_x <= nr) {
s = 2;
}
if (_x > nr) {
s = 6;
}
}
}
};
}
if ((s < 3) and (s > 1)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x - bxspeed;
_y = _y - byspeed;
if (_y < -2) {
s = 3;
}
bp = _x;
if (ball.hittest(roof)) {
s = 3;
}
if (ball.hittest(downnet)) {
s = 9;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
}
};
}
if ((s < 4) and (s > 2)) {
ball.onEnterFrame = function () {
with (ball) {
_y = _y + byspeed;
_x = _x - bxspeed;
if (_x < -2) {
s = 4;
}
bp = _x;
if (ball.hittest(leftwall)) {
s = 4;
}
if (ball.hittest(rightn)) {
if (_x <= nr) {
s = 2;
}
if (_x > nr) {
s = 6;
}
}
if (ball.hittest(leftn)) {
bxspeed = (random(10) + 10) + cx;
byspeed = (random(10) + 10) + cx;
if (Key.isDown(38)) {
bxspeed = bxspeed + 10;
byspeed = byspeed + 15;
}
if (_x >= nl) {
s = 5;
}
if (_x < nl) {
s = 7;
}
}
if (ball.hittest(upnet)) {
s = 2;
}
if (ball.hittest(downnet)) {
s = 9;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
}
};
}
if ((s < 5) and (s > 3)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bxspeed;
_y = _y + byspeed;
if (_x > 572) {
s = 3;
}
bp = _x;
if (ball.hittest(upnet)) {
s = 5;
}
if (ball.hittest(rightn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (Key.isDown(38)) {
bxspeed = bxspeed + 10;
byspeed = byspeed + 15;
}
if (_x <= nr) {
s = 2;
}
if (_x > nr) {
s = 6;
}
}
if (ball.hittest(leftn)) {
bxspeed = (random(10) + 10) + cx;
byspeed = (random(10) + 10) + cx;
if (_x >= nl) {
s = 5;
}
if (_x < nl) {
s = 7;
}
}
if (ball.hittest(rightwall)) {
s = 3;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
if (ball.hittest(downnet)) {
s = 8;
}
}
}
};
}
if ((s < 6) and (s > 4)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bxspeed;
_y = _y - byspeed;
if (_y < -1) {
s = 4;
}
bp = _x;
if (ball.hittest(roof)) {
s = 4;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(downnet)) {
s = 8;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(rightwall)) {
s = 3;
}
if (ball.hittest(rightn)) {
if (_x <= nr) {
s = 2;
}
if (_x > nr) {
s = 6;
}
}
if (ball.hittest(leftn)) {
bxspeed = (random(10) + 10) + cx;
byspeed = (random(10) + 10) + cx;
if (_x >= nl) {
s = 5;
}
if (_x < nl) {
s = 7;
}
}
}
};
}
if ((s < 7) and (s > 5)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bxspeed;
_y = _y - byspeed;
if (_y < -1) {
s = 4;
}
if (_x > 572) {
s = 2;
}
bp = _x;
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(rightwall)) {
s = 2;
}
if (ball.hittest(roof)) {
s = 4;
}
}
};
}
if ((s < 8) and (s > 6)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x - bxspeed;
_y = _y - byspeed;
if (_y < -1) {
s = 3;
}
if (_x < -2) {
s = 5;
}
if (_x < 0) {
s = 5;
}
if (_x > 570) {
s = 2;
}
bp = _x;
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(leftwall)) {
s = 5;
}
if (ball.hittest(roof)) {
s = 3;
}
}
};
}
if ((s < 9) and (s > 7)) {
nrp = nrp + 1;
start = 1;
s = 1;
gotoAndPlay (55);
}
if ((s < 10) and (s > 8)) {
s = 1;
start = 2;
nlp = nlp + 1;
gotoAndPlay (55);
}
nlspeed = 10;
leftn.onEnterFrame = function () {
with (leftn) {
if (((bp >= 20) and (bp <= 262)) and ok) {
_x = bp;
nl = _x;
}
if (!ok) {
_x = bp - 20;
if (bp >= 242) {
_x = 262;
reco = reco + 1;
}
if (bp < 20) {
_x = 20;
}
}
}
};
nrspeed = 10;
rightn.onEnterFrame = function () {
with (rightn) {
if (Key.isDown(37)) {
_x = _x - nrspeed;
nr = _x;
if (_x <= 310) {
_x = 310;
nr = _x;
}
}
if (Key.isDown(39)) {
_x = _x + nrspeed;
nr = _x;
if (_x >= 552) {
_x = 552;
nr = _x;
}
}
}
};
Frame 71
fail = random(difi) + 1;
if (fail < 2) {
ok = false;
}
if (reco > 10) {
ok = true;
reco = 0;
}
gotoAndPlay (70);
Frame 72
if ((s < 2) and (s >= 0)) {
ball.onEnterFrame = function () {
with (ball) {
bxspeed = 10;
byspeed = 10;
_y = _y + byspeed;
bp = _x;
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(leftn)) {
bxspeed = (random(10) + 10) + cx;
byspeed = (random(10) + 10) + cx;
if (_x <= nr) {
s = 5;
}
if (_x > nr) {
s = 7;
}
}
}
};
}
if ((s < 3) and (s > 1)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x - bxspeed;
_y = _y - byspeed;
if (_y < -2) {
s = 3;
}
bp = _x;
if (ball.hittest(roof)) {
s = 3;
}
if (ball.hittest(downnet)) {
s = 9;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
}
};
}
if ((s < 4) and (s > 2)) {
ball.onEnterFrame = function () {
with (ball) {
_y = _y + byspeed;
_x = _x - bxspeed;
if (_x < -2) {
s = 4;
}
bp = _x;
if (ball.hittest(leftwall)) {
s = 4;
}
if (ball.hittest(rightn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (_x <= nr) {
s = 2;
}
if (_x > nr) {
s = 6;
}
}
if (ball.hittest(leftn)) {
bxspeed = (random(10) + 10) + cx;
byspeed = (random(10) + 10) + cx;
if (_x >= nl) {
s = 5;
}
if (_x < nl) {
s = 7;
}
}
if (ball.hittest(upnet)) {
s = 2;
}
if (ball.hittest(downnet)) {
s = 9;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
}
};
}
if ((s < 5) and (s > 3)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bxspeed;
_y = _y + byspeed;
if (_x > 572) {
s = 3;
}
bp = _x;
if (ball.hittest(upnet)) {
s = 5;
}
if (ball.hittest(downnet)) {
s = 8;
}
if (ball.hittest(rightn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (_x <= nr) {
s = 2;
}
if (_x > nr) {
s = 6;
}
}
if (ball.hittest(leftn)) {
bxspeed = (random(10) + 10) + cx;
byspeed = (random(10) + 10) + cx;
if (_x >= nl) {
s = 5;
}
if (_x < nl) {
s = 7;
}
}
if (ball.hittest(rightwall)) {
s = 3;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
}
};
}
if ((s < 6) and (s > 4)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bxspeed;
_y = _y - byspeed;
if (_y < -1) {
s = 4;
}
bp = _x;
if (ball.hittest(roof)) {
s = 4;
}
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(downnet)) {
s = 8;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(rightwall)) {
s = 3;
}
if (ball.hittest(rightn)) {
bxspeed = random(10) + 10;
byspeed = random(10) + 10;
if (_x <= nr) {
s = 2;
}
if (_x > nr) {
s = 6;
}
}
if (ball.hittest(leftn)) {
bxspeed = (random(10) + 10) + cx;
byspeed = (random(10) + 10) + cx;
if (_x >= nl) {
s = 5;
}
if (_x < nl) {
s = 7;
}
}
}
};
}
if ((s < 7) and (s > 5)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x + bxspeed;
_y = _y - byspeed;
if (_y < -1) {
s = 4;
}
if (_x > 572) {
s = 2;
}
bp = _x;
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(rightwall)) {
s = 2;
}
if (ball.hittest(roof)) {
s = 4;
}
}
};
}
if ((s < 8) and (s > 6)) {
ball.onEnterFrame = function () {
with (ball) {
_x = _x - bxspeed;
_y = _y - byspeed;
if (_y < -1) {
s = 3;
}
if (_x < -2) {
s = 5;
}
bp = _x;
if (ball.hittest(rfloor)) {
s = 9;
}
if (ball.hittest(lfloor)) {
s = 8;
}
if (ball.hittest(leftwall)) {
s = 5;
}
if (ball.hittest(roof)) {
s = 3;
}
}
};
}
if ((s < 9) and (s > 7)) {
nrp = nrp + 1;
start = 1;
s = 1;
gotoAndPlay (55);
}
if ((s < 10) and (s > 8)) {
s = 1;
start = 2;
nlp = nlp + 1;
gotoAndPlay (55);
}
nlspeed = 10;
leftn.onEnterFrame = function () {
with (leftn) {
if (((bp >= 20) and (bp <= 262)) and ok) {
_x = bp;
nl = _x;
}
if (!ok) {
_x = bp - 20;
if (bp < 20) {
_x = 20;
}
if (bp >= 242) {
_x = 262;
}
}
}
};
nrspeed = 10;
rightn.onEnterFrame = function () {
with (rightn) {
if (Key.isDown(37)) {
_x = _x - nrspeed;
nr = _x;
if (_x <= 310) {
_x = 310;
nr = _x;
}
}
if (Key.isDown(39)) {
_x = _x + nrspeed;
nr = _x;
if (_x >= 552) {
_x = 552;
nr = _x;
}
}
}
};
Frame 73
fail = random(difi) + 1;
if (fail < 2) {
ok = false;
}
if (reco > 10) {
ok = true;
reco = 0;
}
gotoAndPlay (72);
Frame 76
stop();
Frame 77
stop();
Symbol 11 Button
on (release) {
gotoAndPlay (5);
}
Symbol 16 Button
on (release) {
gotoAndPlay (3);
}
Symbol 21 Button
on (release) {
gotoAndPlay (2);
}
Symbol 31 Button
on (release) {
getURL ("http://www.geocities.com/yosihol/", "_blank");
}
Symbol 34 Button
on (release) {
gotoAndPlay (4);
}
Symbol 47 Button
on (release) {
difi = 150;
cx = 5;
gotoAndPlay (54);
}
Symbol 48 Button
on (release) {
difi = 450;
cx = 8;
gotoAndPlay (54);
}
Symbol 49 Button
on (release) {
difi = 600;
cx = 13;
gotoAndPlay (54);
}
Symbol 54 Button
on (release) {
gotoAndPlay (1);
}
Symbol 97 Button
on (keyPress "s") {
gotoAndPlay (31);
}
Symbol 116 MovieClip Frame 29
gotoAndPlay (1);
Symbol 116 MovieClip Frame 45
gotoAndPlay (1);
Symbol 118 Button
on (keyPress "<Up>") {
gotoAndPlay (31);
}
Symbol 138 MovieClip Frame 29
gotoAndPlay (1);
Symbol 177 Button
on (keyPress "<Up>") {
gotoAndPlay (31);
}
Symbol 184 Button
on (keyPress "<Up>") {
gotoAndPlay (31);
}
Symbol 187 MovieClip Frame 38
stop();
Symbol 189 Button
on (keyPress "s") {
gotoAndPlay (31);
}
Symbol 214 Button
on (release) {
gotoAndPlay (1);
}
Symbol 217 Button
on (keyPress "<Up>") {
gotoAndPlay (31);
}
Symbol 219 Button
on (keyPress "<Up>") {
gotoAndPlay (31);
}
Symbol 222 Button
on (keyPress "s") {
gotoAndPlay (31);
}