Frame 1
function liga(f) {
if (f == undefined) {
gotoAndStop (2);
} else {
gotoAndStop(f);
}
}
function starting(f) {
if (f == undefined) {
gotoAndStop (93);
} else {
gotoAndStop(f +92);
}
}
function single(f) {
if (f == undefined) {
gotoAndStop (95);
} else {
gotoAndStop(f +94);
}
}
function multi(f) {
if (f == undefined) {
gotoAndStop (1);
} else {
gotoAndStop(f);
}
}
function instr(f) {
if (f == undefined) {
gotoAndStop (94);
} else {
gotoAndStop(f +93);
}
}
function register(f) {
if (f == undefined) {
gotoAndStop (1);
} else {
gotoAndStop(f);
}
}
function hof(f) {
if (f == undefined) {
gotoAndStop (1);
} else {
gotoAndStop(f);
}
}
_root.__url = "http://67.18.146.218/php/";
this._socket = new XMLSocket();
Frame 2
Stage.scaleMode = "noScale";
fscommand ("trapallkeys", true);
Stage.showMenu = false;
Frame 93
stop();
Instance of Symbol 79 MovieClip in Frame 93
//component parameters
onClipEvent (initialize) {
label = "Instructions";
wide = 80;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = true;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.instr();
}
Instance of Symbol 79 MovieClip in Frame 93
//component parameters
onClipEvent (initialize) {
label = "Play";
wide = 80;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = true;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.single();
}
Instance of Symbol 79 MovieClip in Frame 93
//component parameters
onClipEvent (initialize) {
label = "GO";
wide = 75;
c1 = 0;
c2 = 153;
c3 = 0;
hc1 = 0;
hc2 = 200;
hc3 = 0;
baseMode = true;
widthMode = true;
rgb = 39168;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 51200;
}
on (press) {
getURL ("http://www.FlashGames247.com", "_blank");
}
Instance of Symbol 79 MovieClip in Frame 94
//component parameters
onClipEvent (initialize) {
label = "Play";
wide = 57;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = false;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.single();
}
Frame 95
stop();
Symbol 9 MovieClip Frame 1
_root.stop();
Stage.scaleMode = "noScale";
fscommand ("trapallkeys", true);
Stage.showMenu = false;
this.sg = [];
for (var i in this) {
if (this[i]._totalframes == 1) {
this.sg.push(this[i]);
this[i]._alpha = 20;
}
}
this._tm = getTimer();
this.onEnterFrame = function () {
var ld = _root.getBytesLoaded();
var tt = _root.getBytesTotal();
this.bytes = ld;
this.procent = ((tt > 0) ? ((100 * ld) / tt) : 0);
this.time = (getTimer() - this._tm) / 1000;
this.transfer = this.bytes / this.time;
var pr = Math.floor(this.procent);
var i = 100;
while (i > (100 - pr)) {
this.sg[i]._alpha = 40;
i--;
}
if (pr >= 100) {
this.onEnterFrame = null;
_root.play();
}
};
Symbol 36 MovieClip Frame 1
function sss(a) {
var v = a.ss.getVolume();
if (v >= 100) {
clearInterval(a.it);
} else {
a.ss.setVolume(v + 3);
}
}
this.ss = new Sound(this);
this.ss.attachSound("muza");
this.ss.setVolume(0);
this.ss.start(0, 100000);
this.it = setInterval(sss, 33, this);
Symbol 36 MovieClip Frame 56
stop();
Symbol 56 MovieClip Frame 1
i = 1;
while (i < 5) {
this["a" + i]._y = Math.sin(getTimer() / 250) * 5;
i++;
}
i = 1;
while (i < 3) {
this["b" + i]._y = Math.cos(getTimer() / 250) * 5;
i++;
}
Symbol 79 MovieClip Frame 1
this.onPress = function () {
pressing = true;
i = 1;
while (i <= 3) {
buttonColor = new Color(eval ("piece" + i).colorchip);
buttonColor.setRGB(3355443);
lowColor = new Color(eval ("piece" + i).bottomhilite);
lowColorTransform = new Object();
lowColorTransform = {ra:"0", rb:"200", ga:"0", gb:"200", ba:"0", bb:"200", aa:"100", ab:"0"};
lowColor.setTransform(lowColorTransform);
i++;
}
};
this.onRelease = function () {
pressing = false;
};
this.onReleaseOutside = function () {
pressing = false;
};
this.onEnterFrame = function () {
if (pressing != true) {
i = 1;
while (i <= 3) {
buttonColor = new Color(eval ("piece" + i).colorchip);
buttonColor.setRGB(rgb);
lowColor = new Color(eval ("piece" + i).bottomhilite);
lowColorTransform = new Object();
lowColorTransform = {ra:"0", rb:hc1, ga:"0", gb:hc2, ba:"0", bb:hc3, aa:"100", ab:"0"};
lowColor.setTransform(lowColorTransform);
i++;
}
}
};
with (piece2) {
_width = _parent.wide;
piece1._x = _x - (_width / 2);
piece3._x = _x + (_width / 2);
_parent.midshadow._width = _width;
_parent.leftshadow._x = _x - (_width / 2);
_parent.rightshadow._x = _x + (_width / 2);
}
label1.autoSize = "center";
label2.autoSize = "center";
Symbol 82 MovieClip Frame 10
stop();
Symbol 85 MovieClip Frame 10
stop();
Symbol 86 MovieClip Frame 1
if (_root.liv == 0) {
_root.lost(3);
}
this.gotoAndStop(_root.liv + 2);
stop();
Symbol 97 Button
on (press) {
getURL ("http://www.FlashGames247.com", "_blank");
}
Symbol 98 Button
on (press) {
getURL ("http://www.FlashGames247.com/gamesbyemail", "_blank");
}
Symbol 99 Button
on (press) {
getURL ("http://www.FlashGames247.com/addflashgames", "_blank");
}
Symbol 100 Button
on (press) {
getURL ("http://www.FlashGames247.com/download/gball_n.exe", "_blank");
}
Instance of Symbol 105 MovieClip in Symbol 106 MovieClip Frame 1
on (press) {
getURL ("http://www.FlashGames247.com", "_blank");
}
Symbol 150 MovieClip Frame 33
gotoAndPlay (1);
Symbol 150 MovieClip Frame 35
stop();
Symbol 180 MovieClip Frame 1
function sqr(n) {
return(n * n);
}
_alpha = 0;
if ((_parent._parent.stat == "gra") and (Math.sqrt(sqr((_x + _parent._x) - _parent._parent.ball._x) + sqr((_y + _parent._y) - _parent._parent.ball._y)) < 20)) {
if (_parent._parent.fallsound == false) {
_parent._parent.sounds.gotoAndPlay(2);
_parent._parent.fallsound = true;
}
_parent._parent.ballxx = _parent._parent.ballxx * 0.5;
_parent._parent.ballyy = _parent._parent.ballyy * 0.5;
_parent._parent.ballxx = _parent._parent.ballxx + (((_x + _parent._x) - _parent._parent.ball._x) / 10);
_parent._parent.ballyy = _parent._parent.ballyy + (((_y + _parent._y) - _parent._parent.ball._y) / 10);
_parent._parent.ball._xscale = _parent._parent.ball._xscale * 0.9;
_parent._parent.ball._yscale = _parent._parent.ball._yscale * 0.9;
if (_parent._parent.ball._xscale < 1) {
_parent._parent.stat = "lose";
}
}
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 8
stop();
Symbol 184 MovieClip Frame 1
function sqr(n) {
return(n * n);
}
if (_parent._parent.stat == "start") {
flash.gotoAndStop(1);
coin._alpha = 100;
}
if (((flash._currentframe == 1) and (_parent._parent.stat == "gra")) and (Math.sqrt(sqr((_x + _parent._x) - _parent._parent.ball._x) + sqr((_y + _parent._y) - _parent._parent.ball._y)) < 10)) {
coin._alpha = 0;
flash.gotoAndPlay(1);
_parent._parent.sounds.gotoAndPlay(4);
_parent._parent.points = _parent._parent.points + 25;
}
Symbol 185 MovieClip Frame 3
function sqr(n) {
return(n * n);
}
if ((_parent._parent.stat == "gra") and (Math.sqrt(sqr((_x + _parent._x) - _parent._parent.ball._x) + sqr((_y + _parent._y) - _parent._parent.ball._y)) < 12)) {
_parent._parent.sounds.gotoAndPlay(10);
gotoAndPlay (4);
} else {
gotoAndPlay (1);
}
Symbol 185 MovieClip Frame 10
_parent._parent.stat = "win";
_parent._parent.licz = 0;
_parent._parent.score = _parent._parent.score + _parent._parent.points;
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 3
stop();
Symbol 211 MovieClip Frame 5
stop();
Symbol 211 MovieClip Frame 7
stop();
Symbol 211 MovieClip Frame 9
stop();
Symbol 211 MovieClip Frame 11
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 3
gotoAndStop (1);
Symbol 217 MovieClip Frame 5
gotoAndStop (1);
Symbol 217 MovieClip Frame 7
gotoAndStop (1);
Symbol 217 MovieClip Frame 9
gotoAndStop (1);
Symbol 217 MovieClip Frame 11
gotoAndStop (1);
Symbol 217 MovieClip Frame 13
gotoAndStop (1);
Symbol 217 MovieClip Frame 15
gotoAndStop (1);
Symbol 235 MovieClip Frame 3
_parent.levelcode.text = "first";
_parent.points = 100;
_parent.stat = "w8";
_parent.licz = 1;
_parent.level.gotoAndStop(1);
_parent.ball._xscale = 22.5;
_parent.ball._yscale = 22.5;
_parent.ballx = 42;
_parent.bally = 64;
_parent.camerax = 275 - _parent.ballx;
_parent.cameray = 240 - _parent.bally;
_parent.ballxx = 0;
_parent.ballyy = 0;
_parent.board.rotx = 0;
_parent.board.roty = 0;
stop();
Symbol 235 MovieClip Frame 6
_parent.levelcode.text = "plank";
_parent.points = 150;
_parent.stat = "w8";
_parent.licz = 1;
_parent.level.gotoAndStop(3);
_parent.ball._xscale = 22.5;
_parent.ball._yscale = 22.5;
_parent.ballx = 45;
_parent.bally = 45;
_parent.camerax = 275 - _parent.ballx;
_parent.cameray = 240 - _parent.bally;
_parent.ballxx = 0;
_parent.ballyy = 0;
_parent.board.rotx = 0;
_parent.board.roty = 0;
stop();
Symbol 235 MovieClip Frame 9
_parent.levelcode.text = "scrap";
_parent.points = 200;
_parent.stat = "w8";
_parent.licz = 1;
_parent.level.gotoAndStop(5);
_parent.ball._xscale = 22.5;
_parent.ball._yscale = 22.5;
_parent.ballx = 180;
_parent.bally = 122;
_parent.camerax = 275 - _parent.ballx;
_parent.cameray = 240 - _parent.bally;
_parent.ballxx = 0;
_parent.ballyy = 0;
_parent.board.rotx = 0;
_parent.board.roty = 0;
stop();
Symbol 235 MovieClip Frame 12
_parent.levelcode.text = "stoned";
_parent.points = 250;
_parent.stat = "w8";
_parent.licz = 1;
_parent.level.gotoAndStop(7);
_parent.ball._xscale = 22.5;
_parent.ball._yscale = 22.5;
_parent.ballx = 42;
_parent.bally = 238;
_parent.camerax = 275 - _parent.ballx;
_parent.cameray = 240 - _parent.bally;
_parent.ballxx = 0;
_parent.ballyy = 0;
_parent.board.rotx = 0;
_parent.board.roty = 0;
stop();
Symbol 235 MovieClip Frame 15
_parent.levelcode.text = "sandy";
_parent.points = 300;
_parent.stat = "w8";
_parent.licz = 1;
_parent.level.gotoAndStop(9);
_parent.ball._xscale = 22.5;
_parent.ball._yscale = 22.5;
_parent.ballx = 42;
_parent.bally = 238;
_parent.camerax = 275 - _parent.ballx;
_parent.cameray = 240 - _parent.bally;
_parent.ballxx = 0;
_parent.ballyy = 0;
_parent.board.rotx = 0;
_parent.board.roty = 0;
stop();
Symbol 235 MovieClip Frame 18
_parent.levelcode.text = "hitech";
_parent.points = 350;
_parent.stat = "w8";
_parent.licz = 1;
_parent.level.gotoAndStop(11);
_parent.ball._xscale = 22.5;
_parent.ball._yscale = 22.5;
_parent.ballx = 166;
_parent.bally = 43;
_parent.camerax = 275 - _parent.ballx;
_parent.cameray = 240 - _parent.bally;
_parent.ballxx = 0;
_parent.ballyy = 0;
_parent.board.rotx = 0;
_parent.board.roty = 0;
stop();
Symbol 236 MovieClip Frame 1
function turnx(angle, r) {
return(Math.sin((((-angle) + 180) / 180) * Math.PI) * r);
}
function turny(angle, r) {
return(Math.cos((((-angle) + 180) / 180) * Math.PI) * r);
}
function kat(kx, ky) {
return((((-Math.atan2(kx, ky)) * 180) / Math.PI) + 180);
}
x = new Array(-30, 30, -30, 30, -30, 30, -30, 30);
y = new Array(30, 30, -30, -30, 30, 30, -30, -30);
z = new Array(0, 0, 0, 0, -8, -8, -8, -8);
i = 0;
while (i < 8) {
y[i] = turnx(kat(y[i], z[i]) + rotx, Math.sqrt((y[i] * y[i]) + (z[i] * z[i])));
z[i] = turny(kat(y[i], z[i]) + rotx, Math.sqrt((y[i] * y[i]) + (z[i] * z[i])));
x[i] = turnx(kat(x[i], z[i]) + roty, Math.sqrt((x[i] * x[i]) + (z[i] * z[i])));
z[i] = turny(kat(x[i], z[i]) + roty, Math.sqrt((x[i] * x[i]) + (z[i] * z[i])));
x[i] = turnx(kat(x[i], y[i]) + rotz, Math.sqrt((x[i] * x[i]) + (y[i] * y[i])));
y[i] = turny(kat(x[i], y[i]) + rotz, Math.sqrt((x[i] * x[i]) + (y[i] * y[i])));
i++;
}
i = 0;
while (i < 8) {
y[i] = y[i] * (1 + (z[i] / 100));
x[i] = x[i] * (1 + (z[i] / 100));
i++;
}
this.clear();
this.lineStyle(1.5, 16777215, 100);
this.moveTo(x[0], y[0]);
this.lineTo(x[1], y[1]);
this.lineTo(x[3], y[3]);
this.lineTo(x[2], y[2]);
this.lineTo(x[0], y[0]);
this.moveTo(x[4], y[4]);
this.lineTo(x[5], y[5]);
this.lineTo(x[7], y[7]);
this.lineTo(x[6], y[6]);
this.lineTo(x[4], y[4]);
this.moveTo(x[0], y[0]);
this.lineTo(x[4], y[4]);
this.moveTo(x[1], y[1]);
this.lineTo(x[5], y[5]);
this.moveTo(x[2], y[2]);
this.lineTo(x[6], y[6]);
this.moveTo(x[3], y[3]);
this.lineTo(x[7], y[7]);
Symbol 241 MovieClip Frame 1
stop();
Symbol 251 Button
on (release) {
if (stat == "gra") {
lives.gotoAndStop(5);
stat = "lose";
}
}
Symbol 256 Button
on (release) {
if (stat == "gra") {
stat = "lose";
}
}
Symbol 268 Button
on (release) {
ok = false;
if (entered == "first") {
_parent.levelset.gotoAndPlay(1);
ok = true;
}
if (entered == "plank") {
_parent.levelset.gotoAndPlay(4);
ok = true;
}
if (entered == "scrap") {
_parent.levelset.gotoAndPlay(7);
ok = true;
}
if (entered == "stoned") {
_parent.levelset.gotoAndPlay(10);
ok = true;
}
if (entered == "sandy") {
_parent.levelset.gotoAndPlay(13);
ok = true;
}
if (entered == "hitech") {
_parent.levelset.gotoAndPlay(16);
ok = true;
}
if (ok) {
gotoAndStop (2);
} else {
entered = "first";
}
}
Symbol 270 MovieClip Frame 1
_parent.levelset.stop();
stop();
Symbol 271 MovieClip Frame 1
function turnx(angle, r) {
return(Math.sin((((-angle) + 180) / 180) * Math.PI) * r);
}
function turny(angle, r) {
return(Math.cos((((-angle) + 180) / 180) * Math.PI) * r);
}
function kat(kx, ky) {
return((((-Math.atan2(kx, ky)) * 180) / Math.PI) + 180);
}
function touch(bx, by) {
czy = false;
ix = 0;
while (ix < 11) {
iy = 0;
while (iy < 11) {
if (level.mask.hitTest((bx + ix) - 5, (by + iy) - 5, true)) {
czy = true;
}
iy++;
}
ix++;
}
return(czy);
}
if (score == undefined) {
score = 0;
}
pointstext.text = points;
scoretext.text = score;
if (stat == "w8") {
if (complete._alpha > 0) {
complete._alpha = complete._alpha - 10;
}
licz++;
if (licz > 20) {
sounds.gotoAndPlay(8);
stat = "start";
}
}
if (stat == "start") {
ball._x = camerax + ballx;
ball._y = cameray + bally;
level._x = camerax;
level._y = cameray;
fallsound = false;
ls._x = ls._x - 50;
rs._x = rs._x + 50;
if (ls._x < -300) {
stat = "gra";
count = 0;
}
}
if (stat == "lose") {
ls._x = ls._x + 50;
rs._x = rs._x - 50;
if (ls._x > 150) {
sounds.gotoAndPlay(6);
levelset.gotoAndPlay(levelset._currentframe - 2);
if (lives._currentframe == 5) {
_parent.lives = 5 - lives._currentframe;
_parent.pkt = this.score;
score = 0;
_parent.gotoAndStop(2);
}
lives.gotoAndStop(lives._currentframe + 1);
stat = "nothin";
}
}
if (stat == "win") {
if (complete._alpha < 100) {
complete._alpha = complete._alpha + 10;
}
licz++;
if (licz > 50) {
ls._x = ls._x + 50;
rs._x = rs._x - 50;
if (ls._x > 150) {
sounds.gotoAndPlay(6);
levelset.play();
stat = "nothin";
if (levelset._currentframe == 18) {
_parent.lives = 5 - lives._currentframe;
_parent.pkt = score;
score = 0;
_parent.gotoAndStop(2);
}
}
}
}
if (stat == "gra") {
count++;
if (count > 15) {
count = 0;
if (points > 0) {
points--;
}
}
repeat = 0;
while (repeat < 3) {
if (ballyy > 0) {
if (touch(ball._x + ballxx, (ball._y + ballyy) + 5)) {
ballyy = -0.2;
}
}
if (ballyy < 0) {
if (touch(ball._x + ballxx, (ball._y + ballyy) - 5)) {
ballyy = 0.2;
}
}
if (ballxx < 0) {
if (touch((ball._x + ballxx) - 5, ball._y + ballyy)) {
ballxx = 0.2;
}
}
if (ballxx > 0) {
if (touch((ball._x + ballxx) + 5, ball._y + ballyy)) {
ballxx = -0.2;
}
}
ballx = ballx + ballxx;
bally = bally + ballyy;
ball._x = camerax + ballx;
ball._y = cameray + bally;
level._x = camerax;
level._y = cameray;
if ((board.rotx < 30) and Key.isDown(38)) {
board.rotx = board.rotx + 2;
}
if ((board.rotx > -30) and Key.isDown(40)) {
board.rotx = board.rotx - 2;
}
if ((board.roty < 30) and Key.isDown(37)) {
board.roty = board.roty + 2;
}
if ((board.roty > -30) and Key.isDown(39)) {
board.roty = board.roty - 2;
}
if (ballxx < ((-board.roty) / 6)) {
ballxx = ballxx + 0.03;
}
if (ballxx > ((-board.roty) / 6)) {
ballxx = ballxx - 0.03;
}
if (ballyy < ((-board.rotx) / 6)) {
ballyy = ballyy + 0.03;
}
if (ballyy > ((-board.rotx) / 6)) {
ballyy = ballyy - 0.03;
}
camerax = camerax + (((275 - ballx) - camerax) / 8);
cameray = cameray + (((240 - bally) - cameray) / 8);
repeat++;
}
}
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
this._parent.scr = pkt + (lives * 25);
p1.text = pkt;
p2.text = lives;
p3.text = pkt + (lives * 25);
_root.gm.hoff._visible = false;
_root.onData = function () {
if (s == 1) {
_root.gm.hoff._visible = true;
}
};
_root.loadVariables("hof.php?s=" + this._parent.scr);
Instance of Symbol 79 MovieClip in Symbol 280 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
label = "Submit";
wide = 75;
c1 = 0;
c2 = 155;
c3 = 0;
hc1 = 0;
hc2 = 248;
hc3 = 0;
baseMode = false;
widthMode = true;
rgb = 39680;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 63488;
}
on (press) {
if (_root.scr < 1) {
_root.starting();
} else {
score = _root.scr;
game_name = "gball";
getURL ("newscore.php", "_self", "POST");
}
}
Instance of Symbol 79 MovieClip in Symbol 280 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
label = "GO";
wide = 75;
c1 = 0;
c2 = 153;
c3 = 0;
hc1 = 0;
hc2 = 200;
hc3 = 0;
baseMode = true;
widthMode = true;
rgb = 39168;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 51200;
}
on (press) {
getURL ("http://www.FlashGames247.com", "_blank");
}