Frame 2
function gotoMySite() {
getURL ("http://www.allgamesallfree.com", "_blank");
}
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var mySiteLink = new ContextMenuItem("A game by Max Stein, Allgamesallfree.com", gotoMySite);
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
Instance of Symbol 11 MovieClip [agaf_logo_frame] in Frame 2
onClipEvent (enterFrame) {
if (this._currentframe == 170) {
_root.gotoAndStop("menu");
}
}
Frame 3
stop();
_root.descrip = "Hover over a difficulty to read about it.";
if (first != true) {
_root.mouse = true;
first = true;
}
onEnterFrame = function () {
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if (domain != "flashgamelicense.com") {
_root._x = 0;
}
if (_root.help._currentframe == 2) {
e.enabled = false;
m.enabled = false;
h.enabled = false;
play.enabled = false;
how.enabled = false;
scores.enabled = false;
scheme1.enabled = false;
scheme2.enabled = false;
site.enabled = false;
} else {
e.enabled = true;
m.enabled = true;
h.enabled = true;
play.enabled = true;
how.enabled = true;
scores.enabled = true;
scheme1.enabled = true;
scheme2.enabled = true;
site.enabled = true;
}
};
Instance of Symbol 74 MovieClip "scheme1" in Frame 3
onClipEvent (enterFrame) {
if (_root.mouse != true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
onRelease = function () {
if (_root.mouse != true) {
_root.mouse = true;
}
};
}
Instance of Symbol 78 MovieClip "scheme2" in Frame 3
onClipEvent (enterFrame) {
if (_root.mouse != false) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
onRelease = function () {
if (_root.mouse != false) {
_root.mouse = false;
}
};
}
Instance of Symbol 130 MovieClip "alphaClip" in Frame 3
onClipEvent (load) {
this._alpha = 0;
_root.alphaClip.go = false;
}
onClipEvent (enterFrame) {
if (_root.alphaClip.go == true) {
this._alpha = this._alpha + 3;
if (this._alpha >= 100) {
_root.gotoAndStop("play");
}
}
}
Frame 4
function die(varx, x1, y1) {
lives = lives - 1;
livesTxt = "Lives: " + lives;
if (x1 < 300) {
startGame1 = 10;
xspeed = difficulty + 3;
yspeed = difficulty + 3;
} else {
startGame2 = 10;
xspeede = difficulty + 3;
randomf = random(2) + 1;
if (randomf == 1) {
yspeede = difficulty + 3;
} else {
yspeede = (difficulty + 3) * -1;
}
}
varx._x = x1;
varx._y = y1;
kirupaSound2.start(0, 1);
}
stop();
kirupaSound2 = new Sound(this);
kirupaSound2.attachSound("sound2");
kirupaSound5 = new Sound(this);
kirupaSound5.attachSound("sound4");
showScore = 0;
kirupaSound3 = new Sound(this);
kirupaSound3.attachSound("sound3");
kirupaSound = new Sound(this);
kirupaSound.attachSound("sound1");
active = false;
_root.over = false;
timen = 0;
speed = 0;
time0 = 0;
currentframe = 3;
xspeed = difficulty + 3;
yspeed = difficulty + 3;
xspeede = difficulty + 3;
xspeede = difficulty + 3;
compspeed = difficulty + 3;
startGame = 0;
level = 1;
breakout.gotoAndStop(level);
score = 0;
scoreTxt = "Score: " + score;
if (difficulty == 1) {
lives = 7;
} else if (difficulty == 2) {
lives = 6;
} else if (difficulty == 3) {
lives = 5;
}
multi = 1;
_root.multTxt = "Multiplier: " + _root.multi;
timer = 0;
timerTwo = 0;
timerThree = 0;
livesTxt = "Lives: " + lives;
needToKill = 30;
killed = 0;
if ((!mute) == true) {
kirupaSound5.start(0, 10);
}
startGame1 = 0;
startGame2 = 0;
onEnterFrame = function () {
if (_root._currentframe == 4) {
if (_root.alphaClipB.go == false) {
if ((pauseframe._currentframe != 2) && (_root.over != true)) {
if ((_root.score >= 100) && (_root.score < 1000)) {
speed = 0.5;
} else if ((_root.score >= 1000) && (_root.score < 3000)) {
speed = 1;
} else if ((_root.score >= 3000) && (_root.score < 7000)) {
speed = 1.5;
} else if ((_root.score >= 7000) && (_root.score < 15000)) {
speed = 2;
} else if ((_root.score >= 15000) && (_root.score < 25000)) {
speed = 2.5;
} else if ((_root.score >= 25000) && (_root.score < 40000)) {
speed = 3;
} else if ((_root.score >= 40000) && (_root.score < 70000)) {
speed = 3.3;
} else if ((_root.score >= 70000) && (_root.score < 120000)) {
speed = 3.6;
} else if ((_root.score >= 120000) && (_root.score < 200000)) {
speed = 3.9;
} else if ((_root.score >= 200000) && (_root.score < 300000)) {
speed = 4.2;
} else if ((_root.score >= 300000) && (_root.score < 450000)) {
speed = 4.5;
} else if ((_root.score >= 450000) && (_root.score < 700000)) {
speed = 4.8;
} else if (_root.score >= 700000) {
speed = 5.1;
}
if (startGame >= 20) {
if (startGame1 <= 0) {
if (xspeed > 0) {
ball._x = ball._x + (xspeed + speed);
} else {
ball._x = ball._x + (xspeed - speed);
}
if (yspeed > 0) {
ball._y = ball._y + (yspeed + speed);
} else {
ball._y = ball._y + (yspeed - speed);
}
} else {
startGame1 = startGame1 - 1;
}
if (startGame2 <= 0) {
if (xspeede > 0) {
baller._x = baller._x + (xspeede + speed);
} else {
baller._x = baller._x + (xspeede - speed);
}
if (yspeede > 0) {
baller._y = baller._y + (yspeede + speed);
} else {
baller._y = baller._y + (yspeede - speed);
}
} else {
startGame2 = startGame2 - 1;
}
} else {
startGame = startGame + 1;
}
if (activet == true) {
time0 = time0 + 1;
}
if (time0 >= 500) {
activet = false;
paddle._width = 70;
paddler._height = 70;
time0 = 0;
}
if (killed >= needToKill) {
_root.reset10 = false;
_root.reset11 = false;
_root.reset12 = false;
_root.reset13 = false;
_root.reset14 = false;
timer = timer + 1;
ball._x = 70;
startGame1 = 10;
ball._y = 200;
xspeed = difficulty + 3;
yspeed = difficulty + 3;
timer = 0;
score = score + (100 * multi);
effects.gotoAndStop(2);
scoreTxt = "Score: " + score;
level = level + 1;
trace(level);
if (level <= 15) {
breakout.gotoAndStop(level);
} else {
breakout.gotoAndStop(random(7) + 8);
}
kirupaSound3.start(0, 1);
killed = 0;
}
if (paddle.hitTest(ball)) {
yspeed = Math.abs(yspeed) * -1;
xspeed = (ball._x - paddle._x) / 6;
_root.particles._x = _root.ball._x;
_root.particles._y = _root.ball._y;
_root.particles._rotation = 0;
_root.reset = true;
} else {
_root.reset = false;
}
if (ball._x >= 260) {
xspeed = Math.abs(xspeed) * -1;
}
if (ball._x <= 17) {
xspeed = Math.abs(xspeed);
}
if (ball._y <= 43.9) {
yspeed = Math.abs(yspeed);
}
if (ball._y >= 385) {
die(ball, 70, 200);
}
if (baller._y >= 370) {
yspeede = Math.abs(yspeede) * -1;
}
if (baller._y <= 45.9) {
yspeede = Math.abs(yspeede);
}
if (baller._x > 550) {
baller._x = 376.1;
baller._y = 175.6;
startGame2 = 10;
kirupaSound3.start(0, 1);
randomz = random(2) + 1;
xspeede = difficulty + 3;
if (randomz == 1) {
yspeede = difficulty + 3;
} else {
yspeede = (difficulty + 3) * -1;
}
score = score + (100 * multi);
scoreTxt = "Score: " + score;
timerTwo = 0;
compspeed = compspeed + 0.2;
}
if (baller._x < 280) {
die(baller, 406, 175);
}
if (baller.hitTest(computer)) {
xspeede = Math.abs(xspeede) * -1;
yspeede = (baller._y - computer._y) / 5;
_root.particles4._x = baller._x;
_root.particles4._y = baller._y;
_root.particles4._rotation = -90;
_root.reset4 = true;
} else {
_root.reset4 = false;
}
if (baller.hitTest(paddler)) {
xspeede = Math.abs(xspeede);
yspeede = (baller._y - paddler._y) / 4;
_root.particles3._x = _root.baller._x;
_root.particles3._y = _root.baller._y;
_root.particles3._rotation = 90;
_root.reset3 = true;
} else {
_root.reset3 = false;
}
if (timeStart == true) {
timen = timen + 1;
if (timen >= 20) {
timeStart = false;
timen = 0;
}
}
if (_root.lives <= 0) {
_root.over = true;
kirupaSound2.stop();
kirupaSound5.stop();
}
}
}
}
};
Instance of Symbol 134 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.score >= 700000) {
this._alpha = this._alpha - 2;
if (this._alpha < 5) {
unloadMovie (this);
}
}
}
Instance of Symbol 136 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.score >= 450000) {
this._alpha = this._alpha - 2;
if (this._alpha < 5) {
unloadMovie (this);
}
}
}
Instance of Symbol 138 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.score >= 300000) {
this._alpha = this._alpha - 2;
if (this._alpha < 5) {
unloadMovie (this);
}
}
}
Instance of Symbol 140 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.score >= 200000) {
this._alpha = this._alpha - 2;
if (this._alpha < 5) {
unloadMovie (this);
}
}
}
Instance of Symbol 142 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.score >= 120000) {
this._alpha = this._alpha - 2;
if (this._alpha < 5) {
unloadMovie (this);
}
}
}
Instance of Symbol 144 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.score >= 70000) {
this._alpha = this._alpha - 2;
if (this._alpha < 5) {
unloadMovie (this);
}
}
}
Instance of Symbol 146 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.score >= 40000) {
this._alpha = this._alpha - 2;
if (this._alpha < 5) {
unloadMovie (this);
}
}
}
Instance of Symbol 148 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.score >= 25000) {
this._alpha = this._alpha - 2;
if (this._alpha < 5) {
unloadMovie (this);
}
}
}
Instance of Symbol 150 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.score >= 15000) {
this._alpha = this._alpha - 2;
if (this._alpha < 5) {
unloadMovie (this);
}
}
}
Instance of Symbol 152 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.score >= 7000) {
this._alpha = this._alpha - 2;
if (this._alpha < 5) {
unloadMovie (this);
}
}
}
Instance of Symbol 154 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.score >= 3000) {
this._alpha = this._alpha - 2;
if (this._alpha < 5) {
unloadMovie (this);
}
}
}
Instance of Symbol 156 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.score >= 1000) {
this._alpha = this._alpha - 2;
if (this._alpha < 5) {
unloadMovie (this);
}
}
}
Instance of Symbol 158 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.score >= 100) {
this._alpha = this._alpha - 2;
if (this._alpha < 5) {
unloadMovie (this);
}
}
}
Instance of Symbol 160 MovieClip "paddle" in Frame 4
onClipEvent (enterFrame) {
if ((_root.pauseframe._currentframe != 2) && (_root.timeStart != true)) {
if (_root.mouse == true) {
this._x = _root._xmouse;
if (_root.activet != true) {
if (this._x < 44) {
this._x = 44;
} else if (this._x > 230) {
this._x = 230;
}
} else if (this._x < 54) {
this._x = 54;
} else if (this._x > 220) {
this._x = 220;
}
} else if (_root.activet != true) {
if (Key.isDown(37) || (Key.isDown(65))) {
if (this._x > 54) {
this._x = this._x - 10;
}
}
if (Key.isDown(39) || (Key.isDown(68))) {
if (this._x < 226) {
this._x = this._x + 10;
}
}
} else {
if (Key.isDown(37) || (Key.isDown(65))) {
if (this._x > 64) {
this._x = this._x - 10;
}
}
if (Key.isDown(39) || (Key.isDown(68))) {
if (this._x < 216) {
this._x = this._x + 10;
}
}
}
}
}
Instance of Symbol 162 MovieClip "paddler" in Frame 4
onClipEvent (enterFrame) {
if ((_root.pauseframe._currentframe != 2) && (_root.timeStart != true)) {
if (_root.mouse == true) {
this._y = _root._ymouse;
if (_root.activet != true) {
if (this._y < 71) {
this._y = 71;
}
if (this._y > 341) {
this._y = 341;
}
} else {
if (this._y < 81) {
this._y = 81;
}
if (this._y > 331) {
this._y = 331;
}
}
} else if (_root.activet != true) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (this._y > 76) {
this._y = this._y - 10;
}
}
if (Key.isDown(40) || (Key.isDown(83))) {
if (this._y < 331) {
this._y = this._y + 10;
}
}
} else {
if (Key.isDown(38) || (Key.isDown(87))) {
if (this._y > 86) {
this._y = this._y - 10;
}
}
if (Key.isDown(40) || (Key.isDown(83))) {
if (this._y < 321) {
this._y = this._y + 10;
}
}
}
}
}
Instance of Symbol 164 MovieClip "computer" in Frame 4
onClipEvent (enterFrame) {
if (_root.pauseframe._currentframe != 2) {
if (this._y < _root.baller._y) {
this._y = this._y + _root.compspeed;
}
if (this._y > _root.baller._y) {
this._y = this._y - _root.compspeed;
}
if (this._y < 71) {
this._y = 71;
}
if (this._y > 341) {
this._y = 341;
}
}
}
Instance of Symbol 177 MovieClip "baller" in Frame 4
onClipEvent (enterFrame) {
if ((_root.pauseframe._currentframe != 2) && (_root.over != true)) {
this._rotation = this._rotation + 5;
}
}
Instance of Symbol 179 MovieClip "ball" in Frame 4
onClipEvent (enterFrame) {
if ((_root.pauseframe._currentframe != 2) && (_root.over != true)) {
this._rotation = this._rotation + 5;
}
}
Instance of Symbol 199 MovieClip "effects" in Frame 4
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
this._alpha = this._alpha - 2;
this._y = this._y - 1;
if (this._alpha < 0) {
this.gotoAndStop(1);
this._y = 139.5;
this._alpha = 100;
}
}
}
Instance of Symbol 210 MovieClip "pausedframe5" in Frame 4
onClipEvent (load) {
this._alpha = 0;
fade = false;
_root.txt.gotoAndStop(6);
}
onClipEvent (enterFrame) {
if ((_root.score >= 3000) && (done != true)) {
this.gotoAndStop(7);
done = true;
}
if (this._currentframe > 1) {
if (fade == false) {
this._alpha = this._alpha + 2;
} else {
this._alpha = this._alpha - 2;
}
if (this._alpha >= 100) {
fade = true;
}
if ((this._alpha <= 3) && (fade == true)) {
if (this._currentframe == 7) {
this.gotoAndStop(8);
} else {
this.gotoAndStop(1);
_root.unlocked = true;
}
fade = false;
}
}
}
Instance of Symbol 210 MovieClip "pausedframe6" in Frame 4
onClipEvent (load) {
this._alpha = 0;
fade = false;
_root.txt.gotoAndStop(6);
}
onClipEvent (enterFrame) {
if ((_root.score >= 15000) && (done != true)) {
this.gotoAndStop(9);
done = true;
}
if (this._currentframe > 1) {
if (fade == false) {
this._alpha = this._alpha + 2;
} else {
this._alpha = this._alpha - 2;
}
if (this._alpha >= 100) {
fade = true;
}
if ((this._alpha <= 3) && (fade == true)) {
if (this._currentframe == 9) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(1);
_root.unlocked2 = true;
}
fade = false;
}
}
}
Instance of Symbol 221 MovieClip "effects3" in Frame 4
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
this._alpha = this._alpha - 2;
this._y = this._y - 1;
if (this._alpha < 0) {
this.gotoAndStop(1);
this._alpha = 100;
}
}
}
Instance of Symbol 223 MovieClip "effects2" in Frame 4
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
this._alpha = this._alpha - 2;
this._y = this._y - 1;
if (this._alpha < 0) {
this.gotoAndStop(1);
this._alpha = 100;
}
}
}
Instance of Symbol 225 MovieClip "effects4" in Frame 4
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
this._alpha = this._alpha - 2;
this._y = this._y - 1;
if (this._alpha < 0) {
this.gotoAndStop(1);
this._alpha = 100;
}
}
}
Instance of Symbol 227 MovieClip "effects5" in Frame 4
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
this._alpha = this._alpha - 2;
this._y = this._y - 1;
if (this._alpha < 0) {
this.gotoAndStop(1);
this._alpha = 100;
}
}
}
Instance of Symbol 86 MovieClip "1000" in Frame 4
onClipEvent (load) {
needed = 0;
}
onClipEvent (enterFrame) {
if (((_root.score > needed) && (set != true)) && (_root.effects2._currentframe == 1)) {
dir = random(2) + 1;
set = true;
if (dir == 1) {
this._x = random(180) + 40;
this._y = 250 + random(60);
} else {
this._x = random(120) + 340;
this._y = random(290) + 45;
}
if (needed > 0) {
needed = needed * 1.5;
} else {
needed = 300;
}
}
if (this.hitTest(_root.ball) || (this.hitTest(_root.baller))) {
_root.multi = _root.multi + 1;
_root.multTxt = "Multiplier: " + _root.multi;
_root.scoreTxt = "Score: " + _root.score;
_root.pausedframe.gotoAndStop(4);
_root.effects2._x = this._x - 60;
_root.effects2._y = this._y;
_root.particles5._x = this._x;
_root.particles5._y = this._y;
_root.reset5 = true;
this._x = 1000;
set = false;
this._y = 1000;
_root.kirupaSound3.start(0, 1);
_root.effects2.gotoAndStop(2);
} else {
_root.reset5 = false;
}
}
Instance of Symbol 88 MovieClip "1up" in Frame 4
onClipEvent (load) {
needed = 1500;
}
onClipEvent (enterFrame) {
if ((_root.score > needed) && (set != true)) {
dir = random(2) + 1;
set = true;
if (dir == 1) {
this._x = random(180) + 40;
this._y = 250 + random(60);
} else {
this._x = random(120) + 340;
this._y = random(290) + 45;
}
needed = needed * 2;
}
if (this.hitTest(_root.ball) || (this.hitTest(_root.baller))) {
_root.lives = _root.lives + 1;
_root.livesTxt = "Lives: " + _root.lives;
_root.effects4._x = this._x - 10;
_root.effects4._y = this._y;
_root.particles6._x = this._x;
_root.particles6._y = this._y;
_root.reset6 = true;
this._x = 1000;
_root.pausedframe2.gotoAndStop(3);
set = false;
this._y = 1000;
_root.kirupaSound3.start(0, 1);
_root.effects4.gotoAndStop(2);
} else {
_root.reset6 = false;
}
}
Instance of Symbol 90 MovieClip "wide" in Frame 4
onClipEvent (load) {
needed = 500;
}
onClipEvent (enterFrame) {
if (((_root.score > needed) && (set != true)) && (_root.activet != true)) {
dir = random(2) + 1;
set = true;
if (dir == 1) {
this._x = random(180) + 40;
this._y = 250 + random(60);
} else {
this._x = random(120) + 340;
this._y = random(290) + 45;
}
needed = needed * 1.7;
}
if (this.hitTest(_root.ball) || (this.hitTest(_root.baller))) {
_root.paddle._width = 90;
_root.paddler._height = 90;
_root.activet = true;
_root.pausedframe1.gotoAndStop(5);
_root.effects3._x = this._x - 40;
_root.effects3._y = this._y;
_root.particles7._x = this._x;
_root.particles7._y = this._y;
_root.reset7 = true;
this._x = 1000;
set = false;
this._y = 1000;
_root.kirupaSound3.start(0, 1);
_root.effects3.gotoAndStop(2);
} else {
_root.reset7 = false;
}
}
Instance of Symbol 92 MovieClip "Random" in Frame 4
onClipEvent (load) {
needed = 15000;
randomi = random(2) + 1;
}
onClipEvent (enterFrame) {
if ((((_root.score > needed) && (_root.unlocked2 == true)) && (set != true)) && (_root.active2 != true)) {
dir = random(2) + 1;
set = true;
if (dir == 1) {
this._x = random(180) + 40;
this._y = 250 + random(60);
} else {
this._x = random(120) + 340;
this._y = random(290) + 45;
}
needed = needed * 1.6;
}
if (this.hitTest(_root.ball) || (this.hitTest(_root.baller))) {
if (randomi == 1) {
if (_root.activet != true) {
_root.paddle._width = 90;
_root.paddler._height = 90;
_root.activet = true;
_root.effects3._x = this._x - 40;
_root.effects3._y = this._y;
_root.effects3.gotoAndStop(2);
_root.pausedframe1.gotoAndStop(5);
} else {
_root.lives = _root.lives + 1;
_root.livesTxt = "Lives: " + _root.lives;
_root.effects4._x = this._x - 10;
_root.effects4._y = this._y;
_root.effects4.gotoAndStop(2);
_root.pausedframe2.gotoAndStop(3);
}
}
if (randomi == 2) {
if ((_root.wall1._currentframe == 1) && (_root.wall2._currentframe == 1)) {
_root.wall1.gotoAndStop(2);
_root.wall2.gotoAndStop(2);
_root.effects5._x = this._x - 30;
_root.effects5._y = this._y;
_root.effects5.gotoAndStop(2);
} else {
_root.multi = _root.multi + 1;
_root.multTxt = "Multiplier: " + _root.multi;
_root.scoreTxt = "Score: " + _root.score;
_root.effects2._x = this._x - 60;
_root.effects2._y = this._y;
_root.effects2.gotoAndStop(2);
_root.pausedframe.gotoAndStop(4);
}
}
_root.particles9._x = this._x;
_root.particles9._y = this._y;
_root.reset9 = true;
this._x = 1000;
set = false;
randomi = random(2) + 1;
this._y = 1000;
_root.kirupaSound3.start(0, 1);
} else {
_root.reset9 = false;
}
}
Instance of Symbol 96 MovieClip "SlowBall" in Frame 4
onClipEvent (load) {
needed = 3000;
}
onClipEvent (enterFrame) {
if ((((((_root.score > needed) && (_root.unlocked == true)) && (set != true)) && (_root.active2 != true)) && (_root.wall1._currentframe == 1)) && (_root.wall2._currentframe == 1)) {
dir = random(2) + 1;
set = true;
if (dir == 1) {
this._x = random(180) + 40;
this._y = 250 + random(60);
} else {
this._x = random(120) + 340;
this._y = random(290) + 45;
}
needed = needed * 5;
}
if (this.hitTest(_root.ball) || (this.hitTest(_root.baller))) {
_root.wall1.gotoAndStop(2);
_root.wall2.gotoAndStop(2);
_root.particles8._x = this._x;
_root.particles8._y = this._y;
_root.effects5._x = this._x - 30;
_root.effects5._y = this._y;
_root.reset8 = true;
this._x = 1000;
_root.pausedframe4.gotoAndStop(6);
set = false;
this._y = 1000;
_root.kirupaSound3.start(0, 1);
_root.effects5.gotoAndStop(2);
} else {
_root.reset8 = false;
}
}
Instance of Symbol 130 MovieClip "alphaClipB" in Frame 4
onClipEvent (load) {
this._alpha = 100;
_root.alphaClipB.go = true;
}
onClipEvent (enterFrame) {
if (_root.lives > 0) {
if (this._alpha > 0) {
this._alpha = this._alpha - 3;
}
if (_root.alphaClipB.go == true) {
if (this._alpha <= 40) {
_root.alphaClipB.go = false;
}
}
} else {
this._alpha = this._alpha + 3;
if (this._alpha >= 100) {
_root.gotoAndStop("over");
}
}
}
Frame 5
stop();
kirupaSound2.stop();
kirupaSound3.stop();
kirupaSound5.stop();
kirupaSound1.stop();
scoreText = "Your Score: " + _root.score;
if (_root.difficulty == 1) {
textr = "Easy";
} else if (_root.difficulty == 2) {
textr = "Medium";
} else {
textr = "Hard";
}
_root.gamename = "PongOut_Anniversary_" + textr;
Instance of Symbol 130 MovieClip "alphaClipC" in Frame 5
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha >= 0) {
this._alpha = this._alpha - 3;
}
}
Symbol 11 MovieClip [agaf_logo_frame] Frame 170
stop();
Symbol 14 Button
on (release) {
getURL ("http://www.allgamesallfree.com", "_blank");
}
Symbol 21 Button
on (release) {
getURL ("http://allgamesallfree.com", "_blank");
}
Symbol 27 Button
on (release) {
_root.help.gotoAndStop(2);
}
Symbol 43 Button
on (release) {
_root.difficulty = 2;
_root.alphaClip.go = true;
}
Symbol 53 Button
on (release) {
_root.difficulty = 1;
_root.alphaClip.go = true;
}
Symbol 63 Button
on (release) {
_root.difficulty = 3;
_root.alphaClip.go = true;
}
Symbol 66 Button
on (release) {
getURL ("http://allgamesallfree.com", "_blank");
}
Symbol 69 Button
on (release) {
_root.help.gotoAndStop(3);
}
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 74 MovieClip Frame 3
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 2
stop();
Symbol 78 MovieClip Frame 3
stop();
Symbol 84 Button
on (release) {
_root.effect = true;
}
Symbol 110 Button
on (release) {
getURL ("http://allgamesallfree.com/index.php?id=highscores&game=PongOut_Anniversary_Easy", "_blank");
}
Symbol 123 Button
on (release) {
getURL ("http://allgamesallfree.com/index.php?id=highscores&game=PongOut_Anniversary_Medium", "_blank");
}
Symbol 128 Button
on (release) {
getURL ("http://allgamesallfree.com/index.php?id=highscores&game=PongOut_Anniversary_Hard", "_blank");
}
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
stop();
this._alpha = 0;
onEnterFrame = function () {
if (_root.effect == true) {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
_root.help.gotoAndStop(1);
_root.effect = false;
}
}
if ((this._alpha < 100) && (_root.effect != true)) {
this._alpha = this._alpha + 5;
}
};
Symbol 129 MovieClip Frame 3
stop();
this._alpha = 0;
onEnterFrame = function () {
if (_root.effect == true) {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
_root.help.gotoAndStop(1);
_root.effect = false;
}
}
if ((this._alpha < 100) && (_root.effect != true)) {
this._alpha = this._alpha + 5;
}
};
Symbol 166 MovieClip Frame 1
onEnterFrame = function () {
if (this.active != false) {
this._visible = true;
if (this.hitTest(_root.ball)) {
_root.yspeed = _root.yspeed * -1;
this.active = false;
_root.particles12._x = this._x + 25;
_root.particles12._y = this._y + 50;
_root.reset12 = true;
set = false;
_root.score = _root.score + (10 * _root.multi);
_root.scoreTxt = "Score: " + _root.score;
_root.killed = _root.killed + 1;
_root.kirupaSound.start(0, 1);
}
} else {
if (set != true) {
_root.reset12 = false;
set = true;
}
this._visible = false;
if ((_root.killed == _root.needToKill) || (_root.killed == 0)) {
this.active = true;
}
}
};
Symbol 168 MovieClip Frame 1
onEnterFrame = function () {
if (this.active != false) {
this._visible = true;
if (this.hitTest(_root.ball)) {
_root.yspeed = _root.yspeed * -1;
this.active = false;
_root.particles14._x = this._x + 25;
_root.particles14._y = this._y + 50;
_root.reset14 = true;
set = false;
_root.score = _root.score + (10 * _root.multi);
_root.scoreTxt = "Score: " + _root.score;
_root.killed = _root.killed + 1;
_root.kirupaSound.start(0, 1);
}
} else {
if (set != true) {
_root.reset14 = false;
set = true;
}
this._visible = false;
if ((_root.killed == _root.needToKill) || (_root.killed == 0)) {
this.active = true;
}
}
};
Symbol 170 MovieClip Frame 1
onEnterFrame = function () {
if (this.active != false) {
this._visible = true;
if (this.hitTest(_root.ball)) {
_root.yspeed = _root.yspeed * -1;
this.active = false;
_root.particles10._x = this._x + 25;
_root.particles10._y = this._y + 50;
_root.reset10 = true;
set = false;
_root.score = _root.score + (10 * _root.multi);
_root.scoreTxt = "Score: " + _root.score;
_root.killed = _root.killed + 1;
_root.kirupaSound.start(0, 1);
}
} else {
if (set != true) {
_root.reset10 = false;
set = true;
}
this._visible = false;
if ((_root.killed == _root.needToKill) || (_root.killed == 0)) {
this.active = true;
}
}
};
Symbol 172 MovieClip Frame 1
onEnterFrame = function () {
if (this.active != false) {
this._visible = true;
if (this.hitTest(_root.ball)) {
_root.yspeed = _root.yspeed * -1;
this.active = false;
_root.score = _root.score + (10 * _root.multi);
_root.scoreTxt = "Score: " + _root.score;
_root.killed = _root.killed + 1;
_root.kirupaSound.start(0, 1);
_root.particles11._x = this._x + 25;
_root.particles11._y = this._y + 50;
_root.reset11 = true;
set = false;
}
} else {
if (set != true) {
_root.reset11 = false;
set = true;
}
this._visible = false;
if ((_root.killed == _root.needToKill) || (_root.killed == 0)) {
this.active = true;
}
}
};
Symbol 174 MovieClip Frame 1
onEnterFrame = function () {
if (this.active != false) {
this._visible = true;
if (this.hitTest(_root.ball)) {
_root.yspeed = _root.yspeed * -1;
this.active = false;
_root.particles13._x = this._x + 25;
_root.particles13._y = this._y + 50;
_root.reset13 = true;
set = false;
_root.score = _root.score + (10 * _root.multi);
_root.scoreTxt = "Score: " + _root.score;
_root.killed = _root.killed + 1;
_root.kirupaSound.start(0, 1);
}
} else {
if (set != true) {
_root.reset13 = false;
set = true;
}
this._visible = false;
if ((_root.killed == _root.needToKill) || (_root.killed == 0)) {
this.active = true;
}
}
};
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 2
stop();
Symbol 175 MovieClip Frame 3
stop();
Symbol 175 MovieClip Frame 4
stop();
Symbol 175 MovieClip Frame 5
stop();
Symbol 175 MovieClip Frame 6
stop();
Symbol 175 MovieClip Frame 7
stop();
Symbol 175 MovieClip Frame 8
stop();
Symbol 175 MovieClip Frame 9
stop();
Symbol 175 MovieClip Frame 10
stop();
Symbol 175 MovieClip Frame 11
stop();
Symbol 175 MovieClip Frame 12
stop();
Symbol 175 MovieClip Frame 13
stop();
Symbol 175 MovieClip Frame 14
stop();
Symbol 175 MovieClip Frame 15
stop();
Symbol 182 MovieClip Frame 1
stop();
_root.reset15 = false;
Symbol 182 MovieClip Frame 2
stop();
Instance of Symbol 181 MovieClip in Symbol 182 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.yspeed = Math.abs(_root.yspeed) * -1;
_root.particles15._x = _root.ball._x;
_root.particles15._y = _root.ball._y;
_root.particles15._rotation = 0;
_root.reset15 = true;
_root.kirupaSound.start(0, 1);
_parent.gotoAndStop(1);
} else {
_root.reset15 = false;
}
}
Symbol 185 MovieClip Frame 1
stop();
_root.reset16 = false;
Symbol 185 MovieClip Frame 2
stop();
Instance of Symbol 184 MovieClip in Symbol 185 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.baller)) {
_root.xspeede = Math.abs(_root.xspeede);
_root.particles16._x = _root.baller._x;
_root.particles16._y = _root.baller._y;
_root.particles16._rotation = 90;
_root.reset16 = true;
_root.kirupaSound.start(0, 1);
_parent.gotoAndStop(1);
} else {
_root.reset16 = false;
}
}
Symbol 195 Button
on (release) {
if ((!_root.mute) == true) {
_root.kirupaSound5.setVolume(0);
_root.kirupaSound.setVolume(0);
_root.kirupaSound2.setVolume(0);
_root.mute = true;
} else {
_root.kirupaSound5.setVolume(100);
_root.kirupaSound.setVolume(100);
_root.kirupaSound2.setVolume(100);
_root.mute = false;
}
}
on (keyPress "p") {
if (_root.pauseframe._currentframe == 1) {
_root.pauseframe.gotoAndStop(2);
}
}
on (keyPress "m") {
if ((!_root.mute) == true) {
_root.kirupaSound5.setVolume(0);
_root.kirupaSound.setVolume(0);
_root.kirupaSound2.setVolume(0);
_root.mute = true;
} else {
_root.kirupaSound5.setVolume(30);
_root.kirupaSound.setVolume(100);
_root.kirupaSound2.setVolume(100);
_root.mute = false;
}
}
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 2
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 2
stop();
Symbol 210 MovieClip Frame 3
stop();
Symbol 210 MovieClip Frame 4
stop();
Symbol 210 MovieClip Frame 5
stop();
Symbol 210 MovieClip Frame 6
stop();
Symbol 210 MovieClip Frame 7
stop();
Symbol 210 MovieClip Frame 8
stop();
Symbol 210 MovieClip Frame 9
stop();
Symbol 210 MovieClip Frame 10
stop();
Symbol 215 Button
on (release) {
_root.pauseframe.gotoAndStop(1);
}
Symbol 218 Button
on (release) {
_root.kirupaSound5.stop();
_root.gotoAndStop("menu");
}
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 2
stop();
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 2
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 2
stop();
Symbol 229 MovieClip Frame 1
randomize = random(2) + 1;
speedx = random(3) + 1;
speedy = random(3) + 1;
alphaDown = random(5) + 6;
onEnterFrame = function () {
if (_parent == _root.particles) {
if (_root.reset == true) {
this._x = random(50) - 25;
this._y = random(10) - 10;
speedx = random(3) + 1;
speedy = random(3) + 1;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles3) {
if (_root.reset3 == true) {
this._x = random(30) - 15;
this._y = random(10) - 10;
speedx = random(3) + 1;
speedy = random(3) + 1;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles2) {
if (_root.reset2 == true) {
this._x = random(30) - 15;
this._y = random(10) - 10;
speedx = random(3) + 1;
speedy = random(3) + 1;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles4) {
if (_root.reset4 == true) {
this._x = random(30) - 15;
this._y = random(10) - 10;
speedx = random(3) + 1;
speedy = random(3) + 1;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles5) {
if (_root.reset5 == true) {
this._x = random(30) - 15;
this._y = random(30) - 15;
speedx = random(3) + 1;
speedy = random(6) + -3;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles6) {
if (_root.reset6 == true) {
this._x = random(30) - 15;
this._y = random(30) - 15;
speedx = random(3) + 1;
speedy = random(6) + -3;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles7) {
if (_root.reset7 == true) {
this._x = random(30) - 15;
this._y = random(30) - 15;
speedx = random(3) + 1;
speedy = random(6) + -3;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles8) {
if (_root.reset8 == true) {
this._x = random(30) - 15;
this._y = random(30) - 15;
speedx = random(3) + 1;
speedy = random(6) + -3;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles9) {
if (_root.reset9 == true) {
this._x = random(30) - 15;
this._y = random(30) - 15;
speedx = random(3) + 1;
speedy = random(6) + -3;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles10) {
if (_root.reset10 == true) {
this._x = random(30) - 15;
this._y = random(30) - 15;
speedx = random(3) + 1;
speedy = random(6) + -3;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles11) {
if (_root.reset11 == true) {
this._x = random(30) - 15;
this._y = random(30) - 15;
speedx = random(3) + 1;
speedy = random(6) + -3;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles12) {
if (_root.reset12 == true) {
this._x = random(30) - 15;
this._y = random(30) - 15;
speedx = random(3) + 1;
speedy = random(6) + -3;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles13) {
if (_root.reset13 == true) {
this._x = random(30) - 15;
this._y = random(30) - 15;
speedx = random(3) + 1;
speedy = random(6) + -3;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles14) {
if (_root.reset14 == true) {
this._x = random(30) - 15;
this._y = random(30) - 15;
speedx = random(3) + 1;
speedy = random(6) + -3;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles15) {
if (_root.reset15 == true) {
this._x = random(30) - 15;
this._y = random(10) - 10;
speedx = random(3) + 1;
speedy = random(3) + 1;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (_parent == _root.particles16) {
if (_root.reset16 == true) {
this._x = random(30) - 15;
this._y = random(10) - 10;
speedx = random(3) + 1;
speedy = random(3) + 1;
alphaDown = random(5) + 6;
this._alpha = 100;
randomize = random(3) + 1;
}
}
if (this._alpha >= 10) {
if (randomize == 2) {
this._x = this._x - speedx;
} else {
this._x = this._x + speedx;
}
this._y = this._y - speedy;
this._alpha = this._alpha - alphaDown;
} else {
this._alpha = 0;
}
};
Symbol 239 Button
on (release) {
_root.gotoAndStop("play");
_root.scoresDisabled = false;
}
Symbol 242 Button
on (release) {
_root.gotoAndStop("menu");
_root.scoresDisabled = false;
}
Symbol 247 Button
on (rollOver) {
if (_root.sentScore != _root.score) {
if (_root.namer.text != "") {
_root.add_pass = "flashapi";
_root.name = _root.namer.text;
_root.score = _root.score;
_root.sentScore = _root.score;
_root.loadVariables("http://allgamesallfree.com/new_score.php?game=" + _root.gamename, "POST");
}
}
}
on (release) {
getURL ("http://allgamesallfree.com/index.php?id=highscores&game=" + _root.gamename, "_blank");
}