Frame 2
play();
Instance of Symbol 80 MovieClip in Frame 4
onClipEvent (load) {
_root.stop();
total = _root.getBytesTotal();
loading = ("loading " + int(total / 1024)) + "k";
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() == total) {
_root.play();
}
}
Instance of Symbol 90 MovieClip "eye" in Frame 4
onClipEvent (load) {
x = _x;
y = _y;
}
onClipEvent (enterFrame) {
_x = (x + ((_parent.polarity * (_root.ball.x - _parent._x)) / 65));
_y = ((y + 1) + ((_root.ball.y - _parent._y) / 60));
}
Frame 5
function boingsound() {
boing.start();
}
function thunksound() {
thunk.start();
}
function moveshadow(name, me) {
with (_root[name + "shadow"]) {
_x = me._x;
scale = (me._y / 12) * (me._width / 20);
_xscale = scale;
_yscale = scale;
_alpha = (me._y / 5) - 30;
}
}
boing = new Sound();
boing.attachSound("boing");
thunk = new Sound();
thunk.attachSound("thunk");
gravity = 1.1;
playerspeed = 8;
players = 1;
jumpheight = 16;
score = 0;
bestscore = -20;
score1 = 0;
score2 = 0;
Frame 6
stop();
Instance of Symbol 102 MovieClip "howto" in Frame 6
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 90 MovieClip "eye" in Frame 16
onClipEvent (load) {
x = _x;
y = _y;
}
onClipEvent (enterFrame) {
_x = (x + ((_parent.polarity * (_root.ball.x - _parent._x)) / 65));
_y = ((y + 1) + ((_root.ball.y - _parent._y) / 60));
}
Instance of Symbol 130 MovieClip in Frame 36
onClipEvent (load) {
gotoAndStop(_root.numplayers +1);
}
Frame 66
function createExtraBall() {
if ((int(score / 5) == (score / 5)) && (_root.numplayers == 1)) {
rand = random(20) + 1;
duplicateMovieClip ("extraball", "eball" + rand, rand);
_root["eball" + rand]._y = random(75) + 130;
_root["eball" + rand]._x = random(200) + 30;
}
}
stop();
securityCheck();
paused = 0;
score = 0;
score1 = 0;
score2 = 0;
balls = 10;
angle = -1.4;
angle = -1.6;
balls = 10;
gameover = 0;
ai_move_fraction = 0.45;
ai_skill_increment = 1.04;
score1 = 0;
score2 = 0;
Instance of Symbol 146 MovieClip "player1" in Frame 66
onClipEvent (enterFrame) {
if (!_root.paused) {
if (jumping == 1) {
yspeed = yspeed + _root.gravity;
_y = (_y + yspeed);
if (_y >= ground) {
jumping = 0;
_y = ground;
}
}
if ((Key.isDown(39) && (_x < 250)) && (!_root.gameover)) {
_x = (_x + (_root.playerspeed / ((_root.score / skillDrag) + 1)));
if (jumping != 1) {
nextFrame();
}
} else if ((Key.isDown(37) && (_x > 10)) && (!_root.gameover)) {
_x = (_x - (_root.playerspeed / ((_root.score / skillDrag) + 1)));
if (jumping != 1) {
nextFrame();
}
}
if (hitTest(_root.ball._x, _root.ball._y, true)) {
_root.boingsound();
eye.play();
divx = 3.142 * ((_x - _root.ball._x) / width);
cosx = Math.cos(divx / 2);
sinx = Math.sin(divx / 2);
_root.ball._y = _y - ((height * 0.5) * cosx);
_root.ball.xspeed = (_root.angle * sinx) * _root.ball.yspeed;
_root.ball.yspeed = cosx * -15;
}
_root.moveshadow(_name, this);
}
}
onClipEvent (keyDown) {
if (!_root.paused) {
if (((Key.getCode() == 38) && (jumping != 1)) && (!_root.gameover)) {
tellTarget ("") {
gotoAndPlay ("jump");
};
jumping = 1;
yspeed = -_root.jumpheight;
}
}
}
onClipEvent (load) {
ground = _y;
jumping = 0;
skillDrag = 100;
width = _width / 2;
height = _height;
if (_name == "player2") {
polarity = -1;
} else {
polarity = 1;
}
}
Instance of Symbol 146 MovieClip "player2" in Frame 66
onClipEvent (enterFrame) {
if (!_root.paused) {
if (jumping) {
yspeed = yspeed + _root.gravity;
_y = (_y + yspeed);
if (_y >= ground) {
jumping = 0;
_y = ground;
}
}
if ((((_root.numplayers > 1) && (Key.isDown(67))) && (_x < 610)) && (!_root.gameover)) {
_x = (_x + _root.playerspeed);
if (jumping != 1) {
nextFrame();
}
} else if ((((_root.numplayers > 1) && (Key.isDown(90))) && (_x > 370)) && (!_root.gameover)) {
_x = (_x - _root.playerspeed);
if (jumping != 1) {
nextFrame();
}
}
if ((ai_move > 0) && (_x < 610)) {
_x = (_x + (_root.playerspeed * _root.ai_move_fraction));
if (!jumping) {
nextFrame();
}
} else if ((ai_move < 0) && (_x > 370)) {
_x = (_x - (_root.playerspeed * _root.ai_move_fraction));
if (!jumping) {
nextFrame();
}
}
if (hitTest(_root.ball._x, _root.ball._y, true)) {
_root.boingsound();
eye.play();
divx = 3.142 * (((_x - _root.ball._x) + 0.5) / width);
cosx = Math.cos(divx / 2);
sinx = Math.sin(divx / 2);
_root.ball._y = _y - ((height * 0.5) * cosx);
_root.ball.xspeed = (_root.angle * sinx) * _root.ball.yspeed;
_root.ball.yspeed = cosx * -15;
}
_root.moveshadow(_name, this);
}
}
onClipEvent (keyDown) {
if (!_root.paused) {
if ((((_root.numplayers > 1) && (Key.getCode() == 83)) && (jumping != 1)) && (!_root.gameover)) {
this.gotoAndPlay("jump");
jumping = 1;
yspeed = -_root.jumpheight;
}
}
}
onClipEvent (load) {
ground = _y;
jumping = 0;
width = _width / 2;
height = _height;
if (_name == "player2") {
polarity = -1;
} else {
polarity = 1;
}
}
Instance of Symbol 148 MovieClip in Frame 66
onClipEvent (load) {
if (_root.numplayers > 1) {
unloadMovie ();
} else {
_visible = 0;
}
}
onClipEvent (enterFrame) {
_xscale = 100;
_yscale = 100;
_rotation = (_root.ball.xspeed * -2);
_x = _root.player2._x;
_y = _root.player2._y;
if (((random(8 * _root.ai_move_fraction) > 3) && (hitTest(_root.ball._x, _root.ball._y, true))) && (_root.ball.yspeed > -3)) {
_root.player2.jump();
}
}
Instance of Symbol 150 MovieClip "predict" in Frame 66
onClipEvent (load) {
if (_root.numplayers > 1) {
unloadMovie ();
} else {
_visible = 0;
}
}
onClipEvent (enterFrame) {
x = _root.ball._x;
y = _root.ball._y - 350;
sx = _root.ball.xspeed;
sy = _root.ball.yspeed;
_x = (x + ((y * sx) * -0.05));
if (_x > 370) {
divx = _x - _root.player2._x;
if (divx > -3) {
_root.player2.ai_move = 1;
} else if (divx < -15) {
_root.player2.ai_move = -1;
} else {
_root.player2.ai_move = 0;
}
} else {
divx = 0;
}
}
Instance of Symbol 154 MovieClip "ball" in Frame 66
onClipEvent (load) {
height = _height / 2;
width = _width / 2;
_x = _root.player1._x;
yspeed = 0;
}
onClipEvent (enterFrame) {
if (!_root.paused) {
x = _x;
y = _y;
if ((x <= 20) && (xspeed < 0)) {
_x = 20;
xspeed = xspeed * -1;
}
if ((x >= 600) && (xspeed > 0)) {
_x = 600;
xspeed = xspeed * -1;
}
if (y >= 350) {
_root.boingsound();
_y = 350;
yspeed = yspeed * -1;
xspeed = xspeed + (0.5 * (random(10) - 4));
if (_x <= 310) {
_root.balls--;
_root.ballsleft.nextFrame();
_root.ballsleft.flash.play();
_root.score2++;
} else {
_root.scoreglow.play();
_root.score1++;
if (_root.score1 < 35) {
_root.ai_move_fraction = _root.ai_move_fraction * _root.ai_skill_increment;
}
if (_root.numplayers == 1) {
_root.score++;
}
_root.createExtraBall();
}
}
yspeed = yspeed + _root.gravity;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + (xspeed * 2));
_xscale = 100;
_yscale = 100;
_root.moveshadow(_name, this);
}
}
Instance of Symbol 164 MovieClip "extraball" in Frame 66
onClipEvent (load) {
if (_name == "extraball") {
dead = 1;
stop();
}
}
onClipEvent (enterFrame) {
if (!dead) {
if (!_root.paused) {
play();
} else {
stop();
}
if (_root.gameover) {
removeMovieClip(this);
}
if (hitTest(_root.ball)) {
_root.boingsound();
_root.balls++;
_root.ballsleft.prevFrame();
dead = 1;
this.gotoAndPlay("out");
}
}
}
Instance of Symbol 167 MovieClip "fence" in Frame 66
onClipEvent (load) {
_visible = 0;
top = (_y - (_height / 2)) - 2;
width = (_width / 2) + 4;
}
onClipEvent (enterFrame) {
if (hitTest(_root.ball)) {
_root.thunk.start();
balltop = _root.ball.y + _root.ball.height;
if ((balltop < top) && (_root.ball.yspeed > 0)) {
_root.ball._y = (top - _root.ball.height) - 2;
_root.ball.yspeed = _root.ball.yspeed * -1;
} else if (balltop >= top) {
if (_root.ball.xspeed < 0) {
_root.ball._x = (_x + width) + _root.ball.width;
} else {
_root.ball._x = (_x - width) - _root.ball.width;
}
_root.ball.xspeed = _root.ball.xspeed * -1.1;
}
}
}
Instance of Symbol 171 MovieClip "ballsleft" in Frame 66
onClipEvent (load) {
if (_root.numplayers > 1) {
unloadMovie ();
}
}
Instance of Symbol 176 MovieClip in Frame 66
onClipEvent (load) {
if (_root.numplayers == 1) {
unloadMovie ();
}
}
Instance of Symbol 187 MovieClip in Frame 66
onClipEvent (load) {
if (_root.numplayers > 1) {
unloadMovie ();
}
}
Instance of Symbol 188 MovieClip "scoreglow" in Frame 66
onClipEvent (load) {
if (_root.numplayers > 1) {
unloadMovie ();
}
}
Instance of Symbol 190 MovieClip "pausetext" in Frame 66
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 130 MovieClip in Frame 66
onClipEvent (load) {
gotoAndStop(_root.numplayers +65);
}
Frame 67
gameover = 1;
Instance of Symbol 271 MovieClip in Frame 126
//component parameters
onClipEvent (initialize) {
scr = "_root.score";
}
Frame 169
stop();
Frame 175
score = 0;
gotoAndStop (6);
Symbol 10 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 24 MovieClip Frame 140
stop();
Symbol 63 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 66 MovieClip Frame 1
_root.stop();
stop();
Symbol 66 MovieClip Frame 2
stop();
Symbol 70 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 73 MovieClip Frame 1
if (random(2) > 0) {
_xscale = (_xscale * -1);
}
gotoAndPlay(random(25) + 2);
Symbol 73 MovieClip Frame 44
gotoAndPlay(random(25) + 45);
Symbol 73 MovieClip Frame 116
gotoAndPlay(random(25) + 120);
Symbol 90 MovieClip Frame 1
stop();
Symbol 96 Button
on (rollOver) {
howto._visible = 1;
}
on (rollOut) {
howto._visible = 0;
}
Instance of Symbol 90 MovieClip "eye" in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
x = _x;
y = _y;
}
onClipEvent (enterFrame) {
_x = (x + ((_parent.polarity * (_root.ball.x - _parent._x)) / 65));
_y = ((y + 1) + ((_root.ball.y - _parent._y) / 60));
}
Symbol 109 Button
on (press, keyPress "<Space>") {
numplayers = 1;
play();
}
Symbol 113 Button
on (press) {
numplayers = 2;
play();
}
Symbol 115 Button
on (press) {
nextFrame();
}
Symbol 117 Button
on (press) {
prevFrame();
}
Symbol 119 MovieClip Frame 1
if (_root.soundEnabled != null) {
if (!_root.soundEnabled) {
gotoAndStop (3);
}
} else {
_root.globalSound = new Sound();
_root.soundEnabled = 1;
}
Symbol 119 MovieClip Frame 2
stop();
_root.soundEnabled = 1;
_root.globalSound.setVolume(100);
Symbol 119 MovieClip Frame 3
stop();
_root.soundEnabled = 0;
_root.globalSound.setVolume(0);
Symbol 130 MovieClip Frame 1
gotoAndStop(_root.numplayers);
Symbol 146 MovieClip Frame 1
stop();
Instance of Symbol 90 MovieClip "eye" in Symbol 146 MovieClip Frame 1
onClipEvent (load) {
x = _x;
y = _y;
}
onClipEvent (enterFrame) {
_x = (x + ((_parent.polarity * (_root.ball.x - _parent._x)) / 65));
_y = ((y + 1) + ((_root.ball.y - _parent._y) / 60));
}
Symbol 146 MovieClip Frame 4
gotoAndStop (1);
Symbol 146 MovieClip Frame 5
_root.jumpsound();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 4
stop();
Symbol 164 MovieClip Frame 236
stop();
removeMovieClip("");
unloadMovie ();
Symbol 164 MovieClip Frame 238
stop();
removeMovieClip("");
unloadMovie ();
Symbol 170 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 11
_root.play();
_root.ball.play();
Symbol 180 Button
on (press) {
gotoAndStop (6);
}
Symbol 184 Button
on (press) {
if (_root.paused) {
_root.paused = 0;
_root.pausetext._visible = 0;
} else {
_root.paused = 1;
_root.pausetext._visible = 1;
_root.pausetext.gotoAndplay(1);
}
}
Symbol 188 MovieClip Frame 1
stop();
Symbol 212 Button
on (press) {
this.gotoAndStop("weekly");
}
Symbol 213 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 214 Button
on (press) {
this.gotoAndStop("hourly");
}
Symbol 217 Button
on (press) {
this.gotoAndStop("monthly");
}
Symbol 222 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 225 MovieClip Frame 1
this._parent.tp = 2592000 /* 0x278D00 */;
this._parent.tc = 0;
this._parent.reload();
stop();
Symbol 225 MovieClip Frame 2
this._parent.tp = 604800 /* 0x093A80 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 225 MovieClip Frame 3
this._parent.tp = 86400 /* 0x015180 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 225 MovieClip Frame 4
this._parent.tp = 3600;
this._parent.tc = 0;
this._parent.reload();
Symbol 232 Button
on (press) {
this.tc--;
this.reload();
}
Symbol 237 Button
on (press) {
this.tc = ((this.tc < 0) ? (this.tc + 1) : 0);
this.reload();
}
Symbol 240 Button
on (press) {
if (this.submitted == false) {
this.loadVariables((((this.__url + "hof_put.php?id=") + this.gid) + "&s=") + this.sc);
}
}
Symbol 244 Button
on (press) {
this._parent.l = 10;
this._parent.reload();
this.gotoAndStop(2);
}
Symbol 247 Button
on (press) {
this._parent.l = 100;
this._parent.reload();
this.gotoAndStop(1);
}
Symbol 248 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 18
stop();
Symbol 265 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 264 MovieClip "m" in Symbol 265 MovieClip Frame 1
on (press) {
this.startDrag();
}
on (release, releaseOutside) {
this.stopDrag();
this._parent.reset();
}
Symbol 270 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 271 MovieClip Frame 1
this.submitted = false;
Symbol 271 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();
Symbol 277 Button
on (press) {
play();
}