Frame 1
var debug = false;
var gameID = 213;
var gameName = "hitthejackpot";
stop();
fscommand ("showmenu", "false");
prel.onEnterFrame = function () {
prel.procent.text = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
prel.gotoAndStop(prel.procent.text);
if (Number(prel.procent.text) >= 100) {
play();
delete this.onEnterFrame;
}
};
Instance of Symbol 118 MovieClip in Frame 1
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=211&area=minilogo2", "_blank");
}
Frame 2
stop();
Frame 3
if (!okToPlay) {
gotoAndStop (2);
}
Frame 6
function valid(n, dbg) {
if (n == "Your nickname...") {
dbg.text = "ENTER YOUR NICK!";
return(false);
}
if (n.length < 3) {
dbg.text = "TOO SHORT!";
return(false);
}
if (n.length > 20) {
dbg.text = "TOO LONG!";
return(false);
}
var _local2 = [" ", "~", "`", "!", "$", "#", "%", "^", "&", "*", "(", ")", "{", "}", "[", "]", "+", "=", ".", ",", "/", "\\", "?", ":", ";", ">", "<", "'"];
var _local1 = 0;
while (_local1 < _local2.length) {
if (n.split(_local2[_local1]).length > 1) {
dbg.text = "FORBIDDEN CHARS!";
return(false);
}
_local1++;
}
return(true);
}
var addScore_script = "php/addscore.php";
var getTable_script = "php/gettable.php";
var qualifyLimit = 15;
var conditionFnX = 0;
var debuger = new Debug(this);
new Button_luk(ok);
var playerName;
var playerCountry;
imie.text = "test";
ustawienia.ok.onRelease = function () {
if (valid(ustawienia.imie.text, ustawienia.dbg)) {
playerName = ustawienia.imie.text.toUpperCase();
playerCountry = ustawienia.kraj._currentframe;
gotoAndPlay(_currentframe + 1);
}
};
stop();
Frame 7
var tournaments = [[{id:4, liczba_serii:3, dystans_start:1, dystans_koniec:2}, {id:3, liczba_serii:3, dystans_start:2, dystans_koniec:2}, {id:7, liczba_serii:3, dystans_start:2, dystans_koniec:3}, {id:0, liczba_serii:2, dystans_start:1, dystans_koniec:3}], [{id:2, liczba_serii:3, dystans_start:1, dystans_koniec:2}, {id:5, liczba_serii:3, dystans_start:2, dystans_koniec:2}, {id:6, liczba_serii:3, dystans_start:2, dystans_koniec:3}, {id:9, liczba_serii:2, dystans_start:1, dystans_koniec:3}], [{id:1, liczba_serii:3, dystans_start:1, dystans_koniec:2}, {id:11, liczba_serii:3, dystans_start:2, dystans_koniec:2}, {id:7, liczba_serii:3, dystans_start:2, dystans_koniec:3}, {id:10, liczba_serii:2, dystans_start:1, dystans_koniec:3}], [{id:0, liczba_serii:4, dystans_start:3, dystans_koniec:3}, {id:1, liczba_serii:3, dystans_start:1, dystans_koniec:2}, {id:3, liczba_serii:3, dystans_start:2, dystans_koniec:3}, {id:4, liczba_serii:4, dystans_start:2, dystans_koniec:2}, {id:7, liczba_serii:4, dystans_start:3, dystans_koniec:3}, {id:8, liczba_serii:4, dystans_start:1, dystans_koniec:1}, {id:10, liczba_serii:3, dystans_start:1, dystans_koniec:3}]];
function randomPlayers(dataArr, am) {
function deleteAll(ob) {
var _local1 = 0;
while (_local1 < temp.length) {
if (((temp[_local1].n == ob.n) && (temp[_local1].a == ob.a)) && (temp[_local1].c == ob.c)) {
temp.splice(_local1, 1);
_local1--;
}
_local1++;
}
}
var temp = new Array();
var _local1 = 0;
while (_local1 < dataArr.length) {
var _local3 = dataArr[_local1];
var _local2 = 0;
while (_local2 < (_local3.a * 10)) {
temp.push(_local3);
_local2++;
}
_local1++;
}
var _local5 = new Array();
var _local6 = 1;
while (_local5.length < am) {
var _local4 = Math.round(Math.random() * (temp.length - 1));
temp[_local4].id = _local6;
_local5.push(temp[_local4]);
deleteAll(temp[_local4]);
_local6++;
}
return(_local5);
}
var gracze = [{n:"DAREK W.", a:0.9, c:1}, {n:"KAMIL K.", a:0.7, c:1}, {n:"\u0141UKASZ K.", a:0.8, c:1}, {n:"LUKAS V.", a:0.5, c:2}, {n:"DAVID T.", a:0.7, c:2}, {n:"SIMON Z.", a:0.5, c:2}, {n:"NOAH H.", a:0.7, c:3}, {n:"NATHAN P.", a:0.8, c:3}, {n:"EMIL G..", a:0.5, c:3}, {n:"WIKTOR A.", a:0.4, c:4}, {n:"CHRISTO S.", a:0.3, c:5}, {n:"DIMITYR S.", a:0.4, c:5}, {n:"DAVOR P.", a:0.6, c:6}, {n:"SLAVEN B.", a:0.7, c:6}, {n:"LUKAS A.", a:0.6, c:7}, {n:"MATEJ S.", a:0.8, c:7}, {n:"OLIVER R.", a:0.9, c:8}, {n:"MIKKEL G.", a:0.8, c:8}, {n:"EMIL Z.", a:0.7, c:8}, {n:"MARTIN F.", a:0.5, c:9}, {n:"ANDRES N.", a:0.6, c:9}, {n:"MIKAEL L.", a:0.9, c:10}, {n:"MATIAS S.", a:0.7, c:10}, {n:"OLAVI H.", a:0.8, c:10}, {n:"ENZO L.", a:0.9, c:11}, {n:"HUGO S.", a:0.6, c:11}, {n:"THEO S.", a:0.8, c:11}, {n:"MATTEO D.", a:0.7, c:11}, {n:"ANGELOS L.", a:0.8, c:12}, {n:"STEILOS P.", a:0.6, c:12}, {n:"NIKOS M.", a:0.7, c:12}, {n:"DANIEL F.", a:0.9, c:13}, {n:"ALEX Z.", a:0.9, c:13}, {n:"JAVIER Z.", a:0.5, c:13}, {n:"ALVARO Z.", a:0.6, c:13}, {n:"DIEGO E.", a:0.7, c:13}, {n:"DAAN T.", a:0.6, c:14}, {n:"SEM J.", a:0.6, c:14}, {n:"LARS O.", a:0.6, c:14}, {n:"SEAN M.", a:0.7, c:15}, {n:"CIAN K.", a:0.6, c:15}, {n:"LUKE U.", a:0.8, c:15}, {n:"GUNNAR Z.", a:0.5, c:16}, {n:"EINAR K.", a:0.5, c:16}, {n:"BJARNI L.", a:0.6, c:16}, {n:"JONAS Z.", a:0.4, c:17}, {n:"PETRAS N.", a:0.5, c:17}, {n:"ANTANAS B.", a:0.4, c:17}, {n:"GUNTIS N.", a:0.4, c:18}, {n:"ERIKS B.", a:0.3, c:18}, {n:"PAUL R.", a:0.9, c:19}, {n:"TIM P.", a:0.8, c:19}, {n:"OLIVER N.", a:0.8, c:19}, {n:"LUCA B.", a:0.8, c:19}, {n:"KEVIN K.", a:0.9, c:19}, {n:"KRISTIAN Z.", a:0.7, c:20}, {n:"ADRIAN R.", a:0.6, c:20}, {n:"HENRIK M.", a:0.8, c:20}, {n:"CARLOS D.", a:0.7, c:21}, {n:"JOAO R.", a:0.8, c:21}, {n:"MARCO I.", a:0.9, c:21}, {n:"FILIPE X.", a:0.7, c:21}, {n:"DIMITRIJ Z.", a:0.7, c:22}, {n:"JEGOR S.", a:0.6, c:22}, {n:"SIERGIEJ B.", a:0.8, c:22}, {n:"DAN Z.", a:0.5, c:23}, {n:"ADRIAN B.", a:0.6, c:23}, {n:"DRAGAN Z.", a:0.9, c:24}, {n:"SAVO S.", a:0.5, c:24}, {n:"MIROSLAV Z.", a:0.5, c:25}, {n:"IGOR D.", a:0.5, c:25}, {n:"MAREK M.", a:0.4, c:25}, {n:"FRANC Z.", a:0.6, c:26}, {n:"IVAN S.", a:0.6, c:26}, {n:"MARKO B.", a:0.7, c:26}, {n:"NICO S.", a:0.7, c:27}, {n:"JAN W.", a:0.6, c:27}, {n:"NOAH B.", a:0.5, c:27}, {n:"OSCAR U.", a:0.7, c:28}, {n:"ISAK V.", a:0.8, c:28}, {n:"WILIAM B.", a:0.8, c:28}, {n:"EMRE B.", a:0.9, c:29}, {n:"MEHMET O.", a:0.8, c:29}, {n:"ANDRIJ B.", a:0.4, c:30}, {n:"BALAZS W.", a:0.7, c:31}, {n:"LEVENTE O.", a:0.8, c:31}, {n:"HARRY B.", a:0.9, c:32}, {n:"JAMES N.", a:0.9, c:32}, {n:"JACK O.", a:0.8, c:32}, {n:"MARCO B.", a:0.7, c:33}, {n:"FRANCO J.", a:0.7, c:33}, {n:"LUIGI A.", a:0.6, c:33}];
var playersArr = randomPlayers(gracze, 59);
function ustawTurniej(t) {
turniej = t;
turniej_arr = tournaments[t];
zawody_turnieju = 1;
}
var awans = false;
var firstRun = true;
var turniej;
var total_score = 0;
var pointsMemory = 0;
var qualified = false;
var turniej_arr;
var zawody_turnieju;
stop();
Frame 8
function showMenuScreen() {
graj_menu._visible = true;
menu._visible = true;
new mx.transitions.Tween(graj_menu, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 1, true);
new mx.transitions.Tween(menu, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 1, true);
menu.showStats();
}
function competitionPreview(c) {
graj_menu.zawody.gotoAndStop(c);
}
var id_zawodow = (turniej_arr[zawody_turnieju - 1].id + 1);
if ((firstRun == true) || (awans == true)) {
var statystyki = new Stats();
var mapa = new Menu_map(map.map);
var playersRank = new ScoreTable(rankingmistrzostw.tabela_kontener.tabela.numer, rankingmistrzostw.tabela_kontener.tabela.gracz, 23);
var id = setInterval(function () {
rankingmistrzostw.fillTable(playersRank);
showMenuScreen();
clearInterval(id);
}, 1600);
var playerObj = new Object({c:playerCountry, n:playerName, punkty:0});
firstRun = (awans = false);
} else {
rankingmistrzostw.tabela_kontener.tabela.numer._visible = (rankingmistrzostw.tabela_kontener.tabela.gracz._visible = false);
playersRank.plus(competionRank);
playersRank.sortTable();
var id = setInterval(function () {
playersRank.drawTable();
rankingmistrzostw.initInterface();
showMenuScreen();
clearInterval(id);
}, 1600);
}
competitionPreview(id_zawodow);
var id2 = setInterval(function () {
mapa.showLocalization(id_zawodow - 1);
clearInterval(id2);
}, 400);
var liczba_serii = turniej_arr[zawody_turnieju - 1].liczba_serii;
var dystans_start = turniej_arr[zawody_turnieju - 1].dystans_start;
var dystans_koniec = turniej_arr[zawody_turnieju - 1].dystans_koniec;
if (qualified) {
bg.gotoAndStop(2);
}
menu.graj.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
stop();
Frame 9
var rounds = [[{frame:1, shake_radius:3, shake_speed:0.35, shake_borders:0.5, maxwind:0.25, target_radius:14}, {frame:2, shake_radius:2.12, shake_speed:0.17, shake_borders:0.6, maxwind:0.1, target_radius:7.5}, {frame:3, shake_radius:1.4, shake_speed:0.1, shake_borders:0.7, maxwind:0.05, target_radius:4.5}], [{frame:1, shake_radius:3.12, shake_speed:0.44, shake_borders:0.5, maxwind:0.25, target_radius:14}, {frame:2, shake_radius:2.52, shake_speed:0.34, shake_borders:0.5, maxwind:0.1, target_radius:7.5}, {frame:3, shake_radius:2.12, shake_speed:0.24, shake_borders:0.5, maxwind:0.07, target_radius:4.5}], [{frame:1, shake_radius:3.12, shake_speed:0.44, shake_borders:0.5, maxwind:0.25, target_radius:14}, {frame:2, shake_radius:2.52, shake_speed:0.34, shake_borders:0.5, maxwind:0.1, target_radius:7.5}, {frame:3, shake_radius:2.12, shake_speed:0.24, shake_borders:0.5, maxwind:0.07, target_radius:4.5}], [{frame:1, shake_radius:3.12, shake_speed:0.44, shake_borders:0.5, maxwind:0.25, target_radius:14}, {frame:2, shake_radius:2.52, shake_speed:0.34, shake_borders:0.5, maxwind:0.1, target_radius:7.5}, {frame:3, shake_radius:2.12, shake_speed:0.24, shake_borders:0.5, maxwind:0.07, target_radius:4.5}], [{frame:1, shake_radius:3.12, shake_speed:0.44, shake_borders:0.5, maxwind:0.25, target_radius:14}, {frame:2, shake_radius:2.52, shake_speed:0.34, shake_borders:0.5, maxwind:0.1, target_radius:7.5}, {frame:3, shake_radius:2.12, shake_speed:0.24, shake_borders:0.5, maxwind:0.07, target_radius:4.5}], [{frame:1, shake_radius:3.12, shake_speed:0.44, shake_borders:0.5, maxwind:0.25, target_radius:14}, {frame:2, shake_radius:2.52, shake_speed:0.34, shake_borders:0.5, maxwind:0.1, target_radius:7.5}, {frame:3, shake_radius:2.12, shake_speed:0.24, shake_borders:0.5, maxwind:0.07, target_radius:4.5}], [{frame:1, shake_radius:3.12, shake_speed:0.44, shake_borders:0.5, maxwind:0.25, target_radius:14}, {frame:2, shake_radius:2.52, shake_speed:0.34, shake_borders:0.5, maxwind:0.1, target_radius:7.5}, {frame:3, shake_radius:2.12, shake_speed:0.24, shake_borders:0.5, maxwind:0.07, target_radius:4.5}], [{frame:1, shake_radius:3.12, shake_speed:0.44, shake_borders:0.5, maxwind:0.25, target_radius:14}, {frame:2, shake_radius:2.52, shake_speed:0.34, shake_borders:0.5, maxwind:0.1, target_radius:7.5}, {frame:3, shake_radius:2.12, shake_speed:0.24, shake_borders:0.5, maxwind:0.07, target_radius:4.5}], [{frame:1, shake_radius:3.12, shake_speed:0.44, shake_borders:0.5, maxwind:0.25, target_radius:14}, {frame:2, shake_radius:2.52, shake_speed:0.34, shake_borders:0.5, maxwind:0.1, target_radius:7.5}, {frame:3, shake_radius:2.12, shake_speed:0.24, shake_borders:0.5, maxwind:0.07, target_radius:4.5}], [{frame:1, shake_radius:3.12, shake_speed:0.44, shake_borders:0.5, maxwind:0.25, target_radius:14}, {frame:2, shake_radius:2.52, shake_speed:0.34, shake_borders:0.5, maxwind:0.1, target_radius:7.5}, {frame:3, shake_radius:2.12, shake_speed:0.24, shake_borders:0.5, maxwind:0.07, target_radius:4.5}], [{frame:1, shake_radius:3.12, shake_speed:0.44, shake_borders:0.5, maxwind:0.25, target_radius:14}, {frame:2, shake_radius:2.52, shake_speed:0.34, shake_borders:0.5, maxwind:0.1, target_radius:7.5}, {frame:3, shake_radius:2.12, shake_speed:0.24, shake_borders:0.5, maxwind:0.07, target_radius:4.5}], [{frame:1, shake_radius:3.12, shake_speed:0.44, shake_borders:0.5, maxwind:0.25, target_radius:14}, {frame:2, shake_radius:2.52, shake_speed:0.34, shake_borders:0.5, maxwind:0.1, target_radius:7.5}, {frame:3, shake_radius:2.12, shake_speed:0.24, shake_borders:0.5, maxwind:0.07, target_radius:4.5}]];
function init_trial(round) {
function grow_difficulty() {
var _local1 = shaking.__get__radius() * 1.1;
var _local2 = shaking.__get__speed() * 1.1;
var _local3 = 0.6;
shaking.change_prop(_local1, _local2, _local3);
queue++;
if (queue >= 6) {
clearInterval(growing_dif);
}
}
function shoot() {
active_control = false;
var target_radius = round.target_radius;
var max_shot_point = 10;
bow_ready = false;
var _local6 = (container._x - 105) + container.bow._x;
var _local8 = (container._y + 257) + container.bow._y;
view.animation._x = -(view._x - _local6);
view.animation._y = -(view._y - _local8);
container.bow.gotoAndPlay(2);
view.animation.anim.gotoAndPlay(2);
var oldX = view.animation._x;
var windmove = 0;
view.animation.anim.onEnterFrame = function () {
var _local4 = 1 - (this._currentframe / this._totalframes);
windmove = windmove + (_local4 * windstat.wind);
this._parent._x = oldX + windmove;
if (this._currentframe == this._totalframes) {
var _local6 = (oldX + windmove) - view.target._x;
var _local5 = this._parent._y - view.target._y;
var _local2;
var _local3 = distance(oldX + windmove, view.animation._y, view.target._x, view.target._y);
if (_local3 > target_radius) {
_local2 = 0;
} else {
_local2 = 1 + Math.floor(max_shot_point - ((_local3 / target_radius) * max_shot_point));
}
if (_local2 > 0) {
preview.mark_shot(_local6, _local5, target_radius, _local2);
}
count_points(_local2);
summaryScreen();
delete this.onEnterFrame;
}
};
var _local9 = new mx.transitions.Tween(view, "_rotation", mx.transitions.easing.Elastic.easeOut, 3, 0, 1, true);
displ.timeStop();
}
var weight = 10;
var _local4 = round.maxwind;
var _local3 = 1 - condition();
var shaking = new Shake(container.bow, round.shake_radius * _local3, round.shake_speed * _local3, true, round.shake_borders * _local3);
shaking.start(container.bow._x, container.bow._y);
view.animation.gotoAndStop(round.frame);
view.wall.gotoAndStop(round.frame);
view.target.gotoAndStop(round.frame);
windstat.newWind(_local4, _local4 / 30);
var bow_ready = true;
var active_control = true;
container._visible = true;
reset_bow();
displ.dystans.gotoAndStop(round.frame);
displ.timeStart();
var _local8 = ((serieNo * (targetDistance - 1)) + serie) / (targetDistanceNo * serieNo);
view.sceneria.niebo.gotoAndStop(Math.round(view.sceneria.niebo._totalframes * _local8));
var active = false;
var dif_x = (dot._x - ster._x);
var dif_y = (dot._y - ster._y);
var dif2_x = (ster._x - container._x);
var dif2_y = (ster._y - container._y);
container._x = container._x + ((Math.random() * 140) - 70);
container._y = container._y + ((Math.random() * 20) + 20);
contr.onEnterFrame = function () {
if (active_control == true) {
if (distance(_xmouse, _ymouse, this._x, this._y) < ((this._width / 2) - 3)) {
dot._x = _xmouse;
dot._y = _ymouse;
ster._x = dot._x - dif_x;
ster._y = dot._y - dif_y;
container._x = container._x + (((ster._x - dif2_x) - container._x) / weight);
container._y = container._y + (((ster._y - dif2_y) - container._y) / weight);
if (active == false) {
Mouse.hide();
active = true;
this.gotoAndPlay("in");
}
} else if (active == true) {
Mouse.show();
this.gotoAndPlay("out");
active = false;
}
} else {
Mouse.show();
delete this.onEnterFrame;
}
};
var _local16 = getTimer();
var queue = 1;
clearInterval(growing_dif);
var growing_dif = setInterval(grow_difficulty, 2000, queue);
var _local5 = new Object();
_local5.onMouseDown = function () {
if (distance(_xmouse, _ymouse, contr._x, contr._y) < ((contr._width / 2) - 3)) {
if (bow_ready == true) {
shoot();
}
}
};
Mouse.addListener(_local5);
}
function reset_bow() {
container.bow._x = 0;
container.bow._y = 0;
container._x = 574.9;
container._y = -20.05;
dot._x = contr._x;
dot._y = contr._y;
ster._x = 470;
ster._y = 237;
}
function count_points(pt) {
changeCondition(pt);
statystyki.addShot(pt);
lastShotScore = pt;
displ.add_points(pt, serie);
score_panel.add_points(pt, displ.timeleft);
}
var blurOn = (new flash.filters.BlurFilter(4, 4, 1));
var blurOff = (new flash.filters.BlurFilter(0, 0, 1));
function distance(x1, y1, x2, y2) {
return(Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1))));
}
function condition() {
return(1 - (1 / ((0.19 * conditionFnX) + 1)));
}
function changeCondition(p) {
if (p > 6) {
conditionFnX = conditionFnX + (((p / 10) - 0.7) / (4 - targetDistance));
} else {
conditionFnX = conditionFnX - (0.7 - (p / 10));
if (conditionFnX < 0) {
conditionFnX = 0;
}
}
exp.updateDiag();
}
function summaryScreen() {
allow_click = true;
view.filters = [blurOn];
new mx.transitions.Tween(contr, "_x", mx.transitions.easing.Regular.easeOut, 650, 750, 0.3, true);
new mx.transitions.Tween(windstat, "_x", mx.transitions.easing.Regular.easeOut, windstat_showX, windstat_hideX, 0.3, true);
dot._visible = false;
container._visible = false;
ranking.refreshScore(competitionPoints, lastShotScore);
serie++;
if (serie <= serieNo) {
new mx.transitions.Tween(menu, "_x", mx.transitions.easing.Regular.easeOut, 860, 650, 0.3, true);
menu.graj.onRelease = function () {
if (allow_click) {
allow_click = false;
menu.taknie._visible = false;
new mx.transitions.Tween(menu, "_x", mx.transitions.easing.Regular.easeOut, 650, 860, 0.5, true);
new mx.transitions.Tween(windstat, "_x", mx.transitions.easing.Regular.easeOut, windstat_hideX, windstat_showX, 0.5, true);
var _local1 = new mx.transitions.Tween(contr, "_x", mx.transitions.easing.Regular.easeOut, 750, 650, 0.5, true);
_local1.onMotionFinished = function () {
dot._visible = true;
view.filters = [blurOff];
init_trial(rounds[competition - 1][targetDistance - 1]);
};
}
};
} else {
roundFinished();
}
}
function roundFinished() {
allow_click = true;
serie = 1;
targetDistance++;
if (targetDistance <= targetDistanceNo) {
menu2.dystans.gotoAndStop(targetDistance);
new mx.transitions.Tween(menu2, "_x", mx.transitions.easing.Regular.easeOut, 860, 650, 0.3, true);
menu2.graj.onRelease = function () {
if (allow_click) {
allow_click = false;
new mx.transitions.Tween(menu2, "_x", mx.transitions.easing.Regular.easeOut, 650, 860, 0.5, true);
new mx.transitions.Tween(windstat, "_x", mx.transitions.easing.Regular.easeOut, windstat_hideX, windstat_showX, 0.5, true);
var _local1 = new mx.transitions.Tween(contr, "_x", mx.transitions.easing.Regular.easeOut, 750, 650, 0.5, true);
_local1.onMotionFinished = function () {
dot._visible = true;
view.filters = [blurOff];
displ.reset_boxes();
init_trial(rounds[competition - 1][targetDistance - 1]);
};
}
};
} else {
zawody_turnieju++;
competitionFinished();
}
}
function competitionFinished() {
allow_click = true;
statystyki.add2positionHistory(competionRank.getPlayerPosition(0));
new mx.transitions.Tween(menu3, "_x", mx.transitions.easing.Regular.easeOut, 860, 650, 0.5, true);
menu3.kolejne.onRelease = function () {
if (allow_click) {
allow_click = false;
competitionScores = ranking.stable;
if (zawody_turnieju <= turniej_arr.length) {
gotoAndPlay(_currentframe - 1);
} else if (qualified == false) {
gotoAndPlay(_currentframe + 1);
} else {
gotoAndPlay(_currentframe + 2);
}
}
};
}
var windstat_hideX = 850;
var windstat_showX = 380;
var zdobyles;
var competition = id_zawodow;
view.sceneria.gotoAndStop(competition);
displ.zawody.gotoAndStop(competition);
var serie = 0;
var serieNo = liczba_serii;
var targetDistance = dystans_start;
var targetDistanceNo = dystans_koniec;
view.wall.gotoAndStop(targetDistance);
view.target.gotoAndStop(targetDistance);
displ.dystans.gotoAndStop(targetDistance);
var curRound = 0;
var competitionPoints = 0;
var lastShotScore = 0;
var allow_click = true;
var competionRank = new ScoreTable(ranking.tabela_kontener.tabela.numer, ranking.tabela_kontener.tabela.gracz, 23);
ster._visible = false;
preview.init_previews();
summaryScreen();
stop();
Frame 10
pds.dalej_nap._visible = false;
pds.dalej._visible = false;
playersRank.plus(competionRank);
playersRank.sortTable();
var id = setInterval(function () {
playersRank.drawTable();
rankingmistrzostw.initInterface();
pds.dalej_nap._visible = true;
pds.dalej._visible = true;
clearInterval(id);
}, 1600);
stop();
Frame 11
function writeScore(s) {
komunikat.contentMC.scr.text = s;
komunikat.contentMC.scr.autoSize = true;
komunikat.contentMC.bg._width = komunikat.contentMC.scr._width + (Math.abs(komunikat.contentMC.bg._x - komunikat.contentMC.scr._x) * 2);
}
var comm;
if (qualified) {
komunikat.contentMC.gotoAndStop(1);
playersRank.sortTable();
comm = ("Congratulations! <b>" + playersRank.getPlayerRecord(0).playername) + "</b>. You have finished European Cup!";
var position = playersRank.getPlayerPosition(0);
if (position == 1) {
comm = comm + "<br><br><b>You've won a gold medal</b>!! Your country is pround of You.";
} else if (position == 2) {
comm = comm + "<br><br><b>You've won a silver medal</b>! Your country is pround of You.";
} else if (position == 3) {
comm = comm + "<br><br><b>You've won a bronze medal</b>! Your country is pround of You.";
} else {
comm = comm + (("<br><br>Twoja lokata to <b>" + position) + " miejsce</b>!");
}
writeScore(total_score);
} else {
comm = ("Congratulations <b>" + playersRank.getPlayerRecord(0).playername) + "</b>. You have finished Qualifying Tournament. Unfortunatelly Your score doesn't allow You to start in The European Cup.";
writeScore(total_score);
}
komunikat.contentMC.komentarz.htmlText = comm;
stop();
Frame 12
stop();
Symbol 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 2
stop();
Symbol 72 MovieClip Frame 1
stop();
var tagctr = (random(55) + 1);
gotoAndStop(tagctr);
Symbol 73 MovieClip Frame 105
stop();
Symbol 123 MovieClip Frame 1
_root.earl223 = function (val) {
var _local3 = new Array("_", "Z", "y", "x", "W", "v", "u", "T", "s", "r", "Q", "P", "O", "n", "m", "L", "K", "j", "i", "H", "g", "F", "e", "d", "C", "B", "a");
var _local2 = "";
val1 = 0;
while (val1 < val.length) {
if (val.substr(val1, 1) == ":") {
_local2 = _local2 + ":";
} else if (Number(val.substr(val1, 2)) > 26) {
_local2 = _local2 + _local3[Number(val.substr(val1, 1))];
} else if (Number(val.substr(val1, 1)) == 0) {
_local2 = _local2 + "_";
} else {
_local2 = _local2 + _local3[Number(val.substr(val1, 2))];
val1++;
}
val1++;
}
return(_local2);
};
Symbol 130 MovieClip Frame 1
stop();
Symbol 718 MovieClip [__Packages.Debug] Frame 0
class Debug
{
var _stage;
function Debug (stage) {
_stage = stage;
}
function showError(com) {
_stage.debuger.removeMovieClip();
var _local2 = _stage.attachMovie("debuger", "debuger", _stage.getNextHighestDepth(), {_x:40, _y:40});
_local2.message.autoSize = true;
_local2.message.htmlText = ("<b>" + com) + "</b>";
_local2.bg._width = _local2.message._width + 30;
_local2.bg._height = _local2.message._height + 8;
_local2.onRollOver = function () {
this.removeMovieClip();
};
}
}
Symbol 719 MovieClip [__Packages.Button_luk] Frame 0
class Button_luk
{
var maxSc, minSc;
function Button_luk (mc) {
maxSc = mc._xscale;
minSc = maxSc - 20;
mc._xscale = (mc._yscale = minSc);
var x_up = (new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Elastic.easeOut, minSc, maxSc, 0.6, true));
var y_up = (new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Elastic.easeOut, minSc, maxSc, 0.8, true));
var x_down = (new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Elastic.easeOut, maxSc, minSc, 0.6, true));
var y_down = (new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Elastic.easeOut, maxSc, minSc, 0.8, true));
mc.onRollOver = function () {
x_down.stop();
y_down.stop();
x_up.start();
y_up.start();
this.gotoAndPlay(2);
};
mc.onRollOut = (mc.onReleaseOutside = function () {
x_up.stop();
y_up.stop();
x_down.start();
y_down.start();
this.gotoAndPlay("out");
});
}
}
Symbol 720 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 721 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 722 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 723 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 724 MovieClip [__Packages.ScrollMC_OY] Frame 0
class ScrollMC_OY
{
var _scroller, _scrollingMC, _visibleH, _scrollH, _slowdown, _pct, _minY, _maxY, _minMCy, _maxMCy;
function ScrollMC_OY (scroller, scrollingMC, visibleH, scrollH, slowdown) {
_scroller = scroller;
_scrollingMC = scrollingMC;
_visibleH = visibleH;
_scrollH = scrollH;
_slowdown = slowdown;
_pct = 0;
initScroll();
}
function initScroll() {
if (_scrollingMC._height > _visibleH) {
_scroller._visible = true;
setScroll();
initInterface();
} else {
_scroller._visible = false;
}
}
function setScroll() {
_scrollingMC._y = 0;
_scroller.s_down._y = _scrollH;
_scroller.s_base._height = _scrollH;
_minY = Math.round((_scroller.s_bar._y = (_scroller.s_up._height + _margin) + (_scroller.s_bar._height / 2)));
_maxY = Math.round(((_scrollH - _scroller.s_down._height) - _margin) - (_scroller.s_bar._height / 2));
_minMCy = Math.round(_scrollingMC._y);
_maxMCy = Math.round(_scrollingMC._y - (_scrollingMC._height - _visibleH));
_scroller.s_bar._y = _minY;
}
function initInterface() {
var root = this;
_scroller.s_bar.onPress = function () {
this.startDrag(false, this._x, root._minY, this._x, root._maxY);
this.onEnterFrame = function () {
root.setPCT();
};
};
_scroller.s_bar.onRelease = (_scroller.s_bar.onReleaseOutside = function () {
this.stopDrag();
delete this.onEnterFrame;
});
_scroller.s_down.onPress = function () {
this.onEnterFrame = function () {
root._scroller.s_bar._y = root._scroller.s_bar._y + root._speed;
if (root._scroller.s_bar._y > root._maxY) {
root._scroller.s_bar._y = root._maxY;
root.setPCT();
delete this.onEnterFrame;
}
root.setPCT();
};
};
_scroller.s_up.onPress = function () {
this.onEnterFrame = function () {
root._scroller.s_bar._y = root._scroller.s_bar._y - root._speed;
if (root._scroller.s_bar._y < root._minY) {
root._scroller.s_bar._y = root._minY;
root.setPCT();
delete this.onEnterFrame;
}
root.setPCT();
};
};
_scroller.s_down.onRelease = (_scroller.s_down.onReleaseOutside = (_scroller.s_up.onRelease = (_scroller.s_up.onReleaseOutside = function () {
delete this.onEnterFrame;
})));
setMCposition();
}
function setPCT() {
_pct = Math.round(((_scroller.s_bar._y - _minY) / (_maxY - _minY)) * 100) / 100;
}
function setMCposition() {
var root = this;
var docY;
_scroller.onEnterFrame = function () {
if (root._slowdown > 0) {
docY = Math.round(root._pct * (root._maxMCy - root._minMCy));
root._scrollingMC._y = root._scrollingMC._y + ((docY - root._scrollingMC._y) / root._slowdown);
} else {
root._scrollingMC._y = root._pct * (root._maxMCy - root._minMCy);
}
if (Math.abs(root._scrollingMC._y - docY) < 0.5) {
root._scrollingMC._y = docY;
}
};
}
function setMCPosition(nY) {
var _local2 = nY / (_maxMCy - _minMCy);
if (_local2 > 1) {
_local2 = 1;
}
_pct = _local2;
_scroller.s_bar._y = _minY + (_local2 * (_maxY - _minY));
}
var _margin = 5;
var _speed = 10;
}
Symbol 725 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 726 MovieClip [__Packages.Menu_map] Frame 0
class Menu_map
{
var map, map_x, map_y, glowOn, glowOff, localizations, motionY, motionX, zoomX, zoomY;
function Menu_map (m) {
map = m;
map_x = map._x;
map_y = map._y;
map._xscale = (map._yscale = 100);
glowOn = new flash.filters.GlowFilter(26265, 0.8, 5, 5, 2, 2, false, false);
glowOff = new flash.filters.GlowFilter(26265, 0, 0, 0, 0, 0, false, false);
addLocalizations();
}
function addLocalizations() {
localizations = new Array();
var _local2 = 0;
while (map["l" + _local2]) {
localizations.push({x:map["l" + _local2]._x, y:map["l" + _local2]._y});
_local2++;
}
}
function showLocalization(no) {
delete motionY.onMotionFinished;
motionX.stop();
motionY.stop();
motionX = new mx.transitions.Tween(map, "_x", mx.transitions.easing.Regular.easeInOut, map_x, (maxScale / 100) * (-localizations[no].x), 1, true);
motionY = new mx.transitions.Tween(map, "_y", mx.transitions.easing.Regular.easeInOut, map_y, (maxScale / 100) * (-localizations[no].y), 1, true);
zoomX = new mx.transitions.Tween(map, "_xscale", mx.transitions.easing.Regular.easeInOut, map._xscale, maxScale, 1, true);
zoomY = new mx.transitions.Tween(map, "_yscale", mx.transitions.easing.Regular.easeInOut, map._yscale, maxScale, 1, true);
var m = map;
var f = glowOn;
var id = setInterval(function () {
clearInterval(id);
m.filters = [f];
}, 1100);
}
function reset() {
map._x = map_x;
map._y = map_y;
map._xscale = (map._yscale = 100);
}
var maxScale = 250;
}
Symbol 727 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 728 MovieClip [__Packages.Stats] Frame 0
class Stats
{
var shots, positionHistory;
function Stats () {
shots = new Array();
positionHistory = new Array();
}
function isNotEmpty() {
return(shots.length > 0);
}
function addShot(sh) {
shots.push(sh);
}
function shotsAverage() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < shots.length) {
_local3 = _local3 + shots[_local2];
_local2++;
}
return(Math.round(100 * (_local3 / shots.length)) / 100);
}
function hitAmount(hit) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < shots.length) {
if (shots[_local2] == hit) {
_local3++;
}
_local2++;
}
return(_local3);
}
function hitFrequency(hit) {
return(Math.round(100 * (hitAmount(hit) / shots.length)) / 100);
}
function add2positionHistory(p) {
positionHistory.push(p);
}
function getPositionHistory() {
return(positionHistory);
}
}
Symbol 729 MovieClip [__Packages.ScoreTable] Frame 0
class ScoreTable
{
var mcArr, scoresArr, _no_mc, _player_mc, _vert_space;
function ScoreTable (no_mc, player_mc, vert_space) {
mcArr = new Array();
scoresArr = new Array();
_no_mc = no_mc;
_player_mc = player_mc;
_vert_space = vert_space;
no_mc._visible = (player_mc._visible = false);
}
function addPlayer(plr) {
scoresArr.push({id:plr.id, country:plr.kraj, playername:plr.imie, points:plr.punkty, mc:undefined, abl:plr.umiejetnosci});
}
function getTableLength() {
return(scoresArr.length);
}
function drawTable(records) {
eraseTable();
if (!records) {
records = scoresArr.length;
}
var _local2 = 0;
while (_local2 < records) {
var _local4 = scoresArr[_local2];
var _local5 = duplicateMC(_no_mc, "no" + (_local2 + 1), _no_mc._y + (_local2 * _vert_space));
var _local3 = duplicateMC(_player_mc, "pl" + (_local2 + 1), _player_mc._y + (_local2 * _vert_space));
scoresArr[_local2].mc = _local3;
_local5.numer.text = _local2 + 1;
_local3.imie.text = _local4.playername;
_local3.punkty.text = _local4.points;
_local3.kraj.gotoAndStop(_local4.country);
_local3.id = _local4.id;
_local3.prof.text = _local4.abl;
_local3.pl_stat = true;
_local5.pl_stat = false;
mcArr.push(_local5, _local3);
_local2++;
}
}
function changePlayerPoints(id, points) {
var _local2 = 0;
while (_local2 < scoresArr.length) {
if (scoresArr[_local2].id == id) {
scoresArr[_local2].points = points;
_local2 = scoresArr.length;
}
_local2++;
}
}
function sortTable() {
scoresArr.sortOn(["points", "playername"], [Array.NUMERIC, Array.CASEINSENSITIVE]);
scoresArr.reverse();
}
function getPlayerRecord(id) {
var _local2 = 0;
while (_local2 < scoresArr.length) {
if (scoresArr[_local2].id == id) {
return(scoresArr[_local2]);
}
_local2++;
}
}
function getPlayerPoints(id) {
var _local2 = 0;
while (_local2 < scoresArr.length) {
if (scoresArr[_local2].id == id) {
return(scoresArr[_local2].points);
}
_local2++;
}
}
function getPlayerPosition(id) {
var _local3 = getPlayerRecord(id).points;
var _local2 = 0;
while (_local2 < scoresArr.length) {
if (scoresArr[_local2].points == _local3) {
return(_local2 + 1);
}
_local2++;
}
}
function eraseTable() {
var _local2 = 0;
while (_local2 < mcArr.length) {
mcArr[_local2].removeMovieClip();
_local2++;
}
mcArr = new Array();
}
function plus(stable) {
var _local2 = 0;
while (_local2 < stable.getTableLength()) {
changePlayerPoints(_local2, getPlayerPoints(_local2) + stable.getPlayerPoints(_local2));
_local2++;
}
}
function duplicateMC(mc, nw_name, y) {
var _local1 = mc.duplicateMovieClip(nw_name, mc._parent.getNextHighestDepth());
_local1._y = y;
return(_local1);
}
}
Symbol 730 MovieClip [__Packages.mx.transitions.easing.Back] Frame 0
class mx.transitions.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 731 MovieClip [__Packages.Shake] Frame 0
class Shake
{
var _mc, _radius, _speed, _softBorders, _center_x, _center_y;
function Shake (mc, radius, speed, softBorders, bt) {
_mc = mc;
_mc.root = this;
_radius = radius;
_speed = speed;
_softBorders = softBorders;
if (bt) {
_border_thickness = bt;
}
}
function start(xc, yc) {
_center_x = xc;
_center_y = yc;
newVector();
_mc.onEnterFrame = function () {
if (this.root._softBorders) {
this.root.scaleVector();
}
var _local3 = this.root._pos_x + (this.root._vector_x * this.root._vector_scale);
var _local2 = this.root._pos_y + (this.root._vector_y * this.root._vector_scale);
if (this.root.distanceToCenter(_local3, _local2) > this.root._radius) {
this.root.newVector();
} else {
this._x = this.root._center_x + _local3;
this._y = this.root._center_y + _local2;
this.root._pos_x = _local3;
this.root._pos_y = _local2;
}
};
}
function upload_center(xc, yc) {
_center_x = xc;
_center_y = yc;
_mc._x = _center_x + _pos_x;
_mc._y = _center_y + _pos_y;
}
function newVector() {
var _local6 = Math.round(Math.random() * 360);
var _local3 = degToRad(_local6);
var _local5 = _radius * Math.cos(_local3);
var _local4 = _radius * Math.sin(_local3);
if ((_vector_x == 0) && (_vector_y == 0)) {
_vector_x = _local5;
_vector_y = _local4;
} else {
_vector_x = _local5 - _vector_x;
_vector_y = _local4 - _vector_y;
}
var _local2 = Math.sqrt((_vector_x * _vector_x) + (_vector_y * _vector_y));
_vector_x = _vector_x * (_speed / _local2);
_vector_y = _vector_y * (_speed / _local2);
}
function scaleVector() {
_vector_scale = (1 + _border_thickness) - (distanceToCenter(_pos_x, _pos_y) / _radius);
}
function degToRad(d) {
return(d * (Math.PI/180));
}
function distanceToCenter(x, y) {
return(Math.sqrt((x * x) + (y * y)));
}
function get radius() {
return(_radius);
}
function get speed() {
return(_speed);
}
function change_prop(r, s, b) {
_radius = r;
_speed = s;
if (_softBorders == true) {
_border_thickness = b;
}
newVector();
}
var _vector_x = 0;
var _vector_y = 0;
var _pos_x = 0;
var _pos_y = 0;
var _vector_scale = 1;
var _border_thickness = 0.1;
}
Instance of Symbol 145 MovieClip "mcNotice" in Symbol 182 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 182 MovieClip Frame 120
stop();
if ((_url.indexOf("freeonlinegames.com") >= 0) && (_url.indexOf("file:") == -1)) {
_root.okToPlay = true;
_root.play();
} else if (_root.debug) {
_root.okToPlay = true;
_root.play();
} else {
_root.mcTaglines._visible = false;
mcNotice._visible = true;
}
Symbol 183 MovieClip Frame 71
stop();
var fogsound = new Sound();
fogsound.onSoundComplete = function () {
_root.okToPlay = true;
_root.play();
};
fogsound.attachSound("fogaudio");
fogsound.start(0, 1);
Symbol 191 MovieClip Frame 1
this.onRollOver = function () {
this.gotoAndPlay("over");
};
this.onRollOut = (this.onReleaseOutside = function () {
this.gotoAndPlay("out");
});
stop();
Symbol 191 MovieClip Frame 8
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
stop();
Symbol 238 MovieClip Frame 3
stop();
Symbol 238 MovieClip Frame 4
stop();
Symbol 238 MovieClip Frame 5
stop();
Symbol 238 MovieClip Frame 6
stop();
Symbol 238 MovieClip Frame 7
stop();
Symbol 238 MovieClip Frame 8
stop();
Symbol 238 MovieClip Frame 9
stop();
Symbol 238 MovieClip Frame 10
stop();
Symbol 238 MovieClip Frame 11
stop();
Symbol 238 MovieClip Frame 12
stop();
Symbol 238 MovieClip Frame 13
stop();
Symbol 238 MovieClip Frame 14
stop();
Symbol 238 MovieClip Frame 15
stop();
Symbol 238 MovieClip Frame 16
stop();
Symbol 238 MovieClip Frame 17
stop();
Symbol 238 MovieClip Frame 18
stop();
Symbol 238 MovieClip Frame 19
stop();
Symbol 238 MovieClip Frame 20
stop();
Symbol 238 MovieClip Frame 21
stop();
Symbol 238 MovieClip Frame 22
stop();
Symbol 238 MovieClip Frame 23
stop();
Symbol 238 MovieClip Frame 24
stop();
Symbol 238 MovieClip Frame 25
stop();
Symbol 238 MovieClip Frame 26
stop();
Symbol 238 MovieClip Frame 27
stop();
Symbol 238 MovieClip Frame 28
stop();
Symbol 238 MovieClip Frame 29
stop();
Symbol 238 MovieClip Frame 30
stop();
Symbol 238 MovieClip Frame 31
stop();
Symbol 238 MovieClip Frame 32
stop();
Symbol 238 MovieClip Frame 33
stop();
Symbol 243 MovieClip Frame 1
imie.onFocus;
up.onRelease = function () {
if ((kraj._currentframe - 1) >= 1) {
kraj.gotoAndStop(kraj._currentframe - 1);
} else {
kraj.gotoAndStop(kraj._totalframes);
}
kraj_stat.text = (kraj._currentframe + "/") + kraj._totalframes;
};
down.onRelease = function () {
if ((kraj._currentframe + 1) <= kraj._totalframes) {
kraj.gotoAndStop(kraj._currentframe + 1);
} else {
kraj.gotoAndStop(1);
}
kraj_stat.text = (kraj._currentframe + "/") + kraj._totalframes;
};
imie.onSetFocus = function (oldFocus) {
this.text = "";
};
Symbol 251 MovieClip Frame 63
stop();
Symbol 255 MovieClip Frame 1
function submitScore(php, xml, name, score, country) {
clearAll();
var _local4 = new LoadVars();
_local4.onLoad = function (success) {
if (success) {
if (this.stat == "1") {
_parent.komm.showComm(true);
} else {
_parent.komm.showComm(false);
}
loadTable(xml);
_parent.komunikat.activate();
} else {
dbg.text = "Blad polaczenia z serwerem...";
}
};
var _local3 = new LoadVars();
_local3.country = country;
_local3.name = name;
_local3.score = score;
_local3.sendAndLoad((php + "?") + getTimer(), _local4, "POST");
}
function loadTable(f) {
XML.prototype.ignoreWhite = true;
var _local6 = new XML();
_local6.load((f + "?") + getTimer());
_local6.onLoad = function (success) {
if (success) {
dbg.text = this;
dbg.autoSize = true;
var _local2 = this.firstChild.firstChild;
while (_local2) {
scoretable.push({name:_local2.attributes.name, country:_local2.attributes.country, score:_local2.attributes.score});
_local2 = _local2.nextSibling;
}
makeTable();
}
};
}
function makeTable() {
record._visible = false;
var _local1 = 0;
while (_local1 < scoretable.length) {
var _local2 = record.duplicateMovieClip("row" + _local1, _local1);
_local2._y = (record._height + 1) * _local1;
_local2.kraj.gotoAndStop(scoretable[_local1].country);
_local2.imie.htmlText = scoretable[_local1].name;
_local2.punkty.htmlText = scoretable[_local1].score;
_local2.no.htmlText = _local1 + 1;
_local1++;
}
pole.autoSize = true;
var _local3 = new ScrollMC_OY(scrollbar, tabela_kontener.tabela, scrollbar._height - 20, scrollbar._height, 4);
tabela_kontener.tabela.table_loader._visible = false;
}
function clearAll() {
scoretable = new Array();
for (i in record._parent) {
if (typeof(record._parent[i]) == "movieclip") {
if (record._parent[i]._name.substr(0, 3) == "row") {
record._parent[i].removeMovieClip();
}
}
}
}
var record = tabela_kontener.tabela.record;
var mc = tabela_kontener.tabela;
var scoretable = new Array();
Symbol 269 Button
on (press) {
sboard.dir = "up";
}
on (release) {
sboard.dir = "stop";
}
Symbol 270 Button
on (press) {
sboard.dir = "down";
}
on (release) {
sboard.dir = "stop";
}
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
Symbol 287 MovieClip [TMP6pbk6uzm9i] Frame 1
var arrScore = new Array();
mcScoreboard.sboard.dir = "stop";
mcScoreboard.sboard.mcScoreHolder.mcScore._visible = false;
mcLabel._visible = false;
var main = this;
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
if (success) {
myPlayer = xmlPlayer.firstChild.childNodes;
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = main.mcScoreboard.sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
main.mcScoreboard.mcLoading._visible = false;
main.mcScoreboard.sboard.mcScoreHolder.item = myPlayer.length;
main.mcScoreboard.sboard.mcScoreHolder.speedy = 0;
main.mcScoreboard.sboard.mcScoreHolder.desty = 0;
main.mcScoreboard.sboard.mcScoreHolder.onEnterFrame = function () {
if ((this.desty < 0) && (this._parent.dir == "up")) {
this.desty = this.desty + 10;
if (this.desty > 0) {
this.desty = 0;
}
}
if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) {
this.desty = this.desty - 10;
if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) {
this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item);
}
}
this.speedy = (this.desty - this._y) + (this.speedy * 0.4);
this._y = this._y + this.speedy;
};
}
};
xmlPlayer.load(((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + gameID) + "&rand=") + random(999999)) + "&filt=1");
Symbol 292 MovieClip [TMP6ojzjuzm8i] Frame 1
var arrScore = new Array();
mcScoreboard.sboard.dir = "stop";
mcScoreboard.sboard.mcScoreHolder.mcScore._visible = false;
mcLabel._visible = false;
var main = this;
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
if (success) {
myPlayer = xmlPlayer.firstChild.childNodes;
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = main.mcScoreboard.sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
main.mcScoreboard.mcLoading._visible = false;
main.mcScoreboard.sboard.mcScoreHolder.item = myPlayer.length;
main.mcScoreboard.sboard.mcScoreHolder.speedy = 0;
main.mcScoreboard.sboard.mcScoreHolder.desty = 0;
main.mcScoreboard.sboard.mcScoreHolder.onEnterFrame = function () {
if ((this.desty < 0) && (this._parent.dir == "up")) {
this.desty = this.desty + 10;
if (this.desty > 0) {
this.desty = 0;
}
}
if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) {
this.desty = this.desty - 10;
if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) {
this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item);
}
}
this.speedy = (this.desty - this._y) + (this.speedy * 0.4);
this._y = this._y + this.speedy;
};
}
};
xmlPlayer.load((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + _root.gameID) + "&rand=") + random(999999));
Symbol 298 MovieClip Frame 1
hs.onRelease = function () {
gotoAndPlay (2);
};
stop();
Symbol 298 MovieClip Frame 15
stop();
hd.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
stop();
Instance of Symbol 287 MovieClip [TMP6pbk6uzm9i] in Symbol 298 MovieClip Frame 15
//component parameters
onClipEvent (construct) {
gameID = 213;
}
Instance of Symbol 292 MovieClip [TMP6ojzjuzm8i] in Symbol 298 MovieClip Frame 15
//component parameters
onClipEvent (construct) {
gameID = 213;
}
Symbol 315 MovieClip Frame 1
this.onPress = function () {
this._visible = false;
};
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 2
stop();
Symbol 327 MovieClip Frame 3
stop();
Symbol 328 MovieClip Frame 1
dymek._visible = false;
this.onRollOver = function () {
_parent._parent.podglad["t" + this.id]._visible = true;
dymek.gotoAndStop(this.id);
dymek._visible = true;
};
this.onRollOut = (this.onReleaseOutside = function () {
_parent._parent.podglad["t" + this.id]._visible = false;
dymek._visible = false;
});
Symbol 329 MovieClip Frame 13
t1.onRelease = function () {
_parent._parent.ustawTurniej(0);
_parent.gotoAndPlay(_parent._currentframe + 1);
};
t2.onRelease = function () {
_parent._parent.ustawTurniej(1);
_parent.gotoAndPlay(_parent._currentframe + 1);
};
t3.onRelease = function () {
_parent._parent.ustawTurniej(2);
_parent.gotoAndPlay(_parent._currentframe + 1);
};
z1.id = 1;
z2.id = 2;
z3.id = 3;
stop();
Symbol 335 MovieClip Frame 1
t1._visible = (t2._visible = (t3._visible = false));
Symbol 336 MovieClip Frame 26
stop();
Symbol 336 MovieClip Frame 27
new mx.transitions.Tween(_parent.tabela_mistrzow, "_x", mx.transitions.easing.Strong.easeInOut, _parent.tabela_mistrzow._x, _parent.tabela_mistrzow._x + _parent.tabela_mistrzow._width, 0.6, true);
Symbol 336 MovieClip Frame 41
_parent.gotoAndPlay(_parent._currentframe + 1);
Symbol 342 MovieClip Frame 1
this.onRollOver = function () {
this.gotoAndPlay(2);
};
this.onRollOut = (this.onReleaseOutside = function () {
this.gotoAndPlay("out");
});
this.onRelease = function () {
_parent.credits.gotoAndPlay(2);
};
stop();
Symbol 342 MovieClip Frame 8
stop();
Symbol 362 MovieClip Frame 1
stop();
onRollOver = function () {
gotoAndPlay (2);
};
onRelease = function () {
getURL ("http://www.maciekgrzybowski.com/", "_blank");
};
Symbol 365 MovieClip Frame 1
this._visible = false;
stop();
Symbol 365 MovieClip Frame 2
cd.logo.gotoAndStop(cd.logo._totalframes);
this._visible = true;
Symbol 365 MovieClip Frame 10
cd.logo.gotoAndStop(cd.logo._totalframes);
bg.onRelease = function () {
gotoAndPlay(_currentframe + 1);
};
cd.fog.onRelease = function () {
getURL ("http://www.freeonlinegames.com/", "_blank");
};
stop();
Symbol 386 MovieClip Frame 1
stop();
Symbol 386 MovieClip Frame 2
stop();
Symbol 386 MovieClip Frame 3
stop();
Symbol 386 MovieClip Frame 4
stop();
Symbol 386 MovieClip Frame 5
stop();
Symbol 386 MovieClip Frame 6
stop();
Symbol 386 MovieClip Frame 7
stop();
Symbol 386 MovieClip Frame 8
stop();
Symbol 386 MovieClip Frame 9
stop();
Symbol 386 MovieClip Frame 10
stop();
Symbol 386 MovieClip Frame 11
stop();
Symbol 401 MovieClip Frame 1
function showStats() {
var _local4 = _parent.statystyki;
if (_local4.getPositionHistory().length > 0) {
var _local5;
if (_parent.qualified == false) {
if (_parent.playersRank.getPlayerPosition(0) <= _parent.qualifyLimit) {
_local5 = " - <b>allow you to start in European Cup!</b> Keep on trucking!";
} else {
_local5 = (" - <b>don't allow you to start in European Cup</b>. You have to be at least " + _parent.qualifyLimit) + "!";
}
} else if (_parent.playersRank.getPlayerPosition(0) == 1) {
_local5 = " - you are the leader in The European Cup! Keep on trucking!";
} else if (_parent.playersRank.getPlayerPosition(0) <= 3) {
_local5 = " - you've got chances for a medal in European Cup! Try to win gold!";
} else {
_local5 = " - try to be first! It's The European Cup!";
}
stats.htmlText = ((("Your position: <font color='#FF0000' size='12'><b>" + _parent.playersRank.getPlayerPosition(0)) + "</b></font><font color='#8C8C8C'>") + _local5) + "</font><br>";
} else {
stats.htmlText = "Your position: ...";
}
if (_local4.isNotEmpty()) {
stats.htmlText = stats.htmlText + ("Your places: " + _local4.getPositionHistory().join(", "));
} else {
stats.htmlText = stats.htmlText + "Your places: ...";
}
stats.htmlText = stats.htmlText + "";
if (_local4.isNotEmpty()) {
diagram.srednia.srednia.htmlText = ("average: <b>" + _local4.shotsAverage()) + "</b>";
diagram.srednia._x = 145 * (_local4.shotsAverage() / 10);
diagram.dymek._visible = false;
var _local3 = 0;
while (_local3 <= 10) {
diagram["w" + _local3]._height = _local4.hitFrequency(_local3) * 50;
diagram["w" + _local3].amount = _local4.hitAmount(_local3);
diagram["p" + _local3].gotoAndStop(_local3 + 1);
diagram["w" + _local3].onRollOver = function () {
diagram.dymek._visible = true;
diagram.dymek.no.text = this.amount;
diagram.dymek._x = this._x;
diagram.dymek._y = 0;
};
diagram["w" + _local3].onReleaseOutside = (diagram["w" + _local3].onRollOut = function () {
diagram.dymek._visible = false;
});
_local3++;
}
} else {
diagram.srednia.srednia.htmlText = "average: ...";
diagram.srednia._x = -2;
diagram.dymek._visible = false;
var _local3 = 0;
while (_local3 <= 10) {
diagram["w" + _local3]._height = 1;
diagram["p" + _local3].gotoAndStop(_local3 + 1);
_local3++;
}
}
}
imie.text = _parent.playerObj.n;
kraj.gotoAndPlay(_parent.playerObj.c);
this._visible = false;
taknie._visible = false;
shadow._visible = false;
koniec.onRelease = function () {
if (taknie._visible == false) {
taknie._visible = (shadow._visible = true);
} else {
taknie._visible = (shadow._visible = false);
}
};
taknie.tak.onRelease = function () {
_parent.gotoAndPlay(_parent._currentframe - 1);
};
taknie.nie.onRelease = function () {
taknie._visible = (shadow._visible = false);
};
jakgrac.onRelease = function () {
_parent.jakgrac.gotoAndPlay(2);
};
Symbol 413 MovieClip Frame 1
var dataArr = [{m:"Zurich", g:"8:00", w:"weak"}, {m:"Waarsaw", g:"13:10", w:"weak"}, {m:"Valletta", g:"12:00", w:"strong"}, {m:"Amsterdam", g:"7:20", w:"medium"}, {m:"Paris", g:"18:00", w:"medium"}, {m:"Madrit", g:"12:10", w:"medium"}, {m:"Naples", g:"13:30", w:"weak"}, {m:"Hanover", g:"7:30", w:"medium"}, {m:"Edinburgh", g:"7:30", w:"strong"}, {m:"Athens", g:"14:00", w:"weak"}, {m:"Stockholm", g:"18:00", w:"strong"}, {m:"Zambr\u00F3w", g:"8:15", w:"weak"}];
this._visible = false;
screen.gotoAndStop(_parent.id_zawodow);
var zaw = dataArr[_parent.id_zawodow - 1];
l1.htmlText = ("next competition: <b>" + zaw.m) + "</b>";
l2.htmlText = ("time: <b>" + zaw.g) + "</b>";
l3.styleSheet = style;
l3.htmlText = ("wind: <b>" + zaw.w) + "</b>";
var i = 1;
while (i <= 3) {
if (!((i >= _parent.dystans_start) && (i <= _parent.dystans_koniec))) {
this["d" + i]._alpha = 30;
} else {
this["d" + i]._alpha = 100;
}
i++;
}
var nzw = "";
switch (_parent.turniej + 1) {
case 1 :
nzw = "Middle European Tournament";
break;
case 2 :
nzw = "GP Of The Mediterranean Sea";
break;
case 3 :
nzw = "Baltic's Sea Tournament";
break;
case 4 :
nzw = "European Cup";
}
l0.htmlText = ((((("<b>" + nzw) + " (") + _parent.zawody_turnieju) + "/") + _parent.turniej_arr.length) + ")</b>";
stop();
Symbol 421 MovieClip Frame 4
stop();
Symbol 421 MovieClip Frame 7
stop();
Symbol 434 MovieClip Frame 1
this._visible = false;
delete this.onRelease;
stop();
Symbol 434 MovieClip Frame 2
this._visible = true;
this.bg.onRelease = function () {
gotoAndStop (1);
};
var scroller = new ScrollMC_OY(scrollbar, containerMC.contentMC, bg._height, bg._height - 5, 2);
stop();
Symbol 452 MovieClip Frame 1
this.onRollOver = function () {
this.useHandCursor = false;
this.gotoAndPlay("over");
};
this.onRollOut = (this.onReleaseOutside = function () {
this.gotoAndPlay("out");
});
stop();
Symbol 452 MovieClip Frame 5
stop();
Symbol 453 MovieClip Frame 2
if (this.id != 0) {
oznaczenie._visible = false;
}
Symbol 453 MovieClip Frame 8
stop();
Symbol 453 MovieClip Frame 15
stop();
Symbol 458 MovieClip Frame 1
function fillTable(stable) {
loader._visible = false;
stable.addPlayer({id:0, kraj:_parent.playerObj.c, imie:formatName(_parent.playerObj.n), punkty:0});
var _local3 = 0;
while (_local3 < _parent.playersArr.length) {
var _local2 = _parent.playersArr[_local3];
stable.addPlayer({id:_local2.id, kraj:_local2.c, imie:_local2.n, punkty:0, umiejetnosci:_local2.a});
_local3++;
}
stable.sortTable();
stable.drawTable();
pozatabela._visible = false;
var inId = setInterval(function () {
initInterface();
clearInterval(inId);
}, 500);
}
function formatName(n) {
if (n.length > 10) {
return(n.substr(0, 8) + "...");
}
return(n);
}
function initInterface() {
loader._visible = false;
var _local2 = new ScrollMC_OY(scrollbar, tabela_kontener.tabela, scrollbar._height - 5, scrollbar._height, 2);
var mc = this;
motion = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeOut, mc._x, 90, 1, true);
motion.onMotionFinished = function () {
this=new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeInOut, mc._x, -75, 0.5, true);//parameter overwritten
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeInOut, mc._x, -75, 0.5, true);
};
bg.onRollOver = function () {
motion.stop();
motion = new mx.transitions.Tween(this._parent, "_x", mx.transitions.easing.Regular.easeOut, this._parent._x, 90, 0.3, true);
};
bg.onRollOut = (bg.onReleaseOutside = function () {
if (_xmouse > 90) {
motion.stop();
motion = new mx.transitions.Tween(this._parent, "_x", mx.transitions.easing.Back.easeOut, this._parent._x, -75, 0.5, true);
}
});
}
var motion;
this._x = -120;
function refreshScore(score, lastshot) {
var _local4 = new Array();
stable.changePlayerPoints(0, score);
stable.getPlayerRecord(0).mc.trafienie.gotoAndStop(lastshot + 1);
_local4.push(lastshot);
var _local1 = 1;
while (stable.getPlayerRecord(_local1)) {
var _local2 = stable.getPlayerRecord(_local1);
var _local3 = randomShot(_local2.abl);
stable.changePlayerPoints(_local1, _local2.points + _local3);
_local4.push(_local3);
_local1++;
}
stable.sortTable();
stable.drawTable();
_local1 = 0;
while (_local1 < _local4.length) {
stable.getPlayerRecord(_local1).mc.trafienie.gotoAndStop(_local4[_local1] + 1);
_local1++;
}
ifFarPosition(stable, lastshot + 1);
}
function randomShot(abl) {
var _local9 = [[9, 7, 2, 2, 1, 1, 1, 1, 1, 1, 1], [5, 9, 7, 2, 2, 1, 1, 1, 1, 1, 1], [2, 5, 9, 7, 2, 2, 1, 1, 1, 1, 1], [1, 2, 5, 190, 7, 2, 2, 1, 1, 1, 1], [1, 1, 2, 5, 9, 7, 4, 3, 2, 1, 1], [0, 1, 1, 2, 5, 9, 7, 4, 3, 2, 1], [0, 0, 1, 1, 2, 5, 9, 7, 4, 3, 2], [0, 0, 0, 1, 1, 2, 5, 9, 7, 7, 3], [0, 0, 0, 0, 1, 1, 2, 5, 9, 8, 5], [0, 0, 0, 0, 0, 1, 1, 2, 4, 8, 5]];
var _local8 = _parent.targetDistance;
var _local4 = 0;
var _local6 = new Array();
var _local7 = _local9[abl * 10];
var _local3 = 0;
while (_local3 < _local7.length) {
_local4 = Math.round((Math.random() * (_local8 - 1)) + 1);
if (_local4 < 1) {
_local4 = 1;
}
var _local5 = _local7[_local3] * _local4;
var _local2 = 0;
while (_local2 < _local5) {
_local6.push(_local3);
_local2++;
}
_local3++;
}
return(_local6[Math.round(Math.random() * (_local6.length - 1))]);
}
Symbol 461 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 2
stop();
Symbol 483 MovieClip Frame 3
stop();
Symbol 483 MovieClip Frame 4
stop();
Symbol 483 MovieClip Frame 5
stop();
Symbol 483 MovieClip Frame 6
stop();
Symbol 483 MovieClip Frame 7
stop();
Symbol 483 MovieClip Frame 8
stop();
Symbol 483 MovieClip Frame 9
stop();
Symbol 483 MovieClip Frame 10
stop();
Symbol 483 MovieClip Frame 11
stop();
Symbol 483 MovieClip Frame 12
stop();
Symbol 487 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 2
stop();
Symbol 487 MovieClip Frame 3
stop();
Symbol 490 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 2
stop();
Symbol 490 MovieClip Frame 3
stop();
Symbol 494 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 2
stop();
Symbol 499 MovieClip Frame 3
stop();
Symbol 507 MovieClip Frame 1
stop();
Symbol 507 MovieClip Frame 2
stop();
Symbol 525 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 1
function newWind(_max, strength) {
clearDiag();
posX = 0;
xSpeed = 1;
wykres._x = defX;
max = _max;
wind = max - ((2 * max) * Math.random());
var step;
var dir;
bar._visible = (grot._visible = true);
var counter = 0;
onEnterFrame = function () {
counter++;
if (counter > interval) {
counter = 0;
step = Math.round((Math.random() * 2) - 1);
wind = wind + (step * strength);
dbg.text = wind;
if (wind < (-max)) {
wind = -max;
}
if (wind > max) {
wind = max;
}
bar._xscale = -100 * (wind / maxPossibleWind);
dir = bar._xscale / Math.abs(bar._xscale);
grot._xscale = (-dir) * 100;
grot._x = (-dir) * bar._width;
proc.text = Math.abs(Math.round(bar._xscale)) + "%";
markPoint((wind / maxPossibleWind) * amplitude);
}
};
}
function markPoint(y) {
if (posX == 0) {
wykres.lineStyle(1, 13238786, 100);
wykres.moveTo(0, 0);
} else {
wykres.lineTo(posX, y);
}
posX = posX + xSpeed;
wykres._x = wykres._x - xSpeed;
}
function clearDiag() {
wykres.clear();
delete onEnterFrame;
}
var maxPossibleWind = 0.25;
var max;
var amplitude = 10;
var wind;
var interval = 2;
var posX;
var xSpeed;
var defX = wykres._x;
bar._visible = (grot._visible = false);
Symbol 547 MovieClip Frame 1
function init_previews() {
marks = new Array();
}
function mark_shot(shot_x, shot_y, target_radius, points) {
var _local3 = 75;
var _local1 = mark_.duplicateMovieClip("mark" + marks.length, getNextHighestDepth());
var _local2 = _local3 / target_radius;
_local1._x = _local2 * shot_x;
_local1._y = _local2 * shot_y;
_local1.points.text = points;
var _local4 = new mx.transitions.Tween(_local1, "_xscale", mx.transitions.easing.Strong.easeOut, 300, 100, 0.5, true);
_local4 = new mx.transitions.Tween(_local1, "_yscale", mx.transitions.easing.Strong.easeOut, 300, 100, 0.5, true);
hide_all_others();
marks.push(_local1);
}
function hide_all_others() {
var _local2 = 30;
var _local1 = 0;
while (_local1 < marks.length) {
if (marks[_local1]._alpha != _local2) {
marks[_local1]._alpha = _local2;
}
_local1++;
}
}
mark_._visible = false;
var marks = new Array();
Symbol 555 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 2
stop();
Symbol 555 MovieClip Frame 3
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 2
stop();
Symbol 579 MovieClip Frame 3
stop();
Symbol 579 MovieClip Frame 4
stop();
Symbol 579 MovieClip Frame 5
stop();
Symbol 579 MovieClip Frame 6
stop();
Symbol 579 MovieClip Frame 7
stop();
Symbol 579 MovieClip Frame 8
stop();
Symbol 579 MovieClip Frame 9
stop();
Symbol 579 MovieClip Frame 10
stop();
Symbol 579 MovieClip Frame 11
stop();
Symbol 579 MovieClip Frame 12
stop();
Symbol 603 MovieClip Frame 1
stop();
Symbol 603 MovieClip Frame 2
stop();
Symbol 603 MovieClip Frame 3
stop();
Symbol 603 MovieClip Frame 4
stop();
Symbol 603 MovieClip Frame 5
stop();
Symbol 603 MovieClip Frame 6
stop();
Symbol 603 MovieClip Frame 7
stop();
Symbol 603 MovieClip Frame 8
stop();
Symbol 603 MovieClip Frame 9
stop();
Symbol 603 MovieClip Frame 10
stop();
Symbol 603 MovieClip Frame 11
stop();
Symbol 603 MovieClip Frame 12
stop();
Symbol 616 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 2
stop();
Symbol 616 MovieClip Frame 3
stop();
Symbol 616 MovieClip Frame 4
stop();
Symbol 616 MovieClip Frame 5
stop();
Symbol 616 MovieClip Frame 6
stop();
Symbol 616 MovieClip Frame 7
stop();
Symbol 616 MovieClip Frame 8
stop();
Symbol 616 MovieClip Frame 9
stop();
Symbol 616 MovieClip Frame 10
stop();
Symbol 616 MovieClip Frame 11
stop();
Symbol 617 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 2
pts.gotoAndStop(this.points + 1);
Symbol 618 MovieClip Frame 1
function timeStart() {
var st = getTimer();
timeleft = 0;
onEnterFrame = function () {
timeleft = (time_ * 1000) - (getTimer() - st);
czas.text = Math.round((timeleft / 1000) * 100) / 100;
if (timeleft <= 0) {
_parent.count_points(0);
_parent.summaryScreen();
czas.text = "0.00";
delete onEnterFrame;
}
};
}
function timeStop() {
delete onEnterFrame;
}
function add_points(points, ser) {
displ_pts.points = points;
displ_pts.gotoAndPlay(2);
_parent.competitionPoints = _parent.competitionPoints + points;
punkty.text = _parent.competitionPoints;
series["s" + ser].gotoAndStop(points + 2);
}
function reset_boxes() {
var _local2 = 1;
while (_local2 <= 10) {
if (_local2 <= _parent.serieNo) {
series["s" + _local2].gotoAndStop(1);
series["s" + _local2].unact._visible = false;
} else {
series["s" + _local2].gotoAndStop(1);
series["s" + _local2].unact._visible = true;
}
_local2++;
}
}
function reset_points() {
var _local1 = 1;
while (_local1 <= 10) {
series["s" + _local1].gotoAndStop(1);
_local1++;
}
punkty.text = "0";
}
var round_points = 0;
var time_ = 40;
var timeleft;
reset_boxes();
reset_points();
Symbol 630 MovieClip Frame 2
if (this.id != 0) {
oznaczenie._visible = false;
}
Symbol 630 MovieClip Frame 8
stop();
Symbol 630 MovieClip Frame 15
stop();
Symbol 631 MovieClip Frame 1
this.numer._visible = (this.gracz._visible = false);
Symbol 640 MovieClip Frame 1
function fillTable(stable) {
stable.addPlayer({id:0, kraj:_parent.playerObj.c, imie:formatName(_parent.playerObj.n), punkty:0});
var _local3 = 0;
while (_local3 < _parent.playersArr.length) {
var _local2 = _parent.playersArr[_local3];
stable.addPlayer({id:_local2.id, kraj:_local2.c, imie:_local2.n, punkty:0, umiejetnosci:_local2.a});
_local3++;
}
stable.sortTable();
stable.drawTable();
ifFarPosition(stable);
var inId = setInterval(function () {
pozatabela.gracz._visible = (pozatabela.numer._visible = true);
var _local1 = new ScrollMC_OY(scrollbar, tabela_kontener.tabela, scrollbar._height - 5, scrollbar._height, 4);
suwak.podepnijMC(tabela, 250);
clearInterval(inId);
}, 500);
}
function formatName(n) {
if (n.length > 10) {
return(n.substr(0, 8) + "...");
}
return(n);
}
function ifFarPosition(stable, trg) {
pozatabela._visible = false;
pozatabela.numer.numer.text = stable.getPlayerPosition(0);
pozatabela.gracz.imie.text = stable.getPlayerRecord(0).playername;
pozatabela.gracz.punkty.text = stable.getPlayerRecord(0).points;
pozatabela.gracz.kraj.gotoAndStop(stable.getPlayerRecord(0).country);
pozatabela._visible = true;
pozatabela.gracz.id = 0;
pozatabela.gracz.gotoAndPlay(1);
if (trg) {
pozatabela.gracz.trafienie.gotoAndStop(trg);
}
}
var stable = _parent.competionRank;
fillTable(stable);
function refreshScore(score, lastshot) {
var _local4 = new Array();
stable.changePlayerPoints(0, score);
stable.getPlayerRecord(0).mc.trafienie.gotoAndStop(lastshot + 1);
_local4.push(lastshot);
var _local1 = 1;
while (stable.getPlayerRecord(_local1)) {
var _local2 = stable.getPlayerRecord(_local1);
var _local3 = randomShot(_local2.abl);
stable.changePlayerPoints(_local1, _local2.points + _local3);
_local4.push(_local3);
_local1++;
}
stable.sortTable();
stable.drawTable();
_local1 = 0;
while (_local1 < _local4.length) {
stable.getPlayerRecord(_local1).mc.trafienie.gotoAndStop(_local4[_local1] + 1);
_local1++;
}
ifFarPosition(stable, lastshot + 1);
}
function randomShot(abl) {
var _local9 = [[9, 7, 2, 2, 1, 1, 1, 1, 1, 1, 1], [5, 9, 7, 2, 2, 1, 1, 1, 1, 1, 1], [2, 5, 9, 7, 2, 2, 1, 1, 1, 1, 1], [1, 2, 5, 190, 7, 2, 2, 1, 1, 1, 1], [1, 1, 2, 5, 9, 7, 4, 3, 2, 1, 1], [0, 1, 1, 2, 5, 9, 7, 4, 3, 2, 1], [0, 0, 1, 1, 2, 5, 9, 7, 4, 3, 2], [0, 0, 0, 1, 1, 2, 5, 9, 7, 7, 3], [0, 0, 0, 0, 1, 1, 2, 5, 9, 8, 5], [0, 0, 0, 0, 0, 1, 1, 2, 4, 8, 5]];
var _local8 = _parent.targetDistance;
var _local4 = 0;
var _local6 = new Array();
var _local7 = _local9[abl * 10];
var _local3 = 0;
while (_local3 < _local7.length) {
_local4 = Math.round((Math.random() * (_local8 - 1)) + 1);
if (_local4 < 1) {
_local4 = 1;
}
var _local5 = _local7[_local3] * _local4;
var _local2 = 0;
while (_local2 < _local5) {
_local6.push(_local3);
_local2++;
}
_local3++;
}
return(_local6[Math.round(Math.random() * (_local6.length - 1))]);
}
Symbol 644 MovieClip Frame 1
taknie._visible = false;
koniec.onRelease = function () {
if (taknie._visible == false) {
taknie._visible = true;
} else {
taknie._visible = false;
}
};
taknie.tak.onRelease = function () {
_parent.gotoAndPlay(_parent._currentframe - 2);
};
taknie.nie.onRelease = function () {
taknie._visible = false;
};
Symbol 653 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 2
stop();
Symbol 656 MovieClip Frame 1
function updateDiag() {
var _local4 = Math.floor(_parent.condition() * 10);
exp.autoSize = true;
exp.text = (Math.round(_parent.condition() * 1000) / 10) + "%";
exp._x = (g10._x + g10._width) - exp._width;
var _local3 = 1;
while (_local3 <= _local4) {
this["g" + _local3].gotoAndStop(2);
_local3++;
}
}
updateDiag();
Symbol 664 MovieClip Frame 1
this._visible = false;
stop();
Symbol 664 MovieClip Frame 2
this._visible = true;
Symbol 665 MovieClip Frame 1
function add_points(pt, t) {
var _local2 = Math.round(t / 100) / 100;
var _local3 = pt * _local2;
_parent.total_score = _parent.total_score + _local3;
pts.text = _parent.total_score;
bonusPanel.trafienie.gotoAndStop(pt + 1);
bonusPanel.bonus.text = _local2;
bonusPanel.gotoAndPlay(2);
}
pts.text = _parent.total_score;
Symbol 675 MovieClip Frame 1
function showStats() {
var _local4 = _parent.statystyki;
stats.htmlText = ("Your place: <b>" + _parent.playersRank.getPlayerPosition(0)) + "</b><br><br>";
if (_parent.awans) {
stats.htmlText = stats.htmlText + (("Your place in qualifying tournament: " + _parent.qualifyLimit) + ". This score <b>allows you to start in European Cup<b>! <b><font color='#009900'>:)</font></b>");
} else {
stats.htmlText = stats.htmlText + (("Your place: " + _parent.qualifyLimit) + " <b>doesn't allow you to start in European Cup</b>. <b><font color='#FF0000'>:(</font></b>");
}
if (_local4.isNotEmpty()) {
diagram.srednia.srednia.htmlText = ("average: <b>" + _local4.shotsAverage()) + "</b>";
diagram.srednia._x = 145 * (_local4.shotsAverage() / 10);
diagram.dymek._visible = false;
var _local3 = 0;
while (_local3 <= 10) {
diagram["w" + _local3]._height = _local4.hitFrequency(_local3) * 50;
diagram["w" + _local3].amount = _local4.hitAmount(_local3);
diagram["p" + _local3].gotoAndStop(_local3 + 1);
diagram["w" + _local3].onRollOver = function () {
diagram.dymek._visible = true;
diagram.dymek.no.text = this.amount;
diagram.dymek._x = this._x;
diagram.dymek._y = 0;
};
diagram["w" + _local3].onReleaseOutside = (diagram["w" + _local3].onRollOut = function () {
diagram.dymek._visible = false;
});
_local3++;
}
} else {
diagram.srednia.srednia.htmlText = "average: ...";
diagram.srednia._x = -2;
diagram.dymek._visible = false;
var _local3 = 0;
while (_local3 <= 10) {
diagram["w" + _local3]._height = 1;
diagram["p" + _local3].gotoAndStop(_local3 + 1);
_local3++;
}
}
}
function writeButton() {
dalej.onRelease = function () {
if (_parent.awans) {
_parent.ustawTurniej(3);
_parent.gotoAndPlay(_parent._currentframe + 2);
} else {
_parent.gotoAndPlay(_parent._currentframe + 1);
}
};
}
if (_parent.playersRank.getPlayerPosition(0) <= _parent.qualifyLimit) {
_parent.qualified = true;
_parent.awans = true;
} else {
_parent.awans = false;
}
imie.text = _parent.playerObj.n;
kraj.gotoAndStop(_parent.playerObj.c);
showStats();
writeButton();
Symbol 683 MovieClip [TMPd4lzhusf84] Frame 1
function earl223(val) {
var _local3 = new Array("_", "Z", "y", "x", "W", "v", "u", "T", "s", "r", "Q", "P", "O", "n", "m", "L", "K", "j", "i", "H", "g", "F", "e", "d", "C", "B", "a");
var _local2 = "";
val1 = 0;
while (val1 < val.length) {
if (val.substr(val1, 1) == ":") {
_local2 = _local2 + ":";
} else if (Number(val.substr(val1, 2)) > 26) {
_local2 = _local2 + _local3[Number(val.substr(val1, 1))];
} else if (Number(val.substr(val1, 1)) == 0) {
_local2 = _local2 + "_";
} else {
_local2 = _local2 + _local3[Number(val.substr(val1, 2))];
val1++;
}
val1++;
}
return(_local2);
}
mcButtonMain.mcButton.FOG.swapDepths(0);
mcButtonMain.mcButton.attachMovie(btnMC, "btnMC", 0);
mcButtonMain.mcButton.btnMC.onRelease = function () {
var _local2 = new LoadVars();
_local2.onLoad = function () {
getURL ("http://www.freeonlinegames.com/scoreboard.php?", "_blank");
};
_local2.score = Score;
_local2.score2 = earl223(String(Score));
_local2.gamer = gameID;
_local2.id = random(9999999);
_local2.toString();
_local2.sendAndLoad("http://www.freeonlinegames.com/scoreboard/score_c.php", _local2, "POST");
delete this.onRelease;
};
Symbol 693 MovieClip Frame 1
stop();
Symbol 693 MovieClip Frame 2
stop();
Symbol 694 MovieClip Frame 1
function activate() {
dalej_nap._visible = true;
dalej._visible = true;
dalej.onRelease = function () {
_parent.gotoAndPlay(_parent._currentframe - 4);
};
}
mcSubmitScore.Score = _parent.total_score;
dalej_nap._visible = false;
dalej._visible = false;
Instance of Symbol 683 MovieClip [TMPd4lzhusf84] "mcSubmitScore" in Symbol 694 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
btnMC = "submit_score_btn";
gameID = 0;
}
Symbol 697 MovieClip Frame 1
function showComm(is) {
this._visible = true;
komm.htmlText = "<b>INFORMATION:</b>";
this.onPress = function () {
this._visible = false;
};
komm.htmlText = komm.htmlText + (("<li> Your <b>EXP</b> is <b>" + (Math.round(_parent.condition() * 1000) / 10)) + "%</b>! Use it! <b>Playing again you'll have more chances to win.</b>.</li>");
}
this._visible = false;
Symbol 705 MovieClip Frame 70
stop();
Symbol 717 MovieClip Frame 293
_parent.gotoAndPlay(_parent._currentframe - 4);
stop();