Frame 2
soundOn = true;
soundFX.gotoAndPlay("music");
_root.gra = true;
Frame 3
function game() {
gotoAndStop (5);
}
function _game(f) {
gotoAndStop(f +4);
}
function instr() {
gotoAndStop (4);
}
function starting() {
gotoAndStop (3);
if (!_root.gra) {
soundFX.gotoAndPlay("music");
}
}
function win() {
gotoAndStop (3);
}
function hof(f) {
gotoAndStop(f +2);
}
_root.custom = "";
stop();
Frame 5
function loadLevel(num) {
game.loaded = false;
levelXML = new XML();
levelXML.onLoad = levelLoaded;
levelXML.ignoreWhite = true;
if (_root.custom == "") {
Menu._visible = false;
var name = (("level" + num) + ".xml");
levelXML.load("./maps/" + name);
} else {
Menu._visible = true;
var name = _root.custom;
levelXML.load("./custom/" + name);
}
}
function levelLoaded() {
game.loaded = true;
game.platforms = {};
game.platforms.column = [];
var info = levelXML.firstChild;
game.flag = {};
game.flag.x = Number(info.attributes.flagx);
game.flag.y = Number(info.attributes.flagy);
opis = "Map created by: " + info.attributes.autor;
placeFlag();
var tempBlocks = info.firstChild.childNodes;
var i = 0;
while (i < tempBlocks.length) {
var blockNode = tempBlocks[i].attributes;
var ob = new Object();
for (j in blockNode) {
var nan = isNaN(Number(blockNode[j]));
if (nan) {
ob[j] = blockNode[j];
if (ob[j].toLowerCase() == "true") {
ob[j] = true;
} else if (ob[j].toLowerCase() == "false") {
ob[j] = false;
}
} else {
ob[j] = Number(blockNode[j]);
}
}
trace((((ob.type + " x:") + ob.x) + " y:") + ob.y);
Umiesc_przeszkode(ob.type, ob.x, ob.y - 70);
ob.clip.me = ob;
game.platforms.column.push(ob);
i++;
}
}
function startLevel() {
game.inPlay = true;
game.flagCaptured = false;
waitingScreen._visible = false;
gameClip._visible = true;
}
function loadNext() {
var level = (++game.level);
loadLevel(level);
trace(game.level);
}
function startOver() {
game.level = 0;
loadNext();
}
function playSound(name) {
if (soundOn) {
soundFX.gotoAndPlay(name);
}
}
function listenForKeys() {
if (!_root.kraksa) {
if (Key.isDown(37)) {
if ((Motor.Clip._currentframe != 5) && (Motor.Clip._currentframe != 8)) {
Motor.Clip.gotoAndStop(5);
}
if (Motor.Clip._currentframe == 5) {
Motor.Clip.gotoAndStop(8);
}
if (wyskok) {
predkosc = predkosc * 0.9;
}
}
if (Key.isDown(39)) {
if (wyskok) {
Motor.Clip.gotoAndStop(9);
}
}
if (Key.isDown(40)) {
if (!wyskok) {
Motor.prevFrame();
Motor.Clip.gotoAndStop(10);
}
}
if (Key.isDown(38)) {
if (!wyskok) {
Motor.nextFrame();
Motor.Clip.gotoAndStop(11);
}
}
if (Key.isDown(32)) {
Motor.Clip.play();
if (!ruch) {
playSound("silnik");
Bloki.play();
ruch = true;
gameOn = true;
}
if (mozna) {
playSound("przyspieszenie");
if (Math.abs(predkosc) < predkosc_max) {
predkosc = predkosc + 4.3;
jedzie = true;
temperatura = temperatura + 1.3;
}
if (Math.abs(predkosc) >= predkosc_max) {
predkosc = predkosc;
temperatura = temperatura + 1.3;
}
}
}
}
}
function Umiesc_przeszkode(obiekt, x, y) {
var depth = (++game.depth);
var name = (obiekt + depth);
var clip = Przeszkody.attachMovie(obiekt, name, depth);
clip._x = x;
clip._y = y;
clip.Clip.x_die = -((clip._width + 100) + x);
}
function Czas() {
if (mozna) {
if (gameOn && (ruch)) {
punkty = punkty - ((secs * 5) / 100);
_root.scr = Math.floor(punkty);
secs = 0 + Math.round((getTimer() - startTime) / 1000);
if (secs > 0) {
mins = Math.floor(secs / 60);
secs = secs - (mins * 60);
if (mins < 10) {
mins = "0" + mins;
}
if (secs < 10) {
secs = "0" + secs;
}
timeDisplay = (mins + ":") + secs;
} else {
timeDisplay = "00:00";
}
}
}
}
function Silnik() {
temp.temp._height = int(temperatura * 0.636);
if (temperatura > 35) {
temperatura = temperatura * 0.99;
} else {
temperatura = 35;
}
if (temperatura >= 100) {
temperatura = 100;
awaria = true;
}
}
function inicjuj() {
timeDisplay = "00:00";
Motor.y = 260;
Motor._y = 260;
Motor.gotoAndStop(1);
Komp1.y = 192.3;
Komp1._y = 192.3;
Komp1._x = 161.9;
Komp1.gotoAndStop(1);
Komp2.y = 220;
Komp2._y = 220;
Komp2._x = 137;
Komp2.gotoAndStop(1);
Komp3.y = 240;
Komp3._y = 240;
Komp3._x = 115;
Komp3.gotoAndStop(1);
limit = 12;
speed = 0;
temperatura = 40;
Pasek.bar._width = int((temperatura / Pasek._width) * 10);
jedzie = false;
soundOn = _root.gra;
predkosc = 0;
predkosc_max = 35;
aktywny = true;
w_powietrzu = false;
awaria = false;
ppp = (Tlo._width - 500) / 1700;
gameOn = true;
wyskok = false;
plansza = false;
ruch = false;
_root.kraksa = false;
_root.kraksa1 = false;
_root.kraksa2 = false;
_root.kraksa3 = false;
mozna = false;
if (!soundOn) {
mute.gotoAndStop(2);
}
}
fscommand ("allowscale", false);
stop();
_root.scr = 0;
upadek._visible = false;
upadek1._visible = false;
upadek2._visible = false;
upadek3._visible = false;
Komp2._visible = false;
Komp3._visible = false;
if (_root.gracze == 2) {
Komp3._visible = true;
}
if (_root.gracze == 3) {
Komp2._visible = true;
Komp3._visible = true;
}
k1.gotoAndStop(1);
k2.gotoAndStop(2);
k3.gotoAndStop(3);
k4.gotoAndStop(4);
game = {};
game.level = 1;
game.numLevels = 10;
game.depth = 10000;
someListener = new Object();
someListener.onKeyUp = function () {
if (!_root.kraksa) {
if (Key.getCode() == 40) {
Motor.Clip.gotoAndStop(1);
}
if (Key.getCode() == 38) {
Motor.Clip.gotoAndStop(1);
}
}
};
loadLevel(1);
y_motor = Motor._y;
punkty = 10000;
Key.addListener(someListener);
inicjuj();
this.onEnterFrame = function () {
Wskazowka._rotation = 21 + ((predkosc / 50) * 250);
if ((awaria && (!plansza)) && (!wyskok)) {
aktywny = false;
Czas();
depth = ++game.depth;
this.attachMovie("awaria", "awaria" + depth, depth);
this["awaria" + depth]._x = 42;
predkosc = 0;
plansza = true;
}
if (aktywny) {
if (!_root.kraksa) {
listenForKeys();
}
Silnik();
Czas();
if (predkosc < 3) {
predkosc = 0;
jedzie = false;
}
if (!wyskok) {
predkosc = predkosc * 0.92;
speed = predkosc;
if (Tlo._x <= -1900) {
Tlo._x = 0;
} else {
Tlo._x = Tlo._x - (predkosc * ppp);
}
if (Trawka._x <= -1530) {
Trawka._x = 0;
} else {
Trawka._x = Trawka._x - ((1.25 * predkosc) * ppp);
}
if (Krzaki._x <= -475) {
Krzaki._x = -20;
} else {
Krzaki._x = Krzaki._x - ((0.2 * predkosc) * ppp);
}
if (Chmury._x <= -1108) {
Chmury._x = 0;
} else {
Chmury._x = Chmury._x - ((0.05 * predkosc) * ppp);
}
if (p1._x <= -100) {
p1._x = 650 + random(5000);
} else {
p1._x = p1._x - ((0.2 * predkosc) * ppp);
}
if (p2._x <= -100) {
p2._x = 100 + random(5000);
} else {
p2._x = p2._x - ((0.2 * predkosc) * ppp);
}
if (k1._x < -50) {
k1._x = 880;
if (k1._currentframe == 4) {
k1.gotoAndStop(1);
} else {
k1.nextFrame();
}
} else {
k1._x = k1._x - ((0.5 * predkosc) * ppp);
}
if (k2._x < -50) {
k2._x = k1._x + 160;
if (k2._currentframe == 4) {
k2.gotoAndStop(1);
} else {
k2.nextFrame();
}
} else {
k2._x = k2._x - ((0.5 * predkosc) * ppp);
}
if (k3._x < -50) {
k3._x = k2._x + 250;
if (k3._currentframe == 4) {
k3.gotoAndStop(1);
} else {
k3.nextFrame();
}
} else {
k3._x = k3._x - ((0.5 * predkosc) * ppp);
}
if (k4._x < -50) {
k4._x = k3._x + 200;
if (k4._currentframe == 4) {
k4.gotoAndStop(1);
} else {
k4.nextFrame();
}
} else {
k4._x = k4._x - ((0.5 * predkosc) * ppp);
}
Przeszkody._x = Przeszkody._x - (predkosc * ppp);
}
if (wyskok) {
predkosc = predkosc * 0.98;
if (Tlo._x <= -1900) {
Tlo._x = 0;
} else {
Tlo._x = Tlo._x - (((Motor.mnoznik * 0.6) * predkosc) * ppp);
}
if (Trawka._x <= -1530) {
Trawka._x = 0;
} else {
Trawka._x = Trawka._x - ((1.25 * predkosc) * ppp);
}
if (Krzaki._x <= -475) {
Krzaki._x = -20;
} else {
Krzaki._x = Krzaki._x - ((0.2 * predkosc) * ppp);
}
if (Chmury._x <= -1108) {
Chmury._x = 0;
} else {
Chmury._x = Chmury._x - ((0.05 * predkosc) * ppp);
}
if (p1._x <= -100) {
p1._x = 650 + random(5000);
} else {
p1._x = p1._x - ((0.2 * predkosc) * ppp);
}
if (p2._x <= -100) {
p2._x = 100 + random(5000);
} else {
p2._x = p2._x - ((0.2 * predkosc) * ppp);
}
if (k1._x < -50) {
k1._x = 880;
if (k1._currentframe == 4) {
k1.gotoAndStop(1);
} else {
k1.nextFrame();
}
} else {
k1._x = k1._x - ((0.5 * predkosc) * ppp);
}
if (k2._x < -50) {
k2._x = k1._x + 160;
if (k2._currentframe == 4) {
k2.gotoAndStop(1);
} else {
k2.nextFrame();
}
} else {
k2._x = k2._x - ((0.5 * predkosc) * ppp);
}
if (k3._x < -50) {
k3._x = k2._x + 250;
if (k3._currentframe == 4) {
k3.gotoAndStop(1);
} else {
k3.nextFrame();
}
} else {
k3._x = k3._x - ((0.5 * predkosc) * ppp);
}
if (k4._x < -50) {
k4._x = k3._x + 200;
if (k4._currentframe == 4) {
k4.gotoAndStop(1);
} else {
k4.nextFrame();
}
} else {
k4._x = k4._x - ((0.5 * predkosc) * ppp);
}
Przeszkody._x = Przeszkody._x - (((Motor.mnoznik * 0.6) * predkosc) * ppp);
}
if (!gameOn) {
if (game.level == game.numLevels) {
if (_level0.game.level == game.numLevels) {
_root.info = "OK";
koniec.gotoAndStop(2);
} else {
_root.info = "Next Level";
koniec.gotoAndStop(1);
}
koniec._x = 42;
_root.scr = punkty;
} else {
_root.info = "Next Level";
koniec.gotoAndStop(1);
koniec._x = 42;
aktywny = false;
}
}
}
};
Instance of Symbol 302 MovieClip "k1" in Frame 5
onClipEvent (load) {
}
Instance of Symbol 302 MovieClip "k2" in Frame 5
onClipEvent (load) {
}
Instance of Symbol 302 MovieClip "k3" in Frame 5
onClipEvent (load) {
}
Instance of Symbol 302 MovieClip "k4" in Frame 5
onClipEvent (load) {
}
Instance of Symbol 340 MovieClip "Komp1" in Frame 5
onClipEvent (load) {
function V_y2(t1) {
return(((predkosc2 / dzielnik) * Math.sin(radian)) - (g * t1));
}
_level0.wyskok2 = false;
y = _level0.Komp1._y;
ymov = 0;
g = 10;
odbicia = 0;
kat = 30;
licznik = 0;
czas1 = 10;
czas = czas1;
v = 30;
mnoznik = 1;
dzielnik = 1.8;
komp = false;
if (_name == "Komp1") {
komp = true;
}
trace(_name);
predkosc2 = 0;
}
onClipEvent (enterFrame) {
if (Komp1._y >= y) {
Komp1.Clip.gotoAndStop(1);
}
if (_level0.typ == 1) {
v = 30;
radian = 1.0471975511966;
mnoznik = 1;
dzielnik = 1.85;
}
if (_level0.typ == 2) {
v = 25;
radian = 0.959931088596881;
mnoznik = 1;
dzielnik = 1.8;
}
if (_level0.typ == 3) {
v = 20;
radian = 0.610865238198015;
mnoznik = 1;
dzielnik = 1.3;
}
if (_level0.typ == 4) {
v = 35;
radian = 0.523598775598299;
mnoznik = 1.8;
dzielnik = 0.94;
}
if (komp && (_level0.ruch)) {
if (!_root.kraksa1) {
_level0.Komp1._x = _level0.Komp1._x + (predkosc2 - (_level0.predkosc / 1.25));
if (Math.abs(predkosc2) < 17) {
predkosc2 = predkosc2 + (0.6 + random(1.5));
}
if (Math.abs(predkosc2) >= 17) {
predkosc2 = predkosc2;
if (random(100) <= 3) {
predkosc2 = predkosc2 * 0.35;
}
}
}
if (_root.kraksa1) {
predkosc2 = 0;
_level0.Komp1._x = _level0.Komp1._x + (predkosc2 - (_level0.predkosc / 1.5));
}
if (_level0.wyskok2 && (_name == "Komp1")) {
Komp1.Clip.gotoAndStop(5);
if (licznik < czas) {
y2 = ((2.5 * V_y2(licznik)) * licznik) - (((g * licznik) * licznik) / 2);
tempy = _level0.Komp1._y - y2;
licznik = licznik + 0.1;
if (tempy > y) {
czas = czas1;
_level0.Komp1._y = y;
_level0.wyskok2 = false;
licznik = 0;
y2 = 0;
} else {
_level0.Komp1._y = tempy;
}
}
}
}
}
Instance of Symbol 363 MovieClip "Menu" in Frame 5
//component parameters
onClipEvent (initialize) {
label = "Menu";
wide = 64;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 200;
hc2 = 125;
hc3 = 32;
baseMode = false;
widthMode = false;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 13139232 /* 0xC87D20 */;
}
on (press) {
_root.starting();
_root.custom = "";
}
Instance of Symbol 340 MovieClip "Komp2" in Frame 5
onClipEvent (load) {
function V_y2(t1) {
return(((predkosc2 / dzielnik) * Math.sin(radian)) - (g * t1));
}
_level0.wyskok2 = false;
_level0.Komp2._y;
ymov = 0;
g = 10;
odbicia = 0;
kat = 30;
licznik = 0;
czas1 = 10;
czas = czas1;
v = 30;
mnoznik = 1;
dzielnik = 1.8;
komp = false;
if (_name == "Komp2") {
komp = true;
}
predkosc2 = 0;
}
onClipEvent (enterFrame) {
if (this._y >= y) {
this.Clip.gotoAndStop(1);
}
if (_level0.typ == 1) {
v = 30;
radian = 1.0471975511966;
mnoznik = 1;
dzielnik = 1.85;
}
if (_level0.typ == 2) {
v = 25;
radian = 0.959931088596881;
mnoznik = 1;
dzielnik = 1.8;
}
if (_level0.typ == 3) {
v = 20;
radian = 0.610865238198015;
mnoznik = 1;
dzielnik = 1.3;
}
if (_level0.typ == 4) {
v = 35;
radian = 0.523598775598299;
mnoznik = 1.8;
dzielnik = 0.94;
}
if (komp && (_level0.ruch)) {
if (!_root.kraksa2) {
if (Math.abs(predkosc2) < 17) {
predkosc2 = predkosc2 + (0.4 + random(1));
}
if (Math.abs(predkosc2) >= 17) {
predkosc2 = predkosc2;
if (random(100) <= 50) {
predkosc2 = predkosc2 * 0.65;
}
}
_level0.Komp2._x = _level0.Komp2._x + (predkosc2 - (_level0.predkosc / 1.5));
} else {
_level0.upadek2._x = _level0.upadek2._x - 3;
}
if (_level0.wyskok2 && (_name == "Komp2")) {
this.Clip.gotoAndStop(5);
if (licznik < czas) {
y2 = ((2.5 * V_y2(licznik)) * licznik) - (((g * licznik) * licznik) / 2);
tempy = _level0.Komp2._y - y2;
licznik = licznik + 0.1;
if (tempy > y) {
czas = czas1;
_level0.Komp2._y = y;
_level0.wyskok2 = false;
licznik = 0;
y2 = 0;
} else {
_level0.Komp2._y = tempy;
}
}
}
}
}
Instance of Symbol 340 MovieClip "Komp3" in Frame 5
onClipEvent (load) {
function V_y2(t1) {
return(((predkosc2 / dzielnik) * Math.sin(radian)) - (g * t1));
}
_level0.wyskok2 = false;
y = _level0.Komp3._y;
ymov = 0;
g = 10;
odbicia = 0;
kat = 30;
licznik = 0;
czas1 = 10;
czas = czas1;
v = 30;
mnoznik = 1;
dzielnik = 1.8;
komp = false;
if (_name == "Komp3") {
komp = true;
}
predkosc2 = 0;
}
onClipEvent (enterFrame) {
if (this._y >= y) {
this.Clip.gotoAndStop(1);
}
if (_level0.typ == 1) {
v = 30;
radian = 1.0471975511966;
mnoznik = 1;
dzielnik = 1.85;
}
if (_level0.typ == 2) {
v = 25;
radian = 0.959931088596881;
mnoznik = 1;
dzielnik = 1.8;
}
if (_level0.typ == 3) {
v = 20;
radian = 0.610865238198015;
mnoznik = 1;
dzielnik = 1.3;
}
if (_level0.typ == 4) {
v = 35;
radian = 0.523598775598299;
mnoznik = 1.8;
dzielnik = 0.94;
}
if (komp && (_level0.ruch)) {
if (!_root.kraksa3) {
if (Math.abs(predkosc2) < 17) {
predkosc2 = predkosc2 + (0.6 + random(1));
}
if (Math.abs(predkosc2) >= 17) {
predkosc2 = predkosc2;
if (random(100) <= 50) {
predkosc2 = predkosc2 * 0.65;
}
}
_level0.Komp3._x = _level0.Komp3._x + (predkosc2 - (_level0.predkosc / 1.5));
} else {
predkosc2 = predkosc2 * 0;
}
if (_level0.wyskok2 && (_name == "Komp3")) {
this.Clip.gotoAndStop(5);
if (licznik < czas) {
y2 = ((2.5 * V_y2(licznik)) * licznik) - (((g * licznik) * licznik) / 2);
tempy = _level0.Komp3._y - y2;
licznik = licznik + 0.1;
if (tempy > y) {
czas = czas1;
_level0.Komp3._y = y;
_level0.wyskok2 = false;
licznik = 0;
y2 = 0;
} else {
_level0.Komp3._y = tempy;
}
}
}
}
}
Instance of Symbol 340 MovieClip "Motor" in Frame 5
onClipEvent (load) {
function V_y(t1) {
return(((_level0.speed / dzielnik) * Math.sin(radian)) - (g * t1));
}
_level0.Motor.Clip.gotoAndStop(1);
y = _level0.Motor._y;
ymov = 0;
g = 10;
odbicia = 0;
kat = 30;
radian = (kat / 180) * Math.PI;
licznik = 0;
czas1 = 10;
czas = czas1;
v = 30;
mnoznik = 1;
dzielnik = 1.8;
}
onClipEvent (enterFrame) {
tor = this._currentframe;
if ((tor == 2) && (!_level0.wyskok)) {
if (((_level0.Motor._x > _level0.Komp3._x) && (!_root.kraksa)) && (_level0.Motor.Clip.hitTest(_level0.Komp3))) {
trace("kolizja z komp3");
_level0.Komp3._visible = false;
_level0.upadek3._visible = true;
_level0.upadek3._y = _level0.Komp3._y;
_level0.upadek3.gotoAndPlay(2);
_root.kolizja3 = true;
}
if ((_level0.Motor._x < _level0.Komp3._x) && (_level0.Motor.Clip.hitTest(_level0.Komp3))) {
_root.kraksa = true;
_level0.Motor._visible = false;
_level0.upadek._visible = true;
_level0.upadek._y = _level0.Motor._y - ((tor - 1) * 23);
_level0.upadek.gotoAndPlay(2);
}
}
if ((tor == 3) && (!_level0.wyskok)) {
if (((_level0.Motor._x > _level0.Komp2._x) && (!_root.kraksa)) && (_level0.Motor.Clip.hitTest(_level0.Komp2))) {
trace("kolizja z komp2");
_level0.Komp2._visible = false;
_level0.upadek2._visible = true;
_level0.upadek2._y = _level0.Komp2._y;
_level0.upadek2.gotoAndPlay(2);
_root.kolizja2 = true;
}
if ((_level0.Motor._x < _level0.Komp2._x) && (_level0.Motor.Clip.hitTest(_level0.Komp2))) {
_root.kraksa = true;
_level0.Motor._visible = false;
_level0.upadek._visible = true;
_level0.upadek._y = _level0.Motor._y - ((tor - 1) * 23);
_level0.upadek.gotoAndPlay(2);
}
}
if ((tor == 4) && (!_level0.wyskok)) {
if ((_level0.Motor._x < _level0.Komp1._x) && (_level0.Motor.Clip.hitTest(_level0.Komp1))) {
_root.kraksa = true;
_level0.Motor._visible = false;
_level0.upadek._visible = true;
_level0.upadek._y = _level0.Motor._y - ((tor - 1) * 23);
_level0.upadek.gotoAndPlay(2);
}
if (((_level0.Motor._x > _level0.Komp1._x) && (!_root.kraksa)) && (_level0.Motor.Clip.hitTest(_level0.Komp1))) {
trace("kolizja z komp1");
_level0.Komp1._visible = false;
_level0.upadek1._visible = true;
_level0.upadek1._y = _level0.Komp1._y;
_level0.upadek1.gotoAndPlay(2);
_root.kolizja1 = true;
}
}
if ((this._y >= y) && (!_root.kraksa)) {
this.Clip.gotoAndStop(1);
}
if (_level0.typ == 1) {
v = 30;
radian = 1.0471975511966;
mnoznik = 1;
dzielnik = 1.85;
}
if (_level0.typ == 2) {
v = 25;
radian = 0.959931088596881;
mnoznik = 1;
dzielnik = 1.8;
}
if (_level0.typ == 3) {
v = 20;
radian = 0.610865238198015;
mnoznik = 1;
dzielnik = 1.3;
}
if (_level0.typ == 4) {
v = 35;
radian = 0.523598775598299;
mnoznik = 1.8;
dzielnik = 0.94;
}
if (_level0.wyskok) {
this.Clip.gotoAndStop(5);
if (licznik < czas) {
y2 = ((2.5 * V_y(licznik)) * licznik) - (((g * licznik) * licznik) / 2);
tempy = this._y - y2;
if (tempy > y) {
if (Key.isDown(39) && (!_root.kraksa)) {
_root.kraksa = true;
_level0.Motor._visible = false;
_level0.upadek._visible = true;
_level0.upadek._y = _level0.Motor._y;
_level0.upadek.gotoAndPlay(2);
}
_level0.wyskok = false;
czas = czas1;
this._y = y;
_level0.wyskok = false;
licznik = 0;
y2 = 0;
} else {
this._y = tempy;
}
}
licznik = licznik + 0.1;
}
}
Instance of Symbol 381 MovieClip "upadek1" in Frame 5
onClipEvent (enterFrame) {
_x = _level0.Komp1._x;
}
Instance of Symbol 381 MovieClip "upadek2" in Frame 5
onClipEvent (enterFrame) {
_x = _level0.Komp2._x;
}
Instance of Symbol 381 MovieClip "upadek3" in Frame 5
onClipEvent (enterFrame) {
_x = _level0.Komp3._x;
}
Frame 6
function generateXML() {
game.grounds = [];
var doc = ((((((("<level autor=\"" + autor) + "\" ") + "flagx=\"") + game.flag.x) + "\" flagy=\"") + game.flag.y) + "\" >");
doc = doc + "<wyskocznie>";
var j = 0;
while (j < game.wyskocznie.length) {
var ob = game.wyskocznie[j];
var temp = "<wyskocznia ";
for (i in ob) {
if ((((i != "name") && (i != "node")) && (ob[i] != "")) && (ob[i] != null)) {
var name = i;
var value = ob[i];
temp = temp + (((name + "=\"") + value) + "\" ");
}
}
temp = temp + " />";
doc = doc + temp;
j++;
}
doc = doc + "</wyskocznie>";
doc = doc + "<przeszkody>";
var j = 0;
while (j < game.przeszkody.length) {
var ob = game.przeszkody[j];
var temp = "<przeszkoda ";
for (i in ob) {
if (((((i != "name") && (i != "clip")) && (i != "node")) && (ob[i] != "")) && (ob[i] != null)) {
var name = i;
var value = ob[i];
temp = temp + (((name + "=\"") + value) + "\" ");
}
}
temp = temp + " />";
doc = doc + temp;
j++;
}
doc = doc + "</przeszkody>";
doc = doc + "<bonusy>";
var j = 0;
while (j < game.bonusy.length) {
var ob = game.bonusy[j];
var temp = "<bonus ";
for (i in ob) {
if (((((i != "name") && (i != "clip")) && (i != "node")) && (ob[i] != "")) && (ob[i] != null)) {
var name = i;
var value = ob[i];
temp = temp + (((name + "=\"") + value) + "\" type=\"ice cube\"");
}
}
temp = temp + " />";
doc = doc + temp;
j++;
}
doc = doc + "</bonusy>";
doc = doc + "</level>";
wyslij = new LoadVars();
odpowiedz = new LoadVars();
wyslij.a = autor;
wyslij.dane = doc;
wyslij.sendAndLoad("save.php", odpowiedz, "POST");
odpowiedz.onLoad = function () {
if (this.odpowiedz == "ok") {
getURL ("javascript:alert('Level saved!');");
trace("Level saved!");
_root.starting();
} else {
getURL ("javascript:alert('Error. File already exist. Change level name and try again.');");
trace("Error!");
}
};
gotoAndStop (6);
}
function remove(who) {
var clip = who.clip;
trace(who.clip);
var type = who.node;
if (type == "wyskocznia") {
var arr = game.wyskocznie;
} else if (type == "przeszkoda") {
var arr = game.przeszkody;
} else if (type == "gap") {
var arr = game.gaps;
} else if (type == "bonus") {
var arr = game.bonusy;
}
var i = 0;
while (i < arr.length) {
if (who.clip == arr[i].clip) {
var index = i;
arr.splice(index, 1);
break;
}
i++;
}
clip.removeMovieClip();
}
function dir(which) {
xs = 0;
ys = 0;
if (which == "left") {
xs = speed;
} else if (which == "right") {
xs = -speed;
}
if (which == "up") {
ys = speed;
} else if (which == "down") {
ys = -speed;
}
map._x = map._x + xs;
map._y = map._y + ys;
}
function displayInfo(who) {
if (who.node == "wyskocznia") {
display.gotoAndStop(2);
} else if (who.node == "przeszkoda") {
display.gotoAndStop(3);
}
display.who = who;
}
function addOb(which, nazwa, y) {
var depth = (++map.depth);
if (bg.hitTest(_xmouse, _ymouse, true)) {
if (which == "wyskocznia") {
var name = (nazwa + depth);
var clip = map.attachMovie(nazwa, name, depth);
var x = (_root[nazwa]._x - map._x);
clip._x = x;
clip._y = y;
clip.added = true;
var type = nazwa.slice(1);
var ob = {node:"wyskocznia", x:x, y:y, type:type, clip:clip};
game.wyskocznie.push(ob);
clip.me = ob;
} else if (which == "przeszkoda") {
var name = (nazwa + depth);
var clip = map.attachMovie(nazwa, name, depth);
var x = map._xmouse;
var y = y;
clip._x = x;
clip._y = y;
clip.added = true;
var start_direction = "left";
var speed = 1;
var breadth = 100;
var ob = {node:"przeszkoda", x:x, y:y, clip:clip};
game.przeszkody.push(ob);
clip.me = ob;
} else if (which == "bonus") {
var name = (nazwa + depth);
var clip = map.attachMovie(nazwa, name, depth);
clip.gotoAndStop("display");
clip._xscale = (clip._yscale = 50);
var x = map._xmouse;
var y = map._ymouse;
clip._x = x;
clip._y = y;
clip.added = true;
var ob = {node:"bonus", x:x, y:y, clip:clip};
game.bonusy.push(ob);
clip.me = ob;
} else if (which == "trawa") {
var name = ("trawa" + depth);
var clip = map.attachMovie("trawa", name, depth);
var x = map._xmouse;
clip._x = x;
clip._y = y;
clip.added = true;
var ob = {node:"trawa", x:x, y:y, clip:clip};
game.gaps.push(ob);
clip.me = ob;
}
}
}
stop();
snap = 5;
speed = 20;
ok = false;
map.ground._width = 35000;
map.depth = 1000;
map.homex = map._x;
map.homey = map._y;
game = {};
game.wyskocznie = [];
game.przeszkody = [];
game.bonusy = [];
game.flag = {clip:map.flag, x:map.flag._x, y:map.flag._y};
game.gaps = [];
_root.onEnterFrame = function () {
if (Key.isDown(37)) {
dir("left");
} else if (Key.isDown(39)) {
dir("right");
}
if (Key.isDown(38)) {
dir("up");
} else if (Key.isDown(40)) {
dir("down");
}
};
Instance of Symbol 151 MovieClip [EBloto] "Bloto" in Frame 6
onClipEvent (load) {
this.x = _x;
this.y = _y;
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) {
this.follow = true;
}
}
onClipEvent (mouseMove) {
updateAfterEvent();
if (this.follow) {
this._x = _parent._xmouse;
this._y = _parent._ymouse;
}
}
onClipEvent (mouseUp) {
if (this.follow) {
this.follow = false;
_parent.addOb("wyskocznia", "EBloto", 267);
this._x = this.x;
this._y = this.y;
}
}
Instance of Symbol 149 MovieClip [EStrzalka] "Strzalka" in Frame 6
onClipEvent (load) {
this.x = _x;
this.y = _y;
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) {
this.follow = true;
}
}
onClipEvent (mouseMove) {
updateAfterEvent();
if (this.follow) {
this._x = _parent._xmouse;
this._y = _parent._ymouse;
}
}
onClipEvent (mouseUp) {
if (this.follow) {
this.follow = false;
_parent.addOb("wyskocznia", "EStrzalka", 269);
this._x = this.x;
this._y = this.y;
}
}
Instance of Symbol 148 MovieClip [EWyskocznia] "Wyskocznia" in Frame 6
onClipEvent (load) {
this.x = _x;
this.y = _y;
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) {
this.follow = true;
}
}
onClipEvent (mouseMove) {
updateAfterEvent();
if (this.follow) {
this._x = _parent._xmouse;
this._y = _parent._ymouse;
}
}
onClipEvent (mouseUp) {
if (this.follow) {
this.follow = false;
_parent.addOb("wyskocznia", "EWyskocznia", 235);
this._x = this.x;
this._y = this.y;
}
}
Instance of Symbol 146 MovieClip [EGora_duza] "Gora_duza" in Frame 6
onClipEvent (load) {
this.x = _x;
this.y = _y;
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) {
this.follow = true;
}
}
onClipEvent (mouseMove) {
updateAfterEvent();
if (this.follow) {
this._x = _parent._xmouse;
this._y = _parent._ymouse;
}
}
onClipEvent (mouseUp) {
if (this.follow) {
this.follow = false;
_parent.addOb("wyskocznia", "EGora_duza", 234);
this._x = this.x;
this._y = this.y;
}
}
Instance of Symbol 91 MovieClip [EGora_mala] "Gora_mala" in Frame 6
onClipEvent (load) {
this.x = _x;
this.y = _y;
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) {
this.follow = true;
}
}
onClipEvent (mouseMove) {
updateAfterEvent();
if (this.follow) {
this._x = _parent._xmouse;
this._y = _parent._ymouse;
}
}
onClipEvent (mouseUp) {
if (this.follow) {
this.follow = false;
_parent.addOb("wyskocznia", "EGora_mala", 249);
this._x = this.x;
this._y = this.y;
}
}
Instance of Symbol 143 MovieClip [EGora_bduza1] "Gora_bduza1" in Frame 6
onClipEvent (load) {
this.x = _x;
this.y = _y;
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) {
this.follow = true;
}
}
onClipEvent (mouseMove) {
updateAfterEvent();
if (this.follow) {
this._x = _parent._xmouse;
this._y = _parent._ymouse;
}
}
onClipEvent (mouseUp) {
if (this.follow) {
this.follow = false;
_parent.addOb("wyskocznia", "EGora_bduza1", 217);
this._x = this.x;
this._y = this.y;
}
}
Instance of Symbol 423 MovieClip [ETrawa] "Trawa" in Frame 6
onClipEvent (load) {
this.x = _x;
this.y = _y;
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) {
this.follow = true;
}
}
onClipEvent (mouseMove) {
updateAfterEvent();
if (this.follow) {
this._x = _parent._xmouse;
this._y = _parent._ymouse;
}
}
onClipEvent (mouseUp) {
if (this.follow) {
this.follow = false;
_parent.addOb("wyskocznia", "ETrawa", 266);
this._x = this.x;
this._y = this.y;
}
}
Instance of Symbol 140 MovieClip [EGora_bduza2] "Gora_bduza2" in Frame 6
onClipEvent (load) {
this.x = _x;
this.y = _y;
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) {
this.follow = true;
}
}
onClipEvent (mouseMove) {
updateAfterEvent();
if (this.follow) {
this._x = _parent._xmouse;
this._y = _parent._ymouse;
}
}
onClipEvent (mouseUp) {
if (this.follow) {
this.follow = false;
_parent.addOb("wyskocznia", "EGora_bduza2", 217);
this._x = this.x;
this._y = this.y;
}
}
Instance of Symbol 138 MovieClip [EMeta] "Meta" in Frame 6
onClipEvent (load) {
this.x = _x;
this.y = _y;
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent._xmouse, _parent._ymouse, true)) {
this.follow = true;
}
}
onClipEvent (mouseMove) {
updateAfterEvent();
if (this.follow) {
this._x = _parent._xmouse;
this._y = _parent._ymouse;
}
}
onClipEvent (mouseUp) {
if (this.follow) {
this.follow = false;
_parent.addOb("wyskocznia", "EMeta", 217);
ok = true;
this._x = this.x;
this._y = this.y;
}
}
Frame 7
_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 522 MovieClip in Frame 7
//component parameters
onClipEvent (initialize) {
scr = "_root.scr";
}
Symbol 1 MovieClip [FUIComponentSymbol] Frame 1
#initclip 3
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 14 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 24 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 33 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 34 MovieClip [UpArrow] Frame 1
stop();
Symbol 34 MovieClip [UpArrow] Frame 2
stop();
Symbol 34 MovieClip [UpArrow] Frame 3
stop();
Symbol 41 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 48 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 53 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 54 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 62 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 70 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 78 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 79 MovieClip [DownArrow] Frame 1
stop();
Symbol 79 MovieClip [DownArrow] Frame 2
stop();
Symbol 79 MovieClip [DownArrow] Frame 3
stop();
Symbol 82 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 82 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 82 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 85 MovieClip [FLabelSymbol] Frame 1
#initclip 1
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 90 Button
on (release) {
if (added) {
_root.remove(me);
}
}
Symbol 91 MovieClip [EGora_mala] Frame 1
step = 10;
if (added) {
mouseMoveFXN = function () {
var x = (_parent._xmouse + xshift);
me.x = x;
this._x = x;
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
xshift = _x - _parent._xmouse;
this.onMouseMove = this.mouseMoveFXN;
}
};
this.onMouseUp = function () {
this.onMouseMove = null;
};
}
Instance of Symbol 91 MovieClip [EGora_mala] "Clip" in Symbol 92 MovieClip [EGora_mala2] Frame 1
onClipEvent (load) {
podjazd = 0.26 * this._height;
}
onClipEvent (enterFrame) {
delta = _parent._x;
x_przeszkody = _parent._parent._x + delta;
x_motor = _level0.Motor._x;
_level0.ppp3 = _level0.Motor._y;
if (_parent._parent._x < x_die) {
removeMovieClip(_parent);
x_przeszkody = -300;
}
if ((x_przeszkody <= ((x_motor + (_level0.Motor._width / 2)) - 7)) && ((x_przeszkody + _parent._width) > ((x_motor - (_level0.Motor._width / 2)) - 7))) {
_level0.kolizja = "kolizja z poczatkiem " + this;
_level0.ppp4 = this;
_level0.predkosc = _level0.predkosc * 0.85;
if ((((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody) > 15) {
_level0.ppp4 = ((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody;
_level0.kolizja = "podjazd pod " + _parent;
_level0.Motor.Clip.gotoAndStop(5);
if ((_level0.predkosc > 4) && (_level0.Motor._y > (331 - podjazd))) {
_level0.Motor._y = _level0.Motor._y - 3;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
if ((x_motor - x_przeszkody) > 20) {
_level0.kolizja = "stoi na " + _parent;
_level0.Motor.Clip.gotoAndStop(1);
}
if ((x_motor - x_przeszkody) > 35) {
_level0.kolizja = "zjazd z " + _parent;
_level0.Motor.Clip.gotoAndStop(9);
if (((_level0.predkosc > 3) || (_level0.jedzie)) && (_level0.Motor._y < 330)) {
_level0.Motor._y = _level0.Motor._y + 5;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
if (((x_motor - 7) - x_przeszkody) > 45) {
_level0.kolizja = "zjazd z " + _parent;
_level0.Motor.Clip.gotoAndStop(1);
_level.Motor._y = 330;
}
}
}
Symbol 95 MovieClip Frame 1
step = 10;
if (added) {
mouseMoveFXN = function () {
var x = (_parent._xmouse + xshift);
me.x = x;
this._x = x;
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.onMouseMove = this.mouseMoveFXN;
}
};
this.onMouseUp = function () {
this.onMouseMove = null;
};
}
Instance of Symbol 95 MovieClip "Clip" in Symbol 96 MovieClip [Gora_bduza1] Frame 1
onClipEvent (load) {
podjazd = 0.28 * this._height;
y_motor = _level0.Motor._y;
}
onClipEvent (enterFrame) {
delta = _parent._x;
x_przeszkody = _parent._parent._x + delta;
x_motor = _level0.Motor._x;
_level0.ppp3 = _level0.Motor._y;
if (_parent._parent._x < x_die) {
removeMovieClip(_parent);
x_przeszkody = -300;
}
if (!_level0.wyskok) {
if ((x_przeszkody <= ((x_motor + (_level0.Motor._width / 2)) - 7)) && ((x_przeszkody + _parent._width) > ((x_motor - (_level0.Motor._width / 2)) - 7))) {
if (this.hitTest(_level0.Motor) && (_level0.predkosc > _level0.limit)) {
_level0.typ = 1;
_level0.wyskok = true;
}
_level0.kolizja = "kolizja z poczatkiem " + this;
_level0.ppp4 = this;
if (!_level0.wyskok) {
_level0.predkosc = _level0.predkosc * 0.85;
}
if ((((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody) > 15) {
_level0.ppp4 = ((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody;
_level0.kolizja = "podjazd pod " + _parent;
_level0.Motor.Clip.gotoAndStop(5);
if ((_level0.predkosc > 4) && (_level0.Motor._y > (y_motor - (podjazd * 1.2)))) {
_level0.Motor._y = _level0.Motor._y - 4.5;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
if ((x_motor - x_przeszkody) > 65) {
trace((this + " _level0.Motor._y= ") + _level0.Motor._y);
_level0.kolizja = "stoi na " + _parent;
_level0.Motor.Clip.gotoAndStop(1);
}
if ((x_motor - x_przeszkody) > 80) {
_level0.kolizja = "zjazd z " + _parent;
_level0.Motor.Clip.gotoAndStop(9);
if (!_level0.wyskok) {
if (((_level0.predkosc > 3) || (_level0.jedzie)) && (_level0.Motor._y < y_motor)) {
_level0.Motor._y = _level0.Motor._y + 6;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
}
if (((x_motor - 7) - x_przeszkody) > 95) {
_level0.kolizja = "zjazd z " + _parent;
_level0.Motor.Clip.gotoAndStop(1);
if (!_level0.wyskok) {
_level.Motor._y = y_motor;
}
}
}
}
}
Instance of Symbol 101 MovieClip in Symbol 102 MovieClip [awaria] Frame 1
onClipEvent (load) {
oldtt = getTimer();
_level0.aktywny = false;
}
onClipEvent (enterFrame) {
tt = getTimer();
if ((tt - oldtt) > 2000) {
_level0.awaria = false;
_level0.plansza = false;
removeMovieClip(_parent);
_level0.aktywny = true;
_level0.temperatura = 40;
}
}
Instance of Symbol 104 MovieClip "Clip" in Symbol 105 MovieClip [Gora_duza] Frame 1
onClipEvent (load) {
podjazd = 0.26 * this._height;
y_motor = _level0.Motor._y;
}
onClipEvent (enterFrame) {
delta = _parent._x;
x_przeszkody = _parent._parent._x + delta;
x_motor = _level0.Motor._x;
_level0.ppp3 = _level0.Motor._y;
if (_parent._parent._x < x_die) {
removeMovieClip(_parent);
x_przeszkody = -300;
}
if (this.hitTest(_level0.Komp1)) {
_level0.typ = 1;
_level0.wyskok2 = true;
}
if (!_level0.wyskok) {
if ((x_przeszkody <= ((x_motor + (_level0.Motor._width / 2)) - 7)) && ((x_przeszkody + _parent._width) > ((x_motor - (_level0.Motor._width / 2)) - 7))) {
_level0.kolizja = "kolizja z poczatkiem " + this;
_level0.ppp4 = this;
if (this.hitTest(_level0.Motor) && (_level0.predkosc > _level0.limit)) {
_level0.typ = 2;
_level0.wyskok = true;
}
_level0.predkosc = _level0.predkosc * 0.85;
if ((((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody) > 15) {
_level0.ppp4 = ((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody;
_level0.kolizja = "podjazd pod " + _parent;
_level0.Motor.Clip.gotoAndStop(5);
if ((_level0.predkosc > 4) && (_level0.Motor._y > (y_motor - podjazd))) {
_level0.Motor._y = _level0.Motor._y - 4;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
if ((x_motor - x_przeszkody) > 40) {
trace("_level0.Motor._y= " + _level0.Motor._y);
if (_level0.predkosc > 20) {
} else {
_level0.kolizja = "stoi na " + _parent;
_level0.Motor.Clip.gotoAndStop(1);
}
}
if ((x_motor - x_przeszkody) > 55) {
_level0.kolizja = "zjazd z " + _parent;
_level0.Motor.Clip.gotoAndStop(9);
if (((_level0.predkosc > 3) && (_level0.Motor._y < y_motor)) && (!_level0.wyskok)) {
_level0.Motor._y = _level0.Motor._y + 5;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
if ((((x_motor - 7) - x_przeszkody) > 90) && (!_level0.wyskok)) {
_level0.kolizja = "zjazd z " + _parent;
_level0.Motor.Clip.gotoAndStop(1);
_level.Motor._y = y_motor;
}
}
}
}
Instance of Symbol 107 MovieClip "Clip" in Symbol 108 MovieClip [Wyskocznia] Frame 1
onClipEvent (load) {
podjazd = 0.26 * this._height;
y_motor = _level0.Motor._y;
}
onClipEvent (enterFrame) {
delta = _parent._x;
x_przeszkody = _parent._parent._x + delta;
x_motor = _level0.Motor._x;
_level0.ppp3 = _level0.Motor._y;
if (_parent._parent._x < x_die) {
removeMovieClip(_parent);
x_przeszkody = -300;
}
if (!_level0.wyskok2) {
if (this.hitTest(_level0.Komp1)) {
_level0.wyskok2 = true;
}
}
if (!_level0.wyskok) {
if ((x_przeszkody <= ((x_motor + (_level0.Motor._width / 2)) - 7)) && ((x_przeszkody + _parent._width) > ((x_motor - (_level0.Motor._width / 2)) - 7))) {
if ((_level0.predkosc > _level0.limit) && (_level0.Motor._currentframe >= 3)) {
_level0.typ = 4;
_level0.wyskok = true;
}
if (((((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody) > 15) && (_level0.Motor._currentframe >= 3)) {
_level0.Motor.Clip.gotoAndStop(5);
_level0.predkosc = _level0.predkosc * 0.85;
if ((_level0.predkosc > 4) && (_level0.Motor._y > (y_motor - (podjazd * 1.2)))) {
_level0.Motor._y = _level0.Motor._y - 4.5;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
if (((((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody) > 65) && (_level0.Motor._currentframe >= 3)) {
_level0.Motor._y = y_motor;
_level0.Motor.Clip.gotoAndStop(1);
}
}
}
}
Instance of Symbol 112 MovieClip "Clip" in Symbol 113 MovieClip [Meta] Frame 1
onClipEvent (load) {
wyskok = false;
podjazd = 0.25 * this._height;
trace((this + " x: ") + _parent._x);
y_motor = _level0.Motor._y;
}
onClipEvent (enterFrame) {
delta = _parent._x;
x_przeszkody = _parent._parent._x + delta;
x_motor = _level0.Motor._x;
_level0.ppp3 = _level0.Motor._y;
if (_parent._parent._x < x_die) {
trace((("usunieto " + _parent) + " ") + this._parent._x);
removeMovieClip(_parent);
x_przeszkody = -300;
}
if ((x_motor - x_przeszkody) > 65) {
_level0.Motor.Clip.gotoAndStop(1);
_level0.gameOn = false;
}
if (!_level0.wyskok) {
if ((x_przeszkody <= ((x_motor + (_level0.Motor._width / 2)) - 7)) && ((x_przeszkody + _parent._width) > ((x_motor - (_level0.Motor._width / 2)) - 7))) {
_level0.kolizja = "kolizja z poczatkiem " + this;
_level0.ppp4 = this;
if (!_level0.wyskok) {
_level0.predkosc = _level0.predkosc * 0.85;
}
if ((((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody) > 15) {
_level0.ppp4 = ((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody;
_level0.kolizja = "podjazd pod " + _parent;
_level0.Motor.Clip.gotoAndStop(5);
if ((_level0.predkosc > 4) && (_level0.Motor._y > (y_motor - podjazd))) {
_level0.Motor._y = _level0.Motor._y - 3.5;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
if ((x_motor - x_przeszkody) > 60) {
if ((_level0.predkosc > _level0.limit) && ((_level0.Motor._y - 20) < y_motor)) {
}
_level0.kolizja = "stoi na " + _parent;
_level0.Motor.Clip.gotoAndStop(1);
_level0.gameOn = false;
}
if ((x_motor - x_przeszkody) > 150) {
_level0.kolizja = "zjazd z " + _parent;
_level0.Motor.Clip.gotoAndStop(9);
if (((_level0.predkosc > 3) || (_level0.jedzie)) && (_level0.Motor._y < y_motor)) {
_level0.Motor._y = _level0.Motor._y + 5;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
if (((x_motor - 7) - x_przeszkody) > 180) {
_level0.kolizja = "zjazd z " + _parent;
_level0.Motor.Clip.gotoAndStop(1);
_level.Motor._y = y_motor;
}
}
}
}
Instance of Symbol 115 MovieClip "Clip" in Symbol 116 MovieClip [Gora_mala] Frame 1
onClipEvent (load) {
podjazd = 0.26 * this._height;
y_motor = _level0.Motor._y;
}
onClipEvent (enterFrame) {
delta = _parent._x;
x_przeszkody = _parent._parent._x + delta;
x_motor = _level0.Motor._x;
_level0.ppp3 = _level0.Motor._y;
if (_parent._parent._x < x_die) {
removeMovieClip(_parent);
x_przeszkody = -300;
}
if (this.hitTest(_level0.Komp1)) {
_level0.typ = 1;
_level0.wyskok2 = true;
}
if (this.hitTest(_level0.Motor) && (_level0.predkosc > _level0.limit)) {
_level0.typ = 3;
_level0.wyskok = true;
}
if (!_level0.wyskok) {
if ((x_przeszkody <= ((x_motor + (_level0.Motor._width / 2)) - 7)) && ((x_przeszkody + _parent._width) > ((x_motor - (_level0.Motor._width / 2)) - 7))) {
_level0.kolizja = "kolizja z poczatkiem " + this;
_level0.ppp4 = this;
if (!_level0.wyskok) {
_level0.predkosc = _level0.predkosc * 0.85;
}
if ((((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody) > 15) {
_level0.ppp4 = ((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody;
_level0.kolizja = "podjazd pod " + _parent;
_level0.Motor.Clip.gotoAndStop(5);
if ((_level0.predkosc > 4) && (_level0.Motor._y > (y_motor - podjazd))) {
_level0.Motor._y = _level0.Motor._y - 3;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
if ((x_motor - x_przeszkody) > 25) {
_level0.kolizja = "stoi na " + _parent;
_level0.Motor.Clip.gotoAndStop(1);
}
if (((x_motor - x_przeszkody) > 40) && (!_level0.wyskok)) {
_level0.kolizja = "zjazd z " + _parent;
_level0.Motor.Clip.gotoAndStop(9);
if (((_level0.predkosc > 3) || (_level0.jedzie)) && (_level0.Motor._y < y_motor)) {
_level0.Motor._y = _level0.Motor._y + 5;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
if ((((x_motor - 7) - x_przeszkody) > 60) && (!_level0.wyskok)) {
_level0.kolizja = "zjazd z " + _parent;
_level0.Motor.Clip.gotoAndStop(1);
_level.Motor._y = y_motor;
}
}
}
}
Symbol 118 MovieClip Frame 1
step = 10;
if (added) {
mouseMoveFXN = function () {
var x = (_parent._xmouse + xshift);
me.x = x;
this._x = x;
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
xshift = _x - _parent._xmouse;
this.onMouseMove = this.mouseMoveFXN;
}
};
this.onMouseUp = function () {
this.onMouseMove = null;
};
}
Instance of Symbol 118 MovieClip "Clip" in Symbol 119 MovieClip [Gora_bduza2] Frame 1
onClipEvent (load) {
podjazd = 0.28 * this._height;
trace((this + " x: ") + _parent._x);
y_motor = _level0.Motor._y;
}
onClipEvent (enterFrame) {
delta = _parent._x;
x_przeszkody = _parent._parent._x + delta;
x_motor = _level0.Motor._x;
_level0.ppp3 = _level0.Motor._y;
if (_parent._parent._x < x_die) {
trace((("usunieto " + _parent) + " ") + this._parent._x);
removeMovieClip(_parent);
x_przeszkody = -300;
}
if (this.hitTest(_level0.Komp1)) {
_level0.typ = 1;
_level0.wyskok2 = true;
}
if (!_level0.wyskok) {
if ((x_przeszkody <= ((x_motor + (_level0.Motor._width / 2)) - 7)) && ((x_przeszkody + _parent._width) > ((x_motor - (_level0.Motor._width / 2)) - 7))) {
_level0.kolizja = "kolizja z poczatkiem " + this;
_level0.ppp4 = this;
if (this.hitTest(_level0.Motor) && (_level0.predkosc > _level0.limit)) {
_level0.typ = 1;
_level0.wyskok = true;
_level0.wyskok2 = true;
}
if (!_level0.wyskok) {
_level0.predkosc = _level0.predkosc * 0.85;
}
if ((((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody) > 15) {
_level0.ppp4 = ((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody;
_level0.kolizja = "podjazd pod " + _parent;
_level0.Motor.Clip.gotoAndStop(5);
if ((_level0.predkosc > 3) && (_level0.Motor._y > (y_motor - (podjazd * 1.2)))) {
_level0.Motor._y = _level0.Motor._y - 5.5;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
if ((x_motor - x_przeszkody) > 40) {
_level0.kolizja = "stoi na " + _parent;
_level0.Motor.Clip.gotoAndStop(1);
}
if ((x_motor - x_przeszkody) > 55) {
_level0.kolizja = "zjazd z " + _parent;
_level0.Motor.Clip.gotoAndStop(9);
if (((_level0.predkosc > 3) && (_level0.Motor._y < y_motor)) && (!_level0.wyskok)) {
_level0.Motor._y = _level0.Motor._y + 8.5;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
if ((((x_motor - 7) - x_przeszkody) > 100) && (!_level0.wyskok)) {
_level0.kolizja = "zjazd z " + _parent;
_level0.Motor.Clip.gotoAndStop(1);
_level.Motor._y = y_motor;
}
}
}
}
Symbol 121 MovieClip Frame 1
step = 10;
if (added) {
mouseMoveFXN = function () {
var x = (_parent._xmouse + xshift);
me.x = x;
this._x = x;
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.onMouseMove = this.mouseMoveFXN;
}
};
this.onMouseUp = function () {
this.onMouseMove = null;
};
}
Instance of Symbol 121 MovieClip "Clip" in Symbol 122 MovieClip [Gora_bduza1] Frame 1
onClipEvent (load) {
podjazd = 0.28 * this._height;
y_motor = _level0.Motor._y;
}
onClipEvent (enterFrame) {
delta = _parent._x;
x_przeszkody = _parent._parent._x + delta;
x_motor = _level0.Motor._x;
x_komp = _level0.Komp1._x;
roznica = x_komp - x_motor;
_level0.ppp3 = _level0.Motor._y;
if (_parent._parent._x < x_die) {
removeMovieClip(_parent);
x_przeszkody = -300;
}
if (this.hitTest(_level0.Komp1)) {
_level0.typ = 1;
_level0.wyskok2 = true;
}
if (!_level0.wyskok) {
if ((x_przeszkody <= ((x_motor + (_level0.Motor._width / 2)) - 7)) && ((x_przeszkody + _parent._width) > ((x_motor - (_level0.Motor._width / 2)) - 7))) {
if (this.hitTest(_level0.Motor) && (_level0.predkosc > _level0.limit)) {
_level0.typ = 1;
_level0.wyskok = true;
}
_level0.kolizja = "kolizja z poczatkiem " + this;
_level0.ppp4 = this;
if (!_level0.wyskok) {
_level0.predkosc = _level0.predkosc * 0.85;
}
if ((((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody) > 15) {
_level0.ppp4 = ((x_motor + (_level0.Motor._width / 2)) - 7) - x_przeszkody;
_level0.kolizja = "podjazd pod " + _parent;
_level0.Motor.Clip.gotoAndStop(5);
if ((_level0.predkosc > 4) && (_level0.Motor._y > (y_motor - (podjazd * 1.2)))) {
_level0.Motor._y = _level0.Motor._y - 4.5;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
if ((x_motor - x_przeszkody) > 65) {
trace((this + " _level0.Motor._y= ") + _level0.Motor._y);
_level0.kolizja = "stoi na " + _parent;
_level0.Motor.Clip.gotoAndStop(1);
}
if ((x_motor - x_przeszkody) > 80) {
_level0.kolizja = "zjazd z " + _parent;
_level0.Motor.Clip.gotoAndStop(9);
if (!_level0.wyskok) {
if (((_level0.predkosc > 3) || (_level0.jedzie)) && (_level0.Motor._y < y_motor)) {
_level0.Motor._y = _level0.Motor._y + 6;
} else {
_level0.Motor._y = _level0.Motor._y;
}
}
}
if (((x_motor - 7) - x_przeszkody) > 95) {
_level0.kolizja = "zjazd z " + _parent;
_level0.Motor.Clip.gotoAndStop(1);
if (!_level0.wyskok) {
_level.Motor._y = y_motor;
}
}
}
}
}
Instance of Symbol 124 MovieClip "Clip" in Symbol 125 MovieClip [Trawa] Frame 1
onClipEvent (load) {
tarcie = 0.15;
y_motor = _level0.Motor._y;
y = _parent._y;
}
onClipEvent (enterFrame) {
delta = _parent._x;
x_przeszkody = _parent._parent._x + delta;
x_motor = _level0.Motor._x;
_level0.ppp3 = _level0.Motor._y;
if (_parent._parent._x < x_die) {
removeMovieClip(_parent);
x_przeszkody = -300;
}
if (!_level0.wyskok2) {
if (this.hitTest(_level0.Komp1)) {
_level0.Komp1.predkosc2 = _level0.Komp1.predkosc2 * 0.15;
}
if (this.hitTest(_level0.Komp2)) {
_level0.Komp2.predkosc2 = _level0.Komp2.predkosc2 * 0.15;
}
if (this.hitTest(_level0.Komp2)) {
_level0.Komp2.predkosc2 = _level0.Komp2.predkosc2 * 0.15;
}
if (this.hitTest(_level0.Komp3)) {
_level0.Komp3.predkosc2 = _level0.Komp3.predkosc2 * 0.15;
}
}
if (!_level0.wyskok) {
if (((x_motor + 7) > x_przeszkody) && ((x_motor - 7) < (x_przeszkody + _parent._width))) {
_level0.predkosc = _level0.predkosc * tarcie;
}
}
}
Instance of Symbol 127 MovieClip "Clip" in Symbol 128 MovieClip [Strzalka] Frame 1
onClipEvent (load) {
tarcie = 0.5;
y_motor = _level0.Motor._y;
y = _parent._y;
if (y == 199) {
tor = 4;
}
if (y == 223) {
tor = 3;
}
if (y == 247) {
tor = 2;
}
if (y == 271) {
tor = 1;
}
trace((("strzalka y:" + _parent._y) + " tor:") + tor);
}
onClipEvent (enterFrame) {
delta = _parent._x;
x_przeszkody = _parent._parent._x + delta;
x_motor = _level0.Motor._x;
_level0.ppp3 = _level0.Motor._y;
if (_parent._parent._x < x_die) {
removeMovieClip(_parent);
x_przeszkody = -300;
}
if ((this.hitTest(_level0.Motor) && (_level0.Motor._currentframe == tor)) && (!_level0.wyskok)) {
_level0.temperatura = 40;
_level0.Predkosc = _level0.Predkosc * 1.1;
trace("kolizja ze strzalka na torze" + tor);
}
}
Instance of Symbol 130 MovieClip "Clip" in Symbol 131 MovieClip [Bloto] Frame 1
onClipEvent (load) {
tarcie = 0.5;
y_motor = _level0.Motor._y;
y = _parent._y;
if (y == 197) {
tor = 4;
}
if (y == 222) {
tor = 3;
}
if (y == 246) {
tor = 2;
}
if (y == 270) {
tor = 1;
}
trace((("bloto y:" + _parent._y) + " tor:") + tor);
}
onClipEvent (enterFrame) {
delta = _parent._x;
x_przeszkody = _parent._parent._x + delta;
x_motor = _level0.Motor._x;
_level0.ppp3 = _level0.Motor._y;
if (_parent._parent._x < x_die) {
removeMovieClip(_parent);
x_przeszkody = -300;
}
if (this.hitTest(_level0.Komp1) && (!_level0.wyskok2)) {
_level0.Komp1.predkosc2 = _level0.Komp1.predkosc2 * tarcie;
}
if (this.hitTest(_level0.Komp2) && (!_level0.wyskok2)) {
_level0.Komp2.predkosc2 = _level0.Komp2.predkosc2 * tarcie;
}
if (this.hitTest(_level0.Komp3) && (!_level0.wyskok2)) {
_level0.Komp3.predkosc2 = _level0.Komp3.predkosc2 * tarcie;
}
if ((this.hitTest(_level0.Motor) && (_level0.Motor._currentframe == tor)) && (!_level0.wyskok)) {
_level0.predkosc = _level0.predkosc * tarcie;
}
}
Symbol 137 Button
on (release) {
if (added) {
trace(me);
_root.remove(me);
}
}
Symbol 138 MovieClip [EMeta] Frame 1
step = 10;
if (added) {
mouseMoveFXN = function () {
var x = (_parent._xmouse + xshift);
me.x = x;
this._x = x;
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.onMouseMove = this.mouseMoveFXN;
}
};
this.onMouseUp = function () {
this.onMouseMove = null;
};
}
Symbol 140 MovieClip [EGora_bduza2] Frame 1
step = 10;
if (added) {
mouseMoveFXN = function () {
var x = (_parent._xmouse + xshift);
me.x = x;
this._x = x;
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
xshift = _x - _parent._xmouse;
this.onMouseMove = this.mouseMoveFXN;
}
};
this.onMouseUp = function () {
this.onMouseMove = null;
};
}
Symbol 143 MovieClip [EGora_bduza1] Frame 1
step = 10;
if (added) {
mouseMoveFXN = function () {
var x = (_parent._xmouse + xshift);
me.x = x;
this._x = x;
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.onMouseMove = this.mouseMoveFXN;
}
};
this.onMouseUp = function () {
this.onMouseMove = null;
};
}
Symbol 146 MovieClip [EGora_duza] Frame 1
step = 10;
if (added) {
mouseMoveFXN = function () {
var x = (_parent._xmouse + xshift);
me.x = x;
this._x = x;
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
xshift = _x - _parent._xmouse;
this.onMouseMove = this.mouseMoveFXN;
}
};
this.onMouseUp = function () {
this.onMouseMove = null;
};
}
Symbol 148 MovieClip [EWyskocznia] Frame 1
step = 10;
if (added) {
mouseMoveFXN = function () {
var x = (_parent._xmouse + xshift);
me.x = x;
this._x = x;
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
xshift = _x - _parent._xmouse;
this.onMouseMove = this.mouseMoveFXN;
}
};
this.onMouseUp = function () {
this.onMouseMove = null;
};
}
Symbol 149 MovieClip [EStrzalka] Frame 1
step = 10;
if (added) {
mouseMoveFXN = function () {
var x = (_parent._xmouse + xshift);
var y = (_parent._ymouse + yshift);
if (y < 280) {
n = 0;
}
if (y > 280) {
n = 1;
}
if (y > 300) {
n = 2;
}
if (y > 320) {
n = 3;
}
if (y > 340) {
n = 3;
}
this._x = x;
this._y = 269 + (n * 24);
me.x = x;
me.y = _y;
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
xshift = _x - _parent._xmouse;
yshift = _y - _parent._ymouse;
this.onMouseMove = this.mouseMoveFXN;
}
};
this.onMouseUp = function () {
this.onMouseMove = null;
};
}
Symbol 151 MovieClip [EBloto] Frame 1
step = 10;
n = 0;
if (added) {
mouseMoveFXN = function () {
var x = (_parent._xmouse + xshift);
var y = (_parent._ymouse + yshift);
trace(y);
if (y < 280) {
n = 0;
}
if (y > 280) {
n = 1;
}
if (y > 300) {
n = 2;
}
if (y > 320) {
n = 3;
}
if (y > 340) {
n = 3;
}
this._x = x;
this._y = 268 + (n * 24);
me.x = x;
me.y = _y;
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
xshift = _x - _parent._xmouse;
yshift = _y - _parent._ymouse;
this.onMouseMove = this.mouseMoveFXN;
}
};
this.onMouseUp = function () {
this.onMouseMove = null;
};
}
Symbol 154 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 155 MovieClip [FScrollBarSymbol] Frame 1
#initclip 4
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 156 MovieClip [FListItemSymbol] Frame 1
#initclip 9
function FListItemClass() {
this.init();
}
FListItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FListItemSymbol", FListItemClass);
#endinitclip
Symbol 157 MovieClip [DataProviderSymbol] Frame 1
#initclip 2
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
this.items = new Array();
this.uniqueID = 0;
this.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var eventObj = {event:"updateAll"};
viewRef.modelChanged(eventObj);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
if (index < this.getLength()) {
this.items.splice(index, 0, "tmp");
}
this.items[index] = new Object();
if (typeof(value) == "object") {
this.items[index] = value;
} else {
this.items[index].label = value;
}
this.items[index].__ID__ = this.uniqueID++;
var eventObj = {event:"addRows", firstRow:index, lastRow:index};
this.updateViews(eventObj);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var tmpItm = this.items[index];
this.items.splice(index, 1);
var eventObj = {event:"deleteRows", firstRow:index, lastRow:index};
this.updateViews(eventObj);
return(tmpItm);
};
DataProviderClass.prototype.removeAll = function () {
this.items = new Array();
this.updateViews({event:"deleteRows", firstRow:0, lastRow:this.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
if ((index < 0) || (index >= this.getLength())) {
return(undefined);
}
var tmpID = this.getItemID(index);
if (typeof(itemObj) == "object") {
this.items[index] = itemObj;
} else {
this.items[index].label = itemObj;
}
this.items[index].__ID__ = tmpID;
this.updateViews({event:"updateRows", firstRow:index, lastRow:index});
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
this.items.sortOn(fieldName);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var i = 0;
while (i < this.views.length) {
this.views[i].modelChanged(eventObj);
i++;
}
};
#endinitclip
Symbol 158 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 6
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
if (this._name != "itemAsset") {
this.highlighted = false;
this.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
this.displayContent(itmObj, selected);
if ((this.highlighted != selected) || ((this.controller.focused != this.oldFocus) && (selected))) {
this.setHighlighted(selected);
}
this.oldFocus = this.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var LOWEST_DEPTH = -16384;
this.width = width;
this.layoutContent(width);
this.attachMovie("FHighlightSymbol", "highlight_mc", LOWEST_DEPTH);
this.highlight_mc._x = 0.5;
this.highlight_mc._width = width - 0.5;
this.highlight_mc._height = height;
this.highlight_mc.controller = this;
this.highlight_mc._alpha = 0;
this.highlight_mc.trackAsMenu = true;
this.highlight_mc.onPress = function () {
if (this.controller.enable) {
this.controller.controller.clickHandler(this.controller.itemNum);
}
};
this.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
this.highlight_mc.useHandCursor = false;
this.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
this.enable = enabledFlag;
this.fLabel_mc.setEnabled(enabledFlag);
this.highlight_mc.gotoAndStop((enabledFlag ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
this.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:this.controller});
this.fLabel_mc._x = 2;
this.fLabel_mc._y = 0;
this.fLabel_mc.setSize(width - 2);
this.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var tmpLabel = "";
if (itmObj.label != undefined) {
tmpLabel = itmObj.label;
} else if (typeof(itmObj) == "object") {
for (var i in itmObj) {
if (i != "__ID__") {
tmpLabel = (itmObj[i] + ", ") + tmpLabel;
}
}
tmpLabel = tmpLabel.substring(0, tmpLabel.length - 2);
} else {
tmpLabel = itmObj;
}
if (this.fLabel_mc.labelField.text != tmpLabel) {
this.fLabel_mc.setLabel(tmpLabel);
}
var clr = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (clr == undefined) {
clr = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(clr);
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
fade = this.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!flag)) {
this.highlight_mc._alpha = (flag ? 100 : 0);
delete this.onEnterFrame;
} else {
this.fadeN = fade;
this.fadeX = 1;
this.highLight_mc._alpha = 20;
this.onEnterFrame = function () {
this.highLight_mc._alpha = (60 * Math.sqrt((this.fadeX++) / this.fadeN)) + 40;
if (this.fadeX > this.fadeN) {
delete this.onEnterFrame;
}
};
}
this.highlighted = flag;
};
#endinitclip
Symbol 159 MovieClip [FSelectableListSymbol] Frame 1
#initclip 5
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
super.init();
this.enable = true;
this.selected = new Array();
this.topDisplayed = (this.numDisplayed = 0);
this.lastSelected = 0;
this.tabChildren = false;
if (this._name != undefined) {
this.dataProvider = new DataProviderClass();
this.dataProvider.addView(this);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
if ((index < 0) || (!this.enable)) {
return(undefined);
}
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
if (!this.enable) {
return(undefined);
}
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndex();
var item = this.getItemAt(index);
this.dataProvider.removeItemAt(index);
return(item);
};
FSelectableListClass.prototype.removeAll = function () {
this.dataProvider.removeAll();
};
FSelectableListClass.prototype.replaceItemAt = function (index, newLabel, newData) {
this.dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
};
FSelectableListClass.prototype.sortItemsBy = function (fieldName, order) {
this.lastSelID = this.dataProvider.getItemID(this.lastSelected);
this.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
for (var uniqueID in this.selected) {
var tmpInd = this.selected[uniqueID].sIndex;
if (tmpInd != undefined) {
return(tmpInd);
}
}
};
FSelectableListClass.prototype.getSelectedItem = function () {
return(this.getItemAt(this.getSelectedIndex()));
};
FSelectableListClass.prototype.getItemAt = function (index) {
return(this.dataProvider.getItemAt(index));
};
FSelectableListClass.prototype.getEnabled = function () {
return(this.enable);
};
FSelectableListClass.prototype.getValue = function () {
var item = this.getSelectedItem();
return(((item.data == undefined) ? (item.label) : (item.data)));
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
if (((index >= 0) && (index < this.getLength())) && (this.enable)) {
this.clearSelected();
this.selectItem(index, true);
this.lastSelected = index;
this.invalidate("updateControl");
if (flag != false) {
this.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
this.setScrollPosition(0);
this.clearSelected();
if (obj instanceof Array) {
this.dataProvider = new DataProviderClass();
var i = 0;
while (i < obj.length) {
var value = ((typeof(obj[i]) == "string") ? ({label:obj[i]}) : (obj[i]));
this.dataProvider.addItem(value);
i++;
}
} else {
this.dataProvider = obj;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
this.tmpPos = this.getScrollPosition();
this.itemSymbol = linkID;
this.invalidate("setSize");
this.setScrollPosition(this.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
this.cleanUI();
super.setEnabled(enabledFlag);
this.enable = enabledFlag;
this.boundingBox_mc.gotoAndStop((this.enable ? "enabled" : "disabled"));
var limit = Math.min(this.numDisplayed, this.getLength());
var i = 0;
while (i < limit) {
this.container_mc[("fListItem" + i) + "_mc"].setEnabled(this.enable);
i++;
}
if (this.enable) {
this.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + i), this.isSelected(this.topDisplayed + i));
i++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
super.setSize(w, h);
this.boundingBox_mc._xscale = (this.boundingBox_mc._yscale = 100);
this.boundingBox_mc._xscale = (this.width * 100) / this.boundingBox_mc._width;
this.boundingBox_mc._yscale = (this.height * 100) / this.boundingBox_mc._height;
var i = 0;
while (i < this.numDisplayed) {
this.container_mc.attachMovie(this.itemSymbol, ("fListItem" + i) + "_mc", 10 + i, {controller:this, itemNum:i});
var item_mc = this.container_mc[("fListItem" + i) + "_mc"];
var offset = ((this.scrollOffset == undefined) ? 0 : (this.scrollOffset));
item_mc.setSize(this.width - offset, this.itmHgt);
item_mc._y = (this.itmHgt - 2) * i;
i++;
}
this.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var firstRow = eventObj.firstRow;
var lastRow = eventObj.lastRow;
var event = eventObj.event;
if (event == "addRows") {
for (var i in this.selected) {
if ((this.selected[i].sIndex != undefined) && (this.selected[i].sIndex >= firstRow)) {
this.selected[i].sIndex = this.selected[i].sIndex + ((lastRow - firstRow) + 1);
this.setSelectedIndex(this.selected[i].sIndex, false);
}
}
} else if (event == "deleteRows") {
if (firstRow == lastRow) {
var index = firstRow;
if (this.selectHolder == index) {
this.selectionDeleted = true;
}
if (((this.topDisplayed + this.numDisplayed) >= this.getLength()) && (this.topDisplayed > 0)) {
this.topDisplayed--;
if (this.selectionDeleted && ((index - 1) >= 0)) {
this.setSelectedIndex(index - 1, false);
}
} else if (this.selectionDeleted) {
var len = this.getLength();
if (((index == (len - 1)) && (len > 1)) || (index > (len / 2))) {
this.setSelectedIndex(index - 1, false);
} else {
this.setSelectedIndex(index, false);
}
}
for (var i in this.selected) {
if (this.selected[i].sIndex > firstRow) {
this.selected[i].sIndex--;
}
}
} else {
this.clearSelected();
this.topDisplayed = 0;
}
} else if (event == "sort") {
var len = this.getLength();
var i = 0;
while (i < len) {
if (this.isSelected(i)) {
var id = this.dataProvider.getItemID(i);
if (id == this.lastSelID) {
this.lastSelected = i;
}
this.selected[String(id)].sIndex = i;
}
i++;
}
}
this.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
this.attachMovie(this.itemSymbol, "tmpItem_mc", 0, {controller:this});
this.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
this.itmHgt = this.tmpItem_mc._height;
this.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
if (selectedFlag && (!this.isSelected(index))) {
this.selected[String(this.dataProvider.getItemID(index))] = {sIndex:index};
} else if (!selectedFlag) {
delete this.selected[String(this.dataProvider.getItemID(index))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
for (var uniqueID in this.selected) {
var index = this.selected[uniqueID].sIndex;
if (((index != undefined) && (this.topDisplayed <= index)) && (index < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (index - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(index), false);
}
}
delete this.selected;
this.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var tmpInd = (this.topDisplayed + itemNum);
if (this.getItemAt(tmpInd == undefined)) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
this.clearSelected();
this.selectItem(tmpInd, true);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(tmpInd), this.isSelected(tmpInd));
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var itmNum = this.getSelectedIndex();
var newItm = (itmNum + incr);
newItm = Math.max(0, newItm);
newItm = Math.min(this.getLength() - 1, newItm);
if (newItm == itmNum) {
return(undefined);
}
if ((itmNum < this.topDisplayed) || (itmNum >= (this.topDisplayed + this.numDisplayed))) {
this.setScrollPosition(itmNum);
}
if ((newItm >= (this.topDisplayed + this.numDisplayed)) || (newItm < this.topDisplayed)) {
this.setScrollPosition(this.topDisplayed + incr);
}
this.selectionHandler(newItm - this.topDisplayed);
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
this.focusRect.removeMovieClip();
if (!this.focused) {
this.pressFocus();
}
this.selectionHandler(itmNum);
this.onMouseUp = this.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
if (this.changeFlag) {
this.executeCallBack();
}
this.changeFlag = false;
this.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].highlight_mc.gotoAndStop("enabled");
i++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
super.myOnKillFocus();
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].highlight_mc.gotoAndStop("unfocused");
i++;
}
};
#endinitclip
Instance of Symbol 157 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 159 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 158 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 159 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 160 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 7
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
if (this.enable) {
pos = Math.min(pos, this.getLength() - this.numDisplayed);
pos = Math.max(pos, 0);
this.scrollBar_mc.setScrollPosition(pos);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
this.permaScrollBar = !flag;
this.setSize(this.width, this.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var pos = this.getScrollPosition();
super.setSize(w, h);
if (this.scrollBar_mc != undefined) {
this.removed = true;
}
this.scrollBar_mc = undefined;
this.initScrollBar();
this.setScrollPosition(pos);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
if ((!this.permaScrollBar) && (this.getLength() <= this.numDisplayed)) {
if (this.removed) {
this.scrollBar_mc.removeMovieClip();
this.scrollBar_mc = undefined;
this.scrollOffset = undefined;
this.invalidate("setSize");
}
} else {
if (this.scrollBar_mc == undefined) {
this.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:this.styleTable});
this.scrollBar_mc = this.container_mc.scrollBar_mc;
this.scrollBar_mc.setChangeHandler("scrollHandler", this);
this.scrollBar_mc.setSize(this.height);
this.scrollBar_mc._x = this.width - this.scrollBar_mc._width;
this.scrollBar_mc._y = 0;
this.scrollBar_mc.setLargeScroll(this.numDisplayed - 1);
this.scrollOffset = this.scrollBar_mc._width;
this.invalidate("setSize");
}
this.scrollBar_mc.setScrollProperties(this.numDisplayed, 0, this.getLength() - this.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var pos = scrollBar.getScrollPosition();
this.topDisplayed = pos;
if (this.lastPosition != pos) {
this.updateControl();
}
this.lastPosition = pos;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
super.clickHandler(itmNum);
if ((this.dragScrolling == undefined) && (this.scrollBar_mc != undefined)) {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
clearInterval(this.dragScrolling);
if (this.container_mc._ymouse < 0) {
this.setScrollPosition(this.getScrollPosition() - 1);
this.selectionHandler(0);
this.scrollInterval = Math.max(25, (-23.8 * (-this.container_mc._ymouse)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else if (this.container_mc._ymouse > ((this.itmHgt - 2) * this.numDisplayed)) {
this.setScrollPosition(this.getScrollPosition() + 1);
this.selectionHandler(this.numDisplayed - 1);
this.scrollInterval = Math.max(25, (-23.8 * Math.abs((this.container_mc._ymouse - ((this.itmHgt - 2) * this.numDisplayed)) - 2)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
if (this.focused) {
this.keyCodes = new Array(40, 38, 34, 33, 36, 35);
this.keyIncrs = new Array(1, -1, this.numDisplayed - 1, -(this.numDisplayed - 1), -this.getLength(), this.getLength());
var i = 0;
while (i < this.keyCodes.length) {
if (Key.isDown(this.keyCodes[i])) {
this.moveSelBy(this.keyIncrs[i]);
return(undefined);
}
i++;
}
this.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var tmpCode = Key.getAscii();
if ((tmpCode >= 33) && (tmpCode <= 126)) {
this.findString(String.fromCharCode(tmpCode));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
return(undefined);
}
var itemNum = this.getSelectedIndex();
var jump = 0;
var i = (itemNum + 1);
while (i != itemNum) {
var itmStr = this.getItemAt(i).label.substring(0, str.length);
if ((str == itmStr) || (str.toUpperCase() == itmStr.toUpperCase())) {
var jump = (i - itemNum);
break;
}
if (i >= (this.getLength() - 1)) {
i = -1;
}
i++;
}
if (jump != 0) {
this.moveSelBy(jump);
}
};
#endinitclip
Instance of Symbol 155 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 160 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 159 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 160 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 164 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 164 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 167 MovieClip [FListBoxSymbol] Frame 1
#initclip 8
function FListBoxClass() {
this.itemSymbol = "FListItemSymbol";
this.init();
this.permaScrollBar = true;
var i = 0;
while (i < this.labels.length) {
this.addItem(this.labels[i], this.data[i]);
i++;
}
this.boundingBox_mc.gotoAndStop(1);
this.width = this._width;
this.height = this._height;
this._yscale = (this._xscale = 100);
this.setSize(this.width, this.height);
if (this.changeHandler.length > 0) {
this.setChangeHandler(this.changeHandler);
}
}
FListBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FListBoxSymbol", FListBoxClass);
FListBoxClass.prototype.getSelectedIndices = function () {
var tmpArray = new Array();
for (var i in this.selected) {
tmpArray.push(this.selected[i].sIndex);
}
return(((tmpArray.length > 0) ? (tmpArray) : undefined));
};
FListBoxClass.prototype.getSelectedItems = function () {
var indices = this.getSelectedIndices();
var tmpArray = new Array();
var i = 0;
while (i < indices.length) {
tmpArray.push(this.getItemAt(indices[i]));
i++;
}
return(((tmpArray.length > 0) ? (tmpArray) : undefined));
};
FListBoxClass.prototype.getSelectMultiple = function () {
return(this.selectMultiple);
};
FListBoxClass.prototype.getRowCount = function () {
return(this.numDisplayed);
};
FListBoxClass.prototype.setSelectedIndices = function (indexArray) {
this.clearSelected();
var i = 0;
while (i < indexArray.length) {
this.selectItem(indexArray[i], true);
i++;
}
this.updateControl();
};
FListBoxClass.prototype.setSelectMultiple = function (flag) {
this.selectMultiple = flag;
};
FListBoxClass.prototype.setRowCount = function (count) {
var hgt = ((count * (this.itmHgt - 2)) + 2);
this.setSize(this.width, hgt);
};
FListBoxClass.prototype.setWidth = function (wdt) {
this.setSize(wdt, this.height);
};
FListBoxClass.prototype.setSize = function (w, h) {
if (!this.enable) {
return(undefined);
}
w = Math.max(w, 20);
h = Math.max(h, 40);
this.container_mc.removeMovieClip();
this.container_mc = this.createEmptyMovieClip("container", 3);
this.measureItmHgt();
this.numDisplayed = Math.floor(h / (this.itmHgt - 2));
this.height = (this.numDisplayed * (this.itmHgt - 2)) + 2;
super.setSize(w, this.height);
};
FListBoxClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndices();
return(super.removeItemAt(index));
};
FListBoxClass.prototype.selectionHandler = function (itemNum) {
if (this.clickFilter) {
var index = (this.topDisplayed + itemNum);
if (this.getItemAt(index) == undefined) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
if (((!this.selectMultiple) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
this.clearSelected();
this.selectItem(index, true);
this.lastSelected = index;
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(index), this.isSelected(index));
} else if (Key.isDown(16) && (this.selectMultiple)) {
if (this.lastSelected == -1) {
this.lastSelected = index;
}
var incr = ((this.lastSelected < index) ? 1 : -1);
this.clearSelected();
var i = this.lastSelected;
while (i != index) {
this.selectItem(i, true);
if ((i >= this.topDisplayed) && (i < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (i - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(i), this.isSelected(i));
}
i = i + incr;
}
this.selectItem(index, true);
this.container_mc[("fListItem" + (index - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(index), this.isSelected(index));
} else if (key.isDown(17)) {
var selectedFlag = this.isSelected(index);
if (!this.selectMultiple) {
this.clearSelected();
}
if (!((!this.selectMultiple) && (selectedFlag))) {
this.selectItem(index, !selectedFlag);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + itemNum), this.isSelected(this.topDisplayed + itemNum));
}
this.lastSelected = index;
}
} else {
this.clickFilter = true;
}
};
FListBoxClass.prototype.moveSelBy = function (itemNum) {
super.moveSelBy(itemNum);
this.releaseHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 160 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 167 MovieClip [FListBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 173 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 187 MovieClip Frame 140
stop();
Symbol 226 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 229 MovieClip Frame 1
_root.stop();
stop();
Symbol 229 MovieClip Frame 2
stop();
Symbol 235 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 241 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 5
this.gotoAndStop(1);
Symbol 241 MovieClip Frame 25
this.gotoAndStop(1);
Symbol 241 MovieClip Frame 40
this.gotoAndStop(1);
Symbol 241 MovieClip Frame 54
this.gotoAndStop(1);
Symbol 241 MovieClip Frame 67
this.gotoAndStop(1);
Symbol 247 Button
on (press) {
_root._game(2);
}
Symbol 252 Button
on (press) {
_root.plajery.play();
}
Symbol 257 Button
on (press) {
plansze = new LoadVars();
plansze.onLoad = function () {
wczytaj();
};
plansze.load("test.php");
wczytaj = function () {
i = 0;
while (i < (plansze.i - 1)) {
_level0.L.Lista.addItemAt(i, plansze["p" + (i + 1)]);
i++;
}
};
_level0.L._x = 0;
}
Symbol 262 Button
on (press) {
_root.instr();
}
Symbol 270 Button
on (press) {
_root.gracze = 1;
_root.game();
}
Symbol 272 Button
on (press) {
_root.gracze = 2;
_root.game();
}
Symbol 274 Button
on (press) {
_root.gracze = 3;
_root.game();
}
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 7
stop();
Symbol 282 Button
on (press) {
_level0.L._x = 560;
_root.custom = "";
}
Symbol 287 Button
on (press) {
_root.custom = _parent.plansza;
_root.game();
}
Symbol 288 MovieClip Frame 1
function zmiana() {
plansza = Lista.getSelectedItem().label;
_root.custom = plansza;
B._visible = true;
}
stop();
B._visible = false;
Instance of Symbol 167 MovieClip [FListBoxSymbol] "Lista" in Symbol 288 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
selectMultiple = false;
changeHandler = "zmiana";
}
Symbol 294 Button
on (press) {
_root.starting();
_root.custom = "";
}
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 2
stop();
Symbol 302 MovieClip Frame 3
stop();
Symbol 302 MovieClip Frame 4
stop();
Symbol 309 MovieClip Frame 1
Symbol 309 MovieClip Frame 17
stop();
_level0.mozna = true;
_level0.ruch = true;
_level0.startTime = getTimer();
_level0.gameOn = true;
Symbol 314 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 2
stop();
Symbol 315 Button
on (release) {
_level0.Motor.Clip.gotoAndPlay(2);
_level0.Motor.Clip.Kraksa.gotoAndPlay(2);
if (!soundOn) {
soundOn = true;
playSound("music");
_level0.mute.gotoAndStop(1);
_root.gra = true;
} else {
stopAllSounds();
soundOn = false;
_root.gra = false;
_level0.mute.gotoAndStop(2);
}
}
Symbol 339 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 3
stop();
Symbol 339 MovieClip Frame 4
stop();
Symbol 339 MovieClip Frame 5
stop();
Symbol 339 MovieClip Frame 8
stop();
Symbol 339 MovieClip Frame 9
stop();
Symbol 339 MovieClip Frame 10
stop();
Symbol 339 MovieClip Frame 11
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 2
stop();
Symbol 340 MovieClip Frame 3
stop();
Symbol 340 MovieClip Frame 4
stop();
Symbol 340 MovieClip Frame 5
prevFrame();
Symbol 363 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 367 Button
on (release) {
for (a in _level0.Przeszkody) {
if (typeof(_level0.Przeszkody[a]) == "movieclip") {
trace("usunieto:" + _level0.Przeszkody[a]);
removeMovieClip(_level0.Przeszkody[a]);
}
}
if (_level0.game.level < _level0.game.numLevels) {
_level0.Przeszkody._x = 0;
_level0.inicjuj();
_level0.Bloki.gotoAndStop(1);
_level0.loadNext();
} else {
_root._game(3);
}
_level0.Bloki.gotoAndPlay(2);
this._x = -500;
}
Symbol 372 Button
on (release) {
for (a in _level0.Przeszkody) {
if (typeof(_level0.Przeszkody[a]) == "movieclip") {
trace("usunieto:" + _level0.Przeszkody[a]);
removeMovieClip(_level0.Przeszkody[a]);
}
}
if (_level0.game.level < _level0.game.numLevels) {
_level0.Przeszkody._x = 0;
_level0.inicjuj();
_level0.Bloki.gotoAndStop(1);
_level0.loadNext();
} else {
_root._game(3);
}
this._x = -500;
}
Symbol 375 MovieClip Frame 1
if (_parent._x > 0) {
_level0.wyskok = false;
}
Symbol 375 MovieClip Frame 2
_root.info = "OK";
stop();
Symbol 381 MovieClip Frame 1
stop();
Symbol 381 MovieClip Frame 2
Symbol 381 MovieClip Frame 40
if (_name == "upadek") {
_root.kraksa = false;
_level0.upadek._visible = false;
_level0.Motor._visible = true;
}
if (_name == "upadek1") {
_root.kraksa1 = false;
_level0.upadek1._visible = false;
_level0.Komp1._visible = true;
}
if (_name == "upadek2") {
_root.kraksa2 = false;
_level0.upadek2._visible = false;
_level0.Komp2._visible = true;
}
if (_name == "upadek3") {
_root.kraksa3 = false;
_level0.upadek3._visible = false;
_level0.Komp3._visible = true;
}
Symbol 386 MovieClip Frame 1
stop();
Symbol 386 MovieClip Frame 17
stop();
_root.Start = true;
_parent.Funkcje.Startuj();
_root.mozna = true;
Symbol 391 Button
on (release, keyPress "<Enter>") {
update();
}
Symbol 417 MovieClip Frame 1
stop();
for (i in this) {
delete this[i];
}
Symbol 417 MovieClip Frame 2
function update() {
who.type = type;
who.mover = mover;
who.graphic = graphic;
who.container = container;
who.clip.gotoAndStop(graphic);
if (who.container == "true") {
who.containerCounter = counter;
} else {
delete who.containerCounter;
}
if (mover == "yes") {
who.xspeed = xspeed;
who.yspeed = yspeed;
who.maxxmov = maxxmov;
who.maxymov = maxymov;
} else {
delete who.xspeed;
delete who.xspeed;
delete who.maxxmov;
delete who.maxymov;
}
gotoAndStop (1);
}
for (i in who) {
this[i] = who[i];
}
Symbol 417 MovieClip Frame 3
function update() {
who.breadth = breadth;
who.start_direction = start_direction;
who.speed = speed;
gotoAndStop (1);
}
for (i in who) {
this[i] = who[i];
}
Symbol 419 Button
on (release) {
trace((this + " ") + added);
if (added) {
_root.remove(me);
}
}
Symbol 421 Button
on (release) {
this._width = this._width + step;
}
Symbol 422 Button
on (release) {
this._width = this._width - step;
}
Symbol 423 MovieClip [ETrawa] Frame 1
step = 10;
if (added) {
mouseMoveFXN = function () {
var x = (_parent._xmouse + xshift);
me.x = x;
this._x = x;
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
xshift = _x - _parent._xmouse;
this.onMouseMove = this.mouseMoveFXN;
}
};
this.onMouseUp = function () {
this.onMouseMove = null;
};
}
Symbol 437 Button
on (release) {
_level0.Dupa.play();
}
Symbol 439 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 6
stop();
Symbol 444 Button
on (release) {
if (autor != "") {
generateXML();
} else {
getURL ("javascript:alert('You must enter your name!');");
}
}
Symbol 445 Button
on (release) {
map._x = map.homex;
map._y = map.homey;
}
Symbol 446 Button
on (release) {
_root.starting();
}
Symbol 463 Button
on (press) {
this.gotoAndStop("weekly");
}
Symbol 464 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 465 Button
on (press) {
this.gotoAndStop("hourly");
}
Symbol 468 Button
on (press) {
this.gotoAndStop("monthly");
}
Symbol 473 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 476 MovieClip Frame 1
this._parent.tp = 2592000 /* 0x278D00 */;
this._parent.tc = 0;
this._parent.reload();
stop();
Symbol 476 MovieClip Frame 2
this._parent.tp = 604800 /* 0x093A80 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 476 MovieClip Frame 3
this._parent.tp = 86400 /* 0x015180 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 476 MovieClip Frame 4
this._parent.tp = 3600;
this._parent.tc = 0;
this._parent.reload();
Symbol 483 Button
on (press) {
this.tc--;
this.reload();
}
Symbol 488 Button
on (press) {
this.tc = ((this.tc < 0) ? (this.tc + 1) : 0);
this.reload();
}
Symbol 491 Button
on (press) {
if (this.submitted == false) {
this.loadVariables((((this.__url + "hof_put.php?id=") + this.gid) + "&s=") + this.sc);
}
}
Symbol 495 Button
on (press) {
this._parent.l = 10;
this._parent.reload();
this.gotoAndStop(2);
}
Symbol 498 Button
on (press) {
this._parent.l = 100;
this._parent.reload();
this.gotoAndStop(1);
}
Symbol 499 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 18
stop();
Symbol 516 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 515 MovieClip "m" in Symbol 516 MovieClip Frame 1
on (press) {
this.startDrag();
}
on (release, releaseOutside) {
this.stopDrag();
this._parent.reset();
}
Symbol 521 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 522 MovieClip Frame 1
this.submitted = false;
_root.scr = int(_root.scr);
Symbol 522 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 527 Button
on (press) {
_root.starting();
}