Frame 2
prozent = Math.round((getBytesLoaded() / getBytesTotal()) * 100);
ausgabe = prozent + "%";
prozent = 100 - prozent;
setProperty(_root.shade, _alpha , prozent);
if (getBytesLoaded() >= (getBytesTotal() - 50000)) {
with (_root) {
gotoAndStop(5);
}
}
Frame 3
gotoAndPlay (2);
Frame 5
stop();
Instance of Symbol 36 MovieClip "foreground" in Frame 15
onClipEvent (load) {
bild_xpos = _root.foreground._x;
}
onClipEvent (enterFrame) {
panoslide(-530, 600, 50, _root.foreground, 12);
}
Frame 25
function realRandom(von, bis) {
do {
randnum = random(bis + 1);
} while (randnum < von);
return(randnum);
}
function elchStart(object, a) {
object.speed = a;
object.way = realRandom(1, 2);
object.scaler = Math.round(object._yscale);
elchReset(object);
}
function elchMove(object, speed, links, rechts) {
if (object._x >= links) {
if (rechts >= object._x) {
if (object.way == 1) {
object._x = object._x - speed;
} else {
object._x = object._x + speed;
}
} else {
object.i = 1000;
object._x = rechts;
}
} else {
object.i = 1000;
object._x = links;
}
}
function elchReset(object) {
if (object.way == 1) {
object._xscale = -object.scaler;
}
if (object.way == 2) {
object._xscale = object.scaler;
}
object.w = 0;
object.i = 0;
object.c = 0;
object.treffer = false;
object.aniPeriod = realRandom(50, 100);
object.anityp = realRandom(1, 4);
with (object.ani) {
gotoAndStop(object.anityp);
}
}
function elch(object, scaler, links, rechts) {
if (!object.treffer) {
if (object.i < object.aniPeriod) {
var _local2 = 2;
switch (object.anityp) {
case _local2 :
if (object.i == 0) {
object.aniPeriod = object.aniPeriod / 1.5;
}
if (object.i == (object.aniPeriod - 9)) {
with (object.ani.typ) {
gotoAndPlay(20);
}
}
break;
case 3 :
if (object.i == 0) {
object.aniPeriod = object.aniPeriod / 1.5;
}
if (object.i == (object.aniPeriod - 11)) {
with (object.ani.typ) {
gotoAndPlay(20);
}
}
break;
case 4 :
elchMove(object, object.speed * 2, links, rechts);
break;
case 5 :
elchMove(object, object.speed * 2, links, rechts);
break;
default :
elchMove(object, object.speed, links, rechts);
}
object.i++;
} else {
reElch = false;
if (object.c == 0) {
object.oldway = object.way;
object.way = realRandom(1, 2);
if (object.way != object.oldway) {
with (object.ani) {
gotoAndStop(10);
}
} else {
reElch = true;
}
} else if (object.c == 17) {
if (object.way == 1) {
object._x = object._x - Math.round(28 * (object.scaler / 100));
} else {
object._x = object._x + Math.round(28 * (object.scaler / 100));
}
reElch = true;
}
object.c++;
if (reElch) {
elchReset(object);
}
}
} else {
object.w++;
if (object.w >= 19) {
xstarter = realRandom(1, 2);
sonderfall = false;
if (object == _root.main.elch9) {
xstarter = realRandom(1, 2);
if (xstarter == 1) {
object._x = links;
} else {
object._x = links + 25;
}
sonderfall = true;
}
if (object == _root.main.elch8) {
xstarter = realRandom(1, 2);
if (xstarter == 1) {
object._x = rechts;
} else {
object._x = rechts - 25;
}
sonderfall = true;
}
if (!sonderfall) {
xstarter = realRandom(1, 2);
if (xstarter == 1) {
object._x = links + 4;
} else {
object._x = rechts - 4;
}
}
with (object) {
gotoAndStop(1);
}
elchReset(object);
}
}
}
function frontElchStart(object, links, rechts) {
object.i = 0;
object.c = 0;
object.c2 = 0;
object.w = 0;
object.treffer = false;
object.links = links;
object.rechts = rechts;
object.aniNum = random(200);
object.up = realRandom(20, 50);
object._x = links + random(rechts - links);
}
function frontElchMove(object) {
if (!object.treffer) {
if (object.aniNum < object.i) {
if (object.up >= object.c) {
if (object.c == 0) {
with (object.ani) {
gotoAndPlay(2);
}
}
object.c++;
} else {
if (object.c2 == 0) {
with (object.ani) {
gotoAndPlay(35);
}
}
object.c2++;
if (object.ani._currentframe == 1) {
object.i = 0;
object.c = 0;
object.c2 = 0;
object.up = realRandom(20, 50);
object.aniNum = random(200);
object._x = object.links + random(object.rechts - object.links);
}
}
}
object.i++;
} else {
if (object.w >= 8) {
if (object._y < 270) {
object._y = object._y + 10;
} else {
with (object) {
gotoAndStop(1);
}
object._y = 240;
object.treffer = false;
object.i = 0;
object.c = 0;
object.c2 = 0;
object.w = 0;
object.up = realRandom(20, 50);
object.aniNum = random(200);
object._x = object.links + random(object.rechts - object.links);
}
}
object.w++;
}
}
function shootBall(x, y) {
_root.ballcounter++;
newname = "ball" + _root.ballcounter;
duplicateMovieClip (_root.ball, newname, _root.ballcounter);
setProperty(eval ("_root." + newname), _x , x);
setProperty(eval ("_root." + newname), _y , y);
with (eval ("_root." + newname)) {
gotoAndPlay(2);
}
with (_root.soundSnowball) {
gotoAndPlay(2);
}
}
function singleCounter(object, score, h) {
stringObject = String(object);
newstringobject = stringObject.split(".");
newname = "scorer" + newstringobject[2];
if (object.scaler == undefined) {
object.scaler = 100;
}
if (score >= 0) {
duplicateMovieClip (_root.singlescorer, newname, random(100));
newx = (_root.main._x + 5) + object._x;
} else {
duplicateMovieClip (_root.kugelscorer, newname, random(100));
newx = (_root.foreground._x - 5) + object._x;
}
newy = object._y - (h * (object.scaler / 100));
setProperty(eval ("_root." + newname), _x , newx);
setProperty(eval ("_root." + newname), _y , newy);
nname = eval (newname);
_root.nname.ani.txt = score;
}
function checkForBonus() {
if (_root.bonuscounter == 4) {
with (_root.zeitbonus) {
gotoAndPlay(2);
}
_root.bonuscounter = 0;
_root.timer = _root.timer + 5;
}
}
function ElchTreffer(object) {
_root.elchcounter = _root.elchcounter + 1;
score = 0;
if (object.ani._currentframe == 10) {
if (object.way == 1) {
score = Math.floor(150 - object._xscale);
} else {
score = Math.floor(150 + object._xscale);
}
} else if (object.way == 1) {
score = Math.floor(150 + object._xscale);
} else {
score = Math.floor(150 - object._xscale);
}
if ((object.anityp == 2) || (object.anityp == 3)) {
score = Math.floor(score / 2);
}
_root.scorecounter = _root.scorecounter + score;
_root.scorer.txt = _root.scorecounter;
object.treffer = true;
with (object.soundhit) {
gotoAndPlay(2);
}
with (object) {
gotoAndStop(2);
}
singleCounter(object, score, 45);
checkForBonus();
}
function frontElchTreffer(object) {
_root.scorecounter = _root.scorecounter + 50;
_root.scorer.txt = _root.scorecounter;
_root.elchcounter = _root.elchcounter + 1;
object.treffer = true;
with (object) {
gotoAndStop(2);
}
with (object.soundhit) {
gotoAndPlay(2);
}
singleCounter(object, 50, 60);
checkForBonus();
}
function kugelTreffer(object) {
_root.scorecounter = _root.scorecounter - 500;
_root.scorer.txt = _root.scorecounter;
singleCounter(object, -500, 30);
with (object.glass) {
gotoAndPlay(2);
}
with (object) {
gotoAndPlay(100);
}
}
stop();
_root.elche = 9;
_root.frontElche = 3;
_root.kugeln = 8;
_root.timer = 60;
Mouse.hide();
_root.ballcounter = 0;
_root.scorecounter = 0;
_root.bonuscounter = 0;
_root.elchcounter = 0;
movieclip.prototype.panoslide = function (links, Rwert, Lwert, objekt, a) {
posX = _root._xmouse;
posY = _root._ymouse;
if (Rwert < posX) {
if (links < objekt._x) {
slide(600, 40, a);
}
}
if (posX < Lwert) {
if (objekt._x < bild_xpos) {
slide(50, 40, a);
}
}
};
movieclip.prototype.slide = function (subWert, divWert, mWert) {
tempo = ((posX - subWert) / divWert) * mWert;
if ((tempo < 0.5) && (-0.5 < tempo)) {
tempo = 0;
}
_x = (_x - tempo);
};
Instance of Symbol 12 MovieClip "bild" in Frame 25
onClipEvent (load) {
bild_xpos = _root.bild._x;
}
onClipEvent (enterFrame) {
panoslide(-350, 600, 50, _root.bild, 8);
}
Instance of Symbol 221 MovieClip "main" in Frame 25
onClipEvent (load) {
bild_xpos = _root.main._x;
}
onClipEvent (enterFrame) {
panoslide(-430, 600, 50, _root.main, 9);
}
Instance of Symbol 228 MovieClip in Frame 25
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Instance of Symbol 231 MovieClip "pointer" in Frame 25
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Frame 35
outscore = _root.scorecounter * _root.ncode;
outhits = _root.elchcounter * _root.ncode;
outquote = Math.round((_root.elchcounter / _root.ballcounter) * 100) * _root.ncode;
Frame 45
stop();
_root.scorer.txt = _root.scorecounter;
_root.elchcount.txt = _root.elchcounter;
_root.scorequote = Math.round((_root.elchcounter / _root.ballcounter) * 100) + "%";
_root.quote.txt = _root.scorequote;
Mouse.show();
Frame 55
with (_root) {
gotoAndPlay(15);
}
Symbol 3 MovieClip Frame 1
stop();
Symbol 7 MovieClip Frame 4
gotoAndPlay (1);
Symbol 12 MovieClip Frame 1
i = 0;
while (i < 8) {
this["b" + i].useHandCursor = false;
i++;
}
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 13
stop();
Symbol 35 MovieClip Frame 1
gotoAndPlay(random(80));
Symbol 35 MovieClip Frame 99
if (random(3) == 2) {
gotoAndPlay (92);
} else {
gotoAndPlay (1);
}
Symbol 35 MovieClip Frame 110
stop();
Symbol 51 MovieClip Frame 46
if (random(3) >= 1) {
gotoAndPlay (36);
}
Symbol 51 MovieClip Frame 105
gotoAndPlay (1);
Symbol 54 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 60 Button
on (release) {
with (_root) {
gotoAndPlay(6);
}
}
Symbol 61 MovieClip Frame 50
if (_root._framesloaded == _root._totalframes) {
with (this) {
gotoAndStop(52);
}
}
Symbol 61 MovieClip Frame 51
gotoAndPlay (50);
Symbol 61 MovieClip Frame 52
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 10
gotoAndStop (1);
Symbol 67 MovieClip Frame 1
gotoAndPlay(random(80));
Symbol 67 MovieClip Frame 171
gotoAndPlay (1);
Symbol 69 MovieClip Frame 62
gotoAndPlay (1);
Symbol 71 MovieClip Frame 1
gotoAndPlay(random(100));
Symbol 71 MovieClip Frame 120
gotoAndPlay (1);
Symbol 72 MovieClip Frame 1
gotoAndPlay(random(80));
Symbol 72 MovieClip Frame 113
gotoAndPlay (1);
Symbol 107 MovieClip Frame 19
stop();
Symbol 107 MovieClip Frame 29
gotoAndStop (1);
Symbol 126 MovieClip Frame 18
gotoAndPlay (9);
Symbol 137 MovieClip Frame 10
gotoAndPlay (1);
Symbol 156 MovieClip Frame 18
gotoAndStop (1);
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
stop();
Symbol 157 MovieClip Frame 3
stop();
Symbol 157 MovieClip Frame 4
stop();
Symbol 157 MovieClip Frame 5
stop();
Symbol 157 MovieClip Frame 10
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 16
gotoAndStop (1);
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 2
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
play();
Symbol 202 MovieClip Frame 30
gotoAndPlay (13);
Symbol 202 MovieClip Frame 35
play();
Symbol 202 MovieClip Frame 40
gotoAndStop (1);
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 2
stop();
Instance of Symbol 181 MovieClip "elch2" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.elch(this, this.scaler, 740, 1180);
}
onClipEvent (load) {
_root.elchStart(this, 1);
}
Instance of Symbol 181 MovieClip "elch1" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.elch(this, this.scaler, 200, 540);
}
onClipEvent (load) {
_root.elchStart(this, 1);
}
Instance of Symbol 181 MovieClip "elch8" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.elch(this, this.scaler, 570, 700);
}
onClipEvent (load) {
_root.elchStart(this, 1);
}
Instance of Symbol 181 MovieClip "elch9" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.elch(this, this.scaler, 70, 230);
}
onClipEvent (load) {
_root.elchStart(this, 1);
}
Instance of Symbol 181 MovieClip "elch3" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.elch(this, this.scaler, 20, 900);
}
onClipEvent (load) {
_root.elchStart(this, 2);
}
Instance of Symbol 181 MovieClip "elch4" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.elch(this, this.scaler, 20, 900);
}
onClipEvent (load) {
_root.elchStart(this, 2);
}
Instance of Symbol 181 MovieClip "elch6" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.elch(this, this.scaler, 150, 750);
}
onClipEvent (load) {
_root.elchStart(this, 3);
}
Instance of Symbol 181 MovieClip "elch5" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.elch(this, this.scaler, -100, 300);
}
onClipEvent (load) {
_root.elchStart(this, 3);
}
Instance of Symbol 181 MovieClip "elch7" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.elch(this, this.scaler, 680, 1150);
}
onClipEvent (load) {
_root.elchStart(this, 3);
}
Instance of Symbol 220 MovieClip "frontelch1" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.frontElchMove(this);
}
onClipEvent (load) {
_root.frontElchStart(this, 200, 300);
}
Instance of Symbol 220 MovieClip "frontelch2" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.frontElchMove(this);
}
onClipEvent (load) {
_root.frontElchStart(this, 850, 1050);
}
Instance of Symbol 220 MovieClip "frontelch3" in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.frontElchMove(this);
}
onClipEvent (load) {
_root.frontElchStart(this, 450, 750);
}
Symbol 226 MovieClip Frame 1
this.treffer = false;
stop();
Symbol 226 MovieClip Frame 2
myColors = new Array("DB4343", "4383DB", "B131CD", "E18017");
myColor = new Color(this.newball.ball);
myColor.setRGB(parseInt("0x" + myColors[random(4)]));
this.newball.ball._rotation = random(360);
gotoAndPlay (3);
Instance of Symbol 225 MovieClip "newball" in Symbol 226 MovieClip Frame 2
/* no clip actions */
Instance of Symbol 20 MovieClip in Symbol 226 MovieClip Frame 6
onClipEvent (enterFrame) {
i = 1;
while (_root.elche >= i) {
if (hittest(eval (("_root.main.elch" + i) + ".hitpoint"))) {
_root.ElchTreffer(eval ("_root.main.elch" + i));
_parent.treffer = true;
}
i++;
}
i = 1;
while (_root.frontElche >= i) {
if (hittest(eval (("_root.main.frontelch" + i) + ".ani.hitpoint"))) {
_root.frontElchTreffer(eval ("_root.main.frontelch" + i));
_parent.treffer = true;
}
i++;
}
i = 1;
while (_root.kugeln >= i) {
if (hittest(eval (("_root.foreground.kugel" + i) + ".hitpoint"))) {
_root.kugelTreffer(eval ("_root.foreground.kugel" + i));
}
i++;
}
}
Symbol 226 MovieClip Frame 10
if (this.treffer) {
_root.bonuscounter++;
} else {
_root.bonuscounter = 0;
}
this.removeMovieClip();
Symbol 230 Button
on (press) {
_root.shootBall(this._x, this._y);
}
Symbol 238 MovieClip Frame 31
this.removeMovieClip();
Symbol 241 MovieClip Frame 1
if (0 >= _root.timer) {
with (_root) {
gotoAndPlay(26);
}
}
nowminute = Math.floor(_root.timer / 60);
nowsecond = String(Math.floor(((_root.timer / 60) - nowminute) * 60));
if (1 >= nowsecond.length) {
nowsecond = "0" + nowsecond;
}
_root.timer = _root.timer - 1;
this.txt = (nowminute + " : ") + nowsecond;
Symbol 241 MovieClip Frame 24
gotoAndPlay (1);
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 40
gotoAndStop (1);
Symbol 246 Button
on (release) {
with (_root) {
gotoAndPlay(46);
}
}