Frame 1
function countDown() {
sec++;
}
stop();
var CPMStarPoolID = 1377;
var CPMStarSubPoolID = 701;
System.security.allowDomain("server.cpmstar.com");
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 (_root.domain != "kongregate.com") {
loader.adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
}
sec = 0;
countdown = setInterval(countDown, 45);
Instance of Symbol 53 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (this._currentframe >= 279) {
_root.gotoAndStop(3);
}
}
Frame 3
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function gotoMySite() {
getURL ("http://www.allgamesallfree.com", "_blank");
}
stop();
__com_mochibot__("19a20404", this, 10301, true);
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var mySiteLink = new ContextMenuItem("A game by Max Stein, AGAF Studios", gotoMySite);
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
_root.descrip = "Hover over a difficulty to read about it.";
Frame 4
stop();
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);
kirupaSound = new Sound(this);
kirupaSound.attachSound("sound1");
active = false;
timen = 0;
time0 = 0;
if (_root.difficulty == 1) {
xspeed = 3;
yspeed = 3;
xspeed2 = 3;
yspeed2 = 3;
xspeede = 3;
yspeede = 3;
compspeed = 3;
} else if (_root.difficulty == 2) {
xspeed = 5;
yspeed = 5;
xspeed2 = 5;
yspeed2 = 5;
xspeede = 5;
yspeede = 5;
compspeed = 5;
} else if (_root.difficulty == 3) {
xspeed = 6;
yspeed = 6;
xspeed2 = 6;
yspeed2 = 6;
xspeede = 6;
yspeede = 6;
compspeed = 6;
}
_root.startGame = 0;
_root.breakout.gotoAndStop(random(10) + 1);
_root.score = 0;
_root.scoreTxt = "Score: " + _root.score;
if (_root.difficulty == 1) {
_root.lives = 10;
} else if (_root.difficulty == 2) {
_root.lives = 7;
} else if (_root.difficulty == 3) {
_root.lives = 5;
}
_root.multiplier = 1;
_root.multi = 1;
_root.timer = 0;
_root.timerTwo = 0;
_root.timerThree = 0;
_root.livesTxt = "Lives: " + _root.lives;
_root.needToKill = 30;
_root.killed = 0;
if ((!_root.mute) == true) {
kirupaSound5 = new Sound(this);
kirupaSound5.attachSound("sound4");
kirupaSound5.start(0, 10);
}
onEnterFrame = function () {
if (_root._currentframe == 4) {
if (_root.pauseframe._currentframe != 2) {
if (_root.startGame >= 15) {
_root.ball._x = _root.ball._x + xspeed;
_root.ball._y = _root.ball._y + yspeed;
if (active == true) {
_root.ball3._x = _root.ball3._x + xspeed2;
_root.ball3._y = _root.ball3._y + yspeed2;
}
_root.baller._x = _root.baller._x + xspeede;
_root.baller._y = _root.baller._y + yspeede;
} else {
_root.startGame = _root.startGame + 1;
}
if (_root.activet == true) {
time0 = time0 + 1;
}
if (time0 >= 500) {
_root.activet = false;
_root.paddle._width = 70;
_root.paddler._height = 70;
time0 = 0;
}
if (_root.timer >= 3) {
_root.killed = 0;
_root.timer = 0;
xspeed = Math.abs(xspeed) + 0.5;
yspeed = Math.abs(yspeed) + 0.5;
_root.multi = _root.multi + 3;
_root.score = _root.score + (500 * _root.multi);
_root.scoreTxt = "Score: " + _root.score;
_root.breakout.gotoAndStop(random(10) + 1);
kirupaSound3 = new Sound(this);
kirupaSound3.attachSound("sound3");
kirupaSound3.start(0, 1);
}
if (_root.killed >= _root.needToKill) {
_root.timer = _root.timer + 1;
_root.ball._x = 70;
_root.ball._y = 200;
}
if (_root.paddle.hitTest(_root.ball)) {
yspeed = Math.abs(yspeed) * -1;
xspeed = (_root.ball._x - _root.paddle._x) / 4;
}
if (_root.paddle.hitTest(_root.ball3)) {
yspeed2 = yspeed2 * -1;
xspeed2 = (_root.ball3._x - _root.paddle._x) / 4;
}
if (_root.ball._x >= 265) {
xspeed = Math.abs(xspeed) * -1;
}
if (_root.ball._x <= 10) {
xspeed = Math.abs(xspeed);
}
if (_root.ball._y <= 57.9) {
yspeed = yspeed * -1;
}
if (_root.ball3._x >= 265) {
xspeed2 = Math.abs(xspeed2) * -1;
}
if (_root.ball3._x <= 10) {
xspeed2 = Math.abs(xspeed2);
}
if (_root.ball3._y <= 57.9) {
yspeed2 = yspeed2 * -1;
}
if (_root.ball._y >= 400) {
_root.lives = _root.lives - 1;
_root.livesTxt = "Lives: " + _root.lives;
_root.ball._x = 70;
_root.ball._y = 200;
kirupaSound2 = new Sound(this);
kirupaSound2.attachSound("sound2");
kirupaSound2.start(0, 1);
if (_root.difficulty == 1) {
xspeed = 3;
} else if (_root.difficulty == 2) {
xspeed = 5;
} else if (_root.difficulty == 3) {
xspeed = 6;
}
}
if (_root.ball3._y >= 400) {
_root.active = false;
_root.ball3._x = 900;
_root.ball3._y = 90;
}
if (_root.baller._y >= 380) {
yspeede = Math.abs(yspeede) * -1;
}
if (_root.baller._y <= 50.9) {
yspeede = Math.abs(yspeede);
}
if (_root.baller._x > 550) {
_root.timerTwo = _root.timerTwo + 5;
}
if (_root.timerTwo >= 25) {
_root.baller._x = 376.1;
_root.baller._y = 175.6;
kirupaSound3 = new Sound(this);
kirupaSound3.attachSound("sound3");
kirupaSound3.start(0, 1);
if (_root.difficulty == 1) {
_root.multiplier = _root.multiplier + 3;
xspeede = 3;
yspeede = 3;
} else if (_root.difficulty == 2) {
_root.multiplier = _root.multiplier + 3;
xspeede = 4;
yspeede = 4;
} else if (_root.difficulty == 3) {
_root.multiplier = _root.multiplier + 3;
xspeede = 5;
yspeede = 5;
}
_root.score = _root.score + (35 * _root.multiplier);
_root.scoreTxt = "Score: " + _root.score;
_root.timerTwo = 0;
compspeed = compspeed + 0.2;
_root.computer._y = 175.6;
}
if (_root.baller._x < 280) {
_root.baller._x = 500;
_root.baller._y = 100;
_root.lives = _root.lives - 1;
_root.livesTxt = "Lives: " + _root.lives;
_root.timerThree = 0;
kirupaSound2 = new Sound(this);
kirupaSound2.attachSound("sound2");
kirupaSound2.start(0, 1);
if (_root.difficulty == 1) {
xspeede = -3;
yspeede = -3;
} else if (_root.difficulty == 2) {
xspeede = -5;
yspeede = -5;
} else if (_root.difficulty == 3) {
xspeede = -6;
yspeede = -6;
}
}
if (_root.baller.hitTest(_root.computer)) {
xspeede = Math.abs(xspeede) * -1;
yspeede = (_root.baller._y - _root.computer._y) / 4;
}
if (_root.baller.hitTest(_root.paddler)) {
xspeede = Math.abs(xspeede);
yspeede = (_root.baller._y - _root.paddler._y) / 4;
}
if (_root.timeStart == true) {
timen = timen + 1;
if (timen >= 20) {
_root.timeStart = false;
timen = 0;
}
}
if (_root.lives <= 0) {
kirupaSound2.stop();
_root.gotoAndStop(5);
}
}
}
};
Instance of Symbol 113 MovieClip "paddle" in Frame 4
onClipEvent (enterFrame) {
if ((_root.pauseframe._currentframe != 2) && (_root.timeStart != true)) {
this._x = _root._xmouse;
if (_root.activet != true) {
if (this._x < 42) {
this._x = 42;
} else if (this._x > 230) {
this._x = 230;
}
} else if (this._x < 52) {
this._x = 52;
} else if (this._x > 220) {
this._x = 220;
}
}
}
Instance of Symbol 115 MovieClip "1000" in Frame 4
onClipEvent (load) {
needed = 0;
}
onClipEvent (enterFrame) {
if ((_root.score > needed) && (set != true)) {
dir = random(2) + 1;
set = true;
if (dir == 1) {
this._x = random(150) + 100;
this._y = 280 + random(20);
} else {
this._x = random(100) + 340;
this._y = random(200) + 100;
}
if (needed > 0) {
needed = needed * 2;
} else {
needed = 5000;
}
}
if (this.hitTest(_root.ball) || (this.hitTest(_root.baller))) {
_root.score = _root.score + 1000;
_root.scoreTxt = "Score: " + _root.score;
_root.pausedframe.gotoAndStop(4);
this._x = 1000;
set = false;
this._y = 1000;
_root.kirupaSound3 = new Sound(this);
_root.kirupaSound3.attachSound("sound3");
_root.kirupaSound3.start(0, 1);
}
}
Instance of Symbol 117 MovieClip "1up" in Frame 4
onClipEvent (load) {
needed = 7000;
}
onClipEvent (enterFrame) {
if ((_root.score > needed) && (set != true)) {
dir = random(2) + 1;
set = true;
if (dir == 1) {
this._x = random(150) + 100;
this._y = 280 + random(20);
} else {
this._x = random(100) + 340;
this._y = random(200) + 100;
}
needed = needed * 2;
}
if (this.hitTest(_root.ball) || (this.hitTest(_root.baller))) {
_root.lives = _root.lives + 1;
_root.livesTxt = "Lives: " + _root.lives;
this._x = 1000;
_root.pausedframe.gotoAndStop(3);
set = false;
this._y = 1000;
_root.kirupaSound3 = new Sound(this);
_root.kirupaSound3.attachSound("sound3");
_root.kirupaSound3.start(0, 1);
}
}
Instance of Symbol 119 MovieClip "wide" in Frame 4
onClipEvent (load) {
needed = 4000;
}
onClipEvent (enterFrame) {
if ((_root.score > needed) && (set != true)) {
dir = random(2) + 1;
set = true;
if (dir == 1) {
this._x = random(150) + 100;
this._y = 280 + random(20);
} else {
this._x = random(150) + 340;
this._y = random(200) + 100;
}
needed = needed * 2;
}
if (this.hitTest(_root.ball) || (this.hitTest(_root.baller))) {
_root.paddle._width = 90;
_root.paddler._height = 90;
_root.time0 = 0;
_root.activet = true;
_root.pausedframe.gotoAndStop(5);
this._x = 1000;
set = false;
this._y = 1000;
_root.kirupaSound3 = new Sound(this);
_root.kirupaSound3.attachSound("sound3");
_root.kirupaSound3.start(0, 1);
}
}
Instance of Symbol 121 MovieClip "paddler" in Frame 4
onClipEvent (enterFrame) {
if ((_root.pauseframe._currentframe != 2) && (_root.timeStart != true)) {
this._y = _root._ymouse;
if (_root.activet != true) {
if (this._y < 92) {
this._y = 92;
}
if (this._y > 350) {
this._y = 350;
}
} else {
if (this._y < 102) {
this._y = 102;
}
if (this._y > 340) {
this._y = 340;
}
}
}
}
Instance of Symbol 126 MovieClip "pausedframe" in Frame 4
onClipEvent (load) {
this._alpha = 0;
fade = false;
_root.txt.gotoAndStop(6);
}
onClipEvent (enterFrame) {
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)) {
this.gotoAndStop(1);
fade = false;
}
}
}
Instance of Symbol 127 MovieClip "computer" in Frame 4
onClipEvent (enterFrame) {
if (_root.pauseframe._currentframe != 2) {
if (this._y > 343) {
this._y = 343;
}
if (this._y < 100) {
this._y = 105;
}
if (this._y < _root.baller._y) {
this._y = this._y + _root.compspeed;
}
if (this._y > _root.baller._y) {
this._y = this._y - _root.compspeed;
}
}
}
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";
}
Symbol 18 Button
on (release) {
getURL ("http://www.notdoppler.com", "_blank");
}
Symbol 28 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 29 MovieClip Frame 1
_root.stop();
PercentLoaded = _root.sec / 2;
if (PercentLoaded < 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Instance of Symbol 20 MovieClip "adBox" in Symbol 29 MovieClip Frame 1
onClipEvent (load) {
if (_root.domain == "kongregate.com") {
this._alpha = 0;
}
}
Symbol 29 MovieClip Frame 2
gotoAndPlay (1);
Symbol 34 Button
on (release) {
getURL ("http://www.notdoppler.com", "_blank");
}
Symbol 39 MovieClip Frame 6
stop();
Symbol 40 Button
on (release) {
getURL ("http://www.notdoppler.com", "_blank");
}
Symbol 53 MovieClip Frame 279
stop();
Symbol 61 Button
on (release) {
_root.difficulty = 1;
_root.gotoAndStop(4);
}
Symbol 64 Button
on (release) {
_root.difficulty = 2;
_root.gotoAndStop(4);
}
Symbol 67 Button
on (release) {
_root.difficulty = 3;
_root.gotoAndStop(4);
}
Symbol 70 Button
on (release) {
if (_root.help._currentframe == 1) {
_root.help.gotoAndStop(2);
} else {
_root.help.gotoAndStop(1);
}
}
Symbol 73 Button
on (release) {
getURL ("http://www.allgamesallfree.com", "_blank");
}
Symbol 77 Button
on (release) {
getURL ("http://www.notdoppler.com", "_blank");
}
Symbol 80 Button
on (release) {
getURL ("http://www.notdoppler.com", "_blank");
}
Symbol 86 Button
on (release) {
_root.help.gotoAndStop(1);
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 96 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);
}
} else {
this._visible = false;
if (_root.killed == _root.needToKill) {
this.active = true;
}
}
};
Symbol 98 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);
}
} else {
this._visible = false;
if (_root.killed == _root.needToKill) {
this.active = true;
}
}
};
Symbol 100 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);
}
} else {
this._visible = false;
if (_root.killed == _root.needToKill) {
this.active = true;
}
}
};
Symbol 102 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);
}
} else {
this._visible = false;
if (_root.killed == _root.needToKill) {
this.active = true;
}
}
};
Symbol 104 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);
}
} else {
this._visible = false;
if (_root.killed == _root.needToKill) {
this.active = true;
}
}
};
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
stop();
Symbol 105 MovieClip Frame 3
stop();
Symbol 105 MovieClip Frame 4
stop();
Symbol 105 MovieClip Frame 5
stop();
Symbol 105 MovieClip Frame 6
stop();
Symbol 105 MovieClip Frame 7
stop();
Symbol 105 MovieClip Frame 8
stop();
Symbol 105 MovieClip Frame 9
stop();
Symbol 105 MovieClip Frame 10
stop();
Symbol 109 Button
on (release) {
if ((!_root.mute) == true) {
_root.kirupaSound5.stop();
_root.mute = true;
} else {
_root.mute = false;
_root.kirupaSound5.start(0, 10);
}
}
on (keyPress "p") {
if (_root.pauseframe._currentframe == 1) {
_root.pauseframe.gotoAndStop(2);
} else {
_root.pauseframe.gotoAndStop(1);
_root.timeStart = true;
}
}
on (keyPress "m") {
if ((!_root.mute) == true) {
_root.kirupaSound5.stop();
_root.mute = true;
} else {
_root.mute = false;
_root.kirupaSound5.start(0, 10);
}
}
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 2
stop();
Symbol 126 MovieClip Frame 3
stop();
Symbol 126 MovieClip Frame 4
stop();
Symbol 126 MovieClip Frame 5
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
stop();
Symbol 136 Button
on (release) {
_root.gotoAndStop(4);
_root.scoresDisabled = false;
}
Symbol 139 Button
on (release) {
_root.gotoAndStop(3);
_root.scoresDisabled = false;
}
Symbol 145 Button
on (press) {
if (_root.sentScore != _root.score) {
_root.gamename = "PongOut2_" + textr;
_root.add_pass = "flashapi";
_root.name = _root.name;
_root.score = _root.score;
_root.sentScore = _root.score;
_root.loadVariables("http://www.allgamesallfree.com/new_score.php?game=" + _root.gamename, "POST");
}
}
on (release) {
getURL (("http://www.allgamesallfree.com/scores-" + _root.gamename) + ".html", "_blank");
}
Symbol 148 Button
on (release) {
getURL ("http://www.notdoppler.com", "_blank");
}