Frame 2
var music = new Sound();
music.attachSound("music");
music.start(0, 99999);
var boing_sound = new Sound();
boing_sound.attachSound("boing");
var fall_sound = new Sound();
fall_sound.attachSound("splash");
var ice_sound = new Sound();
ice_sound.attachSound("ice");
Frame 3
function game() {
gotoAndStop (4);
}
function _game(f) {
gotoAndStop(f +3);
}
function instr() {
gotoAndStop (3);
}
function starting() {
gotoAndStop (3);
}
function win() {
gotoAndStop (3);
}
function hof(f) {
gotoAndStop(f +2);
}
globalSound = new Sound();
stop();
Frame 4
function init(n, x, y) {
var _l2 = _root;
var _l1 = 0;
while (_l1 < n) {
_l2.attachMovie("partic", "partic" + _l1, _l1 + 200);
_l2["partic" + _l1]._x = x;
_l2["partic" + _l1]._y = y;
var _l3 = (Math.random() * 50);
_l2["partic" + _l1]._xscale = _l2["partic" + _l1]._xscale + _l3;
_l2["partic" + _l1]._yscale = _l2["partic" + _l1]._yscale + _l3;
_l2["partic" + _l1].freeFall();
_l1++;
}
}
function runparticles(x, y) {
init(10, x, y);
}
function killMC(which) {
which.removeMovieClip();
}
function Przeszkody() {
if (level == 1) {
brick1._visible = false;
brick2._visible = false;
brick3._visible = false;
} else if (level == 2) {
brick1._visible = false;
brick2._visible = true;
brick3._visible = false;
} else if (level == 3) {
brick1._visible = false;
brick2._visible = true;
brick3._visible = true;
} else {
brick1._visible = true;
brick2._visible = true;
brick3._visible = true;
}
}
stop();
level = 1;
lives = 3;
_level0.malpa._visible = false;
var dx = 4;
var dy = -4;
hole._visible = false;
gameOver = false;
_root.opis = "Level 1";
_root.scr = 0;
_level0.lives_mc.gotoAndStop(lives + 1);
hole._visible = false;
txtLvl.text = level;
Przeszkody();
var i = 0;
while (i < 10) {
if (i == 0) {
kokos = kokos0;
} else {
kokos = kokos0.duplicateMovieClip("kokos" + i, i);
}
kokos.gotoAndStop(i + 1);
kokos._x = kokos0._x + (i * 50);
kokos._visible = true;
i++;
}
var i = 0;
while (i < 10) {
kokos = kokos0.duplicateMovieClip("kokos" + (10 + i), i + 10);
kokos._alpha = 100;
kokos._y = kokos0._y + 25;
kokos.gotoAndStop(i + 1);
kokos._x = kokos0._x + (i * 50);
kokos._visible = true;
i++;
}
MovieClip.prototype.freeFall = function () {
var _l1 = this;
_l1.onEnterFrame = function () {
var _l1 = this;
if (typeof(_l1.mode) == "undefined") {
dir = ((Math.random() > 0.5) ? 1 : -1);
_l1.mode = 1;
_l1.speedx = (2.5 * Math.random()) * dir;
_l1.accel = 2.5 * Math.random();
_l1.factor = Math.random();
if (_l1.factor < 0.2) {
_l1.factor = _l1.factor + 0.2;
}
_l1.count = 2;
}
if (_l1.mode == 1) {
if (_l1.accel > 0) {
_l1._x = _l1._x - _l1.speedx;
_l1._y = _l1._y - _l1.accel;
_l1._rotation = _l1._rotation - _l1.accel;
if ((--_l1.count) < 0) {
_l1.accel = _l1.accel - _l1.factor;
_l1.count = 2;
}
} else {
_l1.mode = 2;
}
}
if (_l1.mode == 2) {
_l1._x = _l1._x - _l1.speedx;
_l1._y = _l1._y + _l1.accel;
_l1._rotation = _l1._rotation - _l1.accel;
if ((--_l1.count) < 0) {
_l1.accel = _l1.accel + _l1.factor;
_l1.count = 2;
}
if (_l1._y > 370) {
killMC(_l1);
}
}
};
};
Instance of Symbol 112 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_parent.lawka._x = _parent.lawka._x - 5;
if (_parent.lawka._x < 55) {
_parent.lawka._x = 55;
}
}
if (Key.isDown(39)) {
_parent.lawka._x = _parent.lawka._x + 5;
if (_parent.lawka._x > 495) {
_parent.lawka._x = 495;
}
}
if (_parent.gameOn == true) {
_parent.x = _parent.lawka._x;
if (_parent.dx > 0) {
_parent.malpa._xscale = 100;
} else {
_parent.malpa._xscale = -100;
}
if (_parent.malpa._x <= 10) {
_parent.dx = _parent.dx * -1;
}
if (_parent.malpa._x >= 540) {
_parent.dx = _parent.dx * -1;
}
_parent.malpa._y = _parent.malpa._y + _parent.dy;
if ((_parent.dy < 0) && (_parent.malpa._y >= 350)) {
_parent.malpa._y = 345;
}
_parent.malpa._x = _parent.malpa._x + _parent.dx;
if (_parent.dy < 8) {
_parent.dy = _parent.dy + 0.18;
}
if (_parent.dy > 0) {
if (Math.abs(_parent.dx) > 1) {
if (_parent.dx < 0) {
_parent.dx = _parent.dx + 0.01;
} else {
_parent.dx = _parent.dx - 0.01;
}
}
}
if (_parent.malpa._y < 200) {
var i = 0;
while (i < 20) {
kokos = _parent["kokos" + i];
if (kokos._visible == true) {
if (kokos.hitTest(_parent.malpa)) {
kokos._visible = false;
_parent.ice_sound.start();
_root.scr = _root.scr + 10;
_parent.txtScr.text = _parent.score;
_parent.runparticles(kokos._x, kokos._y);
pandcdiff = _parent.malpa._x - kokos._x;
_parent.dx = (2 * pandcdiff) / 35;
_parent.dy = 3;
kokosy_na_planszy = false;
var i = 0;
while (i < 20) {
kokos = _parent["kokos" + i];
if (kokos._visible == true) {
kokosy_na_planszy = true;
}
i++;
}
if (kokosy_na_planszy == false) {
_parent.gameOn = false;
_root.opis = "Level " + _parent.level;
_level0.malpa._visible = false;
if (_parent.level < 4) {
_level0.Plansza.gotoAndStop(2);
_level0.Plansza._x = 115;
_parent.level++;
_root.opis = "Level " + _parent.level;
} else {
_root._game(3);
}
}
}
}
i++;
}
}
klocki = false;
if (_parent.level == 1) {
} else if (_parent.level == 2) {
if (_parent.malpa.hitTest(_parent.brick2)) {
klocki = true;
}
} else if (_parent.level == 3) {
if (_parent.malpa.hitTest(_parent.brick2) || (_parent.malpa.hitTest(_parent.brick3))) {
klocki = true;
}
} else if ((_parent.malpa.hitTest(_parent.brick1) || (_parent.malpa.hitTest(_parent.brick2))) || (_parent.malpa.hitTest(_parent.brick3))) {
klocki = true;
}
if (klocki) {
_parent.dx = _parent.dx * -1;
_parent.dy = _parent.dy * -1;
_parent.malpa._x = _parent.malpa._x + _parent.dx;
_parent.malpa._y = _parent.malpa._y + _parent.dy;
}
if (_parent.malpa._y >= 350) {
px = _parent.malpa._x;
lx = _parent.lawka._x;
flag = false;
if (_parent.lawka._xscale > 0) {
if ((px > lx) && (px < (lx + 50))) {
flag = true;
diff = px - lx;
}
} else if ((px < lx) && (px > (lx - 50))) {
flag = true;
diff = lx - px;
}
if (flag == true) {
_parent.boing_sound.start();
if (diff > 30) {
diff = 30;
}
diffraction = diff / 30;
if (diff == 1) {
diff = 2;
}
_parent.dy = -(6 + (diffraction * 3));
if (_parent.lawka._xscale > 0) {
_parent.malpa._x = _parent.lawka._x - 44;
} else {
_parent.malpa._x = _parent.lawka._x + 44;
}
_parent.dx = _parent.dx * -1;
if (diffraction != 1) {
if (_parent.dx < 0) {
_parent.dx = -4 * diffraction;
} else {
_parent.dx = 4 * diffraction;
}
} else {
_parent.dx = _parent.dx * 0.1;
}
_parent.lawka._xscale = _parent.lawka._xscale * -1;
} else if (_parent.malpa._y >= 370) {
_parent.malpa._visible = false;
_parent.fall_sound.start();
_parent.fall2_sound.start();
_parent.hole._x = _parent.malpa._x;
_parent.hole._visible = true;
_parent.lives--;
_parent.lives_mc.gotoAndStop(_parent.lives + 1);
_parent.hole.gotoAndPlay(1);
_parent.gameOn = false;
if (_parent.lives == 0) {
_level0.gameOn = false;
_level0.gameOver = true;
_level0.Plansza.gotoAndStop(1);
i = 0;
while (i < 20) {
kokos = _parent["kokos" + i];
kokos._visible = false;
i++;
}
_root._game(3);
}
}
}
}
}
Frame 5
stop();
Frame 6
_root.hoff._visible = false;
_root.r = 0;
_root.onData = function () {
if (s == 1) {
_root.hoff._visible = true;
}
};
_root.loadVariables("hof.php?s=" + _root.wyn);
stop();
Instance of Symbol 236 MovieClip in Frame 6
//component parameters
onClipEvent (initialize) {
scr = "_root.scr";
}
Symbol 13 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 27 MovieClip Frame 140
stop();
Symbol 66 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 69 MovieClip Frame 1
_root.stop();
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 105 Button
on (press) {
_root.scr = 0;
_root.game();
}
Symbol 109 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 114 Button
on (keyPress "<Space>") {
lawka._xscale = lawka._xscale * -1;
}
Symbol 122 MovieClip Frame 49
_level0.hole._visible = false;
if (!_level0.gameOver) {
_level0.Trampolina.gotoAndPlay(2);
}
stop();
Symbol 143 Button
on (release) {
if (globalSound.getVolume() > 0) {
globalSound.setVolume(0);
} else {
globalSound.setVolume(100);
}
}
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 44
_level0.malpa._x = 69;
_level0.malpa._y = 275;
_level0.dx = 4;
_level0.dy = -4;
_level0.malpa._visible = true;
_level0.gameOn = true;
Symbol 153 Button
on (release) {
_level0.level = 1;
_level0.lives = 3;
_level0.malpa._x = 69;
_level0.malpa._y = 275;
_level0.malpa._visible = true;
_level0.gameOn = true;
_level0.gameOver = false;
_level0.dx = 4;
_level0.dy = -4;
_level0.hole._visible = false;
_level0.Plansza._x = -400;
_level0.Przeszkody();
i = 0;
while (i < 20) {
kokos = _level0["kokos" + i];
kokos._visible = true;
i++;
}
}
Symbol 154 Button
on (release) {
_level0.Plansza._x = -400;
}
Symbol 159 Button
on (release) {
i = 0;
while (i < 20) {
kokos = _parent["kokos" + i];
kokos._visible = true;
i++;
}
_level0.Plansza._x = -400;
_level0.Przeszkody();
_level0.malpa._x = 69;
_level0.malpa._y = 275;
_level0.malpa._visible = true;
_level0.gameOn = true;
_level0.dx = 4;
_level0.dy = -4;
_level0.hole._visible = false;
}
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 2
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 177 Button
on (press) {
this.gotoAndStop("weekly");
}
Symbol 178 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 179 Button
on (press) {
this.gotoAndStop("hourly");
}
Symbol 182 Button
on (press) {
this.gotoAndStop("monthly");
}
Symbol 187 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 190 MovieClip Frame 1
this._parent.tp = 2592000 /* 0x278D00 */;
this._parent.tc = 0;
this._parent.reload();
stop();
Symbol 190 MovieClip Frame 2
this._parent.tp = 604800 /* 0x093A80 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 190 MovieClip Frame 3
this._parent.tp = 86400 /* 0x015180 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 190 MovieClip Frame 4
this._parent.tp = 3600;
this._parent.tc = 0;
this._parent.reload();
Symbol 197 Button
on (press) {
this.tc--;
this.reload();
}
Symbol 202 Button
on (press) {
this.tc = ((this.tc < 0) ? (this.tc + 1) : 0);
this.reload();
}
Symbol 205 Button
on (press) {
if (this.submitted == false) {
this.loadVariables((((this.__url + "hof_put.php?id=") + this.gid) + "&s=") + this.sc);
}
}
Symbol 209 Button
on (press) {
this._parent.l = 10;
this._parent.reload();
this.gotoAndStop(2);
}
Symbol 212 Button
on (press) {
this._parent.l = 100;
this._parent.reload();
this.gotoAndStop(1);
}
Symbol 213 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 18
stop();
Symbol 230 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 229 MovieClip "m" in Symbol 230 MovieClip Frame 1
on (press) {
this.startDrag();
}
on (release, releaseOutside) {
this.stopDrag();
this._parent.reset();
}
Symbol 235 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 236 MovieClip Frame 1
this.submitted = false;
Symbol 236 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 241 Button
on (press) {
_root.starting();
}