Frame 2
_root.gwiazdki = 14;
_root.lives = 3;
_root.scr = 0;
Frame 3
function game() {
gotoAndStop (5);
}
function _game(f) {
gotoAndStop(f +4);
}
function instr() {
gotoAndStop (4);
}
function starting() {
gotoAndStop (3);
}
function win() {
gotoAndStop (3);
}
function hof(f) {
gotoAndStop(f +2);
}
stop();
Instance of Symbol 96 MovieClip in Frame 3
//component parameters
onClipEvent (initialize) {
label = "Play Game";
wide = 99;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = false;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.scr = 0;
_root.lives = 3;
_root.start_time = 0;
_root.start_time = Math.round(getTimer() / 1000);
_root.time = Math.round(getTimer() / 1000);
_root.elapsed_time = (_root.start_time + 60) - _root.time;
_root.gwiazdki = 14;
_root._game(1);
}
Instance of Symbol 96 MovieClip in Frame 3
//component parameters
onClipEvent (initialize) {
label = "Instructions";
wide = 101;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = false;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.instr();
}
Frame 4
stop();
Instance of Symbol 96 MovieClip in Frame 4
//component parameters
onClipEvent (initialize) {
label = "Play Game";
wide = 99;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = false;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.scr = 0;
_root.lives = 3;
_root.start_time = 0;
_root.start_time = Math.round(getTimer() / 1000);
_root.time = Math.round(getTimer() / 1000);
_root.elapsed_time = (_root.start_time + 60) - _root.time;
_root.gwiazdki = 14;
_root._game(1);
}
Instance of Symbol 96 MovieClip in Frame 4
//component parameters
onClipEvent (initialize) {
label = "Instructions";
wide = 101;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = false;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.instr();
}
Frame 5
stop();
Instance of Symbol 106 MovieClip in Frame 5
onClipEvent (load) {
this.obieg = 1;
}
Instance of Symbol 132 MovieClip "gwiazdka1" in Frame 5
/* no clip actions */
Instance of Symbol 187 MovieClip "player" in Frame 5
onClipEvent (load) {
start_x = 495;
start_y = 330;
bounce = 1.9;
sila_odbicia = 8;
_root.jump = 0;
_root.odbicie_nr = 0;
_root.elapsed_time = 60;
_root.start_time = 0;
_root.elapsed_time = (_root.start_time + 60) - _root.time;
_root.start_time = Math.round(getTimer() / 1000);
_parent.txtFormat = new TextFormat();
_parent.time_out.html = true;
_parent.time_out.embedFonts = true;
_parent.score_out.html = true;
_parent.score_out.embedFonts = true;
_parent.txtFormat.align = "right";
_parent.time_out.setTextFormat(txtFormat);
_parent.score_out.setTextFormat(txtFormat);
graj_dzwiek = function (b_volume, sfx) {
ball1 = new Sound(this);
ball1.attachSound(sfx);
ball1.setVolume(b_volume);
ball1.start(0, 1);
};
sprawdzaj_kolizje_z_gwiazdka = function () {
i = 1;
while (i <= 15) {
kolizja_z_gwiazdka = this.hitTest(_parent["gwiazdka" + i]);
if (kolizja_z_gwiazdka) {
_parent["gwiazdka" + i].play();
}
i++;
}
};
sprawdz_kolizje_z_podstawami = function () {
i = 0;
while (i <= 7) {
koliz = this._parent["pomost" + i].hitTest(this.kolizja);
spoczynek = this._parent["pomost" + i].hitTest(this.kolizja) && (_root.jump == 0);
odbicie_gora = this._parent["pomost" + i].hitTest(this.kolizjag);
odbicie_lewe = this._parent["pomost" + i].hitTest(this.kolizjal);
odbicie_prawe = this._parent["pomost" + i].hitTest(this.kolizjar);
if (koliz != true) {
_root.jump = 0;
}
if (spoczynek == true) {
_root.vy = _root.vy * -1;
_root.vy = _root.vy / bounce;
this._y = this._parent["pomost" + i]._y + 15;
} else if (odbicie_gora == true) {
if (_root.vy > 0) {
_root.vy = _root.vy * -1;
}
this._y = this._y + _root.vy;
} else if (odbicie_lewe == true) {
_x = (_x - 5);
acel = acel * -1;
} else if (odbicie_prawe == true) {
_x = (_x + 5);
acel = acel * -1;
}
if ((Key.isDown(40) && (_root.jump == 0)) && (koliz == true)) {
_root.vy = sila_odbicia;
_root.jump = 1;
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (_root.player._y < 0) {
_root._game(55);
}
if (_root.gwiazdki == 0) {
_root.next_level = 2;
_root.skarb._y = 363;
_root.skarb.gotoAndPlay(2);
_root.strzalka._visible = true;
_root.strzalka.gotoAndPlay(2);
_root.pomost7.gotoAndPlay(2);
}
if (_root.lives < 1) {
_parent.lives_out.gotoAndStop(_root.lives);
_root._game(60);
}
if (_parent.elapsed_time == 0) {
_root.player.gotoAndPlay("gin");
}
if (_x < 12) {
_x = (_x + 5);
acel = acel * -1;
} else if (_x > 534) {
_x = (_x - 5);
acel = acel * -1;
}
sprawdz_kolizje_z_podstawami();
sprawdzaj_kolizje_z_gwiazdka();
if (_root.vy < -20) {
_root.vy = -20;
} else {
_y = (_y + _root.vy);
_root.vy = _root.vy - 0.3;
}
this._x = this._x + acel;
this.ball.ballk._rotation = this.ball.ballk._rotation - ((acel * 3) * zwrot);
if (Key.isDown(37)) {
zwrot = -1;
acel = acel - 0.2;
} else if (Key.isDown(39)) {
zwrot = -1;
acel = acel + 0.2;
} else {
acel = acel / 1.1;
if (Math.abs(acel) <= 0.3) {
acel = 0;
this.ball.ballk.stop();
}
}
_parent.lives_out.gotoAndStop(_root.lives);
_root.time = Math.round(getTimer() / 1000);
_root.elapsed_time = (_root.start_time + 70) - _root.time;
_root.czas = _root.elapsed_time;
_root.score_out.htmlText = ("<font align='right' face='offical'>" + _root.scr) + "</font>";
_root.time_out.htmlText = ("<font face='offical'>" + _root.czas) + "</font>";
}
Instance of Symbol 189 MovieClip "fishg" in Frame 5
onClipEvent (load) {
speed_wroga = 2;
zwrot = -1;
}
onClipEvent (enterFrame) {
if (this.kolid.hitTest(this._parent.player.koli)) {
this._parent.player.gotoAndPlay("gin");
}
if (this._x > 510) {
zwrot = -1;
this._x = this._x - 10;
this._xscale = this._xscale * -1;
} else if (this._x < 350) {
zwrot = 1;
this._x = this._x + 10;
this._xscale = this._xscale * -1;
}
this._x = this._x + (speed_wroga * zwrot);
}
Instance of Symbol 192 MovieClip "skarb" in Frame 5
onClipEvent (load) {
this.stop();
_y = 600;
}
onClipEvent (enterFrame) {
if (this.s_koli.hitTest(this._parent.player)) {
this.gotoAndPlay("zebrane");
}
}
Instance of Symbol 189 MovieClip "fish" in Frame 5
onClipEvent (load) {
speed_wroga = 2;
zwrot = -1;
}
onClipEvent (enterFrame) {
if (this.kolid.hitTest(this._parent.player.koli)) {
this._parent.player.gotoAndPlay("gin");
}
if (this._x > 236) {
zwrot = -1;
this._x = this._x - 10;
this._xscale = this._xscale * -1;
} else if (this._x < 6) {
zwrot = 1;
this._x = this._x + 10;
this._xscale = this._xscale * -1;
}
this._x = this._x + (speed_wroga * zwrot);
}
Instance of Symbol 197 MovieClip "strzalka" in Frame 5
onClipEvent (load) {
this.stop();
this._visible = false;
}
Frame 6
stop();
Instance of Symbol 187 MovieClip "player" in Frame 6
onClipEvent (load) {
_root.gwiazdki = 14;
start_x = 500;
start_y = 365;
bounce = 1.9;
sila_odbicia = 8;
_root.jump = 0;
_root.odbicie_nr = 0;
_root.elapsed_time = 70;
_root.start_time = 0;
_root.elapsed_time = (_root.start_time + 70) - _root.time;
_root.start_time = Math.round(getTimer() / 1000);
_parent.txtFormat = new TextFormat();
_parent.time_out.html = true;
_parent.time_out.embedFonts = true;
_parent.score_out.html = true;
_parent.score_out.embedFonts = true;
_parent.txtFormat.align = "right";
_parent.time_out.setTextFormat(txtFormat);
_parent.score_out.setTextFormat(txtFormat);
graj_dzwiek = function (b_volume, sfx) {
ball1 = new Sound(this);
ball1.attachSound(sfx);
ball1.setVolume(b_volume);
ball1.start(0, 1);
};
sprawdzaj_kolizje_z_gwiazdka = function () {
i = 1;
while (i <= 15) {
kolizja_z_gwiazdka = this.hitTest(_parent["gwiazdka" + i]);
if (kolizja_z_gwiazdka) {
_parent["gwiazdka" + i].play();
}
i++;
}
};
sprawdz_kolizje_z_podstawami = function () {
i = 1;
while (i <= 7) {
koliz = this._parent["pomost" + i].hitTest(this.kolizja);
spoczynek = this._parent["pomost" + i].hitTest(this.kolizja) && (_root.jump == 0);
odbicie_gora = this._parent["pomost" + i].hitTest(this.kolizjag);
odbicie_lewe = this._parent["pomost" + i].hitTest(this.kolizjal);
odbicie_prawe = this._parent["pomost" + i].hitTest(this.kolizjar);
if (koliz != true) {
_root.jump = 0;
}
if (spoczynek == true) {
_root.vy = _root.vy * -1;
_root.vy = _root.vy / bounce;
this._y = this._parent["pomost" + i]._y + 15;
} else if (odbicie_gora == true) {
_root.vy = _root.vy * -1;
this._y = this._y + _root.vy;
} else if (odbicie_lewe == true) {
_x = (_x - 5);
acel = acel * -1;
} else if (odbicie_prawe == true) {
_x = (_x + 5);
acel = acel * -1;
}
if ((Key.isDown(40) && (_root.jump == 0)) && (koliz == true)) {
_root.vy = sila_odbicia;
_root.jump = 1;
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (_root.player._y < 0) {
_root._game(55);
}
if (_root.gwiazdki == 0) {
_root.next_level = 3;
_root.skarb._y = 303;
_root.skarb.gotoAndPlay(2);
_root.strzalka._visible = true;
_root.strzalka.gotoAndPlay(2);
_root.pomost7.gotoAndPlay(2);
}
if (_root.lives < 1) {
_parent.lives_out.gotoAndStop(_root.lives);
_root._game(60);
}
if (_parent.elapsed_time == 0) {
_root.player.gotoAndPlay("gin");
}
if (_x < 12) {
_x = (_x + 5);
acel = acel * -1;
} else if (_x > 534) {
_x = (_x - 5);
acel = acel * -1;
}
sprawdz_kolizje_z_podstawami();
sprawdzaj_kolizje_z_gwiazdka();
if (_root.vy < -20) {
_root.vy = -20;
} else {
_y = (_y + _root.vy);
_root.vy = _root.vy - 0.3;
}
this._x = this._x + acel;
this.ball.ballk._rotation = this.ball.ballk._rotation - ((acel * 3) * zwrot);
if (Key.isDown(37)) {
zwrot = -1;
acel = acel - 0.2;
} else if (Key.isDown(39)) {
zwrot = -1;
acel = acel + 0.2;
} else {
acel = acel / 1.1;
if (Math.abs(acel) <= 0.3) {
acel = 0;
this.ball.ballk.stop();
}
}
_parent.lives_out.gotoAndStop(_root.lives);
_root.time = Math.round(getTimer() / 1000);
_root.elapsed_time = (_root.start_time + 70) - _root.time;
_root.czas = _root.elapsed_time;
_root.score_out.htmlText = ("<font align='right' face='offical'>" + _root.scr) + "</font>";
_root.time_out.htmlText = ("<font face='offical'>" + _root.czas) + "</font>";
}
Instance of Symbol 212 MovieClip "fish" in Frame 6
onClipEvent (load) {
speed_wroga = 2;
zwrot = -1;
}
onClipEvent (enterFrame) {
if (this.kolid.hitTest(this._parent.player.koli)) {
this._parent.player.gotoAndPlay("gin");
}
if (this._x > 236) {
zwrot = -1;
this._x = this._x - 10;
this._xscale = this._xscale * -1;
} else if (this._x < 6) {
zwrot = 1;
this._x = this._x + 10;
this._xscale = this._xscale * -1;
}
this._x = this._x + (speed_wroga * zwrot);
}
Instance of Symbol 212 MovieClip "fishg" in Frame 6
onClipEvent (load) {
speed_wroga = 2;
zwrot = -1;
}
onClipEvent (enterFrame) {
if (this.kolid.hitTest(this._parent.player.koli)) {
this._parent.player.gotoAndPlay("gin");
}
if (this._x > 510) {
zwrot = -1;
this._x = this._x - 10;
this._xscale = this._xscale * -1;
} else if (this._x < 405) {
zwrot = 1;
this._x = this._x + 10;
this._xscale = this._xscale * -1;
}
this._x = this._x + (speed_wroga * zwrot);
}
Instance of Symbol 192 MovieClip "skarb" in Frame 6
onClipEvent (load) {
this.stop();
_y = 600;
}
onClipEvent (enterFrame) {
if (this.s_koli.hitTest(this._parent.player)) {
this.gotoAndPlay("zebrane");
}
}
Instance of Symbol 214 MovieClip in Frame 6
onClipEvent (load) {
speed_wroga = 2;
zwrot = -1;
}
onClipEvent (enterFrame) {
if (this.kolid.hitTest(this._parent.player)) {
this._parent.player.acel = this._parent.player.acel * 2;
if (this._parent.player.acel > 0) {
this._parent.player.acel = this._parent.player.acel - 5;
} else {
this._parent.player.acel = this._parent.player.acel + 5;
}
this._parent.player._x = this._parent.player._x + (this._parent.player.acel * 2);
}
if (this._x > 408) {
zwrot = -1;
this._x = this._x - 10;
this._xscale = this._xscale * -1;
} else if (this._x < 155) {
zwrot = 1;
this._x = this._x + 10;
this._xscale = this._xscale * -1;
}
this._x = this._x + (speed_wroga * zwrot);
}
Frame 7
stop();
Instance of Symbol 187 MovieClip "player" in Frame 7
onClipEvent (load) {
_root.gwiazdki = 14;
start_x = 500;
start_y = 365;
bounce = 1.9;
sila_odbicia = 8;
_root.jump = 0;
_root.odbicie_nr = 0;
_root.elapsed_time = 70;
_root.start_time = 0;
_root.elapsed_time = (_root.start_time + 70) - _root.time;
_root.start_time = Math.round(getTimer() / 1000);
_parent.txtFormat = new TextFormat();
_parent.time_out.html = true;
_parent.time_out.embedFonts = true;
_parent.score_out.html = true;
_parent.score_out.embedFonts = true;
_parent.txtFormat.align = "right";
_parent.time_out.setTextFormat(txtFormat);
_parent.score_out.setTextFormat(txtFormat);
graj_dzwiek = function (b_volume, sfx) {
ball1 = new Sound(this);
ball1.attachSound(sfx);
ball1.setVolume(b_volume);
ball1.start(0, 1);
};
sprawdzaj_kolizje_z_gwiazdka = function () {
i = 1;
while (i <= 15) {
kolizja_z_gwiazdka = this.hitTest(_parent["gwiazdka" + i]);
if (kolizja_z_gwiazdka) {
_parent["gwiazdka" + i].play();
}
i++;
}
};
sprawdz_kolizje_z_podstawami = function () {
i = 1;
while (i <= 7) {
koliz = this._parent["pomost" + i].hitTest(this.kolizja);
spoczynek = this._parent["pomost" + i].hitTest(this.kolizja) && (_root.jump == 0);
odbicie_gora = this._parent["pomost" + i].hitTest(this.kolizjag);
odbicie_lewe = this._parent["pomost" + i].hitTest(this.kolizjal);
odbicie_prawe = this._parent["pomost" + i].hitTest(this.kolizjar);
if (koliz != true) {
_root.jump = 0;
}
if (spoczynek == true) {
_root.vy = _root.vy * -1;
_root.vy = _root.vy / bounce;
this._y = this._parent["pomost" + i]._y + 15;
} else if (odbicie_gora == true) {
_root.vy = _root.vy * -1;
this._y = this._y + _root.vy;
} else if (odbicie_lewe == true) {
_x = (_x - 5);
acel = acel * -1;
} else if (odbicie_prawe == true) {
_x = (_x + 5);
acel = acel * -1;
}
if ((Key.isDown(40) && (_root.jump == 0)) && (koliz == true)) {
_root.vy = sila_odbicia;
_root.jump = 1;
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (_root.player._y < 0) {
_root._game(55);
}
if (_root.gwiazdki == 0) {
_root.next_level = 4;
_root.skarb._y = 321;
_root.skarb.gotoAndPlay(2);
_root.strzalka._visible = true;
_root.strzalka.gotoAndPlay(2);
_root.pomost7.gotoAndPlay(2);
}
if (_root.lives < 1) {
_parent.lives_out.gotoAndStop(_root.lives);
_root._game(60);
}
if (_parent.elapsed_time == 0) {
_root.player.gotoAndPlay("gin");
}
if (_x < 12) {
_x = (_x + 5);
acel = acel * -1;
} else if (_x > 534) {
_x = (_x - 5);
acel = acel * -1;
}
sprawdz_kolizje_z_podstawami();
sprawdzaj_kolizje_z_gwiazdka();
if (_root.vy < -20) {
_root.vy = -20;
} else {
_y = (_y + _root.vy);
_root.vy = _root.vy - 0.3;
}
this._x = this._x + acel;
this.ball.ballk._rotation = this.ball.ballk._rotation - ((acel * 3) * zwrot);
if (Key.isDown(37)) {
zwrot = -1;
acel = acel - 0.2;
} else if (Key.isDown(39)) {
zwrot = -1;
acel = acel + 0.2;
} else {
acel = acel / 1.1;
if (Math.abs(acel) <= 0.3) {
acel = 0;
this.ball.ballk.stop();
}
}
_parent.lives_out.gotoAndStop(_root.lives);
_root.time = Math.round(getTimer() / 1000);
_root.elapsed_time = (_root.start_time + 70) - _root.time;
_root.czas = _root.elapsed_time;
_root.score_out.htmlText = ("<font align='right' face='offical'>" + _root.scr) + "</font>";
_root.time_out.htmlText = ("<font face='offical'>" + _root.czas) + "</font>";
}
Instance of Symbol 212 MovieClip in Frame 7
onClipEvent (load) {
speed_wroga = 2;
zwrot = -1;
}
onClipEvent (enterFrame) {
if (this.kolid.hitTest(this._parent.player.koli)) {
this._parent.player.gotoAndPlay("gin");
}
if (this._x > 510) {
trace("1");
zwrot = -1;
this._x = this._x - 10;
this._xscale = this._xscale * -1;
} else if (this._x < 300) {
trace("2");
zwrot = 1;
this._x = this._x + 10;
this._xscale = this._xscale * -1;
}
this._x = this._x + (speed_wroga * zwrot);
}
Instance of Symbol 218 MovieClip in Frame 7
onClipEvent (load) {
speed_wroga = 2;
zwrot = -1;
zwroty = -1;
}
onClipEvent (enterFrame) {
if (this.kolizja.hitTest(this._parent.player.koli)) {
this._parent.player.gotoAndPlay("gin");
}
if (this._y > 350) {
zwroty = -1;
this._y = this._y - 10;
} else if (this._y < 150) {
zwroty = 1;
this._y = this._y + 10;
}
if (this._x > 300) {
zwrot = -1;
this._x = this._x - 10;
this._xscale = this._xscale * -1;
} else if (this._x < 200) {
zwrot = 1;
this._x = this._x + 10;
this._xscale = this._xscale * -1;
}
this._y = this._y + (speed_wroga * zwroty);
this._x = this._x + (3 * zwrot);
}
Frame 8
stop();
Instance of Symbol 235 MovieClip "gwiazdka12" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 236 MovieClip "gwiazdka3" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 238 MovieClip "gwiazdka7" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 236 MovieClip "gwiazdka1" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 236 MovieClip "gwiazdka2" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 236 MovieClip "gwiazdka4" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 238 MovieClip "gwiazdka8" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 235 MovieClip "gwiazdka10" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 236 MovieClip "gwiazdka14" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 236 MovieClip "gwiazdka13" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 239 MovieClip "gwiazdka15" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 187 MovieClip "player" in Frame 8
onClipEvent (load) {
_root.gwiazdki = 14;
start_x = 290;
start_y = 330;
bounce = 1.95;
sila_odbicia = -14;
_root.vy = 1;
_root.jump = 0;
_root.elapsed_time = 70;
_root.start_time = 0;
_root.elapsed_time = (_root.start_time + 70) - _root.time;
_root.start_time = Math.round(getTimer() / 1000);
_parent.txtFormat = new TextFormat();
_parent.time_out.html = true;
_parent.time_out.embedFonts = true;
_parent.score_out.html = true;
_parent.score_out.embedFonts = true;
_parent.txtFormat.align = "right";
_parent.time_out.setTextFormat(txtFormat);
_parent.score_out.setTextFormat(txtFormat);
graj_dzwiek = function (b_volume, sfx) {
ball1 = new Sound();
ball1.attachSound(sfx);
ball1.setVolume(b_volume);
ball1.start(0, 1);
};
sprawdzaj_kolizje_z_gwiazdka = function () {
i = 1;
while (i <= 15) {
kolizja_z_gwiazdka = this.hitTest(_parent["gwiazdka" + i]);
if (kolizja_z_gwiazdka) {
_parent["gwiazdka" + i].play();
}
i++;
}
};
sprawdz_kolizje_z_podstawami = function () {
i = 0;
while (i <= 8) {
koliz = this._parent["pomost" + i].hitTest(this.kolizja);
spoczynek = this._parent["pomost" + i].hitTest(this.kolizja) && (_root.jump == 0);
odbicie_gora = this._parent["pomost" + i].hitTest(this.kolizjag);
odbicie_lewe = this._parent["pomost" + i].hitTest(this.kolizjal);
odbicie_prawe = this._parent["pomost" + i].hitTest(this.kolizjar);
if (koliz != true) {
_root.jump = 0;
}
if (spoczynek == true) {
_root.vy = _root.vy * -1;
_root.vy = _root.vy / bounce;
this._y = this._parent["pomost" + i]._y - 15;
} else if (odbicie_gora == true) {
_root.vy = _root.vy * -1;
this._y = this._y + _root.vy;
} else if (odbicie_lewe == true) {
_x = (_x + 5);
acel = acel * -1;
} else if (odbicie_prawe == true) {
_x = (_x - 5);
acel = acel * -1;
}
if ((Key.isDown(38) && (_root.jump == 0)) && (koliz == true)) {
_root.vy = sila_odbicia;
_root.jump = 1;
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (_root.player._y < 10) {
_root._game(55);
}
if (_root.gwiazdki == 0) {
_root.next_level = 5;
_root.skarb._y = 378;
_root.skarb.gotoAndPlay(2);
_root.strzalka._visible = true;
_root.strzalka.gotoAndPlay(2);
_root.pomost6.gotoAndPlay(2);
}
if (_root.lives < 1) {
_parent.lives_out.gotoAndStop(4);
_root._game(60);
}
if (_parent.elapsed_time == 0) {
_root.player.gotoAndPlay("gin");
}
if (_x < 17) {
_x = (_x + 5);
acel = acel * -1;
} else if (_x > 534) {
_x = (_x - 5);
acel = acel * -1;
}
sprawdz_kolizje_z_podstawami();
sprawdzaj_kolizje_z_gwiazdka();
if (_root.vy > 20) {
_root.vy = 20;
} else if ((Math.abs(_root.vy) > 0.25) && (Math.abs(_root.vy) < 0.87)) {
_root.vy = 0;
} else {
_y = (_y + _root.vy);
_root.vy = _root.vy + 1;
}
this._x = this._x + acel;
this.ball.ballk._rotation = this.ball.ballk._rotation + ((acel * 3) * zwrot);
if (Key.isDown(37)) {
zwrot = -1;
acel = acel - 0.5;
} else if (Key.isDown(39)) {
zwrot = -1;
acel = acel + 0.5;
} else {
acel = acel / 1.05;
if (Math.abs(acel) <= 0.3) {
acel = 0;
this.ball.ballk.stop();
}
}
_parent.lives_out.gotoAndStop(_root.lives);
_parent.time = Math.round(getTimer() / 1000);
_parent.elapsed_time = (_parent.start_time + 70) - _parent.time;
_parent.czas = _parent.elapsed_time;
_parent.score_out.htmlText = ("<font align='right' face='offical'>" + _root.scr) + "</font>";
_parent.time_out.htmlText = ("<font face='offical'>" + _parent.czas) + "</font>";
}
Instance of Symbol 214 MovieClip in Frame 8
onClipEvent (load) {
speed_wroga = 2;
zwrot = -1;
}
onClipEvent (enterFrame) {
if (this.kolid.hitTest(this._parent.player)) {
this._parent.player.acel = this._parent.player.acel * 2;
if (this._parent.player.acel > 0) {
this._parent.player.acel = this._parent.player.acel - 5;
} else {
this._parent.player.acel = this._parent.player.acel + 5;
}
this._parent.player._x = this._parent.player._x + (this._parent.player.acel * 1.5);
}
if (this._x > 408) {
zwrot = -1;
this._x = this._x - 10;
this._xscale = this._xscale * -1;
} else if (this._x < 155) {
zwrot = 1;
this._x = this._x + 10;
this._xscale = this._xscale * -1;
}
this._x = this._x + (speed_wroga * zwrot);
}
Instance of Symbol 236 MovieClip "gwiazdka11" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 239 MovieClip "gwiazdka6" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 238 MovieClip "gwiazdka5" in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 242 MovieClip in Frame 8
onClipEvent (load) {
speed_wroga = 1;
zwrot = -1;
}
onClipEvent (enterFrame) {
if (this.kolid.hitTest(this._parent.player.koli) || (this.kolid1.hitTest(this._parent.player.koli))) {
this._parent.player.gotoAndPlay("gin");
}
if (this._x > 212) {
zwrot = -1;
this._x = this._x - 10;
this._xscale = this._xscale * -1;
} else if (this._x < 45) {
zwrot = 1;
this._x = this._x + 10;
this._xscale = this._xscale * -1;
}
this._x = this._x + (speed_wroga * zwrot);
}
Instance of Symbol 242 MovieClip in Frame 8
onClipEvent (load) {
speed_wroga = 1;
zwrot = -1;
}
onClipEvent (enterFrame) {
if (this.kolid.hitTest(this._parent.player.koli) || (this.kolid1.hitTest(this._parent.player.koli))) {
this._parent.player.gotoAndPlay("gin");
}
if (this._x > 535) {
zwrot = -1;
this._x = this._x - 10;
this._xscale = this._xscale * -1;
} else if (this._x < 395) {
zwrot = 1;
this._x = this._x + 10;
this._xscale = this._xscale * -1;
}
this._x = this._x + (speed_wroga * zwrot);
}
Instance of Symbol 255 MovieClip in Frame 8
onClipEvent (load) {
speed_wroga = 1;
zwrot = -1;
}
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.player.koli)) {
this._parent.player.gotoAndPlay("gin");
}
if (this._x > 160) {
zwrot = -1;
this._x = this._x - 10;
} else if (this._x < -100) {
zwrot = 1;
this._x = this._x + 10;
}
this._x = this._x + (speed_wroga * zwrot);
}
Frame 9
stop();
Instance of Symbol 239 MovieClip "gwiazdka6" in Frame 9
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 238 MovieClip "gwiazdka3" in Frame 9
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 236 MovieClip "gwiazdka7" in Frame 9
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 238 MovieClip "gwiazdka1" in Frame 9
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 238 MovieClip "gwiazdka2" in Frame 9
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 238 MovieClip "gwiazdka4" in Frame 9
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 236 MovieClip "gwiazdka5" in Frame 9
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 236 MovieClip "gwiazdka8" in Frame 9
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 238 MovieClip "gwiazdka11" in Frame 9
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 238 MovieClip "gwiazdka14" in Frame 9
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 238 MovieClip "gwiazdka13" in Frame 9
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 187 MovieClip "player" in Frame 9
onClipEvent (load) {
_root.gwiazdki = 14;
start_x = 290;
start_y = 330;
bounce = 1.95;
sila_odbicia = -14;
_root.jump = 0;
_root.vy = 1;
_root.elapsed_time = 70;
_root.start_time = 0;
_root.elapsed_time = (_root.start_time + 70) - _root.time;
_root.start_time = Math.round(getTimer() / 1000);
_parent.txtFormat = new TextFormat();
_parent.time_out.html = true;
_parent.time_out.embedFonts = true;
_parent.score_out.html = true;
_parent.score_out.embedFonts = true;
_parent.txtFormat.align = "right";
_parent.time_out.setTextFormat(txtFormat);
_parent.score_out.setTextFormat(txtFormat);
graj_dzwiek = function (b_volume, sfx) {
ball1 = new Sound();
ball1.attachSound(sfx);
ball1.setVolume(b_volume);
ball1.start(0, 1);
};
sprawdzaj_kolizje_z_gwiazdka = function () {
i = 1;
while (i <= 15) {
kolizja_z_gwiazdka = this.hitTest(_parent["gwiazdka" + i]);
if (kolizja_z_gwiazdka) {
_parent["gwiazdka" + i].play();
}
i++;
}
};
sprawdz_kolizje_z_podstawami = function () {
i = 0;
while (i <= 8) {
koliz = this._parent["pomost" + i].hitTest(this.kolizja);
spoczynek = this._parent["pomost" + i].hitTest(this.kolizja) && (_root.jump == 0);
odbicie_gora = this._parent["pomost" + i].hitTest(this.kolizjag);
odbicie_lewe = this._parent["pomost" + i].hitTest(this.kolizjal);
odbicie_prawe = this._parent["pomost" + i].hitTest(this.kolizjar);
if (koliz != true) {
_root.jump = 0;
}
if (spoczynek == true) {
_root.vy = _root.vy * -1;
_root.vy = _root.vy / bounce;
this._y = this._parent["pomost" + i]._y - 15;
} else if (odbicie_gora == true) {
_root.vy = _root.vy * -1;
this._y = this._y + _root.vy;
} else if (odbicie_lewe == true) {
_x = (_x + 5);
acel = acel * -1;
} else if (odbicie_prawe == true) {
_x = (_x - 5);
acel = acel * -1;
}
if ((Key.isDown(38) && (_root.jump == 0)) && (koliz == true)) {
_root.vy = sila_odbicia;
_root.jump = 1;
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (_root.player._y < 20) {
_root._game(55);
}
if (_root.player._y > 410) {
_root.player.gotoAndPlay("gin");
}
if (_root.gwiazdki == 0) {
_root.next_level = 6;
_root.skarb._y = 377;
_root.skarb.gotoAndPlay(2);
_root.strzalka._visible = true;
_root.strzalka.gotoAndPlay(2);
_root.pomost6.gotoAndPlay(2);
}
if (_root.lives < 1) {
_parent.lives_out.gotoAndStop(4);
_root._game(60);
}
if (_parent.elapsed_time == 0) {
_root.player.gotoAndPlay("gin");
}
if (_x < 17) {
_x = (_x + 5);
acel = acel * -1;
} else if (_x > 534) {
_x = (_x - 5);
acel = acel * -1;
}
sprawdz_kolizje_z_podstawami();
sprawdzaj_kolizje_z_gwiazdka();
if (_root.vy > 20) {
_root.vy = 20;
} else if ((Math.abs(_root.vy) > 0.25) && (Math.abs(_root.vy) < 0.87)) {
_root.vy = 0;
} else {
_y = (_y + _root.vy);
_root.vy = _root.vy + 1;
}
this._x = this._x + acel;
this.ball.ballk._rotation = this.ball.ballk._rotation + ((acel * 3) * zwrot);
if (Key.isDown(37)) {
zwrot = -1;
acel = acel - 0.5;
} else if (Key.isDown(39)) {
zwrot = -1;
acel = acel + 0.5;
} else {
acel = acel / 1.05;
if (Math.abs(acel) <= 0.3) {
acel = 0;
this.ball.ballk.stop();
}
}
_parent.lives_out.gotoAndStop(_root.lives);
_parent.time = Math.round(getTimer() / 1000);
_parent.elapsed_time = (_parent.start_time + 70) - _parent.time;
_parent.czas = _parent.elapsed_time;
_parent.score_out.htmlText = ("<font align='right' face='offical'>" + _root.scr) + "</font>";
_parent.time_out.htmlText = ("<font face='offical'>" + _parent.czas) + "</font>";
}
Instance of Symbol 242 MovieClip "fish" in Frame 9
onClipEvent (load) {
speed_wroga = 1;
zwrot = -1;
}
onClipEvent (enterFrame) {
if (this.kolid.hitTest(this._parent.player.koli) || (this.kolid1.hitTest(this._parent.player.koli))) {
this._parent.player.gotoAndPlay("gin");
}
if (this._x > 80) {
zwrot = -1;
this._x = this._x - 10;
this._xscale = this._xscale * -1;
} else if (this._x < -66) {
zwrot = 1;
this._x = this._x + 10;
this._xscale = this._xscale * -1;
}
this._x = this._x + (speed_wroga * zwrot);
}
Instance of Symbol 242 MovieClip "fishg" in Frame 9
onClipEvent (load) {
speed_wroga = 1;
zwrot = -1;
}
onClipEvent (enterFrame) {
if (this.kolid.hitTest(this._parent.player.koli) || (this.kolid1.hitTest(this._parent.player.koli))) {
this._parent.player.gotoAndPlay("gin");
}
if (this._x > 620) {
zwrot = -1;
this._x = this._x - 10;
this._xscale = this._xscale * -1;
} else if (this._x < 455) {
zwrot = 1;
this._x = this._x + 10;
this._xscale = this._xscale * -1;
}
this._x = this._x + (speed_wroga * zwrot);
}
Instance of Symbol 255 MovieClip in Frame 9
onClipEvent (load) {
speed_wroga = 1;
zwrot = -1;
}
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.player.koli)) {
this._parent.player.gotoAndPlay("gin");
}
if (this._x > 360) {
zwrot = -1;
this._x = this._x - 10;
} else if (this._x < 200) {
zwrot = 1;
this._x = this._x + 10;
}
this._x = this._x + (speed_wroga * zwrot);
}
Frame 10
stop();
Instance of Symbol 239 MovieClip "gwiazdka12" in Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 236 MovieClip "gwiazdka6" in Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 235 MovieClip "gwiazdka3" in Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 238 MovieClip "gwiazdka7" in Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 235 MovieClip "gwiazdka1" in Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 235 MovieClip "gwiazdka2" in Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 235 MovieClip "gwiazdka4" in Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 238 MovieClip "gwiazdka5" in Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 238 MovieClip "gwiazdka8" in Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 239 MovieClip "gwiazdka10" in Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 235 MovieClip "gwiazdka11" in Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 235 MovieClip "gwiazdka14" in Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 235 MovieClip "gwiazdka13" in Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 236 MovieClip "gwiazdka15" in Frame 10
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 187 MovieClip "player" in Frame 10
onClipEvent (load) {
_root.gwiazdki = 14;
start_x = 154;
start_y = 345;
bounce = 1.95;
sila_odbicia = -14;
_root.vy = 1;
_root.jump = 0;
_root.elapsed_time = 70;
_root.start_time = 0;
_root.elapsed_time = (_root.start_time + 70) - _root.time;
_root.start_time = Math.round(getTimer() / 1000);
_parent.txtFormat = new TextFormat();
_parent.time_out.html = true;
_parent.time_out.embedFonts = true;
_parent.score_out.html = true;
_parent.score_out.embedFonts = true;
_parent.txtFormat.align = "right";
_parent.time_out.setTextFormat(txtFormat);
_parent.score_out.setTextFormat(txtFormat);
graj_dzwiek = function (b_volume, sfx) {
ball1 = new Sound();
ball1.attachSound(sfx);
ball1.setVolume(b_volume);
ball1.start(0, 1);
};
sprawdzaj_kolizje_z_gwiazdka = function () {
i = 1;
while (i <= 15) {
kolizja_z_gwiazdka = this.hitTest(_parent["gwiazdka" + i]);
if (kolizja_z_gwiazdka) {
_parent["gwiazdka" + i].play();
}
i++;
}
};
sprawdz_kolizje_z_podstawami = function () {
i = 0;
while (i <= 8) {
koliz = this._parent["pomost" + i].hitTest(this.kolizja);
spoczynek = this._parent["pomost" + i].hitTest(this.kolizja) && (_root.jump == 0);
odbicie_gora = this._parent["pomost" + i].hitTest(this.kolizjag);
odbicie_lewe = this._parent["pomost" + i].hitTest(this.kolizjal);
odbicie_prawe = this._parent["pomost" + i].hitTest(this.kolizjar);
if (koliz != true) {
_root.jump = 0;
}
if (spoczynek == true) {
_root.vy = _root.vy * -1;
_root.vy = _root.vy / bounce;
this._y = this._parent["pomost" + i]._y - 15;
} else if (odbicie_gora == true) {
_root.vy = _root.vy * -1;
this._y = this._y + _root.vy;
} else if (odbicie_lewe == true) {
_x = (_x + 5);
acel = acel * -1;
} else if (odbicie_prawe == true) {
_x = (_x - 5);
acel = acel * -1;
}
if ((Key.isDown(38) && (_root.jump == 0)) && (koliz == true)) {
_root.vy = sila_odbicia;
_root.jump = 1;
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (_root.player._y < 10) {
_root._game(55);
}
if (_root.player._y > 410) {
_root.player.gotoAndPlay("gin");
}
if (_root.gwiazdki == 0) {
_root.next_level = 7;
_root.skarb._y = 378;
_root.skarb.gotoAndPlay(2);
_root.strzalka._visible = true;
_root.strzalka.gotoAndPlay(2);
_root.pomost6.gotoAndPlay(2);
}
if (_root.lives < 1) {
_parent.lives_out.gotoAndStop(4);
_root._game(60);
}
if (_parent.elapsed_time == 0) {
_root.player.gotoAndPlay("gin");
}
if (_x < 17) {
_x = (_x + 5);
acel = acel * -1;
} else if (_x > 534) {
_x = (_x - 5);
acel = acel * -1;
}
sprawdz_kolizje_z_podstawami();
sprawdzaj_kolizje_z_gwiazdka();
if (_root.vy > 20) {
_root.vy = 20;
} else if ((Math.abs(_root.vy) > 0.25) && (Math.abs(_root.vy) < 0.87)) {
_root.vy = 0;
} else {
_y = (_y + _root.vy);
_root.vy = _root.vy + 1;
}
this._x = this._x + acel;
this.ball.ballk._rotation = this.ball.ballk._rotation + ((acel * 3) * zwrot);
if (Key.isDown(37)) {
zwrot = -1;
acel = acel - 0.5;
} else if (Key.isDown(39)) {
zwrot = -1;
acel = acel + 0.5;
} else {
acel = acel / 1.05;
if (Math.abs(acel) <= 0.3) {
acel = 0;
this.ball.ballk.stop();
}
}
_parent.lives_out.gotoAndStop(_root.lives);
_parent.time = Math.round(getTimer() / 1000);
_parent.elapsed_time = (_parent.start_time + 90) - _parent.time;
_parent.czas = _parent.elapsed_time;
_parent.score_out.htmlText = ("<font align='right' face='offical'>" + _root.scr) + "</font>";
_parent.time_out.htmlText = ("<font face='offical'>" + _parent.czas) + "</font>";
}
Instance of Symbol 242 MovieClip "fish" in Frame 10
onClipEvent (load) {
ruch = 2;
accelr = 1.2;
}
onClipEvent (enterFrame) {
if (this.kolid.hitTest(this._parent.player.koli) || (this.kolid1.hitTest(this._parent.player.koli))) {
this._parent.player.gotoAndPlay("gin");
}
if (this._x > 250) {
this._x = this._x - 10;
ruch = ruch * -1;
this._xscale = this._xscale * -1;
_parent.randome_accel(valueOf());
accelr = _global.ran / 3;
} else if (this._x < 70) {
_parent.randome_accel(valueOf());
accelr = _global.ran / 3;
this._x = this._x + 10;
ruch = ruch * -1;
this._xscale = this._xscale * -1;
}
this._x = this._x - (ruch + (ruch * accelr));
}
Instance of Symbol 242 MovieClip "fishg" in Frame 10
onClipEvent (load) {
ruch = 2;
accelr = 1.2;
}
onClipEvent (enterFrame) {
if (this.kolid.hitTest(this._parent.player.koli) || (this.kolid1.hitTest(this._parent.player.koli))) {
this._parent.player.gotoAndPlay("gin");
}
if (this._x > 650) {
this._x = this._x - 10;
ruch = ruch * -1;
this._xscale = this._xscale * -1;
_parent.randome_accel(valueOf());
accelr = _global.ran / 2;
} else if (this._x < 460) {
_parent.randome_accel(valueOf());
accelr = _global.ran / 2;
this._x = this._x + 10;
ruch = ruch * -1;
this._xscale = this._xscale * -1;
}
this._x = this._x - (ruch + (ruch * accelr));
}
Instance of Symbol 255 MovieClip in Frame 10
onClipEvent (load) {
speed_wroga = 1;
zwrot = -1;
}
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.player.koli)) {
this._parent.player.gotoAndPlay("gin");
}
if (this._x > 660) {
zwrot = -1;
this._x = this._x - 10;
} else if (this._x < 430) {
zwrot = 1;
this._x = this._x + 10;
}
this._x = this._x + (speed_wroga * zwrot);
}
Frame 59
trace("next" + _root.next_level);
odliczanie = _root.czas;
nextFrame();
Frame 60
trace(odliczanie);
_root.scr = _root.scr + 1;
odliczanie = odliczanie - 1;
txtFormat = new TextFormat();
_root.time_out.html = true;
_root.time_out.embedFonts = true;
_root.score_out.html = true;
_root.score_out.embedFonts = true;
_root.txtFormat.align = "right";
_root.time_out.setTextFormat(txtFormat);
_root.score_out.setTextFormat(txtFormat);
_root.score_out.htmlText = ("<font align='right' face='offical'>" + _root.scr) + "</font>";
_root.time_out.htmlText = ("<font face='offical'>" + _root.czas) + "</font>";
nextFrame();
Frame 61
if (odliczanie <= 0) {
nextFrame();
} else {
prevFrame();
}
Frame 62
stop();
if (_root.next_level == 7) {
game_info.gotoAndStop(2);
_root.next_level = 60;
} else {
game_info.gotoAndStop(1);
}
Instance of Symbol 96 MovieClip in Frame 62
//component parameters
onClipEvent (initialize) {
label = "Next Level";
wide = 112;
c1 = 126;
c2 = 0;
c3 = 0;
hc1 = 193;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = true;
rgb = 8257536 /* 0x7E0000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 12648448 /* 0xC10000 */;
}
on (press) {
_root._game(_root.next_level);
}
Frame 64
_root.hoff._visible = false;
_root.r = 0;
_root.score_out.html = true;
_root.score_out.embedFonts = true;
_root.txtFormat.align = "center";
_root.score_out.setTextFormat(txtFormat);
_root.score_out.htmlText = ("<font align='center' face='offical'>" + _root.scr) + "</font>";
_root.onData = function () {
if (s == 1) {
_root.hoff._visible = true;
}
};
_root.loadVariables("hof.php?s=" + _root.scr);
stop();
Instance of Symbol 96 MovieClip in Frame 64
//component parameters
onClipEvent (initialize) {
label = "Play Again";
wide = 112;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = true;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.scr = 0;
_root.lives = 3;
_root.start_time = 0;
_root.start_time = Math.round(getTimer() / 1000);
_root.time = Math.round(getTimer() / 1000);
_root.elapsed_time = (_root.start_time + 60) - _root.time;
_root.gwiazdki = 14;
_root._game(1);
}
Instance of Symbol 341 MovieClip in Frame 64
//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 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 101 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 106 MovieClip Frame 55
obieg = obieg + 1;
lossca = 30 + random(20);
_x = random(550);
_y = random(400);
_xscale = lossca;
_yscale = lossca;
if (obieg == 3) {
_parent.player.graj_dzwiek(50, "bomble");
obieg = 1;
}
Symbol 107 MovieClip Frame 55
lossca = 30 + random(20);
_x = random(550);
_y = random(400);
_xscale = lossca;
_yscale = lossca;
Symbol 108 MovieClip Frame 55
lossca = 30 + random(20);
_x = random(550);
_y = random(400);
_xscale = lossca;
_yscale = lossca;
Symbol 109 MovieClip Frame 55
lossca = 30 + random(20);
_x = random(550);
_y = random(400);
_xscale = lossca;
_yscale = lossca;
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
_root.gwiazdki = _root.gwiazdki - 1;
Symbol 125 MovieClip Frame 6
this._visible = false;
this._x = -100;
_root.scr = _root.scr + 7;
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
_root.gwiazdki = _root.gwiazdki - 1;
Symbol 129 MovieClip Frame 6
this._visible = false;
this._x = -100;
_root.scr = _root.scr + 8;
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 2
_root.gwiazdki = _root.gwiazdki - 1;
Symbol 132 MovieClip Frame 6
this._visible = false;
this._x = -100;
_root.scr = _root.scr + 5;
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 2
_root.gwiazdki = _root.gwiazdki - 1;
Symbol 135 MovieClip Frame 6
this._visible = false;
this._x = -100;
_root.scr = _root.scr + 6;
stop();
Symbol 178 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
stop();
Instance of Symbol 181 MovieClip "kolizja" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 181 MovieClip "kolizjag" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 181 MovieClip "kolizjal" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 181 MovieClip "kolizjar" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 181 MovieClip "koli" in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 187 MovieClip Frame 2
_root.vy = 0;
_root.lives = _root.lives - 1;
_root.start_time = 0;
_root.start_time = Math.round(getTimer() / 1000);
_root.time = Math.round(getTimer() / 1000);
_root.elapsed_time = (_root.start_time + 60) - _root.time;
acel = 0;
Symbol 187 MovieClip Frame 8
_x = start_x;
_y = start_y;
Symbol 189 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 15
stop();
Symbol 192 MovieClip Frame 17
_root.scr = _root.scr + 100;
Symbol 192 MovieClip Frame 20
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 2
_root.gwiazdki = -1;
Symbol 195 MovieClip Frame 15
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 2
_root.gwiazdki = _root.gwiazdki - 1;
Symbol 235 MovieClip Frame 6
this._visible = false;
this._x = -100;
_root.scr = _root.scr + 15;
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
_root.gwiazdki = _root.gwiazdki - 1;
Symbol 236 MovieClip Frame 6
this._visible = false;
this._x = -100;
_root.scr = _root.scr + 10;
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
_root.gwiazdki = _root.gwiazdki - 1;
Symbol 238 MovieClip Frame 6
this._visible = false;
this._x = -100;
_root.scr = _root.scr + 12;
stop();
Symbol 239 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 2
_root.gwiazdki = _root.gwiazdki - 1;
Symbol 239 MovieClip Frame 6
this._visible = false;
this._x = -100;
_root.scr = _root.scr + 14;
stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 1
stop();
Symbol 282 Button
on (press) {
this.gotoAndStop("weekly");
}
Symbol 283 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 284 Button
on (press) {
this.gotoAndStop("hourly");
}
Symbol 287 Button
on (press) {
this.gotoAndStop("monthly");
}
Symbol 292 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 295 MovieClip Frame 1
this._parent.tp = 2592000 /* 0x278D00 */;
this._parent.tc = 0;
this._parent.reload();
stop();
Symbol 295 MovieClip Frame 2
this._parent.tp = 604800 /* 0x093A80 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 295 MovieClip Frame 3
this._parent.tp = 86400 /* 0x015180 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 295 MovieClip Frame 4
this._parent.tp = 3600;
this._parent.tc = 0;
this._parent.reload();
Symbol 302 Button
on (press) {
this.tc--;
this.reload();
}
Symbol 307 Button
on (press) {
this.tc = ((this.tc < 0) ? (this.tc + 1) : 0);
this.reload();
}
Symbol 310 Button
on (press) {
if (this.submitted == false) {
this.loadVariables((((this.__url + "hof_put.php?id=") + this.gid) + "&s=") + this.sc);
}
}
Symbol 314 Button
on (press) {
this._parent.l = 10;
this._parent.reload();
this.gotoAndStop(2);
}
Symbol 317 Button
on (press) {
this._parent.l = 100;
this._parent.reload();
this.gotoAndStop(1);
}
Symbol 318 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 18
stop();
Symbol 335 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 334 MovieClip "m" in Symbol 335 MovieClip Frame 1
on (press) {
this.startDrag();
}
on (release, releaseOutside) {
this.stopDrag();
this._parent.reset();
}
Symbol 340 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 341 MovieClip Frame 1
this.submitted = false;
Symbol 341 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();