Frame 1
stop();
info.onRelease = function () {
gotoAndStop (2);
};
zum.onRelease = function () {
gotoAndStop (3);
};
Frame 2
stop();
stoss.knopf.enabled = false;
stoss.schimmer.gotoAndStop(1);
stoss.gotoAndStop(1);
effet.but.enabled = false;
helfer.h0.enabled = false;
helfer.h1.enabled = false;
helfer.h2.enabled = false;
neu.onRelease = function () {
gotoAndStop (3);
};
back.onRelease = function () {
gotoAndStop (1);
};
Frame 3
function ausschalten() {
bbh._visible = false;
bbh2._visible = false;
removeMovieClip(strich);
stoss.schimmer.gotoAndStop(1);
stoss.gotoAndStop(1);
helfer.deaktivieren();
}
function norm(v, voll) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
if (voll) {
v.l = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.l;
v.dy = v.vy / v.l;
v.lx = v.dy;
v.ly = -v.dx;
v.rx = -v.dy;
v.ry = v.dx;
}
}
function normball(v) {
v.l = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
v.dx = v.vx / v.l;
v.dy = v.vy / v.l;
}
function proj(va, vb, links) {
if (links) {
np = (va.vx * vb.lx) + (va.vy * vb.ly);
} else {
np = (va.vx * vb.dx) + (va.vy * vb.dy);
}
return(np);
}
function schnitt(va, vb, vc) {
ab = (va.vx * vb.vy) - (va.vy * vb.vx);
bc = (vb.vx * vc.vy) - (vb.vy * vc.vx);
sp = ab / bc;
return(sp);
}
function kolllinie(l, b) {
dir = proj(b, l, true);
if (dir < 0) {
v0 = {};
v0.p0 = {x:l.p0.x, y:l.p0.y};
v0.p1 = {x:b.p0.x, y:b.p0.y};
norm(v0, false);
np = proj(v0, l, false);
v0.p0.x = v0.p0.x + ((np * l.dx) + (r * l.lx));
v0.p0.y = v0.p0.y + ((np * l.dy) + (r * l.ly));
norm(v0, false);
s = schnitt(v0, l, b);
if ((s < 1) && (s > 0)) {
v0.p1.x = b.p0.x + (s * b.vx);
v0.p1.y = b.p0.y + (s * b.vy);
v0.p0 = l.p0;
norm(v0, false);
np = proj(v0, l, false);
if ((np > 0) && (np < l.l)) {
b.p1.x = v0.p1.x;
b.p1.y = v0.p1.y;
np = proj(b, l, true);
b.vx = b.vx - ((np * l.lx) * 2);
b.vy = b.vy - ((np * l.ly) * 2);
b.k = true;
}
}
}
v0 = {};
v0.p0 = {x:l.p0.x, y:l.p0.y};
v0.p1 = {x:b.p1.x, y:b.p1.y};
norm(v0, false);
np = proj(v0, l, false);
if ((np >= 0) && (np < l.l)) {
v0.p0.x = v0.p0.x + (np * l.dx);
v0.p0.y = v0.p0.y + (np * l.dy);
np = proj(v0, l, true);
norm(v0, true);
if ((np > 0) && (v0.l < r)) {
b.p1.x = b.p1.x - ((v0.l - r) * l.lx);
b.p1.y = b.p1.y - ((v0.l - r) * l.ly);
} else if (np < 0) {
b.p1.x = b.p1.x + ((v0.l + r) * l.lx);
b.p1.y = b.p1.y + ((v0.l + r) * l.ly);
}
}
}
function kollpunkt(p, b) {
if (!b.k) {
v0 = {};
v0.p0 = {x:b.p0.x, y:b.p0.y};
v0.p1 = {x:p.x, y:p.y};
norm(v0, false);
normball(b);
np = proj(v0, b, false);
v0.p0.x = v0.p0.x + (np * b.dx);
v0.p0.y = v0.p0.y + (np * b.dy);
norm(v0, true);
if (v0.l < r) {
pen = Math.sqrt(rq - (v0.l * v0.l));
pp = np - pen;
if ((pp >= 0) && (pp <= b.l)) {
v0.p0.x = v0.p0.x - (pen * b.dx);
v0.p0.y = v0.p0.y - (pen * b.dy);
b.p1.x = v0.p0.x;
b.p1.y = v0.p0.y;
norm(v0, true);
np = proj(b, v0, false);
b.vx = b.vx - ((np * v0.dx) * 2);
b.vy = b.vy - ((np * v0.dy) * 2);
b.k = true;
}
}
}
}
function kollball(a, b) {
v0 = {};
v0.p0 = {x:a.p1.x, y:a.p1.y};
v0.p1 = {x:b.p1.x, y:b.p1.y};
norm(v0, false);
if ((v0.vx < dis) && (v0.vy < dis)) {
v0.p0 = {x:a.p0.x, y:a.p0.y};
v0.p1 = {};
v0.p1.x = (v0.p0.x + a.vx) - b.vx;
v0.p1.y = (v0.p0.y + a.vy) - b.vy;
norm(v0, true);
v1 = {};
v1.p0 = {x:a.p0.x, y:a.p0.y};
v1.p1 = {x:b.p0.x, y:b.p0.y};
norm(v1, false);
np = proj(v1, v0, false);
v2 = {};
v2.p0 = {x:v1.p1.x, y:v1.p1.y};
v2.p1 = {};
v2.p1.x = v0.p0.x + (v0.dx * np);
v2.p1.y = v0.p0.y + (v0.dy * np);
norm(v2, true);
if (v2.l < d) {
np = Math.sqrt(dq - (v2.l * v2.l));
v1.p1.x = v2.p1.x - (np * v0.dx);
v1.p1.y = v2.p1.y - (np * v0.dy);
norm(v1, true);
t = v1.l / v0.l;
if (t < 1) {
v0.p0.x = a.p0.x + (t * a.vx);
v0.p0.y = a.p0.y + (t * a.vy);
v0.p1.x = b.p0.x + (t * b.vx);
v0.p1.y = b.p0.y + (t * b.vy);
norm(v0, true);
v1.vx = b.vx - a.vx;
v1.vy = b.vy - a.vy;
np = proj(v1, v0, false);
if (np < 0) {
a.p1.x = v0.p0.x;
a.p1.y = v0.p0.y;
b.p1.x = v0.p1.x;
b.p1.y = v0.p1.y;
a.vx = a.vx + (np * v0.dx);
a.vy = a.vy + (np * v0.dy);
b.vx = b.vx - (np * v0.dx);
b.vy = b.vy - (np * v0.dy);
a.k = (b.k = true);
}
}
}
v0 = {};
v0.p0 = {x:a.p1.x, y:a.p1.y};
v0.p1 = {x:b.p1.x, y:b.p1.y};
norm(v0, true);
if (v0.l < d) {
v0.l = v0.l - d;
v0.vx = (v0.l * v0.dx) * 0.5;
v0.vy = (v0.l * v0.dy) * 0.5;
a.p1.x = a.p1.x + v0.vx;
a.p1.y = a.p1.y + v0.vy;
b.p1.x = b.p1.x - v0.vx;
b.p1.y = b.p1.y - v0.vy;
}
}
}
function loch(h, b) {
v0 = {};
v0.p0 = {x:b.p0.x, y:b.p0.y};
v0.p1 = {x:h.x, y:h.y};
norm(v0, true);
if ((((b.p1.x < h0.x) || (b.p1.x > h6.x)) || (b.p1.y < h0.y)) || (b.p1.y > h3.y)) {
tote.push(b);
delete baelle[b.n];
b.h = h;
b.schnell = true;
if (b != b0) {
t2.text = tote.length;
}
} else if (v0.l < rl) {
tote.push(b);
delete baelle[b.n];
b.h = h;
if (b != b0) {
t2.text = tote.length;
}
}
}
function kollloch(b) {
if (b.schnell) {
b.vx = (b.vy = 0);
b.mc._alpha = b.mc._alpha - 6;
b.p1.x = (b.p0.x = (b.mc._x = b.h.x));
b.p1.y = (b.p0.y = (b.mc._y = b.h.y));
} else {
v0 = {};
v0.p1 = {x:b.h.x, y:b.h.y};
v0.p0 = {x:b.p0.x, y:b.p0.y};
norm(v0, false);
b.vx = v0.vx * 0.25;
b.vy = v0.vy * 0.25;
b.mc._alpha = b.mc._alpha - 3;
b.mc._x = (b.p0.x = b.p1.x);
b.mc._y = (b.p0.y = b.p1.y);
b.p1.x = b.p1.x + b.vx;
b.p1.y = b.p1.y + b.vy;
}
if (b.mc._alpha < 4) {
anz--;
b.mc._visible = false;
if (b == b0) {
schluss = 0;
} else {
schluss = schluss - ((schluss > 0) ? 1 : 0);
}
}
}
function findzone(b) {
if (b.p0.x < (p17.x + dis)) {
if (b.p0.y < (p1.y + dis)) {
z = z0;
} else if (b.p0.y < (p2.y - dis)) {
z = z3;
} else if (b.p0.y < (p4.y + dis)) {
z = z6;
} else if (b.p0.y < (p5.y - dis)) {
z = z9;
} else {
z = z12;
}
} else if (b.p0.x < (p16.x - dis)) {
if (b.p0.y < (p1.y + dis)) {
z = z1;
} else if (b.p0.y < (p2.y - dis)) {
z = z4;
} else if (b.p0.y < (p4.y + dis)) {
z = z7;
} else if (b.p0.y < (p5.y - dis)) {
z = z10;
} else {
z = z13;
}
} else if (b.p0.y < (p1.y + dis)) {
z = z2;
} else if (b.p0.y < (p2.y - dis)) {
z = z5;
} else if (b.p0.y < (p4.y + dis)) {
z = z8;
} else if (b.p0.y < (p5.y - dis)) {
z = z11;
} else {
z = z14;
}
return(z);
}
function ballupdate(b) {
b.mc._x = (b.p0.x = b.p1.x);
b.mc._y = (b.p0.y = b.p1.y);
if (b.k) {
b.vx = b.vx * prall;
b.vy = b.vy * prall;
b.k = false;
if (b == b0) {
spin.ek = true;
}
} else {
b.v = Math.sqrt((b.vx * b.vx) + (b.vy * b.vy));
if (b.v < min) {
b.vx = (b.vy = 0);
bew--;
} else {
if (((b == b0) && (spin.k > 0)) && (spin.ek)) {
spin.r = 0.00833333333333333 * spin.k;
b.vx = b.vx - (spin.vx * spin.r);
b.vy = b.vy - (spin.vy * spin.r);
}
bf = (max - b.v) / brem;
b.vx = b.vx * (reib - bf);
b.vy = b.vy * (reib - bf);
}
}
b.p1.x = b.p1.x + b.vx;
b.p1.y = b.p1.y + b.vy;
}
function setup() {
t4._visible = false;
stoesse = 0;
t1.text = stoesse;
ausschalten();
b0 = {n:0, mc:bb0, vx:0, vy:0, nah:1000, schnell:false};
b1 = {n:1, mc:bb1, vx:0, vy:0, nah:1000, schnell:false};
b2 = {n:2, mc:bb2, vx:0, vy:0, nah:1000, schnell:false};
b3 = {n:3, mc:bb3, vx:0, vy:0, nah:1000, schnell:false};
b4 = {n:4, mc:bb4, vx:0, vy:0, nah:1000, schnell:false};
b5 = {n:5, mc:bb5, vx:0, vy:0, nah:1000, schnell:false};
b6 = {n:6, mc:bb6, vx:0, vy:0, nah:1000, schnell:false};
b7 = {n:7, mc:bb7, vx:0, vy:0, nah:1000, schnell:false};
b8 = {n:8, mc:bb8, vx:0, vy:0, nah:1000, schnell:false};
b9 = {n:9, mc:bb9, vx:0, vy:0, nah:1000, schnell:false};
baelle = [b0, b1, b2, b3, b4, b5, b6, b7, b8, b9];
tote = [];
t2.text = tote.length;
for (i in baelle) {
b = baelle[i];
b.p0 = {x:bkx[i], y:bky[i]};
b.p1 = {x:b.p0.x + b.vx, y:b.p0.y + b.vy};
b.mc._x = b.p0.x;
b.mc._y = b.p0.y;
b.mc._visible = true;
b.mc._alpha = 100;
}
anz = baelle.length;
bew = 0;
schluss = anz - 1;
koe._rotation = 90;
koe.vx = (koe.vy = 0);
koe.dx = 0;
koe.dy = -1;
spin = {vx:0, vy:0, k:0, ek:false};
zielen();
}
function visieren() {
if (((((hilf > 0) && (b0.p0.x > (p1.x + r))) && (b0.p0.x < (p14.x - r))) && (b0.p0.y > (p17.y + r))) && (b0.p0.y < (p7.y - r))) {
b0.vx = 1000 * b0.dx;
b0.vy = 1000 * b0.dy;
bk = 0;
nahe = [];
v0 = {};
v0.p0 = {x:b0.p0.x, y:b0.p0.y};
for (l in baelle) {
if ((l > 0) && (baelle[l] != undefined)) {
bk = bk + 1000;
b = this["b" + l];
b.nah = 1000;
v0.p1 = {x:b.p0.x, y:b.p0.y};
norm(v0, true);
np = proj(v0, b0, false);
v1 = {};
v1.p0 = {x:v0.p0.x + (np * b0.dx), y:v0.p0.y + (np * b0.dy)};
v1.p1 = {x:v0.p1.x, y:v0.p1.y};
norm(v1, true);
if ((v1.l < d) && (np > 0)) {
pen = Math.sqrt(dq - (v1.l * v1.l));
v1.p0.x = v1.p0.x - (pen * b0.dx);
v1.p0.y = v1.p0.y - (pen * b0.dy);
b.kx = v1.p0.x;
b.ky = v1.p0.y;
v0.p1 = v1.p0;
norm(v0, true);
b.nah = v0.l;
}
nahe.push(b);
}
}
nahe.sortOn("nah", Array.NUMERIC | Array.DESCENDING);
bh = {};
l = 0;
while (l < nahe.length) {
bh.p0 = {x:nahe[l].kx, y:nahe[l].ky};
bk = bk - nahe[l].nah;
b0.px = nahe[l].p0.x;
b0.py = nahe[l].p0.y;
l++;
}
if (bk > 0) {
zone = findzone(bh);
for (m in zone[0]) {
l = zone[0][m];
v0 = {};
v0.p0 = {x:l.p0.x, y:l.p0.y};
v0.p1 = {x:bh.p0.x, y:bh.p0.y};
norm(v0, false);
np = proj(v0, l, false);
v0.p0.x = v0.p0.x + (np * l.dx);
v0.p0.y = v0.p0.y + (np * l.dy);
norm(v0, true);
if (((v0.l < r) && (np < l.l)) && (np > 0)) {
bk = 0;
}
}
}
if (bk > 0) {
bbh._visible = true;
bbh._x = bh.p0.x;
bbh._y = bh.p0.y;
_root.createEmptyMovieClip("strich", 12000);
strich.lineStyle(0, 8691080, 100);
strich.moveTo(b0.p0.x + (r * b0.dx), b0.p0.y + (r * b0.dy));
strich.lineTo(bh.p0.x - (r * b0.dx), bh.p0.y - (r * b0.dy));
v0 = {};
v0.p0 = {x:bh.p0.x, y:bh.p0.y};
v0.p1 = {x:b0.px, y:b0.py};
bbh2._visible = true;
bbh2._x = v0.p1.x;
bbh2._y = v0.p1.y;
if (hilf > 1) {
norm(v0, true);
b0.vx = b0.vx * 0.02;
b0.vy = b0.vy * 0.02;
np = proj(b0, v0, false);
strich.lineStyle(0, 16679297, 100);
strich.moveTo(v0.p1.x + (r * v0.dx), v0.p1.y + (r * v0.dy));
strich.lineTo((v0.p1.x + (r * v0.dx)) + (v0.dx * np), (v0.p1.y + (r * v0.dy)) + (v0.dy * np));
v0.vx = b0.vx - (np * v0.dx);
v0.vy = b0.vy - (np * v0.dy);
normball(v0);
strich.lineStyle(0, 8691080, 100);
strich.moveTo(bh.p0.x + (r * v0.dx), bh.p0.y + (r * v0.dy));
strich.lineTo((bh.p0.x + (r * v0.dx)) + v0.vx, (bh.p0.y + (r * v0.dy)) + v0.vy);
} else {
bbh2._visible = false;
}
} else {
bbh2._visible = false;
linien = [l1, l4, l7, l10, l13, l16];
for (n in linien) {
l = linien[n];
v0 = {};
v0.p0 = {x:l.p0.x + (r * l.lx), y:l.p0.y + (r * l.ly)};
v0.p1 = {x:b0.p0.x, y:b0.p0.y};
norm(v0, false);
s = schnitt(v0, l, b0);
l.s = s;
}
linien.sortOn("s", Array.NUMERIC | Array.DESCENDING);
n = 0;
while (n < linien.length) {
l = linien[n];
if ((l.s > 0) && (l.s < 1)) {
bh.p0.x = b0.p0.x + (b0.vx * l.s);
bh.p0.y = b0.p0.y + (b0.vy * l.s);
}
n++;
}
bbh._visible = true;
bbh._x = bh.p0.x;
bbh._y = bh.p0.y;
_root.createEmptyMovieClip("strich", 12000);
strich.lineStyle(0, 8691080, 100);
strich.moveTo(b0.p0.x + (r * b0.dx), b0.p0.y + (r * b0.dy));
strich.lineTo(bh.p0.x - (r * b0.dx), bh.p0.y - (r * b0.dy));
if (hilf > 1) {
for (o in linien) {
v0 = {};
v0.p0 = {x:linien[o].p0.x, y:linien[o].p0.y};
v0.p1 = {x:bh.p0.x, y:bh.p0.y};
norm(v0, false);
np = proj(v0, linien[o], false);
if ((np > 0) && (np < linien[o].l)) {
np = proj(b0, linien[o], true);
v0.vx = (b0.vx - ((np * linien[o].lx) * 2)) * 0.03;
v0.vy = (b0.vy - ((np * linien[o].ly) * 2)) * 0.03;
normball(v0);
strich.moveTo(bh.p0.x + (r * v0.dx), bh.p0.y + (r * v0.dy));
strich.lineTo(bh.p0.x + v0.vx, bh.p0.y + v0.vy);
}
}
}
}
} else {
removeMovieClip(strich);
bbh._visible = false;
bbh2._visible = false;
}
}
function zielen() {
spin.vx = (spin.vy = (spin.k = 0));
effet.rueck();
helfer.aktivieren();
koe._x = b0.p0.x;
koe._y = b0.p0.y;
koe._visible = true;
vk = {};
vk.p0 = {x:b0.p0.x, y:b0.p0.y};
vk.p1 = {x:vk.p0.x - (3 * koe.dx), y:vk.p0.y - (3 * koe.dy)};
norm(vk, true);
koe._rotation = (Math.atan2(vk.vy, vk.vx) / Math.PI) * 180;
b0.dx = -vk.dx;
b0.dy = -vk.dy;
visieren();
koe.onPress = function () {
schiessen._visible = false;
vk = {};
vk.p0 = {x:b0.p0.x, y:b0.p0.y};
vk.p1 = {x:_xmouse, y:_ymouse};
norm(vk, true);
koe._rotation = (Math.atan2(vk.vy, vk.vx) / Math.PI) * 180;
b0.dx = -vk.dx;
b0.dy = -vk.dy;
visieren();
koe.onMouseMove = function () {
vk = {};
vk.p0 = {x:b0.p0.x, y:b0.p0.y};
vk.p1 = {x:_xmouse, y:_ymouse};
norm(vk, true);
koe._rotation = (Math.atan2(vk.vy, vk.vx) / Math.PI) * 180;
b0.dx = -vk.dx;
b0.dy = -vk.dy;
visieren();
};
};
koe.onRelease = function () {
delete koe.onMouseMove;
};
koe.onReleaseOutside = function () {
delete koe.onMouseMove;
};
stoss.knopf.enabled = true;
stoss.schimmer.play();
}
function los() {
effet.but.enabled = false;
stoss.knopf.enabled = false;
b0.vx = (b0.dx * max) * stoss.kraft;
b0.vy = (b0.dy * max) * stoss.kraft;
normball(b0);
if (effet.ve.l > 0) {
b0.alpha = Math.atan2(b0.dy, b0.dx);
spin.vx = ((-effet.ve.l) * b0.l) * Math.cos(b0.alpha + (effet.ve.alpha + (Math.PI/2)));
spin.vy = ((-effet.ve.l) * b0.l) * Math.sin(b0.alpha + (effet.ve.alpha + (Math.PI/2)));
spin.k = (((40 / max) * b0.l) + 20) * effet.ve.l;
spin.ek = false;
}
v0 = {};
wart = 0;
koe.vx = b0.vx * 0.3;
koe.vy = b0.vy * 0.3;
koe.dx = b0.dx;
koe.dy = b0.dy;
onEnterFrame = function () {
koe._x = koe._x + koe.vx;
koe._y = koe._y + koe.vy;
v0.p0 = {x:koe._x, y:koe._y};
v0.p1 = {x:b0.p0.x, y:b0.p0.y};
norm(v0, true);
if ((v0.l <= (b0.l * 0.6)) || (wart > 0)) {
if (wart == 2) {
delete _root.onEnterFrame;
ausschalten();
koe.vx = koe.vx * 0.5;
koe.vy = koe.vy * 0.5;
stoesse++;
if (stoesse > 99) {
stoesse = 99;
}
t1.text = stoesse;
roll();
}
wart++;
}
};
}
function roll() {
onEnterFrame = function () {
if (spin.ek) {
spin.k--;
} else {
spin.k = spin.k - 0.2;
}
if (koe._visible) {
koe._alpha = koe._alpha - 5;
koe._x = koe._x + koe.vx;
koe._y = koe._y + koe.vy;
koe.vx = koe.vx * 0.8;
koe.vy = koe.vy * 0.8;
if (koe._alpha <= 5) {
koe._visible = false;
koe._alpha = 100;
}
}
for (i in baelle) {
if (baelle[i] != undefined) {
zone = findzone(baelle[i]);
for (j in zone[0]) {
kolllinie(zone[0][j], baelle[i]);
}
for (j in zone[1]) {
kollpunkt(zone[1][j], baelle[i]);
}
loch(zone[2], baelle[i]);
}
}
for (i in baelle) {
if (baelle[i] != undefined) {
for (j in baelle) {
if ((j < i) && (baelle[j] != undefined)) {
kollball(baelle[i], baelle[j]);
}
}
}
}
bew = anz;
for (i in baelle) {
if (baelle[i] != undefined) {
ballupdate(baelle[i]);
}
}
for (i in tote) {
b = tote[i];
if (b.mc._visible) {
kollloch(b);
}
}
if ((schluss == 0) && (bew == 0)) {
delete _root.onEnterFrame;
if (!b0.mc._visible) {
t4._visible = true;
t4.text = "YOU HAVE LOST!";
} else {
t4._visible = true;
t4.text = ("YOU HAVE WON AFTER " + stoesse) + " SHOTS!";
}
} else if (bew == 0) {
delete _root.onEnterFrame;
zielen();
}
};
}
stop();
r = 9;
d = r * 2;
rq = r * r;
dq = d * d;
rl = 12.25;
max = r * 3;
min = 0.05;
dis = max + d;
prall = 0.82;
reib = 0.999;
brem = 900;
fall = 0.5;
hilf = 2;
bb0.swapDepths(15000);
bbh._visible = false;
bbh2._visible = false;
stoss.knopf.enabled = false;
bkx = [];
bky = [];
i = 0;
while (i < 10) {
bkx.push(this["bb" + i]._x);
bky.push(this["bb" + i]._y);
i++;
}
p0 = {x:pp0._x, y:pp0._y};
p1 = {x:pp1._x, y:pp1._y};
p2 = {x:pp2._x, y:pp2._y};
p3 = {x:pp3._x, y:pp3._y};
p4 = {x:pp4._x, y:pp4._y};
p5 = {x:pp5._x, y:pp5._y};
p6 = {x:pp6._x, y:pp6._y};
p7 = {x:pp7._x, y:pp7._y};
p8 = {x:pp8._x, y:pp8._y};
p9 = {x:pp9._x, y:pp9._y};
p10 = {x:pp10._x, y:pp10._y};
p11 = {x:pp11._x, y:pp11._y};
p12 = {x:pp12._x, y:pp12._y};
p13 = {x:pp13._x, y:pp13._y};
p14 = {x:pp14._x, y:pp14._y};
p15 = {x:pp15._x, y:pp15._y};
p16 = {x:pp16._x, y:pp16._y};
p17 = {x:pp17._x, y:pp17._y};
l0 = {p0:p0, p1:p1};
l1 = {p0:p1, p1:p2};
l2 = {p0:p2, p1:p3};
l3 = {p0:p3, p1:p4};
l4 = {p0:p4, p1:p5};
l5 = {p0:p5, p1:p6};
l6 = {p0:p6, p1:p7};
l7 = {p0:p7, p1:p8};
l8 = {p0:p8, p1:p9};
l9 = {p0:p9, p1:p10};
l10 = {p0:p10, p1:p11};
l11 = {p0:p11, p1:p12};
l12 = {p0:p12, p1:p13};
l13 = {p0:p13, p1:p14};
l14 = {p0:p14, p1:p15};
l15 = {p0:p15, p1:p16};
l16 = {p0:p16, p1:p17};
l17 = {p0:p17, p1:p0};
i = 0;
while (i < 18) {
norm(this["l" + i], true);
i++;
}
h0 = {x:hh0._x, y:hh0._y};
h1 = {x:hh1._x, y:hh1._y};
h2 = {x:hh2._x, y:hh2._y};
h3 = {x:hh3._x, y:hh3._y};
h4 = {x:hh4._x, y:hh4._y};
h5 = {x:hh5._x, y:hh5._y};
z0l = [l0, l1, l16, l17];
z1l = [l16];
z2l = [l13, l14, l15, l16];
z3l = [l1];
z4l = [];
z5l = [l13];
z6l = [l1, l2, l3, l4];
z7l = [];
z8l = [l10, l11, l12, l13];
z9l = [l4];
z10l = [];
z11l = [l10];
z12l = [l4, l5, l6, l7];
z13l = [l7];
z14l = [l7, l8, l9, l10];
z0p = [p1, p17];
z1p = [];
z2p = [p14, p16];
z3p = [];
z4p = [];
z5p = [];
z6p = [p2, p4];
z7p = [];
z8p = [p11, p13];
z9p = [];
z10p = [];
z11p = [];
z12p = [p5, p7];
z13p = [];
z14p = [p8, p10];
z0 = [z0l, z0p, h0];
z1 = [z1l, z1p];
z2 = [z2l, z2p, h5];
z3 = [z3l, z3p];
z4 = [z4l, z4p];
z5 = [z5l, z5p];
z6 = [z6l, z6p, h1];
z7 = [z7l, z7p];
z8 = [z8l, z8p, h4];
z9 = [z9l, z9p];
z10 = [z10l, z10p];
z11 = [z11l, z11p];
z12 = [z12l, z12p, h2];
z13 = [z13l, z13p];
z14 = [z14l, z14p, h3];
setup();
neu.onRelease = function () {
delete _root.onEnterFrame;
koe._alpha = 100;
setup();
};
help.onRelease = function () {
delete _root.onEnterFrame;
removeMovieClip(strich);
removeMovieClip(bb0);
gotoAndStop (1);
};
Symbol 48 MovieClip [stoss_mc] Frame 1
function laufen() {
onEnterFrame = function () {
if (this._currentframe < 57) {
nextFrame();
_root.koe._x = _root.koe._x - (0.7 * _root.b0.dx);
_root.koe._y = _root.koe._y - (0.7 * _root.b0.dy);
} else {
kraft = 1;
_root.los();
delete onEnterFrame;
}
};
}
stop();
kraft = 0;
knopf.onPress = function () {
schimmer.gotoAndStop(1);
laufen();
};
knopf.onRelease = function () {
delete onEnterFrame;
kraft = 0.0175438596491228 * _currentframe;
_root.los();
};
knopf.onReleaseOutside = function () {
delete onEnterFrame;
kraft = 0.0175438596491228 * _currentframe;
_root.los();
};
Symbol 74 MovieClip Frame 1
function aktivieren() {
q = 0;
while (q < 3) {
hilfe = this["h" + q];
hilfe.enabled = true;
q++;
}
}
function deaktivieren() {
q = 0;
while (q < 3) {
hilfe = this["h" + q];
hilfe.enabled = false;
q++;
}
}
stop();
schieber._x = h2._x;
p = 0;
while (p < 3) {
hilfe = this["h" + p];
hilfe.n = p;
hilfe.onRelease = function () {
schieber._x = this._x;
_root.hilf = this.n;
_root.visieren();
};
p++;
}
Symbol 83 MovieClip Frame 1
function rueck() {
fleck._x = (fleck._y = 0);
but.enabled = true;
ve = {vx:0, vy:0, dx:0, dy:0, l:0, alpha:0};
ve.p0 = {x:0, y:0};
ve.p1 = {x:0, y:0};
}
stop();
spinmax = 0.3;
ve = {vx:0, vy:0, dx:0, dy:0, l:0, alpha:0};
ve.p0 = {x:0, y:0};
ve.p1 = {x:0, y:0};
but.onRelease = function () {
ve.p1 = {x:_xmouse, y:_ymouse};
fleck._x = ve.p1.x;
fleck._y = ve.p1.y;
_root.norm(ve, true);
ve.vx = (spinmax / 17.5) * ve.vx;
ve.vy = (spinmax / 17.5) * ve.vy;
ve.l = (spinmax / 17.5) * ve.l;
ve.alpha = Math.atan2(ve.dy, ve.dx);
};