Frame 1
stop();
this.onEnterFrame = function () {
if (this.getBytesLoaded() < this.getBytesTotal()) {
Total = this.getBytesTotal() / 1000;
Received = this.getBytesLoaded() / 1000;
Percentage = (Received / Total) * 100;
this.loadingvar = int(Percentage) add "%";
} else {
this.gotoAndPlay(2);
this.onEnterFrame = null;
}
};
Frame 2
stop();
createEmptyMovieClip("alpha", _level0);
with (alpha) {
beginFill(0, 50);
lineStyle(1, 0, 100);
moveTo(75, 0);
lineTo(75, 400);
endFill();
}
y1 = 4;
x2 = 79;
x1 = 75;
y2 = 0;
_root.count = 2;
_root.count2 = 2;
alpha.onEnterFrame = function () {
if (_root.count <= 100) {
_root.count = _root.count + 1;
alpha.createEmptyMovieClip("intro" + _root.count, _root.count);
with (alpha["intro" + _root.count]) {
beginFill(0, 50);
lineStyle(1, 0, 100);
moveTo(75, y1);
lineTo(x2, 400);
endFill();
}
y1 = y1 + 4;
x2 = x2 + 4;
}
if (_root.count2 <= 102) {
_root.count2 = _root.count2 + 1;
alpha.createEmptyMovieClip("intro2" + _root.count2, _root.count2 + 100);
with (alpha["intro2" + _root.count2]) {
beginFill(0, 50);
lineStyle(1, 0, 100);
moveTo(x1, 0);
lineTo(475, y2);
endFill();
}
x1 = x1 + 4;
y2 = y2 + 4;
} else {
alpha.onEnterFrame = null;
stop();
_root.alphaset = 100;
xxxpre_mc.onEnterFrame = function () {
if (_root.alphaset >= 0) {
_root.alphaset = _root.alphaset - 20;
xxxpre_mc._alpha = _root.alphaset;
alpha._alpha = _root.alphaset;
} else {
xxxpre_mc.onEnterFrame = null;
alpha.unloadMovie();
xxxpre_mc.unloadMovie();
gotoAndPlay (3);
}
};
}
};
Frame 3
stop();
Frame 4
function moveStuff() {
if ((bg_mc._currentframe == 15) || (bg_mc._currentframe == 1)) {
bg_mc.gotoAndStop(1);
}
if (Key.isDown(37)) {
_root.lineH_mc1._x = _root.lineH_mc1._x - _root.linespeed;
_root.lineH_mc2._x = _root.lineH_mc2._x - _root.linespeed;
}
if (Key.isDown(39)) {
_root.lineH_mc1._x = _root.lineH_mc1._x + _root.linespeed;
_root.lineH_mc2._x = _root.lineH_mc2._x + _root.linespeed;
}
if (Key.isDown(38)) {
_root.lineV_mc1._y = _root.lineV_mc1._y - _root.linespeed;
_root.lineV_mc2._y = _root.lineV_mc2._y - _root.linespeed;
}
if (Key.isDown(40)) {
_root.lineV_mc1._y = _root.lineV_mc1._y + _root.linespeed;
_root.lineV_mc2._y = _root.lineV_mc2._y + _root.linespeed;
}
if (_root.lineH_mc1._x > ((StageWidth - (_root.lineH_mc1._width / 2)) + 70)) {
_root.lineH_mc1._x = (StageWidth - (_root.lineH_mc1._width / 2)) + 70;
_root.lineH_mc2._x = (StageWidth - (_root.lineH_mc1._width / 2)) + 70;
}
if (_root.lineH_mc1._x < ((_root.lineH_mc1._width / 2) + 80)) {
_root.lineH_mc1._x = (_root.lineH_mc1._width / 2) + 80;
_root.lineH_mc2._x = (_root.lineH_mc1._width / 2) + 80;
}
if (_root.lineV_mc1._y > ((StageHeight - (_root.lineV_mc1._width / 2)) - 225)) {
_root.lineV_mc1._y = (StageHeight - (_root.lineV_mc1._width / 2)) - 225;
_root.lineV_mc2._y = (StageHeight - (_root.lineV_mc1._width / 2)) - 225;
}
if (_root.lineV_mc1._y < ((_root.lineV_mc1._width / 2) + 75)) {
_root.lineV_mc1._y = (_root.lineV_mc1._width / 2) + 75;
_root.lineV_mc2._y = (_root.lineV_mc1._width / 2) + 75;
}
}
function moveBall() {
if ((((ofb1.hitTest(ball_mc) == true) || (ofb2.hitTest(ball_mc) == true)) || (ofb3.hitTest(ball_mc) == true)) || (ofb4.hitTest(ball_mc) == true)) {
_root.onEnterFrame = null;
lose = 1;
gotoAndStop (5);
}
if (!lose) {
if (start == 1) {
if (random(2) == 1) {
_root.sxrand = -2;
} else {
_root.sxrand = 2;
}
if (random(2) == 1) {
_root.syrand = -2;
} else {
_root.syrand = 2;
}
if (random(10) != 1) {
if (_root.syrand < -1) {
_root.syrand = _root.syrand + Math.random();
}
if (_root.syrand > 1) {
_root.syrand = _root.syrand - Math.random();
} else if (random(1) == 1) {
if (random(1) == 1) {
_root.sxrand = _root.sxrand + (Math.random() * 2);
} else {
_root.sxrand = _root.sxrand - (Math.random() * 2);
}
if (_root.sxrand < -1) {
_root.sxrand = _root.sxrand + (Math.random() * 2);
}
if (_root.sxrand > 1) {
_root.sxrand = _root.sxrand - (Math.random() * 2);
} else if (random(1) == 1) {
_root.sxrand = _root.sxrand + Math.random();
} else {
_root.sxrand = _root.sxrand - Math.random();
}
}
}
start = 0;
} else if ((((lineH_mc1.hitTest(ball_mc) == false) && (lineH_mc2.hitTest(ball_mc) == false)) && (lineV_mc1.hitTest(ball_mc) == false)) && (lineV_mc2.hitTest(ball_mc) == false)) {
_root.hitcheck = 0;
_root.ball_mc._x = _root.ball_mc._x + _root.sxrand;
_root.ball_mc._y = _root.ball_mc._y + _root.syrand;
} else {
if (_root.hitcheck != 1) {
_root["ding_sd" + random(14)].start();
if ((((blocker1.hitTest(ball_mc) == true) || (blocker2.hitTest(ball_mc) == true)) || (blocker3.hitTest(ball_mc) == true)) || (blocker4.hitTest(ball_mc) == true)) {
bg_mc.gotoAndPlay(2);
_root.sxrand = -_root.sxrand;
_root.syrand = -_root.syrand;
} else {
if (lineV_mc1.hitTest(ball_mc) || (lineV_mc2.hitTest(ball_mc))) {
bg_mc.gotoAndPlay(2);
_root.sxrand = -_root.sxrand;
}
if (lineH_mc1.hitTest(ball_mc) || (lineH_mc2.hitTest(ball_mc))) {
bg_mc.gotoAndPlay(2);
_root.syrand = -_root.syrand;
}
}
if (_root.sxrand < 0) {
_root.sxrand = _root.sxrand - _root.advspeed;
}
if (_root.sxrand > 0) {
_root.sxrand = _root.sxrand + _root.advspeed;
}
if (_root.syrand < 0) {
_root.syrand = _root.syrand - _root.advspeed;
}
if (_root.syrand > 0) {
_root.syrand = _root.syrand + _root.advspeed;
}
_root.ball_mc._x = _root.ball_mc._x + _root.sxrand;
_root.ball_mc._y = _root.ball_mc._y + _root.syrand;
}
while ((((lineH_mc1.hitTest(ball_mc) != false) || (lineH_mc2.hitTest(ball_mc) != false)) || (lineV_mc1.hitTest(ball_mc) != false)) || (lineV_mc2.hitTest(ball_mc) != false)) {
_root.hitcheck = 1;
_root.ball_mc._x = _root.ball_mc._x + _root.sxrand;
_root.ball_mc._y = _root.ball_mc._y + _root.syrand;
}
}
}
}
function scoreKeeper() {
if (_root.scorekeep2 >= 126) {
if (random(1) == 1) {
_root.syrand = _root.syrand + ((Math.random() * 2) - 1);
_root.sxrand = _root.sxrand - ((Math.random() * 2) - 1);
} else {
_root.sxrand = _root.sxrand + ((Math.random() * 2) - 1);
_root.syrand = _root.syrand - ((Math.random() * 2) - 1);
}
_root.scorekeep2 = 0;
}
_root.scorekeep2 = _root.scorekeep2 + 1;
_root.scorekeep = _root.scorekeep + 1;
_root.score = _root.score + int(Math.abs(_root.sxrand) * Math.abs(_root.sxrand));
}
stop();
_root.lose = 0;
_root.advspeed = 0.2;
_root.linespeed = 10;
_root.score = 0;
_root.scorekeep = 0;
_root.scorekeep2 = 0;
StageWidth = 400;
StageHeight = 550;
start = 1;
_root.onEnterFrame = function () {
_root.moveStuff();
_root.moveBall();
_root.scoreKeeper();
};
count = 0;
while (count <= 13) {
_root["ding_sd" + count] = new Sound();
_root["ding_sd" + count].attachSound("ding" + count);
count = count + 1;
}
Frame 5
stopAllSounds();
stop();
Symbol 20 MovieClip Frame 30
gotoAndPlay (1);
Symbol 37 Button
on (release) {
gotoAndStop (4);
}
Symbol 43 MovieClip Frame 1
this.stop();
Symbol 43 MovieClip Frame 15
stop();