Frame 2
function game(f) {
gotoAndStop(f +2);
}
function hof(f) {
gotoAndStop(f +1);
}
stop();
Instance of Symbol 110 MovieClip in Frame 2
//component parameters
onClipEvent (initialize) {
label = "Play Game";
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) {
_root.game(1);
}
Instance of Symbol 110 MovieClip in Frame 2
//component parameters
onClipEvent (initialize) {
label = "Instructions";
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) {
_root.game(3);
}
Frame 3
_root.kara = 5;
_root.dw.pula = 50;
_root.score = 0;
stop();
Frame 4
_root.hof._visible = false;
_root.r = 0;
_root.onData = function () {
if (s == 1) {
_root.hof._visible = true;
}
};
_root.loadVariables("hof.php?s=" + _root.score);
stop();
Instance of Symbol 110 MovieClip in Frame 4
//component parameters
onClipEvent (initialize) {
label = "Play Again";
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) {
_root.game(1);
}
Instance of Symbol 271 MovieClip in Frame 4
//component parameters
onClipEvent (initialize) {
scr = "_root.score";
}
Instance of Symbol 110 MovieClip in Frame 5
//component parameters
onClipEvent (initialize) {
label = "Play Game";
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) {
_root.game(1);
}
Symbol 13 MovieClip [live_dot] Frame 1
#initclip 1
live_dotClass = function () {
this.init();
};
live_dotClass.prototype = new MovieClip();
live_dotClass.prototype.init = function () {
_root.dw.pula = 100;
_root.score = 0;
this.ping = new Sound();
this.ping.attachSound("ping");
this.wall._visible = false;
this.onPress = function () {
if (_root.dw.pula <= 0) {
return(undefined);
}
this._parent.bolek.jebable = false;
this.onEnterFrame = this.frame;
};
this.onRelease = (this.onReleaseOutside = function () {
if (_root.dw.pula <= 0) {
return(undefined);
}
_root.dw.pula = _root.dw.pula - _root.kara;
if (_root.dw.pula < 0) {
_root.dw.pula == 0;
_root.game(2);
}
this.ttt = 0;
this._parent.bolek.an = this._parent.bolek.an / 2;
this.odbicia = 1;
for (var i in this._parent.prz.p) {
this._parent.prz.p[i].flag = true;
}
_root.tim++;
delete this.onMouseMove;
this.clear();
this._parent.bolek.jebable = true;
this.Force(this._xmouse, this._ymouse);
});
};
live_dotClass.prototype.frame = function () {
if (_root.end._visible) {
this._x = 250;
this._y = 120;
this.vx = (this.vy = 0);
return(undefined);
}
if (this._parent.bolek.jebable == false) {
this.clear();
this.lineStyle(1, 0, 100);
this.moveTo(0, 0);
this.lineTo(this._xmouse, this._ymouse);
}
this._x = this._x + (this.vx - this.xx0);
this._y = this._y + (this.vy - this.yy0);
this.vx = this.vx / 1.02;
this.vy = this.vy / 1.02;
if ((Math.abs(this.vx) < 0.1) && (Math.abs(this.vy) < 0.1)) {
this.vx = 0;
this.vy = 0;
for (var i in this._parent.prz.p) {
this._parent.prz.p[i].flag = true;
}
if (_root.dw.pula <= 0) {
_root.dw.pula == 0;
_root.game(2);
}
}
var l = new Object();
l.x = this._parent.table._x;
l.y = this._parent.table._y;
var p = new Object();
p.x = (this._x + (this.vx / 1.02)) - (this.kl._width / 2);
p.y = (this._y + (this.vy / 1.02)) - (this.kl._height / 2);
if (p.x < l.x) {
this.ping.start(0, 1);
this.ttt = 0;
this.vx = -0.75 * this.vx;
this.odbicia = this.odbicia * 3;
}
if (p.y < l.y) {
this.ping.start(0, 1);
this.ttt = 0;
this.vy = -0.75 * this.vy;
this.odbicia = this.odbicia * 3;
}
var p = new Object();
l.x = this._parent.table._x + this._parent.table._width;
l.y = this._parent.table._y + this._parent.table._height;
p.x = (this._x + (this.vx / 1.02)) + (this.kl._width / 2);
p.y = (this._y + (this.vy / 1.02)) + (this.kl._height / 2);
if (p.x > l.x) {
this.ping.start(0, 1);
this.ttt = 0;
this.vx = -0.75 * this.vx;
this.odbicia = this.odbicia * 3;
}
if (p.y > l.y) {
this.ping.start(0, 1);
this.ttt = 0;
this.vy = -0.75 * this.vy;
this.odbicia = this.odbicia * 3;
}
if (this._parent.prz.hitTest(this._x, this._y, true)) {
var pt = new Object();
var v1 = new Object();
for (var i in this._parent.prz.p) {
var p = this._parent.prz.p[i];
if (p.hitTest(this._x, this._y, true)) {
pt.x = (pt.y = 0);
p.core.localToGlobal(pt);
var dx = (pt.x - this._x);
var dy = (pt.y - this._y);
var rx = ((this.kl._width / 2) + (p.core._width / 2));
var ry = ((this.kl._height / 2) + (p.core._height / 2));
if (((Math.abs(dx) < rx) && (Math.abs(dy) < ry)) && (p.flag)) {
p.flag = false;
var atn = Math.atan2(dy, dx);
var xx0 = (this._x - (pt.x - ((Math.cos(atn) * (p.core._width + this.kl._width)) / 2)));
var yy0 = (this._y - (pt.y - ((Math.sin(atn) * (p.core._height + this.kl._height)) / 2)));
this.wall._rotation = (180 * atn) / Math.PI;
v1.x = this.vx;
v1.y = this.vy;
this.localToGlobal(v1);
this.wall.globalToLocal(v1);
v1.x = -v1.x;
this.wall.localToGlobal(v1);
this.globalToLocal(v1);
this.vx = v1.x;
this.vy = v1.y;
v1.x = xx0;
v1.y = yy0;
this.localToGlobal(v1);
this.wall.globalToLocal(v1);
v1.x = -v1.x;
this.wall.localToGlobal(v1);
this.globalToLocal(v1);
this._x = this._x + v1.x;
this._y = this._y + v1.y;
this.odbicia++;
this.ttt = 0;
this.ping.start(0, 1);
}
} else {
p.flag = true;
}
}
} else {
for (var i in this._parent.prz.p) {
this._parent.prz.p[i].flag = true;
}
}
if ((this.ttt++) > 10) {
this.odbicia = 1;
}
};
live_dotClass.prototype.Force = function (x, y) {
var d2 = (Math.pow(x, 2) + Math.pow(y, 2));
var d = Math.sqrt(d2);
if (d > 30) {
d = 30;
}
var alfa = Math.atan2(y, x);
this.vx = (-d) * Math.cos(alfa);
this.vy = (-d) * Math.sin(alfa);
};
Object.registerClass("live_dot", live_dotClass);
#endinitclip
Symbol 20 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 34 MovieClip Frame 140
stop();
Symbol 73 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 76 MovieClip Frame 1
_root.stop();
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 110 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 116 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 125 MovieClip Frame 1
if (this._parent.p == undefined) {
this._parent.p = new Array();
}
this._parent.p.push(this);
Symbol 172 MovieClip Frame 10
stop();
Symbol 174 MovieClip Frame 40
this._parent._rotation = 180 + this._parent._rotation;
this._visible = false;
this._parent.poj.gotoAndPlay(1);
stop();
Symbol 176 MovieClip Frame 18
this._parent.frajer._visible = true;
_root.Ball.odbicia = 1;
this._parent.lag.start(0, 1);
stop();
Symbol 183 MovieClip Frame 1
this.r = new Object();
this.frajer.gotoAndStop(2);
this.jebable = true;
this.an = 0.25;
this.dla = 0;
this.c = 0.1;
this.sc = 1;
this.frajer._yscale = -100;
this.znik._yscale = -100;
this.spier._yscale = -100;
this.poj._yscale = -100;
this.frajer._xscale = -100;
this.znik._xscale = -100;
this.spier._xscale = -100;
this.poj._xscale = -100;
this.ocp = 0.1;
this.st = 100;
this.dt = 100;
this.idle1 = 0;
this.idle2 = 0;
this.znik.gotoAndStop(1);
this.poj.gotoAndStop(1);
this.znik._visible = false;
this.spier._visible = false;
this.run = new Sound();
this.run.attachSound("run");
this.ping = new Sound();
this.ping.attachSound("ping1");
this.lag = new Sound();
this.lag.attachSound("lag");
this.onEnterFrame = function () {
_root.dw.pula1 = _root.dw.pula / _root.kara;
if (this.znik._visible) {
return(undefined);
}
if (this._parent.Ball.odbicia == undefined) {
this._parent.Ball.odbicia = 1;
}
var p = new Object();
var r = this._rotation;
var da = 0;
this._rotation = this._rotation + this.an;
da = this.an;
p.x = this.frajer._x;
p.y = this.frajer._y;
this.localToGlobal(p);
var d1 = Math.floor((Math.abs(p.x - this._parent.ball._x) + Math.abs(p.y - this._parent.ball._y)) / 2);
this._rotation = this._rotation - (2 * this.an);
da = -this.an;
p.x = this.frajer._x;
p.y = this.frajer._y;
this.localToGlobal(p);
var d2 = Math.floor((Math.abs(p.x - this._parent.ball._x) + Math.abs(p.y - this._parent.ball._y)) / 2);
if (d1 > d2) {
this._rotation = this._rotation + (2 * this.an);
da = this.an;
}
var dd = Math.abs(Math.abs(d1) - Math.abs(d2));
if ((dd < 5) || (Math.random() < 0.25)) {
da = 0;
}
if ((this.spier._visible == true) && (dd < 7)) {
this.spier._visible = false;
}
if (((this.spier._visible == false) && (Math.abs(d2) < 100)) && (dd > 10)) {
this.run.start(0, 1);
this.spier._visible = true;
}
this.idle1 = (this.idle1 * 0.99) + (100 * Math.abs(da));
this.st = this.st - 0.1;
if (this.st < 0) {
this.st = 0;
}
if (this.idle1 < 10) {
this.frajer.gotoAndStop(1);
} else if (this.idle1 < 400) {
this.frajer.gotoAndStop(2);
} else {
this.frajer.gotoAndStop(Math.floor(this.st / 100) + 3);
}
this.idle2 = (this.idle2 * 0.95) + (Math.abs(da) / 5);
this.dla = ((this.dla * this.c) / this._parent.Ball.odbicia) + da;
this._rotation = (r + this.dla) + ((this.idle2 * Math.sin((this.dt = this.dt + 0.314159265358979))) / 8);
var p = (this._rotation + (this.idle2 * Math.sin((this.dt = this.dt + (0.314159265358979 / this._parent.ball.odbicia)))));
this.frajer._rotation = 180 - p;
this.znik._rotation = 180 - p;
this.spier._rotation = 180 - p;
if (this.an < 5) {
this.an = this.an + 0.5;
}
this.an = this.an / ((1 - this.ocp) + (this.ocp * this._parent.ball.odbicia));
if (this.htt.hitTest(this._parent.ball) && (this.jebable)) {
this.r.x = this.htt._x;
this.r.y = this.htt._y;
this.localToGlobal(this.r);
var ddxx = Math.abs(this.r.x - this._parent.ball._x);
var ddyy = Math.abs(this.r.y - this._parent.ball._y);
var rrxx = ((this.htt._width + this._parent.ball.kl._width) / 2);
var rryy = ((this.htt._height + this._parent.ball.kl._height) / 2);
if ((ddxx > rrxx) || (ddyy > rryy)) {
return(undefined);
}
_root.score = _root.score + _root.dw.pula;
_root.dw.pula = (_root.kara * 10) + 10;
this.ping.start(0, 1);
this.spier._visible = false;
this.znik._visible = true;
this.frajer._visible = false;
this.znik.gotoAndPlay(1);
this.st = this.st + 100;
this.c = this.c + ((0.8 - this.c) / 34);
this.ocp = this.ocp / 1.05;
this.sc = this.sc * 2;
_root.wyn++;
this.an = 0.5;
_root.kara++;
}
};
Symbol 196 MovieClip Frame 1
function _g() {
return(this._currentframe - 1);
}
function _s(v) {
this.gotoAndStop(v + 1);
}
this.addProperty("pula1", _g, _s);
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();