Frame 1
function liga(f) {
if (f == undefined) {
gotoAndStop (2);
} else {
gotoAndStop(f);
}
}
function starting(f) {
if (f == undefined) {
gotoAndStop (2);
} else {
gotoAndStop(f +1);
}
}
function single(f) {
if (f == undefined) {
gotoAndStop (4);
} else {
gotoAndStop(f +3);
}
}
function multi(f) {
if (f == undefined) {
gotoAndStop (6);
} else {
gotoAndStop(f +5);
}
}
function instr(f) {
if (f == undefined) {
gotoAndStop (3);
} else {
gotoAndStop(f +2);
}
}
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
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.play();
}
}
}
}
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 123 MovieClip in Frame 2
//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 123 MovieClip in Frame 2
//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 123 MovieClip in Frame 2
//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 123 MovieClip in Frame 3
//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 123 MovieClip in Frame 3
//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 4
gra.ozd.swapDepths(100);
sealBall = new intRface(gra, 0, 2);
stop();
Frame 5
stop();
Instance of Symbol 123 MovieClip in Frame 5
//component parameters
onClipEvent (initialize) {
label = "Play Again";
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();
}
Instance of Symbol 214 MovieClip in Frame 5
//component parameters
onClipEvent (initialize) {
scr = "_root.scr";
}
Frame 6
gra.ozd.swapDepths(100);
sealBall = new intRface(gra, 0, 1);
stop();
Frame 7
stop();
Instance of Symbol 123 MovieClip in Frame 7
//component parameters
onClipEvent (initialize) {
label = "Play Again";
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 40 MovieClip Frame 1
Stage.scaleMode = "noScale";
fscommand ("trapallkeys", true);
Stage.showMenu = false;
this.uu = _root._url;
var a = _root._url.split("/");
var i = 0;
while (i < a.length) {
if (a[i] == "files") {
_root.gid = a[i + 1];
}
i++;
}
if ((a[2] == "www.netstupidity.com") || (a[2] == "netstupidity.com")) {
_root.ligin = 1;
}
_root.__url = "http://www.netstupidity.com/games/hof/";
_root.loadVariables((_root.__url + "hof_bsc.php?id=") + _root.gid);
_root.prc = 0;
this.onEnterFrame = function () {
var ld = _root.getBytesLoaded();
var tt = _root.getBytesTotal();
var pr = ((100 * ld) / tt);
this.pasek._xscale = pr;
var b = Math.round(pr / 20);
if (pr >= 100) {
this.onEnterFrame = null;
this._parent.play();
}
};
Symbol 54 MovieClip Frame 140
stop();
Symbol 93 MovieClip Frame 1
this.t = getTimer();
this.tm = 0;
this.onEnterFrame = function () {
if (_root._framesloaded < 2) {
this.t = getTimer();
return(undefined);
}
this.tm = this.tm + (getTimer() - this.t);
var tt = Math.round(this.tm / 33);
if (tt < 1) {
this.stop();
} else {
this.t = getTimer();
if (tt >= 145) {
this.onEnterFrame = null;
this.gotoAndStop(145);
_root.play();
} else {
this.gotoAndStop(tt);
}
}
};
stop();
Symbol 96 MovieClip Frame 1
_root.stop();
stop();
Symbol 96 MovieClip Frame 2
stop();
Symbol 123 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 127 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 141 MovieClip Frame 1
pau._visible = 0;
Instance of Symbol 123 MovieClip in Symbol 141 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 123 MovieClip in Symbol 141 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.play();
}
Symbol 155 Button
on (press) {
this.gotoAndStop("weekly");
}
Symbol 156 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 157 Button
on (press) {
this.gotoAndStop("hourly");
}
Symbol 160 Button
on (press) {
this.gotoAndStop("monthly");
}
Symbol 165 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 168 MovieClip Frame 1
this._parent.tp = 2592000 /* 0x278D00 */;
this._parent.tc = 0;
this._parent.reload();
stop();
Symbol 168 MovieClip Frame 2
this._parent.tp = 604800 /* 0x093A80 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 168 MovieClip Frame 3
this._parent.tp = 86400 /* 0x015180 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 168 MovieClip Frame 4
this._parent.tp = 3600;
this._parent.tc = 0;
this._parent.reload();
Symbol 175 Button
on (press) {
this.tc--;
this.reload();
}
Symbol 180 Button
on (press) {
this.tc = ((this.tc < 0) ? (this.tc + 1) : 0);
this.reload();
}
Symbol 183 Button
on (press) {
if (this.submitted == false) {
this.loadVariables((((this.__url + "hof_put.php?id=") + this.gid) + "&s=") + this.sc);
}
}
Symbol 187 Button
on (press) {
this._parent.l = 10;
this._parent.reload();
this.gotoAndStop(2);
}
Symbol 190 Button
on (press) {
this._parent.l = 100;
this._parent.reload();
this.gotoAndStop(1);
}
Symbol 191 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 18
stop();
Symbol 208 MovieClip Frame 1
function reset() {
this.m._x = this.s._x;
this.m._y = this.s._y;
}
function scroll(p) {
this._parent.rolki.f1.scroll = (this._parent.rolki.f2.scroll = (this._parent.rolki.f3.scroll = (this._parent.rolki.f4.scroll = int((this.mx * p) / 100))));
}
this.onEnterFrame = function () {
this.s._y = ((this.m._y > 5) ? (((this.m._y < 202) ? (this.m._y) : 202)) : 5);
this.mx = this._parent.rolki.f1.maxscroll;
scroll((100 * (this.s._y - 5)) / 197);
};
Instance of Symbol 207 MovieClip "m" in Symbol 208 MovieClip Frame 1
on (press) {
this.startDrag();
}
on (release, releaseOutside) {
this.stopDrag();
this._parent.reset();
}
Symbol 213 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 214 MovieClip Frame 1
this.submitted = false;
Symbol 214 MovieClip Frame 2
function reload() {
if (this.rolki._currentframe > 1) {
this.rolki.gotoAndPlay(18);
}
var te = ((-this.tc) * this.tp);
var tb = ((-(this.tc - 1)) * this.tp);
this.loadVariables((((((((((this.__url + "hof_get.php?id=") + this.gid) + "&n=") + this.l) + "&tb=") + tb) + "&te=") + te) + "&s=") + this.sc);
}
this.uu = _root._url;
this.gid = _root.gid;
this.__url = _root.__url;
this.l = 10;
this.sc = eval (this.scr);
if (int(this.sc) > int(_root.bsc)) {
_root.bsc = this.sc;
}
this.onData = function () {
if (this.r == 1) {
this.rolki.gotoAndPlay(2);
clearInterval(this._itr);
return(undefined);
}
if (this.r == "3") {
this.submitted = true;
reload();
}
if (this.r == "2") {
getURL ("javascript:if(confirm('To submit Your score You have to be logged into netstupidity.com site. Do You wish to log in now?')) window.open('http://www.netstupidity.com/login.php'); void(0);");
}
};
stop();