Frame 1
fscommand ("fullscreen", "true");
Instance of Symbol 26 MovieClip in Frame 1
onClipEvent (load) {
function fp(n1) {
eval (n1)._yscale = -eval (n1)._yscale;
}
function ff() {
f = -f;
fp("ra1");
fp("ra2");
fp("rb1");
fp("rb2");
fp("ga");
fp("ku");
fp("ka1");
fp("ka2");
fp("kb1");
fp("kb2");
}
function init1(n1, n2) {
nx = eval ("pg" + n1)[0];
ny = eval ("pg" + n1)[1];
if ((n1 == "4a") or (n1 == "4b")) {
lmax = 170;
lmin = 40;
} else if (((n1 == "1a") or (n1 == "1b")) or (n1 == "2")) {
lmax = 140;
lmin = 0;
} else if (n1 == "3") {
lmax = (lmin = 70);
}
nnn = n2;
x = eval ("px" + n1) - eval ("px" + n2);
y = eval ("py" + n1) - eval ("py" + n2);
vx = eval ("pvx" + n1);
vy = eval ("pvy" + n1);
}
function init2(n1, n2) {
Set("px" + n1, eval ("px" + n2) + dx);
Set("py" + n1, eval ("py" + n2) + dy);
Set("pvx" + n1, vx);
Set("pvy" + n1, vy);
}
function fsan() {
dx = x + vx;
dy = y + vy;
dx = ((dx + dx) + (nx * f)) / 3;
dy = ((dy + dy) + ny) / 3;
if (0 < (eval ("py" + nnn) + dy)) {
dy = -eval ("py" + nnn);
}
fj();
}
function fkelys() {
var ak;
var ak2;
ak = fma2(dy, dx);
ak2 = Math.acos(c / lmax);
if (f == 1) {
r1 = (ak - ak2) / pi180;
r2 = (ak + ak2) / pi180;
} else {
r2 = (ak - ak2) / pi180;
r1 = (ak + ak2) / pi180;
}
}
function fbk() {
init1("3", "2");
fsan();
init2("3", "2");
te = fma2(dy, dx) / pi180;
ft("ku", px2, py2, te);
if (look) {
te2 = (fma2(ym - py2, xm - px2) / pi180) + 180;
if ((f == 1) and (180 < te2)) {
te2 = te2 - 360;
}
if ((te + 90) < te2) {
te2 = te + 90;
}
if (te2 < (te - 70)) {
te2 = te - 70;
}
te = te2;
}
gm = (gm + te) / 2;
ft("ga", px2, py2, gm);
f1("4a", "3");
ft("ka1", px3, py3, r2);
ft("ka2", px4a, py4a, r1);
f1("4b", "3");
ft("kb1", px3, py3, r2);
ft("kb2", px4b, py4b, r1);
}
function fb() {
fbk();
f1("1a", "2");
ft("ra1", px1a, py1a, r2);
ft("ra2", px2, py2, r1);
f1("1b", "2");
ft("rb1", px1b, py1b, r2);
ft("rb2", px2, py2, r1);
}
function fj() {
c = msqrt((dx * dx) + (dy * dy));
if (lmax < c) {
dx = (lmax * dx) / c;
dy = (lmax * dy) / c;
c = lmax;
} else if (c < lmin) {
dx = (lmin * dx) / c;
dy = (lmin * dy) / c;
c = lmin;
}
vx = dx - x;
vy = dy - y;
}
function ft(n1, a1, a2, a3) {
setProperty(n1, _x , a1);
setProperty(n1, _y , a2);
setProperty(n1, _rotation , a3);
}
function fq() {
if (((xm < px2) and (f == -1)) or ((px2 < xm) and (f == 1))) {
ff();
}
}
function fi() {
fkelys();
init2("2", "1a");
ft("ra1", px1a, py1a, r2 + 180);
ft("ra2", px2, py2, r1 + 180);
}
function f1(n1, n2) {
init1(n1, n2);
fsan();
fkelys();
init2(n1, n2);
}
msqrt = Math.sqrt;
pi180 = (Math.PI/180);
mode = "0";
z = -25;
zin = 20;
zin2 = 10;
f = 1;
look = false;
ff();
fma2 = Math.atan2;
fms = Math.sin;
}
onClipEvent (enterFrame) {
xm = _xmouse;
ym = _ymouse;
z++;
if (mode == "0") {
if (z < 20) {
w = "e";
}
if (z == 20) {
w = "s";
}
if (z == 40) {
w = "o";
look = true;
}
if (z >= 40) {
fq();
}
if ((z == 42) or (z == 52)) {
tellTarget ("ga/a") {
play();
};
tellTarget ("ga/b") {
play();
};
}
if (z == 63) {
tellTarget ("_root/com") {
play();
};
}
if (170 < z) {
mode = "1";
z = 0;
}
}
if (mode == "1") {
fq();
if (110 < z) {
w = "e";
mode = "5";
z = 0;
if (600 < px2) {
zup = 20 + random((px2 / 15) - 25);
if (f == -1) {
ff();
}
} else {
zup = (60 - (px2 / 15)) + random(30);
if (f == 1) {
ff();
}
}
stx = px2;
}
if (((((px2 - xm) < 200) and (-200 < (px2 - xm))) and ((py2 - ym) < 200)) and (-200 < (py2 - ym))) {
Mouse.hide();
mode = "2";
tellTarget ("ra1") {
gotoAndStop (2);
};
}
}
if (mode == "5") {
look = false;
if (zup < z) {
mode = "1";
w = "s";
z = 0;
look = true;
}
}
if (mode == "2") {
if (ym < -300) {
w = "k";
if ((((200 < (xm - xc)) or ((xm - xc) < -200)) or (200 < (ym - yc))) or ((ym - yc) < -200)) {
if (random(12) == 1) {
mode = "3";
w = "n";
z = 0;
tellTarget ("ra1") {
gotoAndStop (1);
};
Mouse.show();
}
}
} else {
w = "l";
}
xc = xm;
yc = ym;
}
if (mode == "3") {
z = z + 6;
py2 = py2 + z;
if (0 < py2) {
py2 = 0;
mode = "4";
w = "s";
}
}
if (mode == "4") {
py2 = py2 - 40;
px2 = px2 - (f * 30);
if (py2 < -180) {
py2 = -180;
mode = "1";
look = true;
z = 0;
}
}
if (w == "k") {
pg3 = [-10, 80];
pg2 = [20, 120];
pg1b = [60, 105];
pg4a = [60, 135];
pg4b = [-50, 120];
px1a = xm;
py1a = ym;
init1("2", "1a");
fsan();
fi();
px1b = px1a - (15 * f);
py1b = py1a + 5;
pg2 = [20, 105];
f1("2", "1b");
ft("rb1", px1b, py1b, r2 + 180);
ft("rb2", px2, py2, r1 + 180);
fbk();
}
if (w == "l") {
pg3 = [60, 80];
pg2 = [20, -180 - ym];
pg1b = [60, 105];
pg4a = [25, 110];
pg4b = [-80, 115];
px1a = xm;
py1a = ym;
init1("2", "1a");
dx = x;
dy = y;
if (((px2 + 140) < xm) or (xm < (px2 - 140))) {
dx = ((dx * 14) + (nx * f)) / 15;
}
dy = ((dy + dy) + ny) / 3;
fj();
fq();
fi();
fkelys();
ft("rb1", px1a - (f * 10), py1a + 6, r2 + 180);
ft("rb2", px2 - (f * 10), py2 + 3, r1 + 180);
fbk();
}
if (w == "s") {
pg3 = [60, 80];
pg1a = [80, 100];
pg1b = [-80, 60];
pg4a = [-80, 120];
pg4b = [25, 110];
fb();
}
if (w == "o") {
py2 = -190;
pg3 = [90, 50];
pg1a = [130, 40];
pg1b = [100, 80];
pg4a = [-70, 145];
pg4b = [35, 140];
fb();
}
if (w == "n") {
pg3 = [-70, 0];
pg1a = [30, -110];
pg1b = [-20, -100];
pg4a = [-120, -100];
pg4b = [-80, -140];
fb();
}
if (w == "e") {
o = z - (Math.floor(z / zin) * zin);
o2 = fms(((o / zin) * Math.PI) * 2);
if (o2 < 0) {
o2 = -o2;
}
o0 = o * 20;
o3 = o2 * 30;
o8 = o2 * 80;
o5 = o * 15;
px2 = (((-f) * z) * 15) + stx;
py2 = -170 - (o2 * 30);
pg3 = [50, 80];
if (o < zin2) {
pg1a = [100 - o0, (o8 - (o * 5)) - 30];
pg1b = [-100 + o0, o8 + 0];
pg4a = [-70 + o5, 100 + o3];
pg4b = [85 - o5, 100 - o3];
} else {
pg1a = [o0 - 280, (o8 + 65) - (o * 5)];
pg1b = [280 - o0, o8 + 20];
pg4a = [230 - o5, 100 - o3];
pg4b = [o5 - 200, 100 + o3];
}
fb();
}
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 2
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 11
stop();
Instance of Symbol 33 MovieClip in Symbol 34 MovieClip Frame 11
onClipEvent (enterFrame) {
s++;
if (5 >= s) {
if (k != 2) {
setProperty("p", _alpha , s * 20);
} else {
k = 3;
}
if (!k) {
setProperty("m", _alpha , 0);
} else {
setProperty("m", _alpha , 100 - (s * 20));
}
}
if (((k != 3) and (20 < s)) and (25 >= s)) {
setProperty("p", _alpha , 100 - ((s - 20) * 20));
setProperty("m", _alpha , (s - 20) * 20);
}
if (43 < s) {
s = 0;
k++;
}
if (k == 3) {
tellTarget ("..") {
play();
};
}
}
Symbol 38 Button
on (press) {
getURL ("javascript:window.close()");
}
Symbol 43 Button
on (press) {
getURL ("http://andrius.esu.lt/", "_blank");
getURL ("javascript:window.close()");
}
Symbol 44 Button
on (press) {
getURL ("http://www.fusee.com/", "_blank");
getURL ("javascript:window.close()");
}