Frame 1
function liga(f) {
if (f == undefined) {
gotoAndStop (97);
} else {
gotoAndStop (97);
}
}
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 (96);
} else {
gotoAndStop(f +95);
}
}
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 (97);
} else {
gotoAndStop (97);
}
}
_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
function intRface(tar, p1, p2) {
this.tar = tar;
var odbicie = new Sound(tar);
var hlpSO = _root.createEmptyMovieClip("hlpSO", 200);
var kwik = new Sound(hlpSO);
odbicie.attachSound("bounce");
kwik.attachSound("kwik");
kwik.complete = 1;
kwik.onSoundComplete = function () {
this.complete = 1;
};
odbicie.setVolume(300);
var defs = {leapHeight:15, jumpDelay:5, playerSpeed:5, gravity:1, stageWidth:Stage.width, stageHeight:Stage.height, twoPlayers:1, dzwiek:odbicie, kwik:kwik};
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var depth = 0;
var numOfPlayers = 0;
var paused = 0;
var ball = null;
var lives = tar.createEmptyMovieClip("hearts", depth++);
var _obstacles = tar.createEmptyMovieClip("obs", depth++);
var _players = new Array();
var obstacleInfo = new Array({id:"floor", x:stageWidth / 2, y:stageHeight}, {id:"centerWall", x:stageWidth / 2, y:stageHeight - 80}, {id:"sideWall", x:-20, y:stageHeight / 2}, {id:"sideWall", x:stageWidth + 20, y:stageHeight / 2});
var playerInfo = new Array({cl:0, left:37, right:39, up:38}, {cl:0, left:65, right:68, up:87}, {cl:1}, {cl:1});
var spawnObstacles = function () {
for (var i in obstacleInfo) {
_obstacles.attachMovie(obstacleInfo[i].id, obstacleInfo[i].id + depth, depth++, {_x:obstacleInfo[i].x, _y:obstacleInfo[i].y});
}
};
var shadowFollow = function () {
this._x = this.tar._x;
this._xscale = (this._yscale = 100 - ((this._y - this.tar._y) / 5));
};
var ai = function () {
this.oldX = this._x;
if (this.ball._x > this.center) {
this.tar = this.ball._x + 10;
} else {
this.tar = (3 * this.center) / 2;
}
if (((((this.ball._x > this.center) && (this.ball._y > (this._y - (this._height * 2)))) && (this.grv == 0)) && (this.ball.vX > 2)) && (this.jumpDelay <= 0)) {
this.gotoAndStop(3);
this.fly = this._defs.leapHeight;
this.grv = this._defs.gravity;
}
this.jumpDelay--;
this._y = this._y - ((this.fly = this.fly - this.grv));
if (this._obstacles.hitTest(this._x - (this._width / 2), this._y - 10, 1)) {
this._x = this._x + this._defs.playerSpeed;
}
if (this._obstacles.hitTest(this._x + (this._width / 2), this._y - 10, 1)) {
this._x = this._x - this._defs.playerSpeed;
}
if (this._obstacles.hitTest(this._x, this._y, 1)) {
this.gotoAndStop(1);
this._y = this._y - 5;
this.fly = 0;
this.grv = 0;
this.jumpDelay = this._defs.jumpDelay;
}
if (Math.abs(this.tar - this._x) > 1) {
this._x = this._x + ((this._defs.playerSpeed * (this.tar - this._x)) / Math.abs(this.tar - this._x));
}
};
var playerMove = function () {
this.oldX = this._x;
if (Key.isDown(this.left)) {
this._x = this._x - this._defs.playerSpeed;
}
if (Key.isDown(this.right)) {
this._x = this._x + this._defs.playerSpeed;
}
if ((Key.isDown(this.up) && (this.grv == 0)) && (this.jumpDelay <= 0)) {
this.gotoAndStop(3);
this.fly = this._defs.leapHeight;
this.grv = this._defs.gravity;
}
this.jumpDelay--;
this._y = this._y - ((this.fly = this.fly - this.grv));
if (this._obstacles.hitTest(this._x - (this._width / 2), this._y - 10, 1)) {
this._x = this._x + this._defs.playerSpeed;
}
if (this._obstacles.hitTest(this._x + (this._width / 2), this._y - 10, 1)) {
this._x = this._x - this._defs.playerSpeed;
}
if (this._obstacles.hitTest(this._x, this._y, 1)) {
this._y = this._y - 5;
this.fly = 0;
this.grv = 0;
this.jumpDelay = this._defs.jumpDelay;
this.gotoAndStop(1);
}
};
var spawnPlayers = function () {
var localDefsObj = arguments.pop();
numOfPlayers = arguments.length;
for (var i in arguments) {
var shadow = tar.attachMovie("cien", "cien" + (depth - 100), depth - 100);
var ref = tar.attachMovie("player", i, depth++, {_x:((int(i) + 1) * stageWidth) / (numOfPlayers + 1), _y:stageHeight - 15});
shadow.tar = ref;
shadow._y = ref._y - 20;
shadow.onEnterFrame = shadowFollow;
if (ref._x > (stageWidth / 2)) {
ref._xscale = -100;
}
var cell = playerInfo[arguments[i]];
if (cell.cl == 0) {
ref.left = cell.left;
ref.right = cell.right;
ref.up = cell.up;
ref.onEnterFrame = playerMove;
} else {
defs.twoPlayers = 0;
ref.onEnterFrame = ai;
ref.tar = 0;
ref.center = stageWidth / 2;
}
ref._defs = defs;
ref.spd = playerSpeed;
ref.grav = gravity;
ref.fly = (ref.grv = (ref.jumpDelay = 0));
ref._obstacles = _obstacles;
_players.push(ref);
delete ref;
}
delete localDefsObj;
};
var ballMove = function () {
this.vY = this.vY - this._defs.gravity;
if (this._obstacles.hitTest(this._x - (this._width / 3), this._y, 1)) {
this._defs.dzwiek.start(0.25, 1);
this._x = this._x + 2;
this.vX = this.vX * -1;
}
if (this._obstacles.hitTest(this._x + (this._width / 3), this._y, 1)) {
this._defs.dzwiek.start(0.25, 1);
this._x = this._x - 2;
this.vX = this.vX * -1;
}
if (this._obstacles.hitTest(this._x, this._y + (this._height / 3), 1)) {
this._defs.dzwiek.start(0.25, 1);
if (this._y > ((3 * this._defs.stageHeight) / 4)) {
if (this._x > (this._defs.stageWidth / 2)) {
this._parent.lc = int(this._parent.lc) + 1;
} else {
this._parent.rc = int(this._parent.rc) + 1;
if (!this._defs.twoPlayers) {
this._parent.hearts["serce" + this._parent.rc].removeMovieClip();
if (this._parent.rc >= 10) {
_root.scr = this._parent.lc;
_root.hof();
}
}
}
}
this.vY = this.vY + 2;
this._y = this._y - 2;
this.vY = this.vY * -1;
}
for (i in this._players) {
if (this._players[i].hitTest(this._x, this._y, 1)) {
if (this.noBounce <= 0) {
if (this._defs.kwik.complete) {
this._defs.kwik.start(0, 1);
this._defs.kwik.complete = 0;
}
this.vY = 15;
this.vX = (this._x - this._players[i]._x) / 3;
}
}
if (this._players[i].hitTest(this._x, this._y - this._height, 1)) {
this.noBounce = 3;
}
}
this.noBounce--;
this._y = this._y - this.vY;
this._x = this._x + this.vX;
};
var spawnBall = function () {
var shadow = tar.attachMovie("cien", "cien" + (depth - 100), depth - 100);
ball = tar.attachMovie("ball", "piuka", depth++, {_x:stageWidth / (numOfPlayers + 1)});
shadow.tar = ball;
shadow._y = _players[0]._y - 20;
shadow.onenterFrame = shadowFollow;
ball.onEnterFrame = ballMove;
ball._defs = defs;
ball._obstacles = _obstacles;
ball._players = _players;
for (i in _players) {
_players[i].ball = ball;
}
ball.vX = 0;
ball.vY = 0;
ball.noBounce = 0;
};
var spawnLives = function () {
tar.lc = (tar.rc = 0);
if (defs.twoPlayers == 0) {
var i = 0;
while (i < 10) {
lives.attachMovie("serce", "serce" + int(10 - i), depth++, {_y:100, _x:30 + (30 * i)});
i++;
}
}
};
this.pauseAll = function () {
if (paused) {
ball.onEnterFrame = ball.oldOEF;
for (i in _players) {
_players[i].onEnterFrame = _players[i].oldOEF;
}
} else {
ball.oldOEF = ball.onEnterFrame;
delete ball.onEnterFrame;
for (i in _players) {
_players[i].oldOEF = _players[i].onEnterFrame;
delete _players[i].onEnterFrame;
}
}
paused = !paused;
};
spawnObstacles();
spawnPlayers(p1, p2, this);
spawnBall();
spawnLives();
}
stop();
if (!podklad) {
this.createEmptyMovieClip("soundObj", this.getNextHighestDepth());
podklad = new Sound(soundObj);
podklad.attachSound("podkl");
podklad.start(0, 9999);
podklad.setVolume(40);
}
Instance of Symbol 96 MovieClip in Frame 93
//component parameters
onClipEvent (initialize) {
label = "Two Players";
wide = 102;
c1 = 0;
c2 = 207;
c3 = 255;
hc1 = 0;
hc2 = 207;
hc3 = 255;
baseMode = true;
widthMode = true;
rgb = 53247;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 53247;
}
on (press) {
_root.multi();
}
Instance of Symbol 96 MovieClip in Frame 93
//component parameters
onClipEvent (initialize) {
label = "Instructions";
wide = 80;
c1 = 0;
c2 = 207;
c3 = 255;
hc1 = 0;
hc2 = 207;
hc3 = 255;
baseMode = true;
widthMode = true;
rgb = 53247;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 53247;
}
on (press) {
_root.instr();
}
Instance of Symbol 96 MovieClip in Frame 93
//component parameters
onClipEvent (initialize) {
label = "One Player";
wide = 80;
c1 = 0;
c2 = 207;
c3 = 255;
hc1 = 0;
hc2 = 207;
hc3 = 255;
baseMode = true;
widthMode = true;
rgb = 53247;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 53247;
}
on (press) {
_root.single();
}
Instance of Symbol 96 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 96 MovieClip in Frame 94
//component parameters
onClipEvent (initialize) {
label = "One Player Game";
wide = 141;
c1 = 0;
c2 = 205;
c3 = 255;
hc1 = 0;
hc2 = 207;
hc3 = 255;
baseMode = false;
widthMode = false;
rgb = 52735;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 53247;
}
on (press) {
_root.single();
}
Instance of Symbol 96 MovieClip in Frame 94
//component parameters
onClipEvent (initialize) {
label = "Two Players Game";
wide = 148;
c1 = 0;
c2 = 207;
c3 = 255;
hc1 = 0;
hc2 = 207;
hc3 = 255;
baseMode = true;
widthMode = false;
rgb = 53247;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 53247;
}
on (press) {
_root.multi();
}
Frame 95
gra.ozd.swapDepths(100);
sealBall = new intRface(gra, 0, 2);
stop();
Frame 96
gra.ozd.swapDepths(100);
sealBall = new intRface(gra, 0, 1);
stop();
Frame 97
stop();
Instance of Symbol 96 MovieClip in Frame 97
//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 96 MovieClip in Frame 97
//component parameters
onClipEvent (initialize) {
label = "New Game";
wide = 80;
c1 = 0;
c2 = 207;
c3 = 255;
hc1 = 0;
hc2 = 207;
hc3 = 255;
baseMode = true;
widthMode = true;
rgb = 53247;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 53247;
}
on (press) {
_root.starting();
}
Symbol 13 MovieClip [player] Frame 1
stop();
Symbol 13 MovieClip [player] Frame 2
stop();
Symbol 13 MovieClip [player] Frame 3
stop();
Symbol 26 MovieClip [player] Frame 1
stop();
Symbol 26 MovieClip [player] Frame 2
stop();
Symbol 26 MovieClip [player] Frame 3
stop();
Symbol 42 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 69 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 69 MovieClip Frame 56
stop();
Symbol 96 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 99 MovieClip Frame 10
stop();
Symbol 102 MovieClip Frame 10
stop();
Symbol 103 MovieClip Frame 1
if (_root.liv == 0) {
_root.lost(3);
}
this.gotoAndStop(_root.liv + 2);
stop();
Symbol 114 Button
on (press) {
getURL ("http://www.FlashGames247.com", "_blank");
}
Symbol 115 Button
on (press) {
getURL ("http://www.FlashGames247.com/gamesbyemail", "_blank");
}
Symbol 116 Button
on (press) {
getURL ("http://www.FlashGames247.com/addflashgames", "_blank");
}
Symbol 117 Button
on (press) {
getURL ("http://www.FlashGames247.com/download/SealBallmx.exe", "_blank");
}
Instance of Symbol 122 MovieClip in Symbol 123 MovieClip Frame 1
on (press) {
getURL ("http://www.FlashGames247.com", "_blank");
}
Symbol 137 MovieClip Frame 1
pau._visible = 0;
Instance of Symbol 96 MovieClip in Symbol 137 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "Pause";
wide = 80;
c1 = 0;
c2 = 207;
c3 = 255;
hc1 = 0;
hc2 = 207;
hc3 = 255;
baseMode = true;
widthMode = true;
rgb = 53247;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 53247;
}
on (press) {
this._parent._parent.sealBall.pauseAll();
this._parent.pau._visible = !this._parent.pau._visible;
}
Instance of Symbol 96 MovieClip in Symbol 137 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "End Game";
wide = 80;
c1 = 0;
c2 = 207;
c3 = 255;
hc1 = 0;
hc2 = 207;
hc3 = 255;
baseMode = true;
widthMode = true;
rgb = 53247;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 53247;
}
on (press) {
_root.starting();
}