Frame 1
mochi.as2.MochiServices.connect("92841655ffb9dadb");
_root.attachMovie("adBox", "adBox", 151, {_x:170, _y:20});
var CPMStarContentSpotID = "919Q5AE3079C";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
_root.createEmptyMovieClip("radar2", 60);
_root.radar2.lineStyle(2, 3947580, 100);
k = 0;
while (k < 134) {
_root.radar2.moveTo(65 + ((k * 6) * 0.64), 283);
_root.radar2.lineTo(65 + ((k * 6) * 0.64), 293);
k++;
}
_root.createEmptyMovieClip("radar3", 64);
_root.radar3.lineStyle(2, 0, 100);
_root.radar3.moveTo(64, 285);
_root.radar3.lineTo(577, 285);
_root.radar3.moveTo(64, 291);
_root.radar3.lineTo(577, 291);
_root.createTextField("all4", 63, 288, 330, 100, 50);
all4.textColor = 16776960 /* 0xFFFF00 */;
nkadr = 0;
_root.onEnterFrame = function () {
nkadr = nkadr + 1;
all1 = _root.getBytesTotal();
all2 = _root.getBytesLoaded();
_root.attachMovie("parK", "po1_0", 252, {_x:64 + (((all2 * 800) * 0.64) / all1), _y:288});
all3 = Math.floor((all2 * 100) / all1);
all4.text = ("LOADING " + all3) + "%";
all4.setTextFormat(lineStyle);
if (all1 == all2) {
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
all4.removeTextField();
if (nkadr >= 150) {
_root.attachMovie("kn_start0", "start01", 251, {_x:320, _y:330});
}
}
start01.onPress = function () {
removeMovieClip("radar2");
removeMovieClip("radar3");
removeMovieClip("po1_0");
removeMovieClip("start01");
removeMovieClip("adBox");
gotoAndPlay (4);
};
};
stop();
Frame 4
nkadra = 0;
_root.createEmptyMovieClip("qq1", 200);
_root.qq1.lineStyle(2, 0, 100);
_root.qq1.beginFill(0, 100);
_root.qq1.moveTo(0, 0);
_root.qq1.lineTo(640, 0);
_root.qq1.lineTo(640, 480);
_root.qq1.lineTo(0, 480);
_root.qq1.lineTo(0, 0);
_root.qq1.endFill();
_root.attachMovie("lightning", "lightning1", 251, {_x:323, _y:193});
_root.attachMovie("title", "title1", 252, {_x:320, _y:150});
_root.onEnterFrame = function () {
nkadra = nkadra + 1;
if (nkadra == 100) {
removeMovieClip("lightning1");
removeMovieClip("title1");
removeMovieClip("qq1");
nkadra = 0;
gotoAndPlay (5);
}
lightning1.onPress = function () {
spons_link2();
};
title1.onPress = function () {
spons_link2();
};
};
stop();
Frame 5
function pereslin(x1_1, y1_1, x1_2, y1_2, x2_1, y2_1, x2_2, y2_2) {
k1_ = (y1_2 - y1_1) / (x1_2 - x1_1);
b1_ = y1_1 - (k1_ * x1_1);
k2_ = (y2_2 - y2_1) / (x2_2 - x2_1);
b2_ = y2_1 - (k2_ * x2_1);
if (k1_ != k2_) {
xperes = (b2_ - b1_) / (k1_ - k2_);
yperes = (k1_ * xperes) + b1_;
if ((xperes > x1_1) && (xperes < x1_2)) {
if ((xperes <= x2_2) && (xperes >= x2_1)) {
perlin = 1;
}
}
} else if (b2_ == b1_) {
if (((x1_2 > x2_1) && (x2_1 > x1_1)) || ((x2_2 > x1_1) && (x1_1 > x2_1))) {
perlin = 1;
}
if (((x1_2 > x2_2) && (x2_1 > x1_1)) || ((x2_2 > x1_2) && (x1_1 > x2_1))) {
perlin = 1;
}
}
}
function strelka(mcSTR, NN) {
if (qwclics < 3500) {
qwclics = qwclics + 1;
}
if (masST0[NN] == 0) {
if (gromkost == 1) {
klik.start(0, 1);
}
aaa = masSTou1[NN];
masSTou1[NN] = masSTou2[NN];
masSTou2[NN] = aaa;
aaa = masSTous1[NN];
masSTous1[NN] = masSTous2[NN];
masSTous2[NN] = aaa;
if (masSTtip[NN] == 0) {
mcSTR._rotation = masSTa2[NN];
masSTtip[NN] = 1;
} else {
mcSTR._rotation = masSTa[NN];
masSTtip[NN] = 0;
}
}
}
function LLL() {
if (gromkost == 1) {
Sprir.start(0, 1000);
}
masLxp = new Array(masLtyp.length);
masLyp = new Array(masLtyp.length);
masL0 = new Array(masLtyp.length);
masLa = new Array(masLtyp.length);
masLdx = new Array(masLtyp.length);
masLdy = new Array(masLtyp.length);
masLlx = new Array(masLtyp.length);
masLly = new Array(masLtyp.length);
i = 0;
while (i < masLtyp.length) {
if (masLtyp[i] == -1) {
masLxp[i] = masSTx[masL1[i]];
masLyp[i] = masSTy[masL1[i]];
masL0[i] = masL2[i];
}
if (masLtyp[i] == 1) {
masLxp[i] = masSTx[masL2[i]];
masLyp[i] = masSTy[masL2[i]];
masL0[i] = masL1[i];
}
if (masLtyp[i] > 1) {
masLxp[i] = 0;
masLyp[i] = 0;
masL0[i] = 0;
}
masLa[i] = radgr * Math.atan((masSTy[masL2[i]] - masSTy[masL1[i]]) / (masSTx[masL2[i]] - masSTx[masL1[i]]));
masLdx[i] = 6.4 * Math.cos(masLa[i] / radgr);
masLdy[i] = 6.4 * Math.sin(masLa[i] / radgr);
masLlx[i] = 7.5 * masLdx[i];
masLly[i] = (masLtyp[i] * 7.5) * masLdy[i];
i++;
}
}
function STSTST() {
j = 0;
while (j < masSTx.length) {
if ((masSTx[j] > 0) && (masSTx[j] < 1000)) {
jj = j;
}
j++;
}
jj = jj + 1;
masST0 = new Array(jj);
masSTtip = new Array(jj);
masSTgt = new Array(jj);
masSTin = new Array(jj);
masSTain = new Array(jj);
masSTa = new Array(jj);
masSTa2 = new Array(jj);
masSTou1 = new Array(jj);
masSTou2 = new Array(jj);
masSTins = new Array(jj);
masSTous1 = new Array(jj);
masSTous2 = new Array(jj);
i = 0;
while (i < masST0.length) {
masST0[i] = 0;
masSTtip[i] = 0;
a1 = -1000;
a2 = -1000;
b1 = -1000;
b2 = -1000;
j = 0;
while (j < masLtyp.length) {
if ((masL1[j] == i) && (a1 == -1000)) {
a1 = j;
} else if ((masL1[j] == i) && (a1 != -1000)) {
a2 = j;
}
if ((masL2[j] == i) && (b1 == -1000)) {
b1 = j;
} else if ((masL2[j] == i) && (b1 != -1000)) {
b2 = j;
}
j++;
}
if ((a1 != -1000) && (a2 != -1000)) {
masSTgt[i] = 1;
masSTin[i] = b1;
masSTain[i] = masLa[b1];
masSTa[i] = masLa[a1];
masSTa2[i] = masLa[a2];
masSTou1[i] = a1;
masSTou2[i] = a2;
masSTins[i] = masL1[b1];
masSTous1[i] = masL2[a1];
masSTous2[i] = masL2[a2];
if (masLtyp[a1] == 0) {
masSTous1[i] = -2;
}
if (masLtyp[a2] == 0) {
masSTous2[i] = -2;
}
if ((masLtyp[a1] == -1) || (masLtyp[a1] == 1)) {
masSTous1[i] = -1;
}
if ((masLtyp[a2] == -1) || (masLtyp[a2] == 1)) {
masSTous2[i] = -1;
}
if ((masLtyp[b1] == -1) || (masLtyp[b1] == 1)) {
masSTins[i] = -1;
}
} else {
masSTgt[i] = -1;
masSTin[i] = a1;
masSTain[i] = masLa[a1] + 180;
masSTa[i] = masLa[b1] + 180;
masSTa2[i] = masLa[b2] + 180;
masSTou1[i] = b1;
masSTou2[i] = b2;
masSTins[i] = masL2[a1];
masSTous1[i] = masL1[b1];
masSTous2[i] = masL1[b2];
if (masLtyp[b1] == 0) {
masSTous1[i] = -2;
}
if (masLtyp[b2] == 0) {
masSTous2[i] = -2;
}
if ((masLtyp[b1] == -1) || (masLtyp[b1] == 1)) {
masSTous1[i] = -1;
}
if ((masLtyp[b2] == -1) || (masLtyp[b2] == 1)) {
masSTous2[i] = -1;
}
if ((masLtyp[a1] == -1) || (masLtyp[a1] == 1)) {
masSTins[i] = -1;
}
}
i++;
}
}
function massPOEZDA1(naprP, vP, Ncely, Nishod, Nstr, kolvoVag) {
removeMovieClip("napi1po");
n1 = naprP;
v1 = vP;
Set("\u0441P1x", masLxp[Ncely]);
Set("\u0441P1y", masLyp[Ncely]);
masPO1nl = new Array(kolvoVag);
masPO1x = new Array(kolvoVag);
masPO1y = new Array(kolvoVag);
masPO1ns = new Array(kolvoVag);
masPO1dx = new Array(kolvoVag);
masPO1dy = new Array(kolvoVag);
masPO1a = new Array(kolvoVag);
j = 0;
while (j < kolvoVag) {
masPO1nl[j] = Nishod;
masPO1x[j] = masLxp[Nishod] - ((j * n1) * masLlx[Nishod]);
masPO1y[j] = masLyp[Nishod] + (j * masLly[Nishod]);
masPO1ns[j] = Nstr;
masPO1dx[j] = v1 * masLdx[Nishod];
masPO1dy[j] = v1 * masLdy[Nishod];
masPO1a[j] = masLa[Nishod];
j++;
}
}
function massPOEZDA2(naprP2, vP2, Ncely2, Nishod2, Nstr2, kolvoVag2) {
removeMovieClip("napi2po");
n2 = naprP2;
v2 = vP2;
Set("\u0441P2x", masLxp[Ncely2]);
Set("\u0441P2y", masLyp[Ncely2]);
masPO2nl = new Array(kolvoVag2);
masPO2x = new Array(kolvoVag2);
masPO2y = new Array(kolvoVag2);
masPO2ns = new Array(kolvoVag2);
masPO2dx = new Array(kolvoVag2);
masPO2dy = new Array(kolvoVag2);
masPO2a = new Array(kolvoVag2);
j = 0;
while (j < kolvoVag2) {
masPO2nl[j] = Nishod2;
masPO2x[j] = masLxp[Nishod2] - ((j * n2) * masLlx[Nishod2]);
masPO2y[j] = masLyp[Nishod2] + (j * masLly[Nishod2]);
masPO2ns[j] = Nstr2;
masPO2dx[j] = v2 * masLdx[Nishod2];
masPO2dy[j] = v2 * masLdy[Nishod2];
masPO2a[j] = masLa[Nishod2];
j++;
}
}
function massPOEZDA3(naprP3, vP3, Ncely3, Nishod3, Nstr3, kolvoVag3) {
removeMovieClip("napi3po");
n3 = naprP3;
v3 = vP3;
Set("\u0441P3x", masLxp[Ncely3]);
Set("\u0441P3y", masLyp[Ncely3]);
masPO3nl = new Array(kolvoVag3);
masPO3x = new Array(kolvoVag3);
masPO3y = new Array(kolvoVag3);
masPO3ns = new Array(kolvoVag3);
masPO3dx = new Array(kolvoVag3);
masPO3dy = new Array(kolvoVag3);
masPO3a = new Array(kolvoVag3);
j = 0;
while (j < kolvoVag3) {
masPO3nl[j] = Nishod3;
masPO3x[j] = masLxp[Nishod3] - ((j * n3) * masLlx[Nishod3]);
masPO3y[j] = masLyp[Nishod3] + (j * masLly[Nishod3]);
masPO3ns[j] = Nstr3;
masPO3dx[j] = v3 * masLdx[Nishod3];
masPO3dy[j] = v3 * masLdy[Nishod3];
masPO3a[j] = masLa[Nishod3];
j++;
}
}
function massPOEZDA4(naprP4, vP4, Ncely4, Nishod4, Nstr4, kolvoVag4) {
removeMovieClip("napi4po");
n4 = naprP4;
v4 = vP4;
Set("\u0441P4x", masLxp[Ncely4]);
Set("\u0441P4y", masLyp[Ncely4]);
masPO4nl = new Array(kolvoVag4);
masPO4x = new Array(kolvoVag4);
masPO4y = new Array(kolvoVag4);
masPO4ns = new Array(kolvoVag4);
masPO4dx = new Array(kolvoVag4);
masPO4dy = new Array(kolvoVag4);
masPO4a = new Array(kolvoVag4);
j = 0;
while (j < kolvoVag4) {
masPO4nl[j] = Nishod4;
masPO4x[j] = masLxp[Nishod4] - ((j * n4) * masLlx[Nishod4]);
masPO4y[j] = masLyp[Nishod4] + (j * masLly[Nishod4]);
masPO4ns[j] = Nstr4;
masPO4dx[j] = v4 * masLdx[Nishod4];
masPO4dy[j] = v4 * masLdy[Nishod4];
masPO4a[j] = masLa[Nishod4];
j++;
}
}
function VIZOVp(iii) {
iiin = Mnp[iii];
iiiv = Mvp[iii];
iiicPx = Mcp[iii];
iiimasPOn1 = Mstp[iii];
iiimasPOns = masL0[Mstp[iii]];
iiikvo = Mkvo[iii];
if (McvP[iii] == 1) {
massPOEZDA1(iiin, iiiv, iiicPx, iiimasPOn1, iiimasPOns, iiikvo);
if (gromkost == 1) {
Schuh1.start(0, 10);
}
}
if (McvP[iii] == 2) {
massPOEZDA2(iiin, iiiv, iiicPx, iiimasPOn1, iiimasPOns, iiikvo);
if (gromkost == 1) {
Schuh2.start(0, 10);
}
}
if (McvP[iii] == 3) {
massPOEZDA3(iiin, iiiv, iiicPx, iiimasPOn1, iiimasPOns, iiikvo);
if (gromkost == 1) {
Schuh3.start(0, 10);
}
}
if (McvP[iii] == 4) {
massPOEZDA4(iiin, iiiv, iiicPx, iiimasPOn1, iiimasPOns, iiikvo);
if (gromkost == 1) {
Schuh4.start(0, 10);
}
}
}
function NAPRp(iii) {
if (Mnp[iii] == 1) {
if (gromkost == 1) {
SinL.start(0, 1);
}
xii1 = 16;
yii1 = (masLyp[Mstp[iii]] + ((xii1 - masLxp[Mstp[iii]]) * Math.tan(0.0174532925 * masLa[Mstp[iii]]))) - 6.4;
aii1 = masLa[Mstp[iii]];
xii2 = 621;
yii2 = (masLyp[Mcp[iii]] - ((masLxp[Mcp[iii]] - xii2) * Math.tan(0.0174532925 * masLa[Mcp[iii]]))) + 6.4;
aii2 = masLa[Mcp[iii]];
} else {
if (gromkost == 1) {
SinR.start(0, 1);
}
xii1 = 621;
yii1 = (masLyp[Mstp[iii]] - ((masLxp[Mstp[iii]] - xii1) * Math.tan(0.0174532925 * masLa[Mstp[iii]]))) - 6.4;
aii1 = masLa[Mstp[iii]] + 180;
xii2 = 16;
yii2 = (masLyp[Mcp[iii]] + ((xii2 - masLxp[Mcp[iii]]) * Math.tan(0.0174532925 * masLa[Mcp[iii]]))) + 6.4;
aii2 = masLa[Mcp[iii]] + 180;
}
if (McvP[iii] == 1) {
_root.attachMovie("napr1K", "napi1poC", 189, {_x:xii2, _y:yii2, _xscale:64, _yscale:64, _rotation:aii2});
_root.attachMovie("napr1K", "napi1po", 190, {_x:xii1, _y:yii1, _xscale:64, _yscale:64, _rotation:aii1});
}
if (McvP[iii] == 2) {
_root.attachMovie("napr2K", "napi2poC", 183, {_x:xii2 + 6.4, _y:yii2 + 3.84, _xscale:64, _yscale:64, _rotation:aii2});
_root.attachMovie("napr2K", "napi2po", 184, {_x:xii1 + 6.4, _y:yii1 + 3.84, _xscale:64, _yscale:64, _rotation:aii1});
}
if (McvP[iii] == 3) {
_root.attachMovie("napr3K", "napi3poC", 185, {_x:xii2 + 9.6, _y:yii2 + 2.56, _xscale:64, _yscale:64, _rotation:aii2});
_root.attachMovie("napr3K", "napi3po", 186, {_x:xii1 + 9.6, _y:yii1 + 2.56, _xscale:64, _yscale:64, _rotation:aii1});
}
if (McvP[iii] == 4) {
_root.attachMovie("napr4K", "napi4poC", 187, {_x:xii2 + 3.2, _y:yii2 + 1.28, _xscale:64, _yscale:64, _rotation:aii2});
_root.attachMovie("napr4K", "napi4po", 188, {_x:xii1 + 3.2, _y:yii1 + 1.28, _xscale:64, _yscale:64, _rotation:aii1});
}
}
function NalST() {
i = 0;
while (i < masSTx.length) {
if ((masSTx[i] > 4) && (masSTx[i] < 1000)) {
_root.attachMovie("strel1", ("str" + i) + "a", 122 + (i * 2), {_x:masSTx[i], _y:masSTy[i], _rotation:masSTa[i]});
_root.attachMovie("str0", "str00" + i, 81 + i, {_x:masSTx[i], _y:masSTy[i], _rotation:masSTain[i]});
}
i++;
}
}
function endUr(NNn) {
predek = NNn;
tipek = 30 + NNn;
n1 = 0;
n2 = 0;
n3 = 0;
n4 = 0;
n1_ = 0;
n2_ = 0;
n3_ = 0;
n4_ = 0;
autosave = 0;
tipeknal = 0;
ij = 0;
while (ij < 30) {
removeMovieClip(("str" + ij) + "a");
removeMovieClip("str00" + ij);
ij++;
}
Sprir.stop();
}
function remALL() {
ij = 0;
while (ij < 30) {
removeMovieClip(("str" + ij) + "a");
removeMovieClip("str00" + ij);
ij++;
}
Schuh1.stop();
Schuh2.stop();
Schuh3.stop();
Schuh4.stop();
Sprir.stop();
k = 1;
while (k < 5) {
l = 0;
while (l < 9) {
removeMovieClip((("po" + k) + "_") + l);
l++;
}
k++;
}
k = 1;
while (k < 5) {
removeMovieClip(("napi" + k) + "poC");
removeMovieClip(("napi" + k) + "po");
k++;
}
removeMovieClip("ur1");
removeMovieClip("ur1_2");
removeMovieClip("ur1_3");
removeMovieClip("dvspon1");
removeMovieClip("click1");
k = 1;
while (k < 9) {
delete eval (("masPO" + k) + "nl");
delete eval (("masPO" + k) + "y");
delete eval (("masPO" + k) + "ns");
delete eval (("masPO" + k) + "dx");
delete eval (("masPO" + k) + "dy");
delete eval (("masPO" + k) + "1a");
k++;
}
n1 = 0;
n2 = 0;
n3 = 0;
n4 = 0;
}
function scalAL() {
i = 0;
while (i < masSTx.length) {
masSTx[i] = masSTx[i] * 0.64;
masSTy[i] = masSTy[i] * 0.64;
i++;
}
}
function nachalo() {
removeMovieClip("zastav1");
removeMovieClip("kn_start1");
removeMovieClip("help_start1");
removeMovieClip("kn_start21");
removeMovieClip("kn_help1");
removeMovieClip("kn_sound1");
removeMovieClip("plakat11");
removeMovieClip("kn_soundof1");
removeMovieClip("kn_MG1");
removeMovieClip("knf_sound1");
removeMovieClip("logo21");
removeMovieClip("kn_pass1");
t_aa.removeTextField();
removeMovieClip("help_start21");
}
function spons_link() {
getURL ("http://www.fastgames.com", "_blank");
}
SAV_career = 3700;
SAV_random = -1;
gromkost = 1;
stolkpr = 0;
radgr = 57.2957795;
tipek = 0;
tipeknal = 0;
nkadra = 0;
dopS = 4;
dopP = 29;
stolknov = 0;
promah = 0;
pause1 = 0;
zvuk = 1;
n1 = 0;
n2 = 0;
n3 = 0;
n4 = 0;
n1_ = 0;
n2_ = 0;
n3_ = 0;
n4_ = 0;
nkadra = 0;
autosave = 0;
urur1 = 0;
urur2 = 0;
urur3 = 0;
urur4 = 0;
qwclics = 0;
_root.createEmptyMovieClip("holder0", 1000);
klik = new Sound(holder0);
klik.attachSound("RClick");
_root.createEmptyMovieClip("holder1", 1001);
Smiss = new Sound(holder1);
Smiss.attachSound("Rmiss");
_root.createEmptyMovieClip("holder2", 1002);
Scrash = new Sound(holder2);
Scrash.attachSound("RRcrash");
_root.createEmptyMovieClip("holder3", 1003);
Sur = new Sound(holder3);
Sur.attachSound("Rur");
_root.createEmptyMovieClip("holder4", 1004);
Sprir = new Sound(holder4);
Sprir.attachSound("Rprir");
_root.createEmptyMovieClip("holder6", 1006);
Sfinal = new Sound(holder6);
Sfinal.attachSound("Rfinal");
_root.createEmptyMovieClip("holder7", 1007);
SinL = new Sound(holder7);
SinL.attachSound("Rin");
SinL.setTransform({ll:100, lr:100, rr:0, rl:0});
_root.createEmptyMovieClip("holder8", 1008);
SinR = new Sound(holder8);
SinR.attachSound("Rin");
SinR.setTransform({ll:0, lr:0, rr:100, rl:100});
_root.createEmptyMovieClip("holder9", 1009);
SoutL = new Sound(holder9);
SoutL.attachSound("Rout");
SoutL.setTransform({ll:0, lr:0, rr:100, rl:100});
_root.createEmptyMovieClip("holder10", 1010);
SoutR = new Sound(holder10);
SoutR.attachSound("Rout");
SoutR.setTransform({ll:100, lr:100, rr:0, rl:0});
_root.createEmptyMovieClip("holder11", 1011);
Schuh1 = new Sound(holder11);
Schuh1.attachSound("Rchuh");
_root.createEmptyMovieClip("holder12", 1012);
Schuh2 = new Sound(holder12);
Schuh2.attachSound("Rchuh");
_root.createEmptyMovieClip("holder13", 1013);
Schuh3 = new Sound(holder13);
Schuh3.attachSound("Rchuh");
_root.createEmptyMovieClip("holder14", 1014);
Schuh4 = new Sound(holder14);
Schuh4.attachSound("Rchuh");
_root.onEnterFrame = function () {
if (pause1 == 0) {
if ((stolknov != 1) || (promah != 1)) {
nkadra = nkadra + 1;
}
if (tipek == 0) {
if (tipeknal == 0) {
_root.attachMovie("zastav", "zastav1", 19, {_x:0, _y:0});
_root.attachMovie("kn_start", "kn_start1", 22, {_x:544, _y:137.6});
_root.attachMovie("kn_start2", "kn_start21", 37, {_x:544, _y:195.2});
_root.attachMovie("kn_help", "kn_help1", 23, {_x:544, _y:252.8, _xscale:64, _yscale:64});
_root.attachMovie("kn_MG", "kn_MG1", 4995, {_x:544, _y:310.4, _xscale:64, _yscale:64});
_root.attachMovie("kn_sound", "kn_sound1", 5000, {_x:544, _y:368, _xscale:128, _yscale:128});
_root.attachMovie("fon_kn_zv", "knf_sound1", 4999, {_x:544, _y:368, _xscale:128, _yscale:128});
_root.attachMovie("logo2", "logo21", 24, {_x:100, _y:299});
_root.createTextField("t_aa", 21, 106, 379, 70, 35);
t_aa.textColor = 13439758 /* 0xCD130E */;
t_aa.type = "input";
lineStyle = new TextFormat();
lineStyle.size = 14;
lineStyle.bold = true;
t_aa.setNewTextFormat(lineStyle);
_root.attachMovie("kn_pass", "kn_pass1", 20, {_x:100, _y:390});
if (gromkost == 0) {
_root.attachMovie("kn_soundof", "kn_soundof1", 5002, {_x:544, _y:368, _xscale:128, _yscale:128});
}
tipeknal = 1;
}
kn_start1.onRollOver = function () {
_root.attachMovie("help_start", "help_start1", 26, {_x:512, _y:137.6, _xscale:128, _yscale:128});
};
kn_start1.onRollOut = function () {
removeMovieClip("help_start1");
};
kn_start21.onRollOver = function () {
_root.attachMovie("help_start2", "help_start21", 38, {_x:512, _y:195.2});
};
kn_start21.onRollOut = function () {
removeMovieClip("help_start21");
};
kn_help1.onRollOver = function () {
_root.attachMovie("help_main", "help_main1", 26, {_x:480, _y:252.8});
};
kn_help1.onRollOut = function () {
removeMovieClip("help_main1");
};
kn_sound1.onRollOver = function () {
_root.attachMovie("help_sound", "help_sound1", 27, {_x:544, _y:368, _xscale:128, _yscale:128});
};
kn_sound1.onRollOut = function () {
removeMovieClip("help_sound1");
};
kn_sound1.onPress = function () {
if (gromkost == 1) {
_root.attachMovie("kn_soundof", "kn_soundof1", 5002, {_x:544, _y:368, _xscale:128, _yscale:128});
gromkost = 0;
} else {
removeMovieClip("kn_soundof1");
gromkost = 1;
}
};
kn_MG1.onPress = function () {
spons_link();
};
logo21.onPress = function () {
spons_link();
};
kn_start1.onPress = function () {
autosave = 0;
tipek = 1;
tipeknal = 0;
nachalo();
_root.attachMovie("kn_sound", "kn_sound1_", 5100, {_x:569.2, _y:12.8, _xscale:64, _yscale:64});
_root.createTextField("all4", 5999, 67.2, 3.2, 150, 35);
all4.textColor = 13439758 /* 0xCD130E */;
lineStyle = new TextFormat();
lineStyle.bold = true;
lineStyle.size = 20;
all4.setTextFormat(lineStyle);
if (gromkost == 0) {
_root.attachMovie("kn_soundof", "kn_soundof1", 5102, {_x:563.2, _y:12.8});
}
_root.attachMovie("kn_MENU", "kn_MENU1", 4501, {_x:96, _y:407, _xscale:64, _yscale:64});
_root.attachMovie("kn_pause", "kn_pause1", 4502, {_x:544, _y:407, _xscale:64, _yscale:64});
_root.attachMovie("kn_morgam", "kn_morgam1", 4503, {_x:320, _y:407, _xscale:64, _yscale:64});
_root.attachMovie("kn_pause2", "kn_pe12", 5503, {_x:700, _y:0, _xscale:128, _yscale:128});
};
kn_start21.onPress = function () {
nachalo();
tipek = 100;
tipeknal = 0;
gotoAndPlay (6);
};
PW = t_aa.text;
pw1 = PW.charCodeAt(0) - 33;
pw2 = PW.charCodeAt(1) - 33;
pw3 = PW.charCodeAt(2) - 33;
pw4 = PW.charCodeAt(3) - 33;
pw5 = PW.charCodeAt(4) - 33;
pw_nu = pw1;
pw_cl = (pw2 * 60) + pw3;
pw_pr = pw_cl - (pw_nu * 11);
pw_pr2 = (pw4 * 60) + pw5;
if (pw_pr == pw_pr2) {
autosave = 0;
tipek = pw_nu + 1;
qwclics = pw_cl;
tipeknal = 0;
nachalo();
_root.attachMovie("kn_sound", "kn_sound1_", 5100, {_x:569.2, _y:12.8, _xscale:64, _yscale:64});
_root.createTextField("all4", 5999, 67.2, 3.2, 150, 35);
all4.textColor = 13439758 /* 0xCD130E */;
lineStyle = new TextFormat();
lineStyle.bold = true;
lineStyle.size = 20;
all4.setTextFormat(lineStyle);
if (gromkost == 0) {
_root.attachMovie("kn_soundof", "kn_soundof1", 5102, {_x:563.2, _y:12.8});
}
_root.attachMovie("kn_MENU", "kn_MENU1", 4501, {_x:96, _y:407, _xscale:64, _yscale:64});
_root.attachMovie("kn_pause", "kn_pause1", 4502, {_x:544, _y:407, _xscale:64, _yscale:64});
_root.attachMovie("kn_morgam", "kn_morgam1", 4503, {_x:320, _y:407, _xscale:64, _yscale:64});
_root.attachMovie("kn_pause2", "kn_pe12", 5503, {_x:700, _y:0, _xscale:128, _yscale:128});
}
}
if (tipek == 1) {
if (tipeknal == 0) {
nkadra = autosave;
_root.attachMovie("ur01", "ur1", 60, {_x:0, _y:0});
masSTx = new Array(150, 288, 390, 699, 703, 901, -50, -50, 1050, 1050, 1050, 1050);
masSTy = new Array(252, 400, 400, 89, 399, 290, 250, 525, 87, 209, 430, 565);
scalAL();
masL1 = new Array(6, 7, 0, 0, 1, 2, 3, 2, 4, 5, 5, 4);
masL2 = new Array(0, 1, 1, 3, 2, 3, 8, 4, 5, 9, 10, 11);
masLtyp = new Array(-1, -1, 2, 2, 2, 2, 1, 2, 2, 1, 1, 1);
LLL();
STSTST();
NalST();
removeMovieClip("podskaz1");
removeMovieClip("podskaz2");
Mks = new Array(15, 400, 735, 1060, 1400, 1770, 2140, 2470);
Mkp = new Array(120, 500, 825, 1140, 1520, 1900, 2170, 2550);
McvP = new Array(1, 1, 1, 1, 1, 1, 1, 1);
Mnp = new Array(1, 1, 1, 1, 1, 1, 1, 1);
Mvp = new Array(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5);
Mstp = new Array(1, 1, 1, 0, 0, 0, 0, 1);
Mcp = new Array(6, 11, 9, 6, 10, 11, 6, 9);
Mkvo = new Array(4, 4, 4, 4, 4, 4, 4, 4);
tipeknal = 1;
}
i = 0;
while (i < Mkp.length) {
if (nkadra == Mks[i]) {
NAPRp(i);
}
if (nkadra == Mkp[i]) {
VIZOVp(i);
}
i++;
}
if (nkadra == 15) {
_root.attachMovie("podskaz", "podskaz1", 61, {_x:448, _y:70.4, _xscale:64, _yscale:64});
}
if (nkadra == 280) {
removeMovieClip("podskaz1");
}
if (nkadra == 401) {
_root.attachMovie("podskaz", "podskaz1", 61, {_x:252.8, _y:268.8, _xscale:64, _yscale:64});
_root.attachMovie("podskaz", "podskaz2", 62, {_x:448, _y:268.8, _xscale:64, _yscale:64});
}
if (nkadra == 640) {
removeMovieClip("podskaz1");
removeMovieClip("podskaz2");
}
if ((((nkadra == 845) || (nkadra == 1540)) || (nkadra == 2180)) || (nkadra == 2549)) {
autosave = nkadra - 150;
}
if (nkadra == 2850) {
endUr(tipek);
}
}
if (tipek == 2) {
if (tipeknal == 0) {
nkadra = autosave;
_root.attachMovie("ur2", "ur1", 60, {_x:0, _y:0});
masSTx = new Array(200, 199, 299, 398, 498, 501, 500, 697, 801, 848, -50, -50, -50, 1050, 1050, 1050, -100, 1100);
masSTy = new Array(249, 449, 249, 349, 99, 351, 550, 450, 99, 449, 125, 375, 575, 100, 317, 583, -500, 1150);
scalAL();
masL1 = new Array(10, 11, 12, 0, 1, 2, 2, 1, 3, 4, 5, 5, 6, 7, 8, 9, 9, 6, 16);
masL2 = new Array(0, 0, 1, 2, 3, 4, 3, 6, 5, 8, 8, 7, 7, 9, 13, 14, 15, 17, 4);
masLtyp = new Array(-1, -1, -1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 0, 0);
LLL();
STSTST();
NalST();
Mks = new Array(35, 400, 740, 1110, 1340, 1690, 2000, 2080, 2550, 2900, 3200);
Mkp = new Array(150, 500, 840, 1140, 1430, 1720, 2080, 2170, 2590, 2940, 3315);
McvP = new Array(1, 1, 2, 1, 2, 2, 2, 1, 1, 2, 1);
Mnp = new Array(1, -1, 1, -1, -1, -1, -1, 1, 1, -1, -1);
Mvp = new Array(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5);
Mstp = new Array(1, 15, 0, 14, 16, 14, 16, 2, 2, 15, 14);
Mcp = new Array(16, 2, 15, 0, 1, 0, 0, 16, 14, 1, 2);
Mkvo = new Array(4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4);
tipeknal = 1;
}
i = 0;
while (i < Mkp.length) {
if (nkadra == Mks[i]) {
NAPRp(i);
}
if (nkadra == Mkp[i]) {
VIZOVp(i);
}
i++;
}
if ((((((((nkadra == 499) || (nkadra == 839)) || (nkadra == 1429)) || (nkadra == 1719)) || (nkadra == 2039)) || (nkadra == 2589)) || (nkadra == 499)) || (nkadra == 2939)) {
autosave = nkadra - 140;
}
if (nkadra == 3700) {
endUr(tipek);
}
}
if (tipek == 3) {
if (tipeknal == 0) {
nkadra = autosave;
_root.attachMovie("ur3", "ur1", 60, {_x:0, _y:0});
masSTx = new Array(196, 206, 859, 299, 398, 400, 898, 500, 596, 605, 750, 755, -50, -50, -50, -50, 1050, 1050, 1050, 1050, 1100, -100);
masSTy = new Array(301, 550, 398, 100, 199, 301, 200, 300, 98, 300, 150, 398, 100, 300, 425, 487, 50, 342, 400, 600, -700, -600);
scalAL();
masL1 = new Array(12, 13, 14, 15, 3, 0, 1, 1, 4, 4, 5, 2, 7, 8, 9, 9, 10, 6, 6, 2, 3, 21, 11);
masL2 = new Array(3, 0, 0, 1, 4, 5, 5, 11, 8, 7, 7, 19, 9, 10, 10, 11, 6, 16, 17, 18, 20, 8, 2);
masLtyp = new Array(-1, -1, -1, -1, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 1, 1, 0, 0, 2);
LLL();
STSTST();
NalST();
qwclics = qwclics - 2;
strelka(str3a, 3);
strelka(str8a, 8);
Mks = new Array(40, 350, 600, 1000, 1001, 1460, 1461, 1950, 1951, 2500, 2501, 3000, 3001, 3500, 3501, 4000, 4001);
Mkp = new Array(150, 450, 680, 1150, 1151, 1600, 1601, 2090, 2180, 2635, 2636, 3130, 3131, 3620, 3681, 4200, 4285);
McvP = new Array(2, 1, 2, 1, 2, 1, 2, 2, 1, 1, 2, 2, 1, 1, 2, 1, 2);
Mnp = new Array(1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1, 1, 1);
Mvp = new Array(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.4, 0.4, 0.5, 0.5, 0.5, 0.5, 0.6, 0.6, 0.5, 0.5);
Mstp = new Array(2, 11, 18, 2, 3, 18, 3, 0, 0, 17, 11, 0, 19, 11, 11, 1, 2);
Mcp = new Array(19, 0, 0, 17, 11, 0, 19, 18, 19, 2, 3, 18, 1, 2, 1, 17, 19);
Mkvo = new Array(4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4);
tipeknal = 1;
}
i = 0;
while (i < Mkp.length) {
if (nkadra == Mks[i]) {
NAPRp(i);
}
if (nkadra == Mkp[i]) {
VIZOVp(i);
}
i++;
}
if (((((((((nkadra == 449) || (nkadra == 679)) || (nkadra == 1099)) || (nkadra == 1559)) || (nkadra == 2049)) || (nkadra == 2599)) || (nkadra == 3099)) || (nkadra == 3599)) || (nkadra == 4099)) {
autosave = nkadra - 130;
}
if (nkadra == 4700) {
endUr(tipek);
}
}
if (tipek == 4) {
if (tipeknal == 0) {
nkadra = autosave;
_root.attachMovie("ur4", "ur1", 60, {_x:0, _y:0});
masSTx = new Array(97, 99, 196, 298, 350, 351, 450, 450, 550, 553, 650, 653, 700, 800, 900, 901, -50, -50, 1050, 1050);
masSTy = new Array(251, 450, 350, 350, 150, 550, 250, 451, 250, 451, 150, 550, 350, 350, 250, 451, 250, 450, 250, 450);
scalAL();
masL1 = new Array(16, 17, 0, 1, 0, 2, 1, 4, 3, 3, 5, 4, 6, 7, 5, 8, 8, 9, 9, 10, 12, 11, 13, 13, 14, 15);
masL2 = new Array(0, 1, 2, 2, 4, 3, 5, 6, 6, 7, 7, 10, 8, 9, 11, 10, 12, 12, 11, 14, 13, 15, 14, 15, 18, 19);
masLtyp = new Array(-1, -1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1);
LLL();
STSTST();
NalST();
Mks = new Array(45, 350, 420, 820, 821, 1200, 1400, 1900, 1980, 2400, 2401, 3030, 3031, 3560, 3660, 3790, 4190, 4191, 4611);
Mkp = new Array(150, 470, 540, 940, 941, 1260, 1500, 2020, 2080, 2730, 2731, 3260, 3261, 3580, 3680, 3830, 4330, 4331, 4640);
McvP = new Array(2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 1, 2, 1, 2, 1);
Mnp = new Array(-1, 1, -1, 1, 1, -1, 1, 1, -1, 1, -1, -1, 1, 1, -1, 1, -1, 1, -1);
Mvp = new Array(0.5, 0.5, 0.5, 0.5, 0.5, 0.6, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.6, 0.5, 0.5, 0.5, 0.5, 0.6);
Mstp = new Array(25, 1, 25, 0, 1, 24, 0, 1, 25, 0, 24, 24, 1, 0, 24, 0, 25, 0, 24);
Mcp = new Array(0, 24, 1, 24, 25, 1, 25, 24, 0, 24, 0, 1, 24, 25, 1, 24, 0, 25, 1);
Mkvo = new Array(4, 4, 4, 4, 4, 3, 8, 8, 5, 4, 4, 4, 4, 3, 4, 4, 4, 4, 4);
tipeknal = 1;
}
i = -1;
while (i < Mkp.length) {
if (nkadra == Mks[i]) {
NAPRp(i);
}
if (nkadra == Mkp[i]) {
VIZOVp(i);
}
i++;
}
if ((((((((((nkadra == 449) || (nkadra == 919)) || (nkadra == 1259)) || (nkadra == 1499)) || (nkadra == 1999)) || (nkadra == 2529)) || (nkadra == 3159)) || (nkadra == 3579)) || (nkadra == 4309)) || (nkadra == 4639)) {
autosave = nkadra - 150;
}
if (nkadra == 4925) {
endUr(tipek);
}
}
if (tipek == 5) {
if (tipeknal == 0) {
nkadra = autosave;
_root.attachMovie("ur5", "ur1", 60, {_x:0, _y:0});
_root.attachMovie("ur5_2", "ur1_3", 300, {_x:0, _y:0});
masSTx = new Array(97, 96, 199, 349, 500, 600, 651, 700, 750, 850, 950, 651, 750, -50, -50, 1050, 1050, 1050, 1050, -50);
masSTy = new Array(200, 297, 96, 550, 396, 250, 250, 200, 200, 298, 298, 549, 450, 200, 300, 80, 300, 510, 1250, 1250);
scalAL();
masL1 = new Array(13, 14, 0, 2, 0, 1, 1, 2, 3, 5, 4, 6, 7, 6, 11, 8, 8, 9, 12, 12, 10, 3, 19);
masL2 = new Array(0, 1, 2, 7, 5, 5, 3, 4, 4, 6, 11, 7, 8, 9, 12, 15, 9, 10, 10, 17, 16, 18, 11);
masLtyp = new Array(-1, -1, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 1, 1, 0, 0);
LLL();
STSTST();
NalST();
Mks = new Array(150, 400, 800, 1170, 1570, 1601, 2000, 2001, 2400, 2401, 2800, 2801, 3200, 3201, 3600, 3601, 4000, 4031);
Mkp = new Array(180, 490, 880, 1185, 1700, 1721, 2090, 2091, 2500, 2501, 2900, 2901, 3300, 3301, 3700, 3701, 4220, 4289);
McvP = new Array(1, 2, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2);
Mnp = new Array(1, 1, -1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, 1, 1, -1, -1, 1);
Mvp = new Array(0.5, 0.5, 0.5, 0.6, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5);
Mstp = new Array(1, 1, 19, 15, 15, 20, 0, 1, 19, 15, 0, 15, 20, 1, 1, 20, 19, 1);
Mcp = new Array(15, 19, 0, 0, 1, 1, 15, 20, 0, 1, 15, 0, 1, 20, 20, 0, 0, 19);
Mkvo = new Array(4, 4, 4, 3, 4, 4, 4, 4, 4, 6, 4, 4, 4, 4, 4, 4, 4, 4);
tipeknal = 1;
}
i = 0;
while (i < Mkp.length) {
if (nkadra == Mks[i]) {
NAPRp(i);
}
if (nkadra == Mkp[i]) {
VIZOVp(i);
}
i++;
}
if (((((((((nkadra == 489) || (nkadra == 879)) || (nkadra == 1669)) || (nkadra == 2089)) || (nkadra == 2499)) || (nkadra == 2899)) || (nkadra == 3299)) || (nkadra == 3699)) || (nkadra == 4099)) {
autosave = nkadra - 130;
}
if (nkadra == 4700) {
endUr(tipek);
}
}
if (tipek == 6) {
if (tipeknal == 0) {
nkadra = autosave;
_root.attachMovie("ur6", "ur1", 60, {_x:0, _y:0});
_root.attachMovie("ur6_3", "ur1_3", 300, {_x:0, _y:0});
_root.attachMovie("ur6_2", "ur1_2", 250, {_x:0, _y:0});
masSTx = new Array(100, 100, 200, 250, 298, 702, 800, 701, 900, 903, -50, -50, 1050, 1050);
masSTy = new Array(200, 449, 98, 349, 550, 350, 98, 548, 150, 399, 200, 450, 150, 400);
scalAL();
masL1 = new Array(10, 11, 0, 0, 1, 1, 2, 2, 3, 4, 4, 6, 5, 5, 7, 8, 9);
masL2 = new Array(0, 1, 2, 3, 3, 4, 6, 7, 5, 6, 7, 8, 8, 9, 9, 12, 13);
masLtyp = new Array(-1, -1, 2, 2, 2, 2, 2, 3, 2, 4, 2, 2, 2, 2, 2, 1, 1);
LLL();
STSTST();
NalST();
Mks = new Array(50, 450, 451, 850, 851, 1410, 1411, 1810, 1811, 2210, 2211, 2215, 2810, 2811, 2816, 3512, 3513, 3517, 4015, 4016, 4460, 4561, 4566);
Mkp = new Array(150, 550, 551, 1110, 1111, 1510, 1511, 1910, 1911, 2510, 2511, 2512, 3210, 3211, 3212, 3712, 3713, 3714, 4110, 4120, 4640, 4771, 4772);
McvP = new Array(3, 1, 2, 2, 3, 1, 3, 1, 2, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 1, 2, 3);
Mnp = new Array(1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, -1, -1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1);
Mvp = new Array(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5);
Mstp = new Array(1, 0, 16, 15, 1, 0, 16, 0, 1, 0, 1, 15, 16, 15, 1, 0, 1, 16, 1, 0, 0, 16, 1);
Mcp = new Array(15, 16, 0, 1, 15, 15, 1, 16, 15, 15, 16, 0, 0, 1, 15, 15, 16, 1, 16, 16, 16, 0, 15);
Mkvo = new Array(4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 4, 4, 4, 4);
tipeknal = 1;
}
i = 0;
while (i < Mkp.length) {
if (nkadra == Mks[i]) {
NAPRp(i);
}
if (nkadra == Mkp[i]) {
VIZOVp(i);
}
i++;
}
if (((((((((nkadra == 549) || (nkadra == 969)) || (nkadra == 1509)) || (nkadra == 1909)) || (nkadra == 2309)) || (nkadra == 2909)) || (nkadra == 3610)) || (nkadra == 4109)) || (nkadra == 4559)) {
autosave = nkadra - 120;
}
if (nkadra == 5140) {
endUr(tipek);
}
if (nkadra == 872) {
_root.attachMovie("podskazT", "podskaz1T", 499, {_x:224, _y:320});
}
if (nkadra == 1210) {
removeMovieClip("podskaz1T");
}
}
if (tipek == 7) {
if (tipeknal == 0) {
nkadra = autosave;
_root.attachMovie("ur7", "ur1", 60, {_x:0, _y:0});
_root.attachMovie("ur7_2", "ur1_2", 300, {_x:0, _y:0});
_root.attachMovie("ur7_3", "ur1_3", 247, {_x:0, _y:0});
masSTx = new Array(100, 200, 900, 250, 300, 250, 900, 398, 400, 500, 497, 601, 800, 800, -50, -50, -50, 1050, 1050, 1050, -100, -100, 1100, -100);
masSTy = new Array(100, 500, 500, 50, 300, 550, 148, 200, 300, 100, 300, 298, 248, 500, 100, 300, 500, 75, 187, 500, 550, 1400, 50, 100);
scalAL();
masL1 = new Array(14, 15, 16, 0, 0, 1, 1, 3, 4, 5, 7, 7, 8, 9, 10, 11, 11, 12, 12, 6, 13, 2, 20, 21, 3, 23);
masL2 = new Array(0, 4, 1, 3, 4, 8, 5, 7, 8, 6, 9, 10, 10, 2, 11, 12, 13, 6, 18, 17, 2, 19, 5, 13, 22, 9);
masLtyp = new Array(-1, -1, -1, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 3, 2, 2, 25, 2, 1, 1, 2, 1, 0, 0, 0, 0);
LLL();
STSTST();
NalST();
removeMovieClip("str11a");
removeMovieClip("str0011");
_root.attachMovie("strel1", "str11a", 251, {_x:masSTx[11], _y:masSTy[11], _rotation:masSTa[11]});
_root.attachMovie("str0", "str0011", 250, {_x:masSTx[11], _y:masSTy[11], _rotation:masSTain[11]});
removeMovieClip("str12a");
removeMovieClip("str0012");
_root.attachMovie("strel1", "str12a", 249, {_x:masSTx[12], _y:masSTy[12], _rotation:masSTa[12]});
_root.attachMovie("str0", "str0012", 248, {_x:masSTx[12], _y:masSTy[12], _rotation:masSTain[12]});
Mks = new Array(120, 600, 601, 1020, 1021, 1440, 1441, 1900, 1901, 2020, 2440, 2470, 2980, 2981, 2987, 3660, 3760, 3900, 4450, 4451, 4540);
Mkp = new Array(300, 720, 721, 1140, 1141, 1600, 1601, 2040, 2041, 2130, 2560, 2661, 3260, 3261, 3262, 3760, 3900, 4060, 4700, 4701, 4800);
McvP = new Array(1, 2, 3, 1, 3, 1, 2, 1, 2, 3, 2, 1, 1, 2, 3, 1, 2, 3, 2, 1, 3);
Mnp = new Array(1, 1, -1, 1, 1, -1, 1, 1, -1, 1, -1, 1, 1, 1, 1, 1, -1, -1, -1, 1, -1);
Mvp = new Array(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.3, 0.3, 0.3);
Mstp = new Array(2, 2, 21, 1, 2, 19, 2, 0, 21, 0, 19, 0, 0, 1, 2, 2, 21, 19, 19, 2, 21);
Mcp = new Array(19, 21, 0, 18, 19, 0, 19, 21, 0, 21, 0, 19, 21, 18, 19, 18, 1, 0, 2, 19, 1);
Mkvo = new Array(4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 4, 4, 4, 4, 4, 4, 3, 4, 4);
tipeknal = 1;
}
i = 0;
while (i < Mkp.length) {
if (nkadra == Mks[i]) {
NAPRp(i);
}
if (nkadra == Mkp[i]) {
VIZOVp(i);
}
i++;
}
if ((((((((nkadra == 699) || (nkadra == 1100)) || (nkadra == 1539)) || (nkadra == 1990)) || (nkadra == 2539)) || (nkadra == 3070)) || (nkadra == 3750)) || (nkadra == 4540)) {
autosave = nkadra - 120;
}
if (nkadra == 5370) {
endUr(tipek);
removeMovieClip("ur1_2");
removeMovieClip("ur1_3");
}
}
if (tipek == 8) {
if (tipeknal == 0) {
nkadra = autosave;
_root.attachMovie("ur8", "ur1", 60, {_x:0, _y:0});
_root.attachMovie("ur8_2", "ur1_2", 250, {_x:0, _y:0});
masSTx = new Array(90, 90, 100, 140, 192, 240, 242, 345, 345, 350, 397, 395, 497, 450, 500, 550, 600, 600, 650, 700, 702, 702, 800, 802, 900, -50, -50, -50, -50, -50, 1050, 1050, 1100, 1100);
masSTy = new Array(200, 300, 500, 200, 403, 100, 403, 200, 300, 400, 200, 300, 100, 298, 400, 198, 200, 400, 198, 148, 298, 500, 198, 400, 298, 50, 200, 300, 400, 500, 300, -650, -500, -250);
scalAL();
masL1 = new Array(25, 26, 27, 28, 29, 0, 1, 1, 2, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 10, 10, 13, 11, 11, 12, 15, 13, 14, 16, 17, 17, 18, 18, 19, 20, 21, 22, 23, 24, 5, 12, 19);
masL2 = new Array(0, 0, 1, 4, 2, 3, 8, 4, 9, 21, 5, 7, 6, 7, 8, 9, 10, 11, 14, 12, 15, 15, 13, 14, 16, 16, 20, 17, 18, 20, 21, 19, 22, 22, 23, 23, 24, 24, 30, 31, 32, 33);
masLtyp = new Array(-1, -1, -1, -1, -1, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 0, 0);
LLL();
STSTST();
NalST();
Mks = new Array(60, 500, 501, 1000, 1001, 1500, 1505, 2015, 2016, 2530, 2560, 3080, 3081, 3545, 3660, 3970);
Mkp = new Array(200, 700, 701, 1200, 1201, 1700, 1715, 2215, 2230, 2730, 2780, 3230, 3245, 3645, 3760, 4030);
McvP = new Array(3, 2, 1, 1, 3, 2, 3, 3, 1, 1, 2, 1, 3, 2, 1, 3);
Mnp = new Array(-1, 1, -1, 1, -1, 1, 1, 1, 1, -1, -1, 1, -1, -1, 1, 1);
Mvp = new Array(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.4, 0.4, 0.4, 0.5, 0.2, 0.8);
Mstp = new Array(38, 2, 38, 4, 38, 2, 0, 4, 2, 38, 38, 0, 38, 38, 4, 4);
Mcp = new Array(3, 38, 2, 38, 4, 38, 38, 38, 38, 0, 3, 38, 1, 3, 38, 38);
Mkvo = new Array(4, 4, 4, 4, 3, 3, 3, 2, 3, 3, 4, 1, 1, 8, 1, 2);
tipeknal = 1;
}
i = 0;
while (i < Mkp.length) {
if (nkadra == Mks[i]) {
NAPRp(i);
}
if (nkadra == Mkp[i]) {
VIZOVp(i);
}
i++;
}
if (((((((nkadra == 598) || (nkadra == 1108)) || (nkadra == 1599)) || (nkadra == 2114)) || (nkadra == 2629)) || (nkadra == 3179)) || (nkadra == 3643)) {
autosave = nkadra - 120;
}
if (nkadra == 4600) {
endUr(tipek);
}
}
if (tipek == 9) {
if (tipeknal == 0) {
nkadra = autosave;
_root.attachMovie("ur9", "ur1", 60, {_x:0, _y:0});
_root.attachMovie("ur9_2", "ur1_2", 249, {_x:0, _y:0});
_root.attachMovie("ur9_3", "ur1_3", 300, {_x:0, _y:0});
masSTx = new Array(100, 100, 100, 200, 200, 200, 200, 200, 250, 300, 350, 398, 350, 450, 500, 550, 550, 600, 650, 750, 750, 800, 850, 850, 850, 850, 950, 950, 950, -50, -50, -50, -50, -50, 1050, 1050, 1050, 1050, 1050, -100);
masSTy = new Array(100, 200, 300, 50, 150, 250, 350, 550, 150, 200, 50, 298, 550, 550, 200, 200, 400, 400, 300, 200, 300, 150, 50, 200, 400, 550, 100, 300, 500, 100, 200, 300, 400, 550, 100, 200, 300, 400, 500, -250);
scalAL();
masL1 = new Array(29, 30, 31, 32, 33, 0, 0, 1, 1, 2, 2, 3, 4, 5, 6, 7, 7, 8, 8, 9, 12, 12, 10, 10, 11, 14, 16, 16, 13, 13, 15, 18, 18, 17, 19, 21, 20, 20, 22, 21, 23, 24, 25, 26, 23, 27, 24, 28, 39);
masL2 = new Array(0, 1, 2, 6, 7, 3, 4, 4, 5, 5, 6, 10, 8, 9, 11, 15, 12, 14, 9, 11, 22, 13, 22, 14, 16, 15, 18, 17, 17, 25, 19, 19, 20, 25, 21, 23, 27, 24, 26, 26, 27, 28, 28, 34, 35, 36, 37, 38, 3);
masLtyp = new Array(-1, -1, -1, -1, -1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 0);
LLL();
STSTST();
NalST();
removeMovieClip("str19a");
removeMovieClip("str0019");
_root.attachMovie("strel1", "str19a", 251, {_x:masSTx[19], _y:masSTy[19], _rotation:masSTa[19]});
_root.attachMovie("str0", "str0019", 250, {_x:masSTx[19], _y:masSTy[19], _rotation:masSTain[19]});
Mks = new Array(60, 460, 850, 1280, 1281, 1830, 1831, 2250, 2650, 2651, 3150, 3151, 3157, 3159, 4150, 4151, 4156, 4158);
Mkp = new Array(210, 610, 1030, 1430, 1431, 2020, 2001, 2350, 2850, 2851, 3650, 3651, 3652, 3653, 5031, 5032, 5033, 5134);
McvP = new Array(1, 2, 3, 1, 2, 1, 3, 4, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4);
Mnp = new Array(1, -1, -1, 1, -1, -1, 1, 1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1);
Mvp = new Array(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.3, 0.3, 0.3, 0.3, 0.4, 0.4, 0.4, 0.4);
Mstp = new Array(0, 45, 43, 4, 43, 47, 4, 2, 1, 44, 0, 43, 4, 47, 4, 44, 0, 47);
Mcp = new Array(46, 4, 3, 43, 4, 4, 47, 44, 45, 1, 43, 0, 47, 3, 43, 4, 47, 0);
Mkvo = new Array(4, 4, 4, 4, 4, 3, 2, 4, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2);
tipeknal = 1;
}
i = 0;
while (i < Mkp.length) {
if (nkadra == Mks[i]) {
NAPRp(i);
}
if (nkadra == Mkp[i]) {
VIZOVp(i);
}
i++;
}
if ((((((((nkadra == 559) || (nkadra == 949)) || (nkadra == 1379)) || (nkadra == 1928)) || (nkadra == 2349)) || (nkadra == 2749)) || (nkadra == 3248)) || (nkadra == 4249)) {
autosave = nkadra - 110;
}
if (nkadra == 5570) {
endUr(tipek);
}
}
if (tipek == 10) {
if (tipeknal == 0) {
nkadra = autosave;
_root.attachMovie("ur10", "ur1", 60, {_x:0, _y:0});
_root.attachMovie("ur10_2", "ur1_2", 249, {_x:0, _y:0});
_root.attachMovie("ur10_3", "ur1_3", 300, {_x:0, _y:0});
masSTx = new Array(105, 100, 100, 200, 250, 300, 400, 400, 450, 500, 600, 600, 600, 650, 700, 750, 800, 800, 850, 850, 850, 900, 900, 950, 950, 950, -50, -50, -50, -50, 1050, 1050, 1050, 1050, 1050, 1050);
masSTy = new Array(100, 350, 500, 350, 600, 400, 100, 250, 300, 500, 150, 300, 600, 300, 99, 300, 300, 350, 250, 300, 400, 200, 300, 200, 350, 300, 100, 275, 425, 500, 50, 100, 200, 400, 450, 600);
scalAL();
masL1 = new Array(26, 27, 28, 29, 0, 0, 1, 2, 2, 3, 3, 5, 5, 4, 4, 6, 6, 7, 7, 8, 9, 10, 11, 12, 14, 13, 15, 15, 16, 16, 17, 18, 19, 19, 20, 21, 22, 22, 21, 23, 25, 25, 24, 20);
masL2 = new Array(0, 1, 1, 2, 6, 13, 3, 11, 4, 7, 5, 8, 9, 9, 12, 14, 10, 10, 8, 11, 12, 14, 13, 17, 18, 15, 16, 17, 18, 19, 20, 21, 23, 22, 24, 23, 25, 24, 30, 31, 32, 33, 34, 35);
masLtyp = new Array(-1, -1, -1, -1, 2, 3, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1);
LLL();
STSTST();
NalST();
removeMovieClip("str5a");
removeMovieClip("str005");
_root.attachMovie("strel1", "str5a", 251, {_x:masSTx[5], _y:masSTy[5], _rotation:masSTa[5]});
_root.attachMovie("str0", "str005", 250, {_x:masSTx[5], _y:masSTy[5], _rotation:masSTain[5]});
Mks = new Array(50, 51, 530, 531, 1050, 1051, 1450, 1451, 1456, 2210, 2211, 2216, 2219, 3130, 3180, 3330, 3430, 3530, 3630, 3730, 3830);
Mkp = new Array(230, 230, 650, 651, 1150, 1151, 1800, 1801, 1802, 2630, 2631, 2632, 2633, 3230, 3291, 3430, 3530, 3630, 3730, 3830, 3930);
McvP = new Array(1, 2, 2, 3, 1, 3, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4);
Mnp = new Array(1, -1, 1, 1, 1, 1, 1, 1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1, 1);
Mvp = new Array(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.3, 0.3, 0.3, 0.3, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.6);
Mstp = new Array(2, 42, 0, 1, 0, 3, 0, 1, 3, 39, 42, 40, 1, 38, 43, 1, 42, 2, 43, 38, 0);
Mcp = new Array(42, 2, 39, 38, 40, 42, 38, 41, 43, 0, 3, 3, 39, 3, 0, 38, 3, 41, 1, 0, 39);
Mkvo = new Array(4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3);
tipeknal = 1;
}
i = 0;
while (i < Mkp.length) {
if (nkadra == Mks[i]) {
NAPRp(i);
}
if (nkadra == Mkp[i]) {
VIZOVp(i);
}
i++;
}
if (((((nkadra == 629) || (nkadra == 1140)) || (nkadra == 1540)) || (nkadra == 3131)) || (nkadra == 2310)) {
autosave = nkadra - 110;
}
if (nkadra == 4320) {
if (gromkost == 1) {
Sfinal.start(0, 1);
}
endUr(tipek);
}
}
str0a.onPress = function () {
strelka(str0a, 0);
};
str1a.onPress = function () {
strelka(str1a, 1);
};
str2a.onPress = function () {
strelka(str2a, 2);
};
str3a.onPress = function () {
strelka(str3a, 3);
};
str4a.onPress = function () {
strelka(str4a, 4);
};
str5a.onPress = function () {
strelka(str5a, 5);
};
str6a.onPress = function () {
strelka(str6a, 6);
};
str7a.onPress = function () {
strelka(str7a, 7);
};
str8a.onPress = function () {
strelka(str8a, 8);
};
str9a.onPress = function () {
strelka(str9a, 9);
};
str10a.onPress = function () {
strelka(str10a, 10);
};
str11a.onPress = function () {
strelka(str11a, 11);
};
str12a.onPress = function () {
strelka(str12a, 12);
};
str13a.onPress = function () {
strelka(str13a, 13);
};
str14a.onPress = function () {
strelka(str14a, 14);
};
str15a.onPress = function () {
strelka(str15a, 15);
};
str16a.onPress = function () {
strelka(str16a, 16);
};
str17a.onPress = function () {
strelka(str17a, 17);
};
str18a.onPress = function () {
strelka(str18a, 18);
};
str19a.onPress = function () {
strelka(str19a, 19);
};
str20a.onPress = function () {
strelka(str20a, 20);
};
str21a.onPress = function () {
strelka(str21a, 21);
};
str22a.onPress = function () {
strelka(str22a, 22);
};
str23a.onPress = function () {
strelka(str23a, 23);
};
str24a.onPress = function () {
strelka(str24a, 24);
};
str25a.onPress = function () {
strelka(str25a, 25);
};
str26a.onPress = function () {
strelka(str26a, 26);
};
str27a.onPress = function () {
strelka(str27a, 27);
};
str28a.onPress = function () {
strelka(str28a, 28);
};
str29a.onPress = function () {
strelka(str29a, 29);
};
click1.onRollOver = function () {
_root.attachMovie("help_click", "help_click1", 5998, {_x:120, _y:23});
};
click1.onRollOut = function () {
removeMovieClip("help_click1");
};
kn_MENU1.onPress = function () {
all4.removeTextField();
pause1 = 0;
qwclics = 0;
remALL();
removeMovieClip("podskaz1");
removeMovieClip("podskaz2");
removeMovieClip("podskaz1T");
tipek = 0;
tipeknal = 0;
removeMovieClip("kn_soundof1");
removeMovieClip("kn_sound1_");
removeMovieClip("kn_MENU1");
removeMovieClip("kn_pause1");
removeMovieClip("kn_morgam1");
nkadra = 0;
delete masSTx;
delete masSTy;
delete masSTa;
delete masST0;
delete masSTi;
delete masSTou1;
delete masSTou2;
delete masSTtip;
delete masSTous1;
delete masSTous2;
delete masSTins;
delete masSTgt;
delete masLlx;
delete masLly;
delete masLdx;
delete masLdy;
delete masLa;
delete masL0;
delete masLxp;
delete masLyp;
};
kn_sound1_.onRollOver = function () {
_root.attachMovie("help_sound", "help_sound1", 5101, {_x:569.2, _y:12.8});
};
kn_sound1_.onRollOut = function () {
removeMovieClip("help_sound1");
};
kn_sound1_.onPress = function () {
if (gromkost == 1) {
_root.attachMovie("kn_soundof", "kn_soundof1", 5102, {_x:569.2, _y:12.8, _xscale:64, _yscale:64});
Schuh1.stop();
Schuh2.stop();
Schuh3.stop();
Schuh4.stop();
Sprir.stop();
gromkost = 0;
} else {
removeMovieClip("kn_soundof1");
gromkost = 1;
if (((napi1poC._x > 1) && (stolknov == 0)) && (promah == 0)) {
Schuh1.start(0, 10);
}
if (((napi2poC._x > 1) && (stolknov == 0)) && (promah == 0)) {
Schuh2.start(0, 10);
}
if (((napi3poC._x > 1) && (stolknov == 0)) && (promah == 0)) {
Schuh3.start(0, 10);
}
if (((napi4poC._x > 1) && (stolknov == 0)) && (promah == 0)) {
Schuh4.start(0, 10);
}
if ((((tipek > 0) && (tipek < 11)) && (stolknov == 0)) && (promah == 0)) {
Sprir.start(0, 1000);
}
}
};
if (((tipek > 0) && (tipek < 30)) || (tipek == 100)) {
if (n1 != 0) {
if (masLtyp[masPO1nl[0]] < 3) {
urur1 = 0;
}
if (masLtyp[masPO1nl[0]] == 3) {
urur1 = 50;
}
if (masLtyp[masPO1nl[0]] == 4) {
urur1 = -50;
}
removeMovieClip("po1_0");
_root.attachMovie("parK", "po1_0", 252 + urur1, {_x:masPO1x[0], _y:masPO1y[0], _rotation:(90 - (n1 * 90)) + masPO1a[0]});
k = 1;
while (k < masPO1x.length) {
if (masLtyp[masPO1nl[k]] < 3) {
urur1 = 0;
}
if (masLtyp[masPO1nl[k]] == 3) {
urur1 = 50;
}
if (masLtyp[masPO1nl[k]] == 4) {
urur1 = -50;
}
removeMovieClip("po1_" + k);
_root.attachMovie("vagK", "po1_" + k, (252 + k) + urur1, {_x:masPO1x[k], _y:masPO1y[k], _rotation:masPO1a[k]});
k++;
}
k = 0;
while (k < masPO1x.length) {
masPO1x[k] = masPO1x[k] + (n1 * masPO1dx[k]);
masPO1y[k] = masPO1y[k] + (n1 * masPO1dy[k]);
k++;
}
k = 0;
while (k < masPO1x.length) {
if ((masPO1x[k] > (masSTx[masPO1ns[k]] - dopS)) && (masPO1x[k] <= (masSTx[masPO1ns[k]] + dopS))) {
if ((masPO1y[k] > (masSTy[masPO1ns[k]] - dopS)) && (masPO1y[k] <= (masSTy[masPO1ns[k]] + dopS))) {
if (((k == 0) && (masST0[masPO1ns[k]] == 1)) || (masSTous1[masPO1ns[k]] == -2)) {
stolknov = 1;
}
if ((k == 0) && (masST0[masPO1ns[k]] == 0)) {
masST0[masPO1ns[k]] = 1;
}
if (k == (masPO1x.length - 1)) {
masST0[masPO1ns[k]] = 0;
}
masPO1x[k] = masSTx[masPO1ns[k]];
masPO1y[k] = masSTy[masPO1ns[k]];
if ((masSTgt[masPO1ns[k]] * n1) >= 0) {
masPO1nl[k] = masSTou1[masPO1ns[k]];
masPO1ns[k] = masSTous1[masPO1ns[k]];
} else {
if (masPO1nl[k] != masSTou1[masPO1ns[k]]) {
stolknov = 1;
}
masPO1nl[k] = masSTin[masPO1ns[k]];
masPO1ns[k] = masSTins[masPO1ns[k]];
}
masPO1dx[k] = v1 * masLdx[masPO1nl[k]];
masPO1dy[k] = v1 * masLdy[masPO1nl[k]];
masPO1a[k] = masLa[masPO1nl[k]];
}
}
k++;
}
}
if (n2 != 0) {
if (masLtyp[masPO2nl[0]] < 3) {
urur2 = 0;
}
if (masLtyp[masPO2nl[0]] == 3) {
urur2 = 50;
}
if (masLtyp[masPO2nl[0]] == 4) {
urur2 = -50;
}
removeMovieClip("po2_0");
_root.attachMovie("parZ", "po2_0", 262 + urur2, {_x:masPO2x[0], _y:masPO2y[0], _rotation:(90 - (n2 * 90)) + masPO2a[0]});
k = 1;
while (k < masPO2x.length) {
if (masLtyp[masPO2nl[k]] < 3) {
urur2 = 0;
}
if (masLtyp[masPO2nl[k]] == 3) {
urur2 = 50;
}
if (masLtyp[masPO2nl[k]] == 4) {
urur2 = -50;
}
removeMovieClip("po2_" + k);
_root.attachMovie("vagZ", "po2_" + k, (262 + k) + urur2, {_x:masPO2x[k], _y:masPO2y[k], _rotation:masPO2a[k]});
k++;
}
k = 0;
while (k < masPO2x.length) {
masPO2x[k] = masPO2x[k] + (n2 * masPO2dx[k]);
masPO2y[k] = masPO2y[k] + (n2 * masPO2dy[k]);
k++;
}
k = 0;
while (k < masPO2x.length) {
if ((masPO2x[k] > (masSTx[masPO2ns[k]] - dopS)) && (masPO2x[k] <= (masSTx[masPO2ns[k]] + dopS))) {
if ((masPO2y[k] > (masSTy[masPO2ns[k]] - dopS)) && (masPO2y[k] <= (masSTy[masPO2ns[k]] + dopS))) {
if (((k == 0) && (masST0[masPO2ns[k]] == 1)) || (masSTous1[masPO2ns[k]] == -2)) {
stolknov = 1;
}
if ((k == 0) && (masST0[masPO2ns[k]] == 0)) {
masST0[masPO2ns[k]] = 1;
}
if (k == (masPO2x.length - 1)) {
masST0[masPO2ns[k]] = 0;
}
masPO2x[k] = masSTx[masPO2ns[k]];
masPO2y[k] = masSTy[masPO2ns[k]];
if ((masSTgt[masPO2ns[k]] * n2) >= 0) {
masPO2nl[k] = masSTou1[masPO2ns[k]];
masPO2ns[k] = masSTous1[masPO2ns[k]];
} else {
if (masPO2nl[k] != masSTou1[masPO2ns[k]]) {
stolknov = 1;
}
masPO2nl[k] = masSTin[masPO2ns[k]];
masPO2ns[k] = masSTins[masPO2ns[k]];
}
masPO2dx[k] = v2 * masLdx[masPO2nl[k]];
masPO2dy[k] = v2 * masLdy[masPO2nl[k]];
masPO2a[k] = masLa[masPO2nl[k]];
}
}
k++;
}
if (((masPO2nl[0] == masPO1nl[0]) && (Math.abs(masPO2x[0] - masPO1x[0]) <= dopP)) && (Math.abs(masPO2y[0] - masPO1y[0]) <= dopP)) {
stolknov = 1;
}
if (((masPO2nl[0] == masPO1nl[masPO1x.length - 1]) && (Math.abs(masPO2x[0] - masPO1x[masPO1x.length - 1]) <= dopP)) && (Math.abs(masPO2y[0] - masPO1y[masPO1y.length - 1]) <= dopP)) {
stolknov = 1;
}
}
if (n3 != 0) {
if (masLtyp[masPO3nl[0]] < 3) {
urur3 = 0;
}
if (masLtyp[masPO3nl[0]] == 3) {
urur3 = 50;
}
if (masLtyp[masPO3nl[0]] == 4) {
urur3 = -50;
}
removeMovieClip("po3_0");
_root.attachMovie("parS", "po3_0", 272 + urur3, {_x:masPO3x[0], _y:masPO3y[0], _rotation:(90 - (n3 * 90)) + masPO3a[0]});
k = 1;
while (k < masPO3x.length) {
if (masLtyp[masPO3nl[k]] < 3) {
urur3 = 0;
}
if (masLtyp[masPO3nl[k]] == 3) {
urur3 = 50;
}
if (masLtyp[masPO3nl[k]] == 4) {
urur3 = -50;
}
removeMovieClip("po3_" + k);
_root.attachMovie("vagS", "po3_" + k, (272 + k) + urur3, {_x:masPO3x[k], _y:masPO3y[k], _rotation:masPO3a[k]});
k++;
}
k = 0;
while (k < masPO3x.length) {
masPO3x[k] = masPO3x[k] + (n3 * masPO3dx[k]);
masPO3y[k] = masPO3y[k] + (n3 * masPO3dy[k]);
k++;
}
k = 0;
while (k < masPO3x.length) {
if ((masPO3x[k] > (masSTx[masPO3ns[k]] - dopS)) && (masPO3x[k] <= (masSTx[masPO3ns[k]] + dopS))) {
if ((masPO3y[k] > (masSTy[masPO3ns[k]] - dopS)) && (masPO3y[k] <= (masSTy[masPO3ns[k]] + dopS))) {
if (((k == 0) && (masST0[masPO3ns[k]] == 1)) || (masSTous1[masPO3ns[k]] == -2)) {
stolknov = 1;
}
if ((k == 0) && (masST0[masPO3ns[k]] == 0)) {
masST0[masPO3ns[k]] = 1;
}
if (k == (masPO3x.length - 1)) {
masST0[masPO3ns[k]] = 0;
}
masPO3x[k] = masSTx[masPO3ns[k]];
masPO3y[k] = masSTy[masPO3ns[k]];
if ((masSTgt[masPO3ns[k]] * n3) >= 0) {
masPO3nl[k] = masSTou1[masPO3ns[k]];
masPO3ns[k] = masSTous1[masPO3ns[k]];
} else {
if (masPO3nl[k] != masSTou1[masPO3ns[k]]) {
stolknov = 1;
}
masPO3nl[k] = masSTin[masPO3ns[k]];
masPO3ns[k] = masSTins[masPO3ns[k]];
}
masPO3dx[k] = v3 * masLdx[masPO3nl[k]];
masPO3dy[k] = v3 * masLdy[masPO3nl[k]];
masPO3a[k] = masLa[masPO3nl[k]];
}
}
k++;
}
if (((masPO3nl[0] == masPO1nl[0]) && (Math.abs(masPO3x[0] - masPO1x[0]) <= dopP)) && (Math.abs(masPO3y[0] - masPO1y[0]) <= dopP)) {
stolknov = 1;
}
if (((masPO3nl[0] == masPO1nl[masPO1x.length - 1]) && (Math.abs(masPO3x[0] - masPO1x[masPO1x.length - 1]) <= dopP)) && (Math.abs(masPO3y[0] - masPO1y[masPO1y.length - 1]) <= dopP)) {
stolknov = 1;
}
if (((masPO3nl[0] == masPO2nl[0]) && (Math.abs(masPO3x[0] - masPO2x[0]) <= dopP)) && (Math.abs(masPO3y[0] - masPO2y[0]) <= dopP)) {
stolknov = 1;
}
if (((masPO3nl[0] == masPO2nl[masPO2x.length - 1]) && (Math.abs(masPO3x[0] - masPO2x[masPO2x.length - 1]) <= dopP)) && (Math.abs(masPO3y[0] - masPO2y[masPO2y.length - 1]) <= dopP)) {
stolknov = 1;
}
}
if (n4 != 0) {
if (masLtyp[masPO4nl[0]] < 3) {
urur4 = 0;
}
if (masLtyp[masPO4nl[0]] == 3) {
urur4 = 50;
}
if (masLtyp[masPO4nl[0]] == 4) {
urur4 = -50;
}
removeMovieClip("po4_0");
_root.attachMovie("parR", "po4_0", 282 + urur4, {_x:masPO4x[0], _y:masPO4y[0], _rotation:(90 - (n4 * 90)) + masPO4a[0]});
k = 1;
while (k < masPO4x.length) {
if (masLtyp[masPO4nl[k]] < 3) {
urur4 = 0;
}
if (masLtyp[masPO4nl[k]] == 3) {
urur4 = 50;
}
if (masLtyp[masPO4nl[k]] == 4) {
urur4 = -50;
}
removeMovieClip("po4_" + k);
_root.attachMovie("vagR", "po4_" + k, (282 + k) + urur4, {_x:masPO4x[k], _y:masPO4y[k], _rotation:masPO4a[k]});
k++;
}
k = 0;
while (k < masPO4x.length) {
masPO4x[k] = masPO4x[k] + (n4 * masPO4dx[k]);
masPO4y[k] = masPO4y[k] + (n4 * masPO4dy[k]);
k++;
}
k = 0;
while (k < masPO4x.length) {
if ((masPO4x[k] > (masSTx[masPO4ns[k]] - dopS)) && (masPO4x[k] <= (masSTx[masPO4ns[k]] + dopS))) {
if ((masPO4y[k] > (masSTy[masPO4ns[k]] - dopS)) && (masPO4y[k] <= (masSTy[masPO4ns[k]] + dopS))) {
if (((k == 0) && (masST0[masPO4ns[k]] == 1)) || (masSTous1[masPO4ns[k]] == -2)) {
stolknov = 1;
}
if ((k == 0) && (masST0[masPO4ns[k]] == 0)) {
masST0[masPO4ns[k]] = 1;
}
if (k == (masPO4x.length - 1)) {
masST0[masPO4ns[k]] = 0;
}
masPO4x[k] = masSTx[masPO4ns[k]];
masPO4y[k] = masSTy[masPO4ns[k]];
if ((masSTgt[masPO4ns[k]] * n4) >= 0) {
masPO4nl[k] = masSTou1[masPO4ns[k]];
masPO4ns[k] = masSTous1[masPO4ns[k]];
} else {
if (masPO4nl[k] != masSTou1[masPO4ns[k]]) {
stolknov = 1;
}
masPO4nl[k] = masSTin[masPO4ns[k]];
masPO4ns[k] = masSTins[masPO4ns[k]];
}
masPO4dx[k] = v4 * masLdx[masPO4nl[k]];
masPO4dy[k] = v4 * masLdy[masPO4nl[k]];
masPO4a[k] = masLa[masPO4nl[k]];
}
}
k++;
}
if (((masPO4nl[0] == masPO1nl[0]) && (Math.abs(masPO4x[0] - masPO1x[0]) <= dopP)) && (Math.abs(masPO4y[0] - masPO1y[0]) <= dopP)) {
stolknov = 1;
}
if (((masPO4nl[0] == masPO1nl[masPO1x.length - 1]) && (Math.abs(masPO4x[0] - masPO1x[masPO1x.length - 1]) <= dopP)) && (Math.abs(masPO4y[0] - masPO1y[masPO1y.length - 1]) <= dopP)) {
stolknov = 1;
}
if (((masPO4nl[0] == masPO2nl[0]) && (Math.abs(masPO4x[0] - masPO2x[0]) <= dopP)) && (Math.abs(masPO4y[0] - masPO2y[0]) <= dopP)) {
stolknov = 1;
}
if (((masPO4nl[0] == masPO2nl[masPO2x.length - 1]) && (Math.abs(masPO4x[0] - masPO2x[masPO2x.length - 1]) <= dopP)) && (Math.abs(masPO4y[0] - masPO2y[masPO2y.length - 1]) <= dopP)) {
stolknov = 1;
}
if (((masPO4nl[0] == masPO3nl[0]) && (Math.abs(masPO4x[0] - masPO3x[0]) <= dopP)) && (Math.abs(masPO4y[0] - masPO3y[0]) <= dopP)) {
stolknov = 1;
}
if (((masPO4nl[0] == masPO3nl[masPO3x.length - 1]) && (Math.abs(masPO4x[0] - masPO3x[masPO3x.length - 1]) <= dopP)) && (Math.abs(masPO4y[0] - masPO3y[masPO3y.length - 1]) <= dopP)) {
stolknov = 1;
}
}
if (((masPO1x[0] > (\u0441P1x - dopS)) && (masPO1x[0] <= (\u0441P1x + dopS))) && (n1 != 0)) {
if ((masPO1y[0] > (\u0441P1y - dopS)) && (masPO1y[0] <= (\u0441P1y + dopS))) {
if (((n1 == 1) && (gromkost == 1)) && (napi1poC._x > 1)) {
SoutL.start(0, 1);
}
if (((n1 == -1) && (gromkost == 1)) && (napi1poC._x > 1)) {
SoutR.start(0, 1);
}
Schuh1.stop();
if (gromkost == 1) {
SchuhO.start(0, 1);
}
removeMovieClip("napi1poC");
} else {
promah = 1;
}
}
if (((masPO2x[0] > (\u0441P2x - dopS)) && (masPO2x[0] <= (\u0441P2x + dopS))) && (n2 != 0)) {
if ((masPO2y[0] > (\u0441P2y - dopS)) && (masPO2y[0] <= (\u0441P2y + dopS))) {
if (((n2 == 1) && (gromkost == 1)) && (napi2poC._x > 1)) {
SoutL.start(0, 1);
}
if (((n2 == -1) && (gromkost == 1)) && (napi2poC._x > 1)) {
SoutR.start(0, 1);
}
Schuh2.stop();
if (gromkost == 1) {
SchuhO.start(0, 1);
}
removeMovieClip("napi2poC");
} else {
promah = 1;
}
}
if (((masPO3x[0] > (\u0441P3x - dopS)) && (masPO3x[0] <= (\u0441P3x + dopS))) && (n3 != 0)) {
if ((masPO3y[0] > (\u0441P3y - dopS)) && (masPO3y[0] <= (\u0441P3y + dopS))) {
if (((n3 == 1) && (gromkost == 1)) && (napi3poC._x > 1)) {
SoutL.start(0, 1);
}
if (((n3 == -1) && (gromkost == 1)) && (napi3poC._x > 1)) {
SoutR.start(0, 1);
}
Schuh3.stop();
if (gromkost == 1) {
SchuhO.start(0, 1);
}
removeMovieClip("napi3poC");
} else {
promah = 1;
}
}
if (((masPO4x[0] > (\u0441P4x - dopS)) && (masPO4x[0] <= (\u0441P4x + dopS))) && (n4 != 0)) {
if ((masPO4y[0] > (\u0441P4y - dopS)) && (masPO4y[0] <= (\u0441P4y + dopS))) {
if (((n4 == 1) && (gromkost == 1)) && (napi4poC._x > 1)) {
SoutL.start(0, 1);
}
if (((n4 == -1) && (gromkost == 1)) && (napi4poC._x > 1)) {
SoutR.start(0, 1);
}
Schuh4.stop();
if (gromkost == 1) {
SchuhO.start(0, 1);
}
removeMovieClip("napi4poC");
} else {
promah = 1;
}
}
}
if ((tipek > 30) && (tipek != 100)) {
if (tipeknal == 0) {
if (predek < 10) {
_root.attachMovie("lev" + predek, "urcong", 7000, {_x:0, _y:0});
}
if (predek == 10) {
_root.attachMovie("lev" + predek, "urcong1", 7000, {_x:0, _y:0});
_root.attachMovie("kn_MENU", "urcong", 7001, {_x:446, _y:274});
_root.attachMovie("kn_savS", "urcong2", 7002, {_x:194, _y:274});
}
if (predek < 10) {
_root.createTextField("all5", 7500, 265, 365, 400, 50);
all5.textColor = 13439758 /* 0xCD130E */;
lineStyle = new TextFormat();
lineStyle.bold = true;
lineStyle.size = 20;
all5.setTextFormat(lineStyle);
pass1 = predek;
pass0 = qwclics;
if (pass0 <= 60) {
pass2 = 0;
pass3 = pass0;
}
if (pass0 > 60) {
pass2 = Math.floor(pass0 / 60);
pass3 = pass0 - (pass2 * 60);
}
pass_ = pass0 - (pass1 * 11);
if (pass_ <= 60) {
pass4 = 0;
pass5 = pass_;
}
if (pass_ > 60) {
pass4 = Math.floor(pass_ / 60);
pass5 = pass_ - (pass4 * 60);
}
all5.text = (((("password: " + String.fromCharCode(pass1 + 33)) + String.fromCharCode(pass2 + 33)) + String.fromCharCode(pass3 + 33)) + String.fromCharCode(pass4 + 33)) + String.fromCharCode(pass5 + 33);
all5.setTextFormat(lineStyle);
}
if (gromkost == 1) {
Sur.start(0, 1);
}
tipeknal = 1;
}
k = 0;
while (k < 50) {
removeMovieClip("urc" + k);
k++;
}
urcong.onPress = function () {
tipeknal = 0;
removeMovieClip("urcong");
all5.removeTextField();
if (tipek < 40) {
tipek = predek + 1;
}
if (tipek == 40) {
removeMovieClip("urcong");
removeMovieClip("ur1");
removeMovieClip("ur1_2");
removeMovieClip("ur1_3");
removeMovieClip("dvspon1");
removeMovieClip("click1");
removeMovieClip("kn_soundof1");
removeMovieClip("kn_sound1_");
removeMovieClip("kn_MENU1");
removeMovieClip("kn_pause1");
removeMovieClip("kn_morgam1");
all4.removeTextField();
removeMovieClip("help_click1");
tipek = 0;
qwclics = 0;
removeMovieClip("urcong1");
removeMovieClip("urcong2");
}
};
urcong2.onPress = function () {
nachalo();
removeMovieClip("ur1");
removeMovieClip("ur1_2");
removeMovieClip("ur1_3");
removeMovieClip("dvspon1");
removeMovieClip("click1");
removeMovieClip("kn_soundof1");
removeMovieClip("kn_sound1_");
removeMovieClip("kn_MENU1");
removeMovieClip("kn_pause1");
removeMovieClip("kn_morgam1");
all4.removeTextField();
removeMovieClip("help_click1");
tipek = 0;
removeMovieClip("urcong1");
removeMovieClip("urcong2");
removeMovieClip("urcong");
SAV_career = qwclics;
gotoAndPlay (7);
};
}
trace(stolknov);
}
if (((stolknov >= 1) || (promah >= 1)) && (stolkpr == 0)) {
Schuh1.stop();
Schuh2.stop();
Schuh3.stop();
Schuh4.stop();
Sprir.stop();
n1 = 0;
n2 = 0;
n3 = 0;
n4 = 0;
pause1 = 1;
if (stolknov == 1) {
_root.attachMovie("lev_wreck", "wreck", 5001, {_x:0, _y:0, _xscale:128, _yscale:128});
if (gromkost == 1) {
Scrash.start(0, 1);
}
} else {
_root.attachMovie("lev_miss", "miss", 5001, {_x:0, _y:0, _xscale:128, _yscale:128});
if (gromkost == 1) {
Smiss.start(0, 1);
}
}
delete masSTx;
delete masSTy;
delete masSTa;
delete masST0;
delete masSTi;
delete masSTou1;
delete masSTou2;
delete masSTtip;
delete masSTous1;
delete masSTous2;
delete masSTins;
delete masSTgt;
delete masLlx;
delete masLly;
delete masLdx;
delete masLdy;
delete masLa;
delete masL0;
delete masLxp;
delete masLyp;
stolkpr = 1;
}
wreck.onPress = function () {
remALL();
stolknov = 0;
pause1 = 0;
stolkpr = 0;
nkadra = autosave;
tipeknal = 0;
removeMovieClip("wreck");
};
miss.onPress = function () {
remALL();
promah = 0;
pause1 = 0;
stolkpr = 0;
nkadra = autosave;
tipeknal = 0;
removeMovieClip("miss");
};
all4.text = qwclics + " clicks";
all4.setTextFormat(lineStyle);
kn_pause1.onPress = function () {
stolknov = 0;
if (((pause1 == 0) && (stolknov == 0)) && (promah == 0)) {
kn_pe12._x = 0;
pause1 = 1;
Schuh1.stop();
Schuh2.stop();
Schuh3.stop();
Schuh4.stop();
Sprir.stop();
}
};
kn_pe12.onPress = function () {
kn_pe12._x = 700;
if (((pause1 == 1) && (stolknov == 0)) && (promah == 0)) {
pause1 = 0;
if ((((napi1poC._x > 1) && (stolknov == 0)) && (promah == 0)) && (gromkost == 1)) {
Schuh1.start(0, 10);
}
if ((((napi2poC._x > 1) && (stolknov == 0)) && (promah == 0)) && (gromkost == 1)) {
Schuh2.start(0, 10);
}
if ((((napi3poC._x > 1) && (stolknov == 0)) && (promah == 0)) && (gromkost == 1)) {
Schuh3.start(0, 10);
}
if ((((napi4poC._x > 1) && (stolknov == 0)) && (promah == 0)) && (gromkost == 1)) {
Schuh4.start(0, 10);
}
if (gromkost == 1) {
Sprir.start(0, 1000);
}
}
stolknov = 0;
};
kn_morgam1.onPress = function () {
spons_link();
};
};
stop();
Frame 6
function pereslin(x1_1, y1_1, x1_2, y1_2, x2_1, y2_1, x2_2, y2_2) {
k1_ = (y1_2 - y1_1) / (x1_2 - x1_1);
b1_ = y1_1 - (k1_ * x1_1);
k2_ = (y2_2 - y2_1) / (x2_2 - x2_1);
b2_ = y2_1 - (k2_ * x2_1);
if (k1_ != k2_) {
xperes = (b2_ - b1_) / (k1_ - k2_);
yperes = (k1_ * xperes) + b1_;
if ((xperes > x1_1) && (xperes < x1_2)) {
if ((xperes <= x2_2) && (xperes >= x2_1)) {
perlin = 1;
}
}
} else if (b2_ == b1_) {
if (((x1_2 > x2_1) && (x1_2 < x2_2)) || ((x1_2 > x2_2) && (x1_2 < x2_1))) {
perlin = 1;
}
if (((x1_1 > x2_1) && (x1_1 < x2_2)) || ((x1_1 > x2_2) && (x1_1 < x2_1))) {
perlin = 1;
}
}
}
function strelka(mcSTR, NN) {
if (masST0[NN] == 0) {
if (gromkost == 1) {
klik.start(0, 1);
}
aaa = masSTou1[NN];
masSTou1[NN] = masSTou2[NN];
masSTou2[NN] = aaa;
aaa = masSTous1[NN];
masSTous1[NN] = masSTous2[NN];
masSTous2[NN] = aaa;
if (masSTtip[NN] == 0) {
mcSTR._rotation = masSTa_2[NN];
masSTtip[NN] = 1;
} else {
mcSTR._rotation = masSTa[NN];
masSTtip[NN] = 0;
}
}
}
function LLL() {
if (gromkost == 1) {
Sprir.start(0, 1000);
}
masLxp = new Array(masLtyp.length);
masLyp = new Array(masLtyp.length);
masL0 = new Array(masLtyp.length);
masLa = new Array(masLtyp.length);
masLdx = new Array(masLtyp.length);
masLdy = new Array(masLtyp.length);
masLlx = new Array(masLtyp.length);
masLly = new Array(masLtyp.length);
i = 0;
while (i < masLtyp.length) {
if (masLtyp[i] == -1) {
masLxp[i] = masSTx[masL1[i]];
masLyp[i] = masSTy[masL1[i]];
masL0[i] = masL2[i];
}
if (masLtyp[i] == 1) {
masLxp[i] = masSTx[masL2[i]];
masLyp[i] = masSTy[masL2[i]];
masL0[i] = masL1[i];
}
if (masLtyp[i] > 1) {
masLxp[i] = 0;
masLyp[i] = 0;
masL0[i] = 0;
}
masLa[i] = radgr * Math.atan((masSTy[masL2[i]] - masSTy[masL1[i]]) / (masSTx[masL2[i]] - masSTx[masL1[i]]));
masLdx[i] = 6.4 * Math.cos(masLa[i] / radgr);
masLdy[i] = 6.4 * Math.sin(masLa[i] / radgr);
masLlx[i] = 7.5 * masLdx[i];
masLly[i] = (masLtyp[i] * 7.5) * masLdy[i];
i++;
}
}
function STSTST() {
j = 0;
while (j < masSTx.length) {
if ((masSTx[j] > 0) && (masSTx[j] < 1000)) {
jj = j;
}
j++;
}
jj = jj + 1;
masST0 = new Array(jj);
masSTtip = new Array(jj);
masSTgt = new Array(jj);
masSTin = new Array(jj);
masSTain = new Array(jj);
masSTa = new Array(jj);
masSTa_2 = new Array(jj);
masSTou1 = new Array(jj);
masSTou2 = new Array(jj);
masSTins = new Array(jj);
masSTous1 = new Array(jj);
masSTous2 = new Array(jj);
i = 0;
while (i < masST0.length) {
masST0[i] = 0;
masSTtip[i] = 0;
a1 = -1000;
a2 = -1000;
b1 = -1000;
b2 = -1000;
j = 0;
while (j < masLtyp.length) {
if ((masL1[j] == i) && (a1 == -1000)) {
a1 = j;
} else if ((masL1[j] == i) && (a1 != -1000)) {
a2 = j;
}
if ((masL2[j] == i) && (b1 == -1000)) {
b1 = j;
} else if ((masL2[j] == i) && (b1 != -1000)) {
b2 = j;
}
j++;
}
if ((a1 != -1000) && (a2 != -1000)) {
masSTgt[i] = 1;
masSTin[i] = b1;
masSTain[i] = masLa[b1];
masSTa[i] = masLa[a1];
masSTa_2[i] = masLa[a2];
masSTou1[i] = a1;
masSTou2[i] = a2;
masSTins[i] = masL1[b1];
masSTous1[i] = masL2[a1];
masSTous2[i] = masL2[a2];
if (masLtyp[a1] == 0) {
masSTous1[i] = -2;
}
if (masLtyp[a2] == 0) {
masSTous2[i] = -2;
}
if ((masLtyp[a1] == -1) || (masLtyp[a1] == 1)) {
masSTous1[i] = -1;
}
if ((masLtyp[a2] == -1) || (masLtyp[a2] == 1)) {
masSTous2[i] = -1;
}
if ((masLtyp[b1] == -1) || (masLtyp[b1] == 1)) {
masSTins[i] = -1;
}
} else {
masSTgt[i] = -1;
masSTin[i] = a1;
masSTain[i] = masLa[a1] + 180;
masSTa[i] = masLa[b1] + 180;
masSTa_2[i] = masLa[b2] + 180;
masSTou1[i] = b1;
masSTou2[i] = b2;
masSTins[i] = masL2[a1];
masSTous1[i] = masL1[b1];
masSTous2[i] = masL1[b2];
if (masLtyp[b1] == 0) {
masSTous1[i] = -2;
}
if (masLtyp[b2] == 0) {
masSTous2[i] = -2;
}
if ((masLtyp[b1] == -1) || (masLtyp[b1] == 1)) {
masSTous1[i] = -1;
}
if ((masLtyp[b2] == -1) || (masLtyp[b2] == 1)) {
masSTous2[i] = -1;
}
if ((masLtyp[a1] == -1) || (masLtyp[a1] == 1)) {
masSTins[i] = -1;
}
}
i++;
}
}
function massPOEZDA1(naprP, vP, Ncely, Nishod, Nstr, kolvoVag) {
removeMovieClip("napi1po");
n1 = naprP;
v1 = vP;
Set("\u0441P1x", masLxp[Ncely]);
Set("\u0441P1y", masLyp[Ncely]);
masPO1nl = new Array(kolvoVag);
masPO1x = new Array(kolvoVag);
masPO1y = new Array(kolvoVag);
masPO1ns = new Array(kolvoVag);
masPO1dx = new Array(kolvoVag);
masPO1dy = new Array(kolvoVag);
masPO1a = new Array(kolvoVag);
j = 0;
while (j < kolvoVag) {
masPO1nl[j] = Nishod;
masPO1x[j] = masLxp[Nishod] - ((j * n1) * masLlx[Nishod]);
masPO1y[j] = masLyp[Nishod] + (j * masLly[Nishod]);
masPO1ns[j] = Nstr;
masPO1dx[j] = v1 * masLdx[Nishod];
masPO1dy[j] = v1 * masLdy[Nishod];
masPO1a[j] = masLa[Nishod];
j++;
}
}
function massPOEZDA2(naprP2, vP2, Ncely2, Nishod2, Nstr2, kolvoVag2) {
removeMovieClip("napi2po");
n2 = naprP2;
v2 = vP2;
Set("\u0441P2x", masLxp[Ncely2]);
Set("\u0441P2y", masLyp[Ncely2]);
masPO2nl = new Array(kolvoVag2);
masPO2x = new Array(kolvoVag2);
masPO2y = new Array(kolvoVag2);
masPO2ns = new Array(kolvoVag2);
masPO2dx = new Array(kolvoVag2);
masPO2dy = new Array(kolvoVag2);
masPO2a = new Array(kolvoVag2);
j = 0;
while (j < kolvoVag2) {
masPO2nl[j] = Nishod2;
masPO2x[j] = masLxp[Nishod2] - ((j * n2) * masLlx[Nishod2]);
masPO2y[j] = masLyp[Nishod2] + (j * masLly[Nishod2]);
masPO2ns[j] = Nstr2;
masPO2dx[j] = v2 * masLdx[Nishod2];
masPO2dy[j] = v2 * masLdy[Nishod2];
masPO2a[j] = masLa[Nishod2];
j++;
}
}
function massPOEZDA3(naprP3, vP3, Ncely3, Nishod3, Nstr3, kolvoVag3) {
removeMovieClip("napi3po");
n3 = naprP3;
v3 = vP3;
Set("\u0441P3x", masLxp[Ncely3]);
Set("\u0441P3y", masLyp[Ncely3]);
masPO3nl = new Array(kolvoVag3);
masPO3x = new Array(kolvoVag3);
masPO3y = new Array(kolvoVag3);
masPO3ns = new Array(kolvoVag3);
masPO3dx = new Array(kolvoVag3);
masPO3dy = new Array(kolvoVag3);
masPO3a = new Array(kolvoVag3);
j = 0;
while (j < kolvoVag3) {
masPO3nl[j] = Nishod3;
masPO3x[j] = masLxp[Nishod3] - ((j * n3) * masLlx[Nishod3]);
masPO3y[j] = masLyp[Nishod3] + (j * masLly[Nishod3]);
masPO3ns[j] = Nstr3;
masPO3dx[j] = v3 * masLdx[Nishod3];
masPO3dy[j] = v3 * masLdy[Nishod3];
masPO3a[j] = masLa[Nishod3];
j++;
}
}
function massPOEZDA4(naprP4, vP4, Ncely4, Nishod4, Nstr4, kolvoVag4) {
removeMovieClip("napi4po");
n4 = naprP4;
v4 = vP4;
Set("\u0441P4x", masLxp[Ncely4]);
Set("\u0441P4y", masLyp[Ncely4]);
masPO4nl = new Array(kolvoVag4);
masPO4x = new Array(kolvoVag4);
masPO4y = new Array(kolvoVag4);
masPO4ns = new Array(kolvoVag4);
masPO4dx = new Array(kolvoVag4);
masPO4dy = new Array(kolvoVag4);
masPO4a = new Array(kolvoVag4);
j = 0;
while (j < kolvoVag4) {
masPO4nl[j] = Nishod4;
masPO4x[j] = masLxp[Nishod4] - ((j * n4) * masLlx[Nishod4]);
masPO4y[j] = masLyp[Nishod4] + (j * masLly[Nishod4]);
masPO4ns[j] = Nstr4;
masPO4dx[j] = v4 * masLdx[Nishod4];
masPO4dy[j] = v4 * masLdy[Nishod4];
masPO4a[j] = masLa[Nishod4];
j++;
}
}
function VIZOVp(iii) {
iiin = Mnp[iii];
iiiv = Mvp[iii];
iiicPx = Mcp[iii];
iiimasPOn1 = Mstp[iii];
iiimasPOns = masL0[Mstp[iii]];
iiikvo = Mkvo[iii];
if (McvP[iii] == 1) {
massPOEZDA1(iiin, iiiv, iiicPx, iiimasPOn1, iiimasPOns, iiikvo);
if (gromkost == 1) {
Schuh1.start(0, 10);
}
}
if (McvP[iii] == 2) {
massPOEZDA2(iiin, iiiv, iiicPx, iiimasPOn1, iiimasPOns, iiikvo);
if (gromkost == 1) {
Schuh2.start(0, 10);
}
}
if (McvP[iii] == 3) {
massPOEZDA3(iiin, iiiv, iiicPx, iiimasPOn1, iiimasPOns, iiikvo);
if (gromkost == 1) {
Schuh3.start(0, 10);
}
}
if (McvP[iii] == 4) {
massPOEZDA4(iiin, iiiv, iiicPx, iiimasPOn1, iiimasPOns, iiikvo);
if (gromkost == 1) {
Schuh4.start(0, 10);
}
}
}
function NAPRp(iii) {
if (Mnp[iii] == 1) {
if (gromkost == 1) {
SinL.start(0, 1);
}
xii1 = 16;
yii1 = (masLyp[Mstp[iii]] + ((xii1 - masLxp[Mstp[iii]]) * Math.tan(0.0174532925 * masLa[Mstp[iii]]))) - 6.4;
aii1 = masLa[Mstp[iii]];
xii2 = 621;
yii2 = (masLyp[Mcp[iii]] - ((masLxp[Mcp[iii]] - xii2) * Math.tan(0.0174532925 * masLa[Mcp[iii]]))) + 6.4;
aii2 = masLa[Mcp[iii]];
} else {
if (gromkost == 1) {
SinR.start(0, 1);
}
xii1 = 621;
yii1 = (masLyp[Mstp[iii]] - ((masLxp[Mstp[iii]] - xii1) * Math.tan(0.0174532925 * masLa[Mstp[iii]]))) - 6.4;
aii1 = masLa[Mstp[iii]] + 180;
xii2 = 16;
yii2 = (masLyp[Mcp[iii]] + ((xii2 - masLxp[Mcp[iii]]) * Math.tan(0.0174532925 * masLa[Mcp[iii]]))) + 6.4;
aii2 = masLa[Mcp[iii]] + 180;
}
if (McvP[iii] == 1) {
_root.attachMovie("napr1K", "napi1poC", 189, {_x:xii2, _y:yii2, _xscale:64, _yscale:64, _rotation:aii2});
_root.attachMovie("napr1K", "napi1po", 190, {_x:xii1, _y:yii1, _xscale:64, _yscale:64, _rotation:aii1});
}
if (McvP[iii] == 2) {
_root.attachMovie("napr2K", "napi2poC", 183, {_x:xii2 + 6.4, _y:yii2 + 3.84, _xscale:64, _yscale:64, _rotation:aii2});
_root.attachMovie("napr2K", "napi2po", 184, {_x:xii1 + 6.4, _y:yii1 + 3.84, _xscale:64, _yscale:64, _rotation:aii1});
}
if (McvP[iii] == 3) {
_root.attachMovie("napr3K", "napi3poC", 185, {_x:xii2 + 9.6, _y:yii2 + 2.56, _xscale:64, _yscale:64, _rotation:aii2});
_root.attachMovie("napr3K", "napi3po", 186, {_x:xii1 + 9.6, _y:yii1 + 2.56, _xscale:64, _yscale:64, _rotation:aii1});
}
if (McvP[iii] == 4) {
_root.attachMovie("napr4K", "napi4poC", 187, {_x:xii2 + 3.2, _y:yii2 + 1.28, _xscale:64, _yscale:64, _rotation:aii2});
_root.attachMovie("napr4K", "napi4po", 188, {_x:xii1 + 3.2, _y:yii1 + 1.28, _xscale:64, _yscale:64, _rotation:aii1});
}
}
function NalST() {
i = 0;
while (i < masSTx.length) {
if ((masSTx[i] > 4) && (masSTx[i] < 1000)) {
_root.attachMovie("strel1", ("str" + i) + "a", 122 + (i * 2), {_x:masSTx[i], _y:masSTy[i], _rotation:masSTa[i]});
_root.attachMovie("str0", "str00" + i, 81 + i, {_x:masSTx[i], _y:masSTy[i], _rotation:masSTain[i]});
}
i++;
}
}
function endUr(NNn) {
predek = NNn;
tipek = 30 + NNn;
n1 = 0;
n2 = 0;
n3 = 0;
n4 = 0;
n1_ = 0;
n2_ = 0;
n3_ = 0;
n4_ = 0;
autosave = 0;
tipeknal = 0;
ij = 0;
while (ij < 30) {
removeMovieClip(("str" + ij) + "a");
removeMovieClip("str00" + ij);
Sprir.stop();
ij++;
}
}
function remALL() {
ij = 0;
while (ij < 30) {
removeMovieClip(("str" + ij) + "a");
removeMovieClip("str00" + ij);
ij++;
}
Schuh1.stop();
Schuh2.stop();
Schuh3.stop();
Schuh4.stop();
Sprir.stop();
k = 1;
while (k < 5) {
l = 0;
while (l < 9) {
removeMovieClip((("po" + k) + "_") + l);
l++;
}
k++;
}
k = 1;
while (k < 5) {
removeMovieClip(("napi" + k) + "poC");
removeMovieClip(("napi" + k) + "po");
k++;
}
removeMovieClip("ur1");
removeMovieClip("ur1_2");
removeMovieClip("ur1_3");
removeMovieClip("dvspon1");
removeMovieClip("click1");
k = 1;
while (k < 9) {
delete eval (("masPO" + k) + "nl");
delete eval (("masPO" + k) + "y");
delete eval (("masPO" + k) + "ns");
delete eval (("masPO" + k) + "dx");
delete eval (("masPO" + k) + "dy");
delete eval (("masPO" + k) + "1a");
k++;
}
n1 = 0;
n2 = 0;
n3 = 0;
n4 = 0;
}
function scalAL() {
i = 0;
while (i < masSTx.length) {
masSTx[i] = masSTx[i] * 0.64;
masSTy[i] = masSTy[i] * 0.64;
i++;
}
}
function REFR_ESH() {
qwclics = 0;
endUr(70);
tipek = 100;
tipeknal = 0;
removeMovieClip("radar2");
removeMovieClip("radar3");
removeMovieClip("radar4");
i = 0;
while (i < 30) {
removeMovieClip("tupik" + i);
i++;
}
k = 1;
while (k < 5) {
l = 0;
while (l < 9) {
removeMovieClip((("po" + k) + "_") + l);
l++;
}
k++;
}
k = 1;
while (k < 5) {
removeMovieClip(("napi" + k) + "poC");
removeMovieClip(("napi" + k) + "po");
k++;
}
Schuh1.stop();
Schuh2.stop();
Schuh3.stop();
Schuh4.stop();
}
function Em() {
j = 0;
while (j < (kvoRL + 1)) {
this[j] = -1000;
j++;
}
}
SAV_career = 3700;
SAV_random = -1;
gromkost = 1;
stolkpr = 0;
radgr = 57.2957795;
tipek = 0;
tipeknal = 0;
nkadra = 0;
dopS = 4;
dopP = 29;
stolknov = 0;
promah = 0;
pause1 = 0;
n1 = 0;
n2 = 0;
n3 = 0;
n4 = 0;
n1_ = 0;
n2_ = 0;
n3_ = 0;
n4_ = 0;
autosave = 0;
urur1 = 0;
urur2 = 0;
urur3 = 0;
urur4 = 0;
qwclics = 0;
_root.createEmptyMovieClip("holder0", 1000);
klik = new Sound(holder0);
klik.attachSound("RClick");
_root.createEmptyMovieClip("holder1", 1001);
Smiss = new Sound(holder1);
Smiss.attachSound("Rmiss");
_root.createEmptyMovieClip("holder2", 1002);
Scrash = new Sound(holder2);
Scrash.attachSound("RRcrash");
_root.createEmptyMovieClip("holder3", 1003);
Sur = new Sound(holder3);
Sur.attachSound("Rur");
_root.createEmptyMovieClip("holder4", 1004);
Sprir = new Sound(holder4);
Sprir.attachSound("Rprir");
_root.createEmptyMovieClip("holder6", 1006);
Sfinal = new Sound(holder6);
Sfinal.attachSound("Rfinal");
_root.createEmptyMovieClip("holder7", 1007);
SinL = new Sound(holder7);
SinL.attachSound("Rin");
SinL.setTransform({ll:100, lr:100, rr:0, rl:0});
_root.createEmptyMovieClip("holder8", 1008);
SinR = new Sound(holder8);
SinR.attachSound("Rin");
SinR.setTransform({ll:0, lr:0, rr:100, rl:100});
_root.createEmptyMovieClip("holder9", 1009);
SoutL = new Sound(holder9);
SoutL.attachSound("Rout");
SoutL.setTransform({ll:0, lr:0, rr:100, rl:100});
_root.createEmptyMovieClip("holder10", 1010);
SoutR = new Sound(holder10);
SoutR.attachSound("Rout");
SoutR.setTransform({ll:100, lr:100, rr:0, rl:0});
_root.createEmptyMovieClip("holder11", 1011);
Schuh1 = new Sound(holder11);
Schuh1.attachSound("Rchuh");
_root.createEmptyMovieClip("holder12", 1012);
Schuh2 = new Sound(holder12);
Schuh2.attachSound("Rchuh");
_root.createEmptyMovieClip("holder13", 1013);
Schuh3 = new Sound(holder13);
Schuh3.attachSound("Rchuh");
_root.createEmptyMovieClip("holder14", 1014);
Schuh4 = new Sound(holder14);
Schuh4.attachSound("Rchuh");
_root.onEnterFrame = function () {
if (pause1 == 0) {
if ((stolknov != 1) || (promah != 1)) {
nkadra = nkadra + 1;
}
if (tipek == 0) {
if (tipeknal == 0) {
tipeknal = 1;
}
autosave = 0;
tipek = 100;
tipeknal = 0;
removeMovieClip("zastav1");
removeMovieClip("kn_start1");
removeMovieClip("help_start1");
removeMovieClip("kn_start21");
removeMovieClip("kn_help1");
removeMovieClip("kn_sound1");
removeMovieClip("plakat11");
removeMovieClip("kn_soundof1");
removeMovieClip("kn_MG1");
removeMovieClip("knf_sound1");
removeMovieClip("logo_spons1");
_root.attachMovie("kn_sound", "kn_sound1_", 5100, {_x:569.2, _y:12.8, _xscale:64, _yscale:64});
_root.createTextField("all4", 5999, 67.2, 1, 150, 22);
all4.textColor = 13369344 /* 0xCC0000 */;
lineStyle = new TextFormat();
lineStyle.bold = true;
lineStyle.size = 20;
all4.setTextFormat(lineStyle);
if (gromkost == 0) {
_root.attachMovie("kn_soundof", "kn_soundof1", 5102, {_x:563.2, _y:12.8});
}
}
if (tipek == 100) {
if (tipeknal == 0) {
kvostr = 21 + Math.round(8 * Math.random());
masSTx = new Array(kvostr);
masSTy = new Array(kvostr);
masSTa1 = new Array(kvostr);
masSTa2 = new Array(kvostr);
masSTb1 = new Array(kvostr);
masSTb2 = new Array(kvostr);
masL1 = new Array();
masL2 = new Array();
masLtyp = new Array();
i = 0;
while (i < kvostr) {
xnov = 50 + (50 * Math.round(18 * Math.random()));
ynov = 50 + (50 * Math.round(11 * Math.random()));
sovp = 0;
j = 0;
while (j < kvostr) {
if ((xnov == masSTx[j]) && (ynov == masSTy[j])) {
sovp = 1;
}
j++;
}
if (sovp == 0) {
masSTx[i] = xnov;
masSTy[i] = ynov;
masSTa1[i] = -1000;
masSTa2[i] = -1000;
masSTb1[i] = -1000;
masSTb2[i] = -1000;
} else {
i = i - 1;
}
i++;
}
scalAL();
_root.attachMovie("fon_ran", "fon_ran1", 14, {_x:0, _y:0});
_root.createEmptyMovieClip("radar2", 60);
_root.radar2.lineStyle(11, 15918557, 100);
i = 0;
while (i < kvostr) {
jjj1 = 950;
jjjj = 1000;
j = 0;
while (j < kvostr) {
if (((masSTy[i] == masSTy[j]) && ((masSTx[j] - masSTx[i]) < jjj1)) && ((masSTx[j] - masSTx[i]) > 0)) {
jjjj = j;
jjj1 = masSTx[jjjj] - masSTx[i];
}
j++;
}
if (jjjj != 1000) {
masSTa1[jjjj] = masLtyp.length;
masSTb1[i] = masLtyp.length;
masL1.push(i);
masL2.push(jjjj);
masLtyp.push(2);
_root.radar2.moveTo(masSTx[i], masSTy[i]);
_root.radar2.lineTo(masSTx[jjjj], masSTy[jjjj]);
}
i++;
}
tipeknal = -2;
}
if ((tipeknal <= -3) && (tipeknal >= -9)) {
i = 0;
while (i < kvostr) {
jjj1 = (-tipeknal) * 150;
jjjj = 1000;
j = 0;
while (j < kvostr) {
if (((masSTy[i] != masSTy[j]) && (((masSTx[j] - masSTx[i]) - Math.abs(masSTy[j] - masSTy[i])) >= 0)) && ((masSTx[j] - masSTx[i]) > 0)) {
perlin = 0;
k = 0;
while (k < masLtyp.length) {
pereslin(masSTx[i], masSTy[i], masSTx[j], masSTy[j], masSTx[masL1[k]], masSTy[masL1[k]], masSTx[masL2[k]], masSTy[masL2[k]]);
k++;
}
if (((((masSTx[j] - masSTx[i]) + Math.abs(masSTy[j] - masSTy[i])) < jjj1) && (perlin == 0)) && (masSTa2[j] == -1000)) {
if ((((((masSTb2[i] + masSTb1[i]) + masSTa2[i]) + masSTa1[i]) < -1001) && (masSTb2[i] == -1000)) && (((masSTb2[j] + masSTb1[j]) + masSTa1[j]) < 0)) {
jjjj = j;
jjj1 = (masSTx[j] - masSTx[i]) + Math.abs(masSTy[j] - masSTy[i]);
}
}
}
j++;
}
if (((jjjj != 1000) && ((masSTa1[jjjj] + masSTa2[jjjj]) < 0)) && ((masSTb1[i] + masSTb2[i]) < 0)) {
if (masSTa1[jjjj] == -1000) {
masSTa1[jjjj] = masLtyp.length;
} else {
masSTa2[jjjj] = masLtyp.length;
}
if (masSTb1[i] == -1000) {
masSTb1[i] = masLtyp.length;
} else {
masSTb2[i] = masLtyp.length;
}
masL1.push(i);
masL2.push(jjjj);
masLtyp.push(2);
_root.radar2.moveTo(masSTx[i], masSTy[i]);
_root.radar2.lineTo(masSTx[jjjj], masSTy[jjjj]);
}
i++;
}
}
if (tipeknal == -10) {
kvostr1 = masSTx.length;
i = 0;
while (i < kvostr1) {
if ((((masSTa1[i] + masSTa2[i]) >= -1000) && ((masSTb1[i] + masSTb2[i]) < 0)) && ((((masSTa1[i] + masSTa2[i]) + masSTb1[i]) + masSTb2[i]) < -1000)) {
perlin = 0;
k = 0;
while (k < masLtyp.length) {
if ((masSTx[k] > masSTx[i]) && (masSTy[k] == masSTy[i])) {
perlin = 1;
}
pereslin(masSTx[i], masSTy[i], 672, masSTy[i], masSTx[masL1[k]], masSTy[masL1[k]], masSTx[masL2[k]], masSTy[masL2[k]]);
k++;
}
if (perlin == 0) {
masSTx.push(672);
masSTy.push(masSTy[i]);
masL1.push(i);
masL2.push(masSTx.length - 1);
masLtyp.push(1);
if (masSTb1[i] == -1000) {
_root.radar2.moveTo(masSTx[i], masSTy[i]);
_root.radar2.lineTo(672, masSTy[i]);
masSTb1[i] = masLtyp.length - 1;
} else {
_root.radar2.moveTo(masSTx[i], masSTy[i]);
_root.radar2.lineTo(672, masSTy[i]);
masSTb2[i] = masLtyp.length - 1;
}
}
}
i++;
}
}
if (tipeknal == -11) {
i = 0;
while (i < kvostr1) {
if ((((masSTb1[i] + masSTb2[i]) >= -1000) && ((masSTa1[i] + masSTa2[i]) < 0)) && ((((masSTa1[i] + masSTa2[i]) + masSTb1[i]) + masSTb2[i]) < -1000)) {
perlin = 0;
k = 0;
while (k < masLtyp.length) {
if ((masSTx[k] < masSTx[i]) && (masSTy[k] == masSTy[i])) {
perlin = 1;
}
pereslin(-32, masSTy[i], masSTx[i], masSTy[i], masSTx[masL1[k]], masSTy[masL1[k]], masSTx[masL2[k]], masSTy[masL2[k]]);
k++;
}
if (perlin == 0) {
masSTx.push(-32);
masSTy.push(masSTy[i]);
masL1.push(masSTx.length - 1);
masL2.push(i);
masLtyp.push(-1);
if (masSTa1[i] == -1000) {
_root.radar2.moveTo(masSTx[i], masSTy[i]);
_root.radar2.lineTo(-32, masSTy[i]);
masSTa1[i] = masLtyp.length - 1;
} else {
_root.radar2.moveTo(masSTx[i], masSTy[i]);
_root.radar2.lineTo(-32, masSTy[i]);
masSTa2[i] = masLtyp.length - 1;
}
}
}
i++;
}
}
if (tipeknal == -12) {
i = 0;
while (i < kvostr1) {
if ((((masSTa1[i] + masSTa2[i]) + masSTb1[i]) + masSTb2[i]) != -4000) {
if ((masSTb1[i] + masSTb2[i]) == -2000) {
masSTb1[i] = masLtyp.length;
masST0[i] = 1;
masSTx.push(2000);
masSTy.push(masSTy[i]);
masL1.push(i);
masL2.push(masSTx.length - 1);
masLtyp.push(0);
_root.attachMovie("tupik", "tupik" + i, 59 - i, {_x:masSTx[i], _y:masSTy[i], _xscale:64, _yscale:64, _rotation:0});
}
if ((masSTa1[i] + masSTa2[i]) == -2000) {
masSTa1[i] = masLtyp.length;
masST0[i] = 1;
masSTx.push(-1000);
masSTy.push(masSTy[i]);
masL1.push(masSTx.length - 1);
masL2.push(i);
masLtyp.push(0);
_root.attachMovie("tupik", "tupik" + i, 59 - i, {_x:masSTx[i], _y:masSTy[i], _xscale:64, _yscale:64, _rotation:180});
}
}
i++;
}
}
if (tipeknal == -13) {
i = 0;
while (i < kvostr1) {
if ((((masSTa1[i] + masSTa2[i]) + masSTb1[i]) + masSTb2[i]) < -1000) {
if (masSTa1[i] == -1000) {
masSTa1[i] = masSTa2[i];
}
if (masSTa2[i] == -1000) {
masSTa2[i] = masSTa1[i];
}
}
i++;
}
_root.createEmptyMovieClip("radar3", 61);
_root.radar3.lineStyle(8, 0, 100);
_root.createEmptyMovieClip("radar4", 62);
_root.radar4.lineStyle(1, 15918557, 100);
i = 0;
while (i < masLtyp.length) {
if (masLtyp[i] != 0) {
_root.radar3.moveTo(masSTx[masL1[i]], masSTy[masL1[i]]);
_root.radar3.lineTo(masSTx[masL2[i]], masSTy[masL2[i]]);
_root.radar4.moveTo(masSTx[masL1[i]], masSTy[masL1[i]]);
_root.radar4.lineTo(masSTx[masL2[i]], masSTy[masL2[i]]);
}
i++;
}
}
if (tipeknal == -14) {
LLL();
STSTST();
NalST();
_root.attachMovie("kn_pause2", "kn_pe12", 5503, {_x:700, _y:0, _xscale:128, _yscale:128});
_root.attachMovie("kn_REFR", "kn_REFR1", 4500, {_x:320, _y:407, _xscale:64, _yscale:64});
_root.attachMovie("kn_MENU", "kn_MENU1", 4501, {_x:96, _y:407, _xscale:64, _yscale:64});
_root.attachMovie("kn_pause", "kn_pause1", 4502, {_x:544, _y:407, _xscale:64, _yscale:64});
i = 0;
while (i < kvostr1) {
if ((((masSTa1[i] + masSTa2[i]) + masSTb1[i]) + masSTb2[i]) == -4000) {
removeMovieClip(("str" + i) + "a");
removeMovieClip("str00" + i);
}
i++;
}
}
if (tipeknal == -15) {
kvoLL = 0;
kvoRL = 0;
i = 0;
while (i < masLtyp.length) {
if (masLtyp[i] == -1) {
kvoLL = kvoLL + 1;
}
if (masLtyp[i] == 1) {
kvoRL = kvoRL + 1;
}
i++;
}
masSTRbb1 = new Array(kvostr1);
i = 0;
while (i < kvostr1) {
masSTRbb1[i] = -1000;
i++;
}
masVZ = new Array(kvoLL + 1);
i = 0;
while (i < (kvoLL + 1)) {
masVZ[i] = new Em();
i++;
}
kvoLL1 = 1;
kvoRL1 = 1;
i = 0;
while (i < masLtyp.length) {
if (masLtyp[i] == -1) {
masVZ[kvoLL1][0] = i;
kvoLL1 = kvoLL1 + 1;
}
if (masLtyp[i] == 1) {
masVZ[0][kvoRL1] = i;
kvoRL1 = kvoRL1 + 1;
}
i++;
}
}
if ((tipeknal < -15) && (tipeknal >= -27)) {
if (tipeknal == -16) {
vzvz = 1;
}
if (tipeknal == -17) {
vzvz = 2;
}
if (tipeknal == -18) {
vzvz = 3;
}
if (tipeknal == -19) {
vzvz = 4;
}
if (tipeknal == -20) {
vzvz = 5;
}
if (tipeknal == -21) {
vzvz = 6;
}
if (tipeknal == -22) {
vzvz = 7;
}
if (tipeknal == -23) {
vzvz = 8;
}
if (tipeknal == -24) {
vzvz = 9;
}
if (tipeknal == -25) {
vzvz = 10;
}
if (tipeknal == -26) {
vzvz = 11;
}
if (tipeknal == -27) {
vzvz = 12;
}
masSTRbb1[masL2[masVZ[vzvz][0]]] = 1;
i = 0;
while (i < 8) {
j = 0;
while (j < kvostr1) {
if (masSTRbb1[j] == 1) {
if (masSTgt[j] == 1) {
masSTRbb1[masSTous1[j]] = 1;
masSTRbb1[masSTous2[j]] = 1;
}
if (masSTgt[j] == -1) {
masSTRbb1[masSTins[j]] = 1;
}
}
j++;
}
i++;
}
j = 1;
while (j < (kvoRL + 1)) {
i = 0;
while (i < kvostr1) {
if ((masSTRbb1[i] == 1) && (i == masL1[masVZ[0][j]])) {
masVZ[vzvz][j] = 1;
}
i++;
}
j++;
}
i = 0;
while (i < kvostr1) {
masSTRbb1[i] = -1000;
i++;
}
}
if (tipeknal == -28) {
tipeknal = 0;
nkadra = 1;
nalPoezd = new Array(0, 0, 0, 0);
i = 0;
while (i < kvostr1) {
if (masSTa[i] == masSTa_2[i]) {
removeMovieClip(("str" + i) + "a");
removeMovieClip("str00" + i);
}
if (masSTa_2[i] > -1000) {
} else {
removeMovieClip(("str" + i) + "a");
removeMovieClip("str00" + i);
}
i++;
}
}
if (tipeknal < 0) {
tipeknal = tipeknal - 1;
}
if (tipeknal == 0) {
Mks = new Array(1000000, 1000000, 1000000, 1000000);
Mkp = new Array(-1000000, -1000000, -1000000, -1000000);
McvP = new Array(1, 2, 3, 4);
Mnp = new Array(1, 1, 1, 1);
Mvp = new Array(0.5, 0.5, 0.5, 0.5);
Mstp = new Array(1000000, 1000000, 1000000, 1000000);
Mcp = new Array(1000000, 1000000, 1000000, 1000000);
Mkvo = new Array(4, 1, 1, 1);
tipeknal = 1;
}
if (tipeknal == 1) {
if ((nalPoezd[0] == 0) && (nkadra > 70)) {
Mks[0] = nkadra + 30;
Mkp[0] = (nkadra + 30) + 100;
if (Math.round(Math.random()) == 1) {
Mnp[0] = 1;
}
if (Math.round(Math.random()) == 0) {
Mnp[0] = -1;
}
do {
nLL = Math.round((kvoLL - 1) * Math.random()) + 1;
nRL = Math.round((kvoRL - 1) * Math.random()) + 1;
} while (masVZ[nLL][nRL] == -1000);
if (Mnp[0] == 1) {
Mstp[0] = masVZ[nLL][0];
Mcp[0] = masVZ[0][nRL];
}
if (Mnp[0] == -1) {
Mstp[0] = masVZ[0][nRL];
Mcp[0] = masVZ[nLL][0];
}
nalPoezd[0] = 1;
}
if ((nalPoezd[1] == 0) && (nkadra > 1150)) {
Mkvo[0] = 1;
Mks[1] = nkadra + 30;
Mkp[1] = (nkadra + 30) + 100;
if (Math.round(Math.random()) == 1) {
Mnp[1] = 1;
}
if (Math.round(Math.random()) == 0) {
Mnp[1] = -1;
}
do {
nLL = Math.round((kvoLL - 1) * Math.random()) + 1;
nRL = Math.round((kvoRL - 1) * Math.random()) + 1;
} while (masVZ[nLL][nRL] == -1000);
if (Mnp[1] == 1) {
Mstp[1] = masVZ[nLL][0];
Mcp[1] = masVZ[0][nRL];
}
if (Mnp[1] == -1) {
Mstp[1] = masVZ[0][nRL];
Mcp[1] = masVZ[nLL][0];
}
nalPoezd[1] = 1;
}
if ((nalPoezd[2] == 0) && (nkadra > 2535)) {
Mks[2] = nkadra + 30;
Mkp[2] = (nkadra + 30) + 100;
if (Math.round(Math.random()) == 1) {
Mnp[2] = 1;
}
if (Math.round(Math.random()) == 0) {
Mnp[2] = -1;
}
do {
nLL = Math.round((kvoLL - 1) * Math.random()) + 1;
nRL = Math.round((kvoRL - 1) * Math.random()) + 1;
} while (masVZ[nLL][nRL] == -1000);
if (Mnp[2] == 1) {
Mstp[2] = masVZ[nLL][0];
Mcp[2] = masVZ[0][nRL];
}
if (Mnp[2] == -1) {
Mstp[2] = masVZ[0][nRL];
Mcp[2] = masVZ[nLL][0];
}
nalPoezd[2] = 1;
}
if ((nalPoezd[3] == 0) && (nkadra > 3850)) {
Mks[3] = nkadra + 30;
Mkp[3] = (nkadra + 30) + 100;
if (Math.round(Math.random()) == 1) {
Mnp[3] = 1;
}
if (Math.round(Math.random()) == 0) {
Mnp[3] = -1;
}
do {
nLL = Math.round((kvoLL - 1) * Math.random()) + 1;
nRL = Math.round((kvoRL - 1) * Math.random()) + 1;
} while (masVZ[nLL][nRL] == -1000);
if (Mnp[3] == 1) {
Mstp[3] = masVZ[nLL][0];
Mcp[3] = masVZ[0][nRL];
}
if (Mnp[3] == -1) {
Mstp[3] = masVZ[0][nRL];
Mcp[3] = masVZ[nLL][0];
}
nalPoezd[3] = 1;
}
if (((Mkp[0] <= (Mkp[1] + 9)) && (Mkp[0] >= (Mkp[1] - 9))) && (Mstp[0] == Mstp[1])) {
Mkp[1] = Mkp[1] + 18;
}
if (((Mkp[0] <= (Mkp[2] + 9)) && (Mkp[0] >= (Mkp[2] - 9))) && (Mstp[0] == Mstp[2])) {
Mkp[2] = Mkp[2] + 18;
}
if (((Mkp[1] <= (Mkp[2] + 9)) && (Mkp[1] >= (Mkp[2] - 9))) && (Mstp[1] == Mstp[2])) {
Mkp[2] = Mkp[2] + 18;
}
if (((Mkp[0] <= (Mkp[2] + 9)) && (Mkp[0] >= (Mkp[2] - 9))) && (Mstp[0] == Mstp[2])) {
Mkp[2] = Mkp[2] + 18;
}
if (((Mkp[1] <= (Mkp[2] + 9)) && (Mkp[1] >= (Mkp[2] - 9))) && (Mstp[1] == Mstp[2])) {
Mkp[2] = Mkp[2] + 18;
}
if (((Mkp[0] <= (Mkp[3] + 9)) && (Mkp[0] >= (Mkp[3] - 9))) && (Mstp[0] == Mstp[3])) {
Mkp[3] = Mkp[3] + 18;
}
if (((Mkp[1] <= (Mkp[3] + 9)) && (Mkp[1] >= (Mkp[3] - 9))) && (Mstp[1] == Mstp[3])) {
Mkp[3] = Mkp[3] + 18;
}
if (((Mkp[2] <= (Mkp[3] + 9)) && (Mkp[2] >= (Mkp[3] - 9))) && (Mstp[2] == Mstp[3])) {
Mkp[3] = Mkp[3] + 18;
}
if (((Mkp[0] <= (Mkp[3] + 9)) && (Mkp[0] >= (Mkp[3] - 9))) && (Mstp[0] == Mstp[3])) {
Mkp[3] = Mkp[3] + 18;
}
if (((Mkp[1] <= (Mkp[3] + 9)) && (Mkp[1] >= (Mkp[3] - 9))) && (Mstp[1] == Mstp[3])) {
Mkp[3] = Mkp[3] + 18;
}
if (((Mkp[2] <= (Mkp[3] + 9)) && (Mkp[2] >= (Mkp[3] - 9))) && (Mstp[2] == Mstp[3])) {
Mkp[3] = Mkp[3] + 18;
}
if (((Mkp[0] <= (Mkp[3] + 9)) && (Mkp[0] >= (Mkp[3] - 9))) && (Mstp[0] == Mstp[3])) {
Mkp[3] = Mkp[3] + 18;
}
if (((Mkp[1] <= (Mkp[3] + 9)) && (Mkp[1] >= (Mkp[3] - 9))) && (Mstp[1] == Mstp[3])) {
Mkp[3] = Mkp[3] + 18;
}
if (((Mkp[2] <= (Mkp[3] + 9)) && (Mkp[2] >= (Mkp[3] - 9))) && (Mstp[2] == Mstp[3])) {
Mkp[3] = Mkp[3] + 18;
}
i = 0;
while (i < Mkp.length) {
if (nkadra == Mks[i]) {
NAPRp(i);
}
if (nkadra == Mkp[i]) {
VIZOVp(i);
}
i++;
}
}
kn_REFR1.onPress = function () {
REFR_ESH();
};
}
str0a.onPress = function () {
strelka(str0a, 0);
};
str1a.onPress = function () {
strelka(str1a, 1);
};
str2a.onPress = function () {
strelka(str2a, 2);
};
str3a.onPress = function () {
strelka(str3a, 3);
};
str4a.onPress = function () {
strelka(str4a, 4);
};
str5a.onPress = function () {
strelka(str5a, 5);
};
str6a.onPress = function () {
strelka(str6a, 6);
};
str7a.onPress = function () {
strelka(str7a, 7);
};
str8a.onPress = function () {
strelka(str8a, 8);
};
str9a.onPress = function () {
strelka(str9a, 9);
};
str10a.onPress = function () {
strelka(str10a, 10);
};
str11a.onPress = function () {
strelka(str11a, 11);
};
str12a.onPress = function () {
strelka(str12a, 12);
};
str13a.onPress = function () {
strelka(str13a, 13);
};
str14a.onPress = function () {
strelka(str14a, 14);
};
str15a.onPress = function () {
strelka(str15a, 15);
};
str16a.onPress = function () {
strelka(str16a, 16);
};
str17a.onPress = function () {
strelka(str17a, 17);
};
str18a.onPress = function () {
strelka(str18a, 18);
};
str19a.onPress = function () {
strelka(str19a, 19);
};
str20a.onPress = function () {
strelka(str20a, 20);
};
str21a.onPress = function () {
strelka(str21a, 21);
};
str22a.onPress = function () {
strelka(str22a, 22);
};
str23a.onPress = function () {
strelka(str23a, 23);
};
str24a.onPress = function () {
strelka(str24a, 24);
};
str25a.onPress = function () {
strelka(str25a, 25);
};
str26a.onPress = function () {
strelka(str26a, 26);
};
str27a.onPress = function () {
strelka(str27a, 27);
};
str28a.onPress = function () {
strelka(str28a, 28);
};
str29a.onPress = function () {
strelka(str29a, 29);
};
click1.onRollOver = function () {
_root.attachMovie("help_click", "help_click1", 5998, {_x:120, _y:23});
};
click1.onRollOut = function () {
removeMovieClip("help_click1");
};
kn_MENU1.onPress = function () {
all4.removeTextField();
pause1 = 0;
qwclics = 0;
remALL();
removeMovieClip("podskaz1");
removeMovieClip("podskaz2");
removeMovieClip("podskaz1T");
removeMovieClip("kn_REFR1");
removeMovieClip("fon_ran1");
tipek = 0;
tipeknal = 0;
removeMovieClip("kn_soundof1");
removeMovieClip("kn_sound1_");
removeMovieClip("kn_MENU1");
removeMovieClip("kn_pause1");
nkadra = 0;
delete masSTx;
delete masSTy;
delete masSTa;
delete masST0;
delete masSTi;
delete masSTou1;
delete masSTou2;
delete masSTtip;
delete masSTous1;
delete masSTous2;
delete masSTins;
delete masSTgt;
delete masLlx;
delete masLly;
delete masLdx;
delete masLdy;
delete masLa;
delete masL0;
delete masLxp;
delete masLyp;
k = 1;
while (k < 9) {
delete eval (("masPO" + k) + "nl");
delete eval (("masPO" + k) + "y");
delete eval (("masPO" + k) + "ns");
delete eval (("masPO" + k) + "dx");
delete eval (("masPO" + k) + "dy");
delete eval (("masPO" + k) + "1a");
k++;
}
n1 = 0;
n2 = 0;
n3 = 0;
n4 = 0;
i = 0;
while (i < kvostr1) {
removeMovieClip("tupik" + i);
i++;
}
removeMovieClip("radar2");
removeMovieClip("radar3");
removeMovieClip("radar4");
gotoAndPlay (5);
};
kn_sound1_.onRollOver = function () {
_root.attachMovie("help_sound", "help_sound1", 5101, {_x:569.2, _y:12.8});
};
kn_sound1_.onRollOut = function () {
removeMovieClip("help_sound1");
};
kn_sound1_.onPress = function () {
if (gromkost == 1) {
_root.attachMovie("kn_soundof", "kn_soundof1", 5102, {_x:569.2, _y:12.8, _xscale:64, _yscale:64});
Schuh1.stop();
Schuh2.stop();
Schuh3.stop();
Schuh4.stop();
Sprir.stop();
gromkost = 0;
} else {
removeMovieClip("kn_soundof1");
gromkost = 1;
if (((napi1poC._x > 1) && (stolknov == 0)) && (promah == 0)) {
Schuh1.start(0, 10);
}
if (((napi2poC._x > 1) && (stolknov == 0)) && (promah == 0)) {
Schuh2.start(0, 10);
}
if (((napi3poC._x > 1) && (stolknov == 0)) && (promah == 0)) {
Schuh3.start(0, 10);
}
if (((napi4poC._x > 1) && (stolknov == 0)) && (promah == 0)) {
Schuh4.start(0, 10);
}
if ((((tipek > 0) && (tipek < 11)) && (stolknov == 0)) && (promah == 0)) {
Sprir.start(0, 1000);
}
}
};
if (((tipek > 0) && (tipek < 30)) || (tipek == 100)) {
if (n1 != 0) {
if (masLtyp[masPO1nl[0]] < 3) {
urur1 = 0;
}
if (masLtyp[masPO1nl[0]] == 3) {
urur1 = 50;
}
if (masLtyp[masPO1nl[0]] == 4) {
urur1 = -50;
}
if (masLtyp[masPO1nl[0]] == 0) {
stolknov = 1;
}
removeMovieClip("po1_0");
_root.attachMovie("parK", "po1_0", 252 + urur1, {_x:masPO1x[0], _y:masPO1y[0], _rotation:(90 - (n1 * 90)) + masPO1a[0]});
k = 1;
while (k < masPO1x.length) {
if (masLtyp[masPO1nl[k]] < 3) {
urur1 = 0;
}
if (masLtyp[masPO1nl[k]] == 3) {
urur1 = 50;
}
if (masLtyp[masPO1nl[k]] == 4) {
urur1 = -50;
}
removeMovieClip("po1_" + k);
_root.attachMovie("vagK", "po1_" + k, (252 + k) + urur1, {_x:masPO1x[k], _y:masPO1y[k], _rotation:masPO1a[k]});
k++;
}
k = 0;
while (k < masPO1x.length) {
masPO1x[k] = masPO1x[k] + (n1 * masPO1dx[k]);
masPO1y[k] = masPO1y[k] + (n1 * masPO1dy[k]);
k++;
}
k = 0;
while (k < masPO1x.length) {
if ((masPO1x[k] > (masSTx[masPO1ns[k]] - dopS)) && (masPO1x[k] <= (masSTx[masPO1ns[k]] + dopS))) {
if ((masPO1y[k] > (masSTy[masPO1ns[k]] - dopS)) && (masPO1y[k] <= (masSTy[masPO1ns[k]] + dopS))) {
if (((k == 0) && (masST0[masPO1ns[k]] == 1)) || (masSTous1[masPO1ns[k]] == -2)) {
stolknov = 1;
}
if ((k == 0) && (masST0[masPO1ns[k]] == 0)) {
masST0[masPO1ns[k]] = 1;
}
if (k == (masPO1x.length - 1)) {
masST0[masPO1ns[k]] = 0;
}
masPO1x[k] = masSTx[masPO1ns[k]];
masPO1y[k] = masSTy[masPO1ns[k]];
if ((masSTgt[masPO1ns[k]] * n1) >= 0) {
masPO1nl[k] = masSTou1[masPO1ns[k]];
masPO1ns[k] = masSTous1[masPO1ns[k]];
} else {
if (masPO1nl[k] != masSTou1[masPO1ns[k]]) {
stolknov = 1;
}
masPO1nl[k] = masSTin[masPO1ns[k]];
masPO1ns[k] = masSTins[masPO1ns[k]];
}
masPO1dx[k] = v1 * masLdx[masPO1nl[k]];
masPO1dy[k] = v1 * masLdy[masPO1nl[k]];
masPO1a[k] = masLa[masPO1nl[k]];
}
}
k++;
}
}
if (n2 != 0) {
if (masLtyp[masPO2nl[0]] < 3) {
urur2 = 0;
}
if (masLtyp[masPO2nl[0]] == 3) {
urur2 = 50;
}
if (masLtyp[masPO2nl[0]] == 4) {
urur2 = -50;
}
if (masLtyp[masPO2nl[0]] == 0) {
stolknov = 1;
}
removeMovieClip("po2_0");
_root.attachMovie("parZ", "po2_0", 262 + urur2, {_x:masPO2x[0], _y:masPO2y[0], _rotation:(90 - (n2 * 90)) + masPO2a[0]});
k = 1;
while (k < masPO2x.length) {
if (masLtyp[masPO2nl[k]] < 3) {
urur2 = 0;
}
if (masLtyp[masPO2nl[k]] == 3) {
urur2 = 50;
}
if (masLtyp[masPO2nl[k]] == 4) {
urur2 = -50;
}
removeMovieClip("po2_" + k);
_root.attachMovie("vagZ", "po2_" + k, (262 + k) + urur2, {_x:masPO2x[k], _y:masPO2y[k], _rotation:masPO2a[k]});
k++;
}
k = 0;
while (k < masPO2x.length) {
masPO2x[k] = masPO2x[k] + (n2 * masPO2dx[k]);
masPO2y[k] = masPO2y[k] + (n2 * masPO2dy[k]);
k++;
}
k = 0;
while (k < masPO2x.length) {
if ((masPO2x[k] > (masSTx[masPO2ns[k]] - dopS)) && (masPO2x[k] <= (masSTx[masPO2ns[k]] + dopS))) {
if ((masPO2y[k] > (masSTy[masPO2ns[k]] - dopS)) && (masPO2y[k] <= (masSTy[masPO2ns[k]] + dopS))) {
if (((k == 0) && (masST0[masPO2ns[k]] == 1)) || (masSTous1[masPO2ns[k]] == -2)) {
stolknov = 1;
}
if ((k == 0) && (masST0[masPO2ns[k]] == 0)) {
masST0[masPO2ns[k]] = 1;
}
if (k == (masPO2x.length - 1)) {
masST0[masPO2ns[k]] = 0;
}
masPO2x[k] = masSTx[masPO2ns[k]];
masPO2y[k] = masSTy[masPO2ns[k]];
if ((masSTgt[masPO2ns[k]] * n2) >= 0) {
masPO2nl[k] = masSTou1[masPO2ns[k]];
masPO2ns[k] = masSTous1[masPO2ns[k]];
} else {
if (masPO2nl[k] != masSTou1[masPO2ns[k]]) {
stolknov = 1;
}
masPO2nl[k] = masSTin[masPO2ns[k]];
masPO2ns[k] = masSTins[masPO2ns[k]];
}
masPO2dx[k] = v2 * masLdx[masPO2nl[k]];
masPO2dy[k] = v2 * masLdy[masPO2nl[k]];
masPO2a[k] = masLa[masPO2nl[k]];
}
}
k++;
}
if (((masPO2nl[0] == masPO1nl[0]) && (Math.abs(masPO2x[0] - masPO1x[0]) <= dopP)) && (Math.abs(masPO2y[0] - masPO1y[0]) <= dopP)) {
stolknov = 1;
}
if (((masPO2nl[0] == masPO1nl[masPO1x.length - 1]) && (Math.abs(masPO2x[0] - masPO1x[masPO1x.length - 1]) <= dopP)) && (Math.abs(masPO2y[0] - masPO1y[masPO1y.length - 1]) <= dopP)) {
stolknov = 1;
}
}
if (n3 != 0) {
if (masLtyp[masPO3nl[0]] < 3) {
urur3 = 0;
}
if (masLtyp[masPO3nl[0]] == 3) {
urur3 = 50;
}
if (masLtyp[masPO3nl[0]] == 4) {
urur3 = -50;
}
if (masLtyp[masPO3nl[0]] == 0) {
stolknov = 1;
}
removeMovieClip("po3_0");
_root.attachMovie("parS", "po3_0", 272 + urur3, {_x:masPO3x[0], _y:masPO3y[0], _rotation:(90 - (n3 * 90)) + masPO3a[0]});
k = 1;
while (k < masPO3x.length) {
if (masLtyp[masPO3nl[k]] < 3) {
urur3 = 0;
}
if (masLtyp[masPO3nl[k]] == 3) {
urur3 = 50;
}
if (masLtyp[masPO3nl[k]] == 4) {
urur3 = -50;
}
removeMovieClip("po3_" + k);
_root.attachMovie("vagS", "po3_" + k, (272 + k) + urur3, {_x:masPO3x[k], _y:masPO3y[k], _rotation:masPO3a[k]});
k++;
}
k = 0;
while (k < masPO3x.length) {
masPO3x[k] = masPO3x[k] + (n3 * masPO3dx[k]);
masPO3y[k] = masPO3y[k] + (n3 * masPO3dy[k]);
k++;
}
k = 0;
while (k < masPO3x.length) {
if ((masPO3x[k] > (masSTx[masPO3ns[k]] - dopS)) && (masPO3x[k] <= (masSTx[masPO3ns[k]] + dopS))) {
if ((masPO3y[k] > (masSTy[masPO3ns[k]] - dopS)) && (masPO3y[k] <= (masSTy[masPO3ns[k]] + dopS))) {
if (((k == 0) && (masST0[masPO3ns[k]] == 1)) || (masSTous1[masPO3ns[k]] == -2)) {
stolknov = 1;
}
if ((k == 0) && (masST0[masPO3ns[k]] == 0)) {
masST0[masPO3ns[k]] = 1;
}
if (k == (masPO3x.length - 1)) {
masST0[masPO3ns[k]] = 0;
}
masPO3x[k] = masSTx[masPO3ns[k]];
masPO3y[k] = masSTy[masPO3ns[k]];
if ((masSTgt[masPO3ns[k]] * n3) >= 0) {
masPO3nl[k] = masSTou1[masPO3ns[k]];
masPO3ns[k] = masSTous1[masPO3ns[k]];
} else {
if (masPO3nl[k] != masSTou1[masPO3ns[k]]) {
stolknov = 1;
}
masPO3nl[k] = masSTin[masPO3ns[k]];
masPO3ns[k] = masSTins[masPO3ns[k]];
}
masPO3dx[k] = v3 * masLdx[masPO3nl[k]];
masPO3dy[k] = v3 * masLdy[masPO3nl[k]];
masPO3a[k] = masLa[masPO3nl[k]];
}
}
k++;
}
if (((masPO3nl[0] == masPO1nl[0]) && (Math.abs(masPO3x[0] - masPO1x[0]) <= dopP)) && (Math.abs(masPO3y[0] - masPO1y[0]) <= dopP)) {
stolknov = 1;
}
if (((masPO3nl[0] == masPO1nl[masPO1x.length - 1]) && (Math.abs(masPO3x[0] - masPO1x[masPO1x.length - 1]) <= dopP)) && (Math.abs(masPO3y[0] - masPO1y[masPO1y.length - 1]) <= dopP)) {
stolknov = 1;
}
if (((masPO3nl[0] == masPO2nl[0]) && (Math.abs(masPO3x[0] - masPO2x[0]) <= dopP)) && (Math.abs(masPO3y[0] - masPO2y[0]) <= dopP)) {
stolknov = 1;
}
if (((masPO3nl[0] == masPO2nl[masPO2x.length - 1]) && (Math.abs(masPO3x[0] - masPO2x[masPO2x.length - 1]) <= dopP)) && (Math.abs(masPO3y[0] - masPO2y[masPO2y.length - 1]) <= dopP)) {
stolknov = 1;
}
}
if (n4 != 0) {
if (masLtyp[masPO4nl[0]] < 3) {
urur4 = 0;
}
if (masLtyp[masPO4nl[0]] == 3) {
urur4 = 50;
}
if (masLtyp[masPO4nl[0]] == 4) {
urur4 = -50;
}
if (masLtyp[masPO4nl[0]] == 0) {
stolknov = 1;
}
removeMovieClip("po4_0");
_root.attachMovie("parR", "po4_0", 282 + urur4, {_x:masPO4x[0], _y:masPO4y[0], _rotation:(90 - (n4 * 90)) + masPO4a[0]});
k = 1;
while (k < masPO4x.length) {
if (masLtyp[masPO4nl[k]] < 3) {
urur4 = 0;
}
if (masLtyp[masPO4nl[k]] == 3) {
urur4 = 50;
}
if (masLtyp[masPO4nl[k]] == 4) {
urur4 = -50;
}
removeMovieClip("po4_" + k);
_root.attachMovie("vagR", "po4_" + k, (282 + k) + urur4, {_x:masPO4x[k], _y:masPO4y[k], _rotation:masPO4a[k]});
k++;
}
k = 0;
while (k < masPO4x.length) {
masPO4x[k] = masPO4x[k] + (n4 * masPO4dx[k]);
masPO4y[k] = masPO4y[k] + (n4 * masPO4dy[k]);
k++;
}
k = 0;
while (k < masPO4x.length) {
if ((masPO4x[k] > (masSTx[masPO4ns[k]] - dopS)) && (masPO4x[k] <= (masSTx[masPO4ns[k]] + dopS))) {
if ((masPO4y[k] > (masSTy[masPO4ns[k]] - dopS)) && (masPO4y[k] <= (masSTy[masPO4ns[k]] + dopS))) {
if (((k == 0) && (masST0[masPO4ns[k]] == 1)) || (masSTous1[masPO4ns[k]] == -2)) {
stolknov = 1;
}
if ((k == 0) && (masST0[masPO4ns[k]] == 0)) {
masST0[masPO4ns[k]] = 1;
}
if (k == (masPO4x.length - 1)) {
masST0[masPO4ns[k]] = 0;
}
masPO4x[k] = masSTx[masPO4ns[k]];
masPO4y[k] = masSTy[masPO4ns[k]];
if ((masSTgt[masPO4ns[k]] * n4) >= 0) {
masPO4nl[k] = masSTou1[masPO4ns[k]];
masPO4ns[k] = masSTous1[masPO4ns[k]];
} else {
if (masPO4nl[k] != masSTou1[masPO4ns[k]]) {
stolknov = 1;
}
masPO4nl[k] = masSTin[masPO4ns[k]];
masPO4ns[k] = masSTins[masPO4ns[k]];
}
masPO4dx[k] = v4 * masLdx[masPO4nl[k]];
masPO4dy[k] = v4 * masLdy[masPO4nl[k]];
masPO4a[k] = masLa[masPO4nl[k]];
}
}
k++;
}
if (((masPO4nl[0] == masPO1nl[0]) && (Math.abs(masPO4x[0] - masPO1x[0]) <= dopP)) && (Math.abs(masPO4y[0] - masPO1y[0]) <= dopP)) {
stolknov = 1;
}
if (((masPO4nl[0] == masPO1nl[masPO1x.length - 1]) && (Math.abs(masPO4x[0] - masPO1x[masPO1x.length - 1]) <= dopP)) && (Math.abs(masPO4y[0] - masPO1y[masPO1y.length - 1]) <= dopP)) {
stolknov = 1;
}
if (((masPO4nl[0] == masPO2nl[0]) && (Math.abs(masPO4x[0] - masPO2x[0]) <= dopP)) && (Math.abs(masPO4y[0] - masPO2y[0]) <= dopP)) {
stolknov = 1;
}
if (((masPO4nl[0] == masPO2nl[masPO2x.length - 1]) && (Math.abs(masPO4x[0] - masPO2x[masPO2x.length - 1]) <= dopP)) && (Math.abs(masPO4y[0] - masPO2y[masPO2y.length - 1]) <= dopP)) {
stolknov = 1;
}
if (((masPO4nl[0] == masPO3nl[0]) && (Math.abs(masPO4x[0] - masPO3x[0]) <= dopP)) && (Math.abs(masPO4y[0] - masPO3y[0]) <= dopP)) {
stolknov = 1;
}
if (((masPO4nl[0] == masPO3nl[masPO3x.length - 1]) && (Math.abs(masPO4x[0] - masPO3x[masPO3x.length - 1]) <= dopP)) && (Math.abs(masPO4y[0] - masPO3y[masPO3y.length - 1]) <= dopP)) {
stolknov = 1;
}
}
if (((masPO1x[0] > (\u0441P1x - dopS)) && (masPO1x[0] <= (\u0441P1x + dopS))) && (n1 != 0)) {
if ((masPO1y[0] > (\u0441P1y - dopS)) && (masPO1y[0] <= (\u0441P1y + dopS))) {
if (((n1 == 1) && (gromkost == 1)) && (napi1poC._x > 1)) {
SoutL.start(0, 1);
}
if (((n1 == -1) && (gromkost == 1)) && (napi1poC._x > 1)) {
SoutR.start(0, 1);
}
if (napi1poC._x > 1) {
qwclics = qwclics + 1;
}
Schuh1.stop();
nalPoezd[0] = 0;
if (gromkost == 1) {
SchuhO.start(0, 1);
}
removeMovieClip("napi1poC");
} else {
promah = 1;
}
}
if (((masPO2x[0] > (\u0441P2x - dopS)) && (masPO2x[0] <= (\u0441P2x + dopS))) && (n2 != 0)) {
if ((masPO2y[0] > (\u0441P2y - dopS)) && (masPO2y[0] <= (\u0441P2y + dopS))) {
if (((n2 == 1) && (gromkost == 1)) && (napi2poC._x > 1)) {
SoutL.start(0, 1);
}
if (((n2 == -1) && (gromkost == 1)) && (napi2poC._x > 1)) {
SoutR.start(0, 1);
}
if (napi2poC._x > 1) {
qwclics = qwclics + 1;
}
Schuh2.stop();
nalPoezd[1] = 0;
if (gromkost == 1) {
SchuhO.start(0, 1);
}
removeMovieClip("napi2poC");
} else {
promah = 1;
}
}
if (((masPO3x[0] > (\u0441P3x - dopS)) && (masPO3x[0] <= (\u0441P3x + dopS))) && (n3 != 0)) {
if ((masPO3y[0] > (\u0441P3y - dopS)) && (masPO3y[0] <= (\u0441P3y + dopS))) {
if (((n3 == 1) && (gromkost == 1)) && (napi3poC._x > 1)) {
SoutL.start(0, 1);
}
if (((n3 == -1) && (gromkost == 1)) && (napi3poC._x > 1)) {
SoutR.start(0, 1);
}
if (napi3poC._x > 1) {
qwclics = qwclics + 1;
}
Schuh3.stop();
nalPoezd[2] = 0;
if (gromkost == 1) {
SchuhO.start(0, 1);
}
removeMovieClip("napi3poC");
} else {
promah = 1;
}
}
if (((masPO4x[0] > (\u0441P4x - dopS)) && (masPO4x[0] <= (\u0441P4x + dopS))) && (n4 != 0)) {
if ((masPO4y[0] > (\u0441P4y - dopS)) && (masPO4y[0] <= (\u0441P4y + dopS))) {
if (((n4 == 1) && (gromkost == 1)) && (napi4poC._x > 1)) {
SoutL.start(0, 1);
}
if (((n4 == -1) && (gromkost == 1)) && (napi4poC._x > 1)) {
SoutR.start(0, 1);
}
if (napi4poC._x > 1) {
qwclics = qwclics + 1;
}
Schuh4.stop();
nalPoezd[3] = 0;
if (gromkost == 1) {
SchuhO.start(0, 1);
}
removeMovieClip("napi4poC");
} else {
promah = 1;
}
}
}
}
if (((stolknov >= 1) || (promah >= 1)) && (stolkpr == 0)) {
Schuh1.stop();
Schuh2.stop();
Schuh3.stop();
Schuh4.stop();
Sprir.stop();
n1 = 0;
n2 = 0;
n3 = 0;
n4 = 0;
pause1 = 1;
_root.attachMovie("fon_ran", "fon_ran2", 5000, {_x:0, _y:0});
_root.attachMovie("kn_REFR", "wreck", 5001, {_x:320, _y:100});
_root.attachMovie("kn_savS", "kn_savS1", 5002, {_x:320, _y:200});
if (stolknov == 1) {
if (gromkost == 1) {
Scrash.start(0, 1);
}
} else if (gromkost == 1) {
Smiss.start(0, 1);
}
delete masSTx;
delete masSTy;
delete masSTa;
delete masST0;
delete masSTi;
delete masSTou1;
delete masSTou2;
delete masSTtip;
delete masSTous1;
delete masSTous2;
delete masSTins;
delete masSTgt;
delete masLlx;
delete masLly;
delete masLdx;
delete masLdy;
delete masLa;
delete masL0;
delete masLxp;
delete masLyp;
stolkpr = 1;
}
wreck.onPress = function () {
removeMovieClip("fon_ran2");
removeMovieClip("kn_savS1");
remALL();
REFR_ESH();
stolknov = 0;
promah = 0;
pause1 = 0;
stolkpr = 0;
nkadra = autosave;
tipeknal = 0;
removeMovieClip("wreck");
};
kn_savS1.onPress = function () {
SAV_random = qwclics;
nachalo();
removeMovieClip("kn_REFR1");
removeMovieClip("wreck");
removeMovieClip("fon_ran2");
removeMovieClip("kn_savS1");
remALL();
REFR_ESH();
removeMovieClip("dvspon1");
removeMovieClip("click1");
removeMovieClip("kn_soundof1");
removeMovieClip("kn_sound1_");
removeMovieClip("kn_MENU1");
removeMovieClip("kn_pause1");
removeMovieClip("kn_morgam1");
all4.removeTextField();
removeMovieClip("help_click1");
tipek = 0;
removeMovieClip("urcong1");
removeMovieClip("urcong2");
removeMovieClip("urcong");
gotoAndPlay (7);
};
all4.text = qwclics + " trains";
all4.setTextFormat(lineStyle);
kn_pause1.onPress = function () {
if (((pause1 == 0) && (stolknov == 0)) && (promah == 0)) {
kn_pe12._x = 0;
pause1 = 1;
Schuh1.stop();
Schuh2.stop();
Schuh3.stop();
Schuh4.stop();
Sprir.stop();
}
};
kn_pe12.onPress = function () {
kn_pe12._x = 700;
stolknov = 0;
if (((pause1 == 1) && (stolknov == 0)) && (promah == 0)) {
pause1 = 0;
if ((((napi1poC._x > 1) && (stolknov == 0)) && (promah == 0)) && (gromkost == 1)) {
Schuh1.start(0, 10);
}
if ((((napi2poC._x > 1) && (stolknov == 0)) && (promah == 0)) && (gromkost == 1)) {
Schuh2.start(0, 10);
}
if ((((napi3poC._x > 1) && (stolknov == 0)) && (promah == 0)) && (gromkost == 1)) {
Schuh3.start(0, 10);
}
if ((((napi4poC._x > 1) && (stolknov == 0)) && (promah == 0)) && (gromkost == 1)) {
Schuh4.start(0, 10);
}
if (gromkost == 1) {
Sprir.start(0, 1000);
}
}
};
};
stop();
Frame 7
if (SAV_random != -1) {
schet = SAV_random;
var o = {n:[5, 0, 0, 15, 14, 15, 9, 15, 9, 5, 3, 11, 6, 15, 1, 14], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:"a658027105f84827", score:schet});
}
if (SAV_career != 3700) {
schet = SAV_career;
var o = {n:[5, 0, 0, 15, 14, 15, 9, 15, 9, 5, 3, 11, 6, 15, 1, 14], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:"7bf96d6be01d4382", score:schet});
}
Symbol 19 Button [button0]
on (release) {
getURL ("http://www.fastgames.com/", "_blank");
}
Symbol 20 MovieClip [title] Frame 12
stop();
Symbol 23 MovieClip [lightning] Frame 10
stop();
Symbol 24 MovieClip [logoAnim] Frame 2
stop();
Symbol 24 MovieClip [logoAnim] Frame 7
stop();
Symbol 243 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 244 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.3 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 245 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 246 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
static var gameStart, levelStart;
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function trigger(kind, obj) {
if (obj == undefined) {
obj = {};
} else if (obj.kind != undefined) {
trace("WARNING: optional arguements package contains key 'id', it will be overwritten");
obj.kind = kind;
}
mochi.as2.MochiServices.send("events_triggerEvent", {eventObject:obj}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startGame() {
gameStart = new Date().getTime();
trigger("start_game");
}
static function endGame() {
var _local1 = new Date().getTime() - gameStart;
trigger("end_game", {time:_local1});
}
static function startLevel() {
levelStart = new Date().getTime();
trigger("start_level");
}
static function endLevel() {
var _local1 = new Date().getTime() - levelStart;
trigger("end_level", {time:_local1});
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 247 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 248 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 249 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}