Frame 1
function findAnAngle(xthing, ything) {
if (xthing < 0) {
t = 180 + (Math.atan(ything / xthing) / term);
} else if ((xthing > 0) && (ything >= 0)) {
t = Math.atan(ything / xthing) / term;
} else if ((xthing > 0) && (ything < 0)) {
t = 360 + (Math.atan(ything / xthing) / term);
} else if ((xthing == 0) && (ything == 0)) {
t = 0;
} else if ((xthing == 0) && (ything >= 0)) {
t = 90;
} else {
t = 270;
}
return(t);
}
stop();
var beep = new Sound(this);
beep.attachSound("button");
beep.setVolume(100);
var term = (Math.PI/180);
var balls = 15;
var percent;
onEnterFrame = function () {
percent = int((getBytesLoaded() / getBytesTotal()) * 100);
playbutton.procent = percent + "%";
var _local2 = new flash.filters.BlurFilter(100 - percent, 10 - (percent / 10), 3);
playbutton.pbi.filters = [_local2];
if (percent == 100) {
playbutton.gotoAndStop("playable");
playbutton.onRelease = function () {
beep.start(0, 1);
play();
};
}
i = 0;
while ((++i) <= balls) {
j = i;
while ((++j) <= balls) {
h = Math.sqrt(Math.pow(_root["ball" + i]._x - _root["ball" + j]._x, 2) + Math.pow(_root["ball" + i]._y - _root["ball" + j]._y, 2));
if (h < ((_root["ball" + i]._width / 2) + (_root["ball" + j]._width / 2))) {
dx = _root["ball" + i]._x - _root["ball" + j]._x;
dy = _root["ball" + i]._y - _root["ball" + j]._y;
phi = Math.atan(dy / dx);
v1i = Math.sqrt((_root["ball" + i].vx * _root["ball" + i].vx) + (_root["ball" + i].vy * _root["ball" + i].vy));
v2i = Math.sqrt((_root["ball" + j].vx * _root["ball" + j].vx) + (_root["ball" + j].vy * _root["ball" + j].vy));
ang1 = findAnAngle(_root["ball" + i].vx, _root["ball" + i].vy) * term;
ang2 = findAnAngle(_root["ball" + j].vx, _root["ball" + j].vy) * term;
v1xr = v1i * Math.cos(ang1 - phi);
v1yr = v1i * Math.sin(ang1 - phi);
v2xr = v2i * Math.cos(ang2 - phi);
v2yr = v2i * Math.sin(ang2 - phi);
v1fxr = (((_root["ball" + i].m - _root["ball" + j].m) * v1xr) + ((_root["ball" + j].m + _root["ball" + j].m) * v2xr)) / (_root["ball" + i].m + _root["ball" + j].m);
v2fxr = (((_root["ball" + i].m + _root["ball" + i].m) * v1xr) + ((_root["ball" + j].m - _root["ball" + i].m) * v2xr)) / (_root["ball" + i].m + _root["ball" + j].m);
v1fyr = v1yr;
v2fyr = v2yr;
_root["ball" + i].vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr);
_root["ball" + i].vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr);
_root["ball" + j].vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr);
_root["ball" + j].vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr);
}
}
}
};
Instance of Symbol 4 MovieClip "ball2" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 6 MovieClip "ball5" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 8 MovieClip "ball9" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 4 MovieClip "ball4" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 6 MovieClip "ball6" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 8 MovieClip "ball8" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 4 MovieClip "ball10" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 6 MovieClip "ball13" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 8 MovieClip "ball14" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 4 MovieClip "ball3" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 6 MovieClip "ball1" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 8 MovieClip "ball7" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 4 MovieClip "ball12" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 6 MovieClip "ball11" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 8 MovieClip "ball15" in Frame 1
onClipEvent (load) {
vx = random(7) - 3;
vy = random(7) - 3;
m = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y + vy);
_x = (_x + vx);
if (_x < 15) {
vx = vx * -1;
_x = 15;
} else if (_x > (Stage.width - 15)) {
vx = vx * -1;
_x = (Stage.width - 15);
}
if (_y < 15) {
vy = vy * -1;
_y = 15;
} else if (_y > (Stage.height - 15)) {
vy = vy * -1;
_y = (Stage.height - 15);
}
}
Instance of Symbol 19 MovieClip in Frame 1
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Frame 243
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);
}
__com_mochibot__("4caf8016", this, 10301, true);
function findAnAngle(xthing, ything) {
if (xthing < 0) {
t = 180 + (Math.atan(ything / xthing) / term);
} else if ((xthing > 0) && (ything >= 0)) {
t = Math.atan(ything / xthing) / term;
} else if ((xthing > 0) && (ything < 0)) {
t = 360 + (Math.atan(ything / xthing) / term);
} else if ((xthing == 0) && (ything == 0)) {
t = 0;
} else if ((xthing == 0) && (ything >= 0)) {
t = 90;
} else {
t = 270;
}
return(t);
}
var sound = new Sound(this);
sound.attachSound("collision");
sound.setVolume(0);
var wallHit = new Sound(this);
wallHit.attachSound("wallHit");
wallHit.setVolume(0);
var beep = new Sound(this);
beep.attachSound("button");
beep.setVolume(100);
var music = new Sound(this);
music.attachSound("song");
music.setVolume(100);
var gamePlay = true;
var pausGame = false;
var where;
var mon = true;
var son = true;
var keyUp1 = 87;
var keyUp2 = 38;
var keyDown1 = 83;
var keyDown2 = 40;
var keyLeft1 = 65;
var keyLeft2 = 37;
var keyRight1 = 68;
var keyRight2 = 39;
var style = 1;
over = function () {
meny.playGame.onRollOver = function () {
meny.playGame.play();
};
meny.playGame.onRelease = function () {
beep.start(0, 1);
meny.menuinner.play();
outrofunc();
where = "game";
};
meny.credits.onRollOver = function () {
meny.credits.play();
};
meny.credits.onRelease = function () {
beep.start(0, 1);
meny.menuinner.play();
outrofunc();
where = "credits";
};
meny.instruct.onRollOver = function () {
meny.instruct.play();
};
meny.instruct.onRelease = function () {
beep.start(0, 1);
meny.menuinner.play();
outrofunc();
where = "instructions";
};
meny.options.onRollOver = function () {
meny.options.play();
};
meny.options.onRelease = function () {
beep.start(0, 1);
meny.menuinner.play();
outrofunc();
where = "options";
};
meny.highScore.onRollOver = function () {
meny.highScore.play();
};
meny.highScore.onRelease = function () {
getURL ("http://rankz.armorbot.com/BallPanic/", "_blank");
};
};
outrofunc = function () {
meny.playGame.gotoAndPlay("outro");
meny.options.gotoAndPlay("outro");
meny.instruct.gotoAndPlay("outro");
meny.credits.gotoAndPlay("outro");
meny.highScore.gotoAndPlay("outro");
};
createBall = function (place, types) {
balls++;
if (types == 1) {
attachMovie("ballBlue", "ball" + balls, getNextHighestDepth(), {m:1, vy:random(5) - 2, vx:random(5) - 2, init:false, _y:random(260) + 145, _x:random((290 + (340 * (place - 1))) - (20 + (340 * (place - 1)))) + (20 + (340 * (place - 1))), starter:false, nr:balls});
} else if (types == 2) {
attachMovie("ballGreen", "ball" + balls, getNextHighestDepth(), {m:2, vy:random(5) - 2, vx:random(5) - 2, init:false, _y:random(260) + 145, _x:random((290 + (340 * (place - 1))) - (20 + (340 * (place - 1)))) + (20 + (340 * (place - 1))), starter:false, nr:balls});
} else if (types == 3) {
attachMovie("ballRed", "ball" + balls, getNextHighestDepth(), {m:3, vy:random(5) - 2, vx:random(5) - 2, init:false, _y:random(260) + 145, _x:random((290 + (340 * (place - 1))) - (20 + (340 * (place - 1)))) + (20 + (340 * (place - 1))), starter:false, nr:balls});
}
_root["ball" + balls].onEnterFrame = function () {
if (!this.init) {
this.init = true;
i = 0;
while ((++i) <= balls) {
if (i == this.nr) {
if (this.nr == balls) {
break;
}
}
if ((this._x == _root["ball" + i]._x) && (this._y == _root["ball" + i]._y)) {
this.removeMovieClip();
}
}
if ((this.vx == 0) && (this.vy == 0)) {
this.vx = 1;
this.vy = 1;
}
}
if (!pausGame) {
if (this._currentframe == 2) {
if (!this.starter) {
this.test = false;
this.i = 0;
while ((++this.i) <= balls) {
if (this.i == this.nr) {
this.i++;
}
if ((this.hitTest(_root["ball" + this.i]) && (this.i != 1)) && (this.i != 2)) {
this.test = true;
}
}
if (!this.test) {
this.starter = true;
}
}
}
if (this.starter) {
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this._x < (_root["left" + place] + 15)) {
this.vx = this.vx * -1;
this._x = _root["left" + place] + 15;
wallHit.start(0, 1);
} else if (this._x > (_root["right" + place] - 15)) {
this.vx = this.vx * -1;
this._x = _root["right" + place] - 15;
wallHit.start(0, 1);
}
if (this._y < (_root["top" + place] + 15)) {
this.vy = this.vy * -1;
this._y = _root["top" + place] + 15;
wallHit.start(0, 1);
} else if (this._y > (_root["bottom" + place] - 15)) {
this.vy = this.vy * -1;
this._y = _root["bottom" + place] - 15;
wallHit.start(0, 1);
}
}
}
};
};
Frame 244
stop();
onEnterFrame = function () {
};
Instance of Symbol 125 MovieClip in Frame 244
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Frame 245
var pressonce = false;
var backwards = true;
ready = function () {
ig.ig2.startText._visible = false;
changes = function () {
ig.ig2.mouseLocation._y = -110;
ig.ig2.mouseLocation._x = 10 - ((style - 1) * 320);
ig.ig2.keyLocation._y = -110;
ig.ig2.keyLocation._x = -310 + ((style - 1) * 320);
if (style == 2) {
ig.ig2.keyLocation.keys.gotoAndStop("udrl");
ig.ig2.lefty.gotoAndStop("chose");
ig.ig2.righty.gotoAndStop("dischose");
} else {
ig.ig2.keyLocation.keys.gotoAndStop("wasd");
ig.ig2.lefty.gotoAndStop("dischose");
ig.ig2.righty.gotoAndStop("chose");
}
};
ig.ig2.lefty.onRelease = function () {
beep.start(0, 1);
style = 2;
changes();
};
ig.ig2.righty.onRelease = function () {
beep.start(0, 1);
style = 1;
changes();
};
ig.ig2.back.onRelease = function () {
ig.play();
beep.start(0, 1);
backwards = true;
};
onEnterFrame = function () {
if ((((_xmouse > (30 + ((2 - style) * 320))) && (_xmouse < (300 + ((2 - style) * 320)))) && (_ymouse > 150)) && (_ymouse < 390)) {
ig.ig2.startText._visible = true;
if (Key.isDown(32) && (!pressonce)) {
ig.play();
beep.start(0, 1);
pressonce = true;
backwards = false;
}
} else {
ig.ig2.startText._visible = false;
}
};
changes();
};
Frame 246
var term = (Math.PI/180);
var balls = 2;
var left1 = 0;
var right1 = 310;
var top1 = 200;
var bottom1 = Stage.height;
var left2 = 340;
var right2 = Stage.width;
var top2 = 200;
var bottom2 = Stage.height;
var count = 200;
var countNumber = 250;
var scoreMultiplier = 2;
var score = 0;
var level = 0;
var once1 = false;
var once2 = false;
var pressTest = false;
var draging = 10;
onEnterFrame = function () {
if (pausGame) {
pausMeny._visible = true;
} else {
pausMeny._visible = false;
}
if (Key.isDown(16)) {
if ((!pausGame) && (!pressTest)) {
pausGame = true;
pressTest = true;
Mouse.show();
} else if (!pressTest) {
pausGame = false;
pressTest = true;
Mouse.hide();
}
}
if (!Key.isDown(16)) {
pressTest = false;
}
if (!pausGame) {
if ((!ball1.hitted) && (!ball2.hitted)) {
scoreMultiplier = 2;
} else if ((!ball1.hitted) || (!ball2.hitted)) {
scoreMultiplier = 1;
countNumber = 125;
} else if (ball1.hitted && (ball2.hitted)) {
scoreMultiplier = 0;
}
if (scoreMultiplier > 0) {
score = score + (Math.pow(scoreMultiplier, 2) * level);
meny.score = "Score: " + score;
level = int((balls - 2) / 3) + 1;
meny.level = "Level: " + level;
} else {
meny.gotoAndStop("gameOver");
meny.finalScore = "Final Score: " + score;
meny.meny2.onRelease = function () {
i = 0;
while ((++i) <= balls) {
_root["ball" + i].removeMovieClip();
}
gotoAndStop ("meny");
};
meny.submit.onRelease = function () {
trace("LOL");
};
}
count++;
if ((count % countNumber) == 0) {
if (scoreMultiplier == 2) {
createBall(random(2) + 1, random(3) + 1);
} else if ((scoreMultiplier == 1) && (_root["ball" + (3 - style)].hitted)) {
createBall(random(1) + (3 - style), random(3) + 1);
} else if (scoreMultiplier == 1) {
createBall(random(1) + style, random(3) + 1);
}
count = 0;
}
i = 0;
while ((++i) <= balls) {
if (!_root["ball" + i].starter) {
i++;
}
j = i;
while ((++j) <= balls) {
if (!_root["ball" + j].starter) {
j++;
}
h = Math.sqrt(Math.pow(_root["ball" + i]._x - _root["ball" + j]._x, 2) + Math.pow(_root["ball" + i]._y - _root["ball" + j]._y, 2));
if (h < ((_root["ball" + i]._width / 2) + (_root["ball" + j]._width / 2))) {
dx = _root["ball" + i]._x - _root["ball" + j]._x;
dy = _root["ball" + i]._y - _root["ball" + j]._y;
phi = Math.atan(dy / dx);
v1i = Math.sqrt((_root["ball" + i].vx * _root["ball" + i].vx) + (_root["ball" + i].vy * _root["ball" + i].vy));
v2i = Math.sqrt((_root["ball" + j].vx * _root["ball" + j].vx) + (_root["ball" + j].vy * _root["ball" + j].vy));
ang1 = findAnAngle(_root["ball" + i].vx, _root["ball" + i].vy) * term;
ang2 = findAnAngle(_root["ball" + j].vx, _root["ball" + j].vy) * term;
v1xr = v1i * Math.cos(ang1 - phi);
v1yr = v1i * Math.sin(ang1 - phi);
v2xr = v2i * Math.cos(ang2 - phi);
v2yr = v2i * Math.sin(ang2 - phi);
v1fxr = (((_root["ball" + i].m - _root["ball" + j].m) * v1xr) + ((_root["ball" + j].m + _root["ball" + j].m) * v2xr)) / (_root["ball" + i].m + _root["ball" + j].m);
v2fxr = (((_root["ball" + i].m + _root["ball" + i].m) * v1xr) + ((_root["ball" + j].m - _root["ball" + i].m) * v2xr)) / (_root["ball" + i].m + _root["ball" + j].m);
v1fyr = v1yr;
v2fyr = v2yr;
_root["ball" + i].vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr);
_root["ball" + i].vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr);
_root["ball" + j].vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr);
_root["ball" + j].vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr);
if ((i == (3 - style)) || (j == (3 - style))) {
_root["ball" + (3 - style)].hitted = true;
}
sound.start(0, 1);
}
}
}
}
};
_root["ball" + style].onEnterFrame = function () {
if (!once1) {
this.m = 5;
this.vy = 0;
this.vx = 0;
this.starter = true;
this.hitted = false;
this.test = true;
once1 = true;
}
if (!pausGame) {
if ((this.vx == 0) || (this.vy == 0)) {
this.hm = Math.sqrt(Math.pow(_xmouse - this._x, 2) + Math.pow(_ymouse - this._y, 2));
this._y = this._y + ((((_ymouse - this._y) / this.hm) * this.hm) / draging);
this._x = this._x + ((((_xmouse - this._x) / this.hm) * this.hm) / draging);
if ((((_xmouse > _root["left" + (3 - style)]) && (_xmouse < _root["right" + (3 - style)])) && (_ymouse > _root["top" + (3 - style)])) && (_ymouse < _root["bottom" + (3 - style)])) {
Mouse.hide();
} else {
Mouse.show();
}
} else {
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this.test) {
this.hitted = true;
this.starter = false;
Mouse.show();
}
}
if (this._x < (_root["left" + (3 - style)] + 15)) {
this.vx = this.vx * -1;
this._x = _root["left" + (3 - style)] + 15;
} else if (this._x > (_root["right" + (3 - style)] - 15)) {
this.vx = this.vx * -1;
this._x = _root["right" + (3 - style)] - 15;
}
if (this._y < (_root["top" + (3 - style)] + 15)) {
this.vy = this.vy * -1;
this._y = _root["top" + (3 - style)] + 15;
} else if (this._y > (_root["bottom" + (3 - style)] - 15)) {
this.vy = this.vy * -1;
this._y = _root["bottom" + (3 - style)] - 15;
}
if (this.test && (this.hitted)) {
this.test = false;
this.i = 2;
while ((++this.i) <= balls) {
if (this.i == this.nr) {
this.i++;
}
if (this.hitTest(_root["ball" + this.i])) {
this.test = true;
}
}
if (!this.test) {
this.starter = true;
}
}
}
};
_root["ball" + (3 - style)].onEnterFrame = function () {
if (!once2) {
this.m = 1;
this.vy = 0;
this.vx = 0;
this.acc = 0.3;
this.hitted = false;
this.starter = true;
this.test = true;
once2 = true;
}
if (!pausGame) {
if (!this.hitted) {
this.vx = this.vx - (Key.isDown(_root["keyLeft" + style]) * this.acc);
this.vx = this.vx + (Key.isDown(_root["keyRight" + style]) * this.acc);
this.vy = this.vy + (Key.isDown(_root["keyDown" + style]) * this.acc);
this.vy = this.vy - (Key.isDown(_root["keyUp" + style]) * this.acc);
if (this.vx < -7) {
this.vx = -7;
}
if (this.vx > 7) {
this.vx = 7;
}
if (this.vy < -7) {
this.vy = -7;
}
if (this.vy > 7) {
this.vy = 7;
}
}
this._y = this._y + this.vy;
this._x = this._x + this.vx;
if (this._x < (_root["left" + style] + 15)) {
this.vx = this.vx * -1;
this._x = _root["left" + style] + 15;
wallHit.start(0, 1);
} else if (this._x > (_root["right" + style] - 15)) {
this.vx = this.vx * -1;
this._x = _root["right" + style] - 15;
wallHit.start(0, 1);
}
if (this._y < (_root["top" + style] + 15)) {
this.vy = this.vy * -1;
this._y = _root["top" + style] + 15;
wallHit.start(0, 1);
} else if (this._y > (_root["bottom" + style] - 15)) {
this.vy = this.vy * -1;
this._y = _root["bottom" + style] - 15;
wallHit.start(0, 1);
}
if (this.test && (this.hitted)) {
this.starter = false;
this.test = false;
this.i = 2;
while ((++this.i) <= balls) {
if (this.i == this.nr) {
this.i++;
}
if (this.hitTest(_root["ball" + this.i])) {
this.test = true;
}
}
if (!this.test) {
this.starter = true;
}
}
}
};
Frame 247
stop();
var term = (Math.PI/180);
var balls = 2;
var left1 = 0;
var right1 = 310;
var top1 = 125;
var bottom1 = 425;
var left2 = 340;
var right2 = Stage.width;
var top2 = 125;
var bottom2 = 425;
var count = 200;
var countNumber = 250;
var scoreMultiplier = 2;
var score = 0;
var level = 0;
var once1 = false;
var once2 = false;
var pressTest = false;
var draging = 10;
music.start(0, 2);
onEnterFrame = function () {
if (pausGame) {
pausMeny._visible = true;
} else {
pausMeny._visible = false;
}
if (Key.isDown(80) && (gamePlay)) {
if ((!pausGame) && (!pressTest)) {
pausGame = true;
pressTest = true;
Mouse.show();
} else if (!pressTest) {
pausGame = false;
pressTest = true;
}
}
if (!Key.isDown(80)) {
pressTest = false;
}
if (!pausGame) {
if ((!ball1.hitted) && (!ball2.hitted)) {
scoreMultiplier = 2;
} else if ((!ball1.hitted) || (!ball2.hitted)) {
scoreMultiplier = 1;
countNumber = 125;
} else if (ball1.hitted && (ball2.hitted)) {
scoreMultiplier = 0;
}
if (scoreMultiplier > 0) {
score = score + (Math.pow(scoreMultiplier, 2) * level);
meny.score = "Score: " + score;
level = int((balls - 2) / 3) + 1;
meny.level = "Level: " + level;
} else {
gamePlay = false;
meny.gotoAndStop("gameOver");
meny.finalScore = "Final Score: " + score;
meny.meny2.onRelease = function () {
i = 0;
while ((++i) <= balls) {
_root["ball" + i].removeMovieClip();
}
stopAllSounds();
gotoAndStop ("meny");
};
meny.submit.onRelease = function () {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.meny.namn;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__("MTg1MmolZSVhJW4lcw==", "cEdOZ2hOQlI=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
i = 0;
while ((++i) <= balls) {
_root["ball" + i].removeMovieClip();
}
gamePlay = true;
stopAllSounds();
getURL ("http://rankz.armorbot.com/BallPanic/", "_blank");
gotoAndStop ("meny");
};
meny.playagain.onRelease = function () {
i = 0;
while ((++i) <= balls) {
_root["ball" + i].removeMovieClip();
}
stopAllSounds();
gamePlay = true;
_root.gotoAndStop("introGame");
};
}
count++;
if ((count % countNumber) == 0) {
if (scoreMultiplier == 2) {
createBall(random(2) + 1, random(3) + 1);
} else if ((scoreMultiplier == 1) && (_root["ball" + (3 - style)].hitted)) {
createBall(random(1) + (3 - style), random(3) + 1);
} else if (scoreMultiplier == 1) {
createBall(random(1) + style, random(3) + 1);
}
count = 0;
}
i = 0;
while ((++i) <= balls) {
if (!_root["ball" + i].starter) {
i++;
}
j = i;
while ((++j) <= balls) {
if (!_root["ball" + j].starter) {
j++;
}
h = Math.sqrt(Math.pow(_root["ball" + i]._x - _root["ball" + j]._x, 2) + Math.pow(_root["ball" + i]._y - _root["ball" + j]._y, 2));
if (h < ((_root["ball" + i]._width / 2) + (_root["ball" + j]._width / 2))) {
dx = _root["ball" + i]._x - _root["ball" + j]._x;
dy = _root["ball" + i]._y - _root["ball" + j]._y;
phi = Math.atan(dy / dx);
v1i = Math.sqrt((_root["ball" + i].vx * _root["ball" + i].vx) + (_root["ball" + i].vy * _root["ball" + i].vy));
v2i = Math.sqrt((_root["ball" + j].vx * _root["ball" + j].vx) + (_root["ball" + j].vy * _root["ball" + j].vy));
ang1 = findAnAngle(_root["ball" + i].vx, _root["ball" + i].vy) * term;
ang2 = findAnAngle(_root["ball" + j].vx, _root["ball" + j].vy) * term;
v1xr = v1i * Math.cos(ang1 - phi);
v1yr = v1i * Math.sin(ang1 - phi);
v2xr = v2i * Math.cos(ang2 - phi);
v2yr = v2i * Math.sin(ang2 - phi);
v1fxr = (((_root["ball" + i].m - _root["ball" + j].m) * v1xr) + ((_root["ball" + j].m + _root["ball" + j].m) * v2xr)) / (_root["ball" + i].m + _root["ball" + j].m);
v2fxr = (((_root["ball" + i].m + _root["ball" + i].m) * v1xr) + ((_root["ball" + j].m - _root["ball" + i].m) * v2xr)) / (_root["ball" + i].m + _root["ball" + j].m);
v1fyr = v1yr;
v2fyr = v2yr;
_root["ball" + i].vx = (Math.cos(phi) * v1fxr) + (Math.cos(phi + (Math.PI/2)) * v1fyr);
_root["ball" + i].vy = (Math.sin(phi) * v1fxr) + (Math.sin(phi + (Math.PI/2)) * v1fyr);
_root["ball" + j].vx = (Math.cos(phi) * v2fxr) + (Math.cos(phi + (Math.PI/2)) * v2fyr);
_root["ball" + j].vy = (Math.sin(phi) * v2fxr) + (Math.sin(phi + (Math.PI/2)) * v2fyr);
if ((i == (3 - style)) || (j == (3 - style))) {
_root["ball" + (3 - style)].hitted = true;
}
sound.start(0, 1);
}
}
}
}
};
_root["ball" + style].onEnterFrame = function () {
if (!once1) {
this.m = 5;
this.vy = 0;
this.vx = 0;
this.starter = true;
this.hitted = false;
this.test = true;
once1 = true;
}
if (!pausGame) {
if ((this.vx == 0) || (this.vy == 0)) {
this.hm = Math.sqrt(Math.pow(_xmouse - this._x, 2) + Math.pow(_ymouse - this._y, 2));
this._y = this._y + ((((_ymouse - this._y) / this.hm) * this.hm) / draging);
this._x = this._x + ((((_xmouse - this._x) / this.hm) * this.hm) / draging);
if ((((_xmouse > _root["left" + (3 - style)]) && (_xmouse < _root["right" + (3 - style)])) && (_ymouse > _root["top" + (3 - style)])) && (_ymouse < _root["bottom" + (3 - style)])) {
Mouse.hide();
} else {
Mouse.show();
}
} else {
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this.test) {
this.hitted = true;
this.starter = false;
Mouse.show();
}
}
if (this._x < (_root["left" + (3 - style)] + 15)) {
this.vx = this.vx * -1;
this._x = _root["left" + (3 - style)] + 15;
} else if (this._x > (_root["right" + (3 - style)] - 15)) {
this.vx = this.vx * -1;
this._x = _root["right" + (3 - style)] - 15;
}
if (this._y < (_root["top" + (3 - style)] + 15)) {
this.vy = this.vy * -1;
this._y = _root["top" + (3 - style)] + 15;
} else if (this._y > (_root["bottom" + (3 - style)] - 15)) {
this.vy = this.vy * -1;
this._y = _root["bottom" + (3 - style)] - 15;
}
if (this.test && (this.hitted)) {
this.test = false;
this.i = 2;
while ((++this.i) <= balls) {
if (this.i == this.nr) {
this.i++;
}
if (this.hitTest(_root["ball" + this.i])) {
this.test = true;
}
}
if (!this.test) {
this.starter = true;
}
}
}
};
_root["ball" + (3 - style)].onEnterFrame = function () {
if (!once2) {
this.m = 1;
this.vy = 0;
this.vx = 0;
this.acc = 0.3;
this.hitted = false;
this.starter = true;
this.test = true;
once2 = true;
}
if (!pausGame) {
if (!this.hitted) {
this.vy = this.vy * 0.95;
this.vx = this.vx * 0.95;
this.vx = this.vx - (Key.isDown(_root["keyLeft" + style]) * this.acc);
this.vx = this.vx + (Key.isDown(_root["keyRight" + style]) * this.acc);
this.vy = this.vy + (Key.isDown(_root["keyDown" + style]) * this.acc);
this.vy = this.vy - (Key.isDown(_root["keyUp" + style]) * this.acc);
if (this.vx < -7) {
this.vx = -7;
}
if (this.vx > 7) {
this.vx = 7;
}
if (this.vy < -7) {
this.vy = -7;
}
if (this.vy > 7) {
this.vy = 7;
}
}
this._y = this._y + this.vy;
this._x = this._x + this.vx;
if (this._x < (_root["left" + style] + 15)) {
this.vx = this.vx * -1;
this._x = _root["left" + style] + 15;
wallHit.start(0, 1);
} else if (this._x > (_root["right" + style] - 15)) {
this.vx = this.vx * -1;
this._x = _root["right" + style] - 15;
wallHit.start(0, 1);
}
if (this._y < (_root["top" + style] + 15)) {
this.vy = this.vy * -1;
this._y = _root["top" + style] + 15;
wallHit.start(0, 1);
} else if (this._y > (_root["bottom" + style] - 15)) {
this.vy = this.vy * -1;
this._y = _root["bottom" + style] - 15;
wallHit.start(0, 1);
}
if (this.test && (this.hitted)) {
this.starter = false;
this.test = false;
this.i = 2;
while ((++this.i) <= balls) {
if (this.i == this.nr) {
this.i++;
}
if (this.hitTest(_root["ball" + this.i])) {
this.test = true;
}
}
if (!this.test) {
this.starter = true;
}
}
}
};
Instance of Symbol 172 MovieClip in Frame 247
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
onClipEvent (enterFrame) {
if (_root.meny._currentframe == 1) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 16 MovieClip Frame 40
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 173 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 27 MovieClip Frame 80
_parent.gotoAndStop("ready");
Symbol 28 MovieClip [BallBlue] Frame 1
stop();
Symbol 29 MovieClip Frame 80
_parent.gotoAndStop("ready");
Symbol 30 MovieClip [BallRed] Frame 1
stop();
Symbol 31 MovieClip Frame 80
_parent.gotoAndStop("ready");
Symbol 32 MovieClip [BallGreen] Frame 1
stop();
Symbol 38 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 41 MovieClip Frame 60
stop();
Symbol 55 MovieClip Frame 14
stop();
Symbol 58 MovieClip Frame 30
stop();
_root.over();
Symbol 58 MovieClip Frame 60
stop();
if (_root.where == "game") {
_root.gotoAndStop("introGame");
}
_parent.gotoAndStop(_root.where);
Symbol 61 MovieClip Frame 30
gotoAndStop ("rollover");
Symbol 61 MovieClip Frame 60
stop();
Symbol 61 MovieClip Frame 61
stop();
Symbol 61 MovieClip Frame 106
gotoAndStop ("rollover");
Symbol 64 MovieClip Frame 30
gotoAndStop ("rollover");
Symbol 64 MovieClip Frame 61
stop();
Symbol 64 MovieClip Frame 106
gotoAndStop ("rollover");
Symbol 67 MovieClip Frame 30
gotoAndStop ("rollover");
Symbol 67 MovieClip Frame 106
gotoAndStop ("rollover");
Symbol 70 MovieClip Frame 30
gotoAndStop ("rollover");
Symbol 70 MovieClip Frame 106
gotoAndStop ("rollover");
Symbol 74 MovieClip Frame 30
gotoAndStop ("rollover");
Symbol 74 MovieClip Frame 61
stop();
Symbol 74 MovieClip Frame 106
gotoAndStop ("rollover");
Symbol 76 MovieClip Frame 30
stop();
_parent.back.onRelease = function () {
_root.beep.start(0, 1);
_parent.optionsMenu.play();
_parent.lr.gotoAndPlay("outro");
_parent.back.gotoAndPlay("outro");
_parent.sound.gotoAndPlay("outro");
};
_parent.back.onRollOver = function () {
_parent.back.play();
};
_parent.lr.lr2.righty.onRelease = function () {
_root.beep.start(0, 1);
_root.style = 1;
_parent.lr.lr2.righty.gotoAndStop("chose");
_parent.lr.lr2.lefty.gotoAndStop("dischose");
};
_parent.lr.lr2.lefty.onRelease = function () {
_root.beep.start(0, 1);
_root.style = 2;
_parent.lr.lr2.righty.gotoAndStop("dischose");
_parent.lr.lr2.lefty.gotoAndStop("chose");
};
_parent.sound.sound2.on2.onRelease = function () {
_root.son = true;
_parent.sound.sound2.on2.gotoAndStop(2);
_parent.sound.sound2.off2.gotoAndStop(1);
_root.beep.setVolume(100);
_root.beep.start(0, 1);
};
_parent.sound.sound2.off2.onRelease = function () {
_root.son = false;
_parent.sound.sound2.on2.gotoAndStop(1);
_parent.sound.sound2.off2.gotoAndStop(2);
_root.beep.setVolume(0);
};
_parent.sound.sound2.on1.onRelease = function () {
_root.mon = true;
_parent.sound.sound2.on1.gotoAndStop(2);
_parent.sound.sound2.off1.gotoAndStop(1);
_root.beep.start(0, 1);
};
_parent.sound.sound2.off1.onRelease = function () {
_root.mon = false;
_parent.sound.sound2.on1.gotoAndStop(1);
_parent.sound.sound2.off1.gotoAndStop(2);
_root.beep.start(0, 1);
};
Symbol 76 MovieClip Frame 60
_parent.gotoAndStop("meny");
Symbol 81 MovieClip Frame 30
gotoAndStop ("rollover");
Symbol 81 MovieClip Frame 62
stop();
Symbol 81 MovieClip Frame 107
gotoAndStop ("rollover");
Symbol 84 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 30
gotoAndStop ("outro");
Symbol 89 MovieClip Frame 61
gotoAndStop ("outro");
Symbol 98 MovieClip Frame 30
gotoAndStop ("outro");
Symbol 98 MovieClip Frame 61
gotoAndStop ("outro");
Symbol 104 MovieClip Frame 30
_parent.back.onRelease = function () {
_root.beep.start(0, 1);
_parent.symbols.gotoAndPlay("outro");
_parent.back.gotoAndPlay("outro");
};
_parent.back.onRollOver = function () {
_parent.back.play();
};
Symbol 104 MovieClip Frame 31
stop();
Symbol 104 MovieClip Frame 60
_parent.gotoAndStop("meny");
Symbol 105 MovieClip Frame 31
gotoAndStop ("rollover");
Symbol 105 MovieClip Frame 62
stop();
Symbol 105 MovieClip Frame 107
gotoAndStop ("rollover");
Symbol 108 MovieClip Frame 30
stop();
_parent.back.onRelease = function () {
_root.beep.start(0, 1);
_parent.creditMenu.play();
_parent.back.gotoAndPlay("outro");
_parent.credtext.gotoAndPlay("outro");
};
_parent.back.onRollOver = function () {
_parent.back.play();
};
Symbol 108 MovieClip Frame 60
_parent.gotoAndStop("meny");
Symbol 109 MovieClip Frame 30
gotoAndStop ("rollover");
Symbol 109 MovieClip Frame 61
stop();
Symbol 109 MovieClip Frame 106
gotoAndStop ("rollover");
Symbol 118 MovieClip Frame 30
gotoAndStop ("outro");
Symbol 118 MovieClip Frame 61
gotoAndStop ("outro");
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 2
if (_root.style == 1) {
lr.lr2.righty.gotoAndStop("chose");
lr.lr2.lefty.gotoAndStop("dischose");
} else {
lr.lr2.righty.gotoAndStop("dischose");
lr.lr2.lefty.gotoAndStop("chose");
}
if (_root.mon) {
sound.sound2.on1.gotoAndStop(2);
sound.sound2.off1.gotoAndStop(1);
} else {
sound.sound2.on1.gotoAndStop(1);
sound.sound2.off1.gotoAndStop(2);
}
if (_root.son) {
sound.sound2.on2.gotoAndStop(2);
sound.sound2.off2.gotoAndStop(1);
} else {
sound.sound2.on2.gotoAndStop(1);
sound.sound2.off2.gotoAndStop(2);
}
Symbol 133 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 30
gotoAndStop ("outro");
Symbol 142 MovieClip Frame 31
_root.ready();
Symbol 142 MovieClip Frame 60
if (_root.backwards) {
_root.gotoAndStop("meny");
}
Symbol 142 MovieClip Frame 91
if (_root.pressonce) {
_root.gotoAndStop("game");
} else {
_root.gotoAndStop("meny");
}
Symbol 156 MovieClip Frame 1
stop();
Instance of Symbol 19 MovieClip in Symbol 156 MovieClip Frame 2
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 169 MovieClip Frame 1
if (_root.mon) {
sound2.on1.gotoAndStop(2);
sound2.off1.gotoAndStop(1);
} else {
sound2.on1.gotoAndStop(1);
sound2.off1.gotoAndStop(2);
}
if (_root.son) {
sound2.on2.gotoAndStop(2);
sound2.off2.gotoAndStop(1);
} else {
sound2.on2.gotoAndStop(1);
sound2.off2.gotoAndStop(2);
}
sound2.on2.onRelease = function () {
_root.son = true;
sound2.on2.gotoAndStop(2);
sound2.off2.gotoAndStop(1);
_root.beep.setVolume(100);
_root.beep.start(0, 1);
};
sound2.off2.onRelease = function () {
_root.son = false;
sound2.on2.gotoAndStop(1);
sound2.off2.gotoAndStop(2);
_root.beep.setVolume(0);
_root.beep.start(0, 1);
};
sound2.on1.onRelease = function () {
_root.mon = true;
sound2.on1.gotoAndStop(2);
sound2.off1.gotoAndStop(1);
_root.music.setVolume(100);
_root.beep.start(0, 1);
};
sound2.off1.onRelease = function () {
_root.mon = false;
sound2.on1.gotoAndStop(1);
sound2.off1.gotoAndStop(2);
_root.music.setVolume(0);
_root.beep.start(0, 1);
};
menu.onRelease = function () {
i = 0;
while ((++i) <= _root.balls) {
_root["ball" + i].removeMovieClip();
}
stopAllSounds();
_root.pausGame = false;
_root.gotoAndStop("meny");
};
RTG.onRelease = function () {
_root.pausGame = false;
};