Frame 1
if (_framesloaded >= _totalframes) {
gotoAndPlay (3);
} else {
geladen = this.getBytesLoaded();
gesamt = this.getBytesTotal();
prozent = Math.round((geladen / gesamt) * 100);
messer.ladebalken._xscale = prozent;
}
Frame 2
gotoAndPlay (1);
Frame 4
stop();
btn_easy.onRelease = function () {
gotoAndStop (5);
};
btn_normal.onRelease = function () {
gotoAndStop (6);
};
btn_hard.onRelease = function () {
gotoAndStop (7);
};
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_button", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.button = new Sound(this._parent.BS_button);
} else {
this.createEmptyMovieClip("_button_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.button = new Sound(this.BS_button);
}
_global.Behaviors.Sound.button.attachSound("button");
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_klick", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.klick = new Sound(this._parent.BS_klick);
} else {
this.createEmptyMovieClip("_klick_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.klick = new Sound(this.BS_klick);
}
_global.Behaviors.Sound.klick.attachSound("klick");
Frame 5
function roundstart() {
pressspace._visible = true;
gameover = true;
ball.stop();
ball.gotoAndPlay(1);
ball._x = 326;
ball._y = 170;
pfeil1.gotoAndStop(1);
pfeil2.gotoAndStop(1);
pfeil3.gotoAndStop(1);
pfeil4.gotoAndStop(1);
}
function ende() {
if (leben == 0) {
gotoAndStop (8);
}
}
function shoot() {
schuss = random(8) + 1;
if (schuss == 1) {
pfeil1.play();
}
if (schuss == 2) {
pfeil2.play();
}
if (schuss == 3) {
pfeil3.play();
}
if (schuss == 4) {
pfeil4.play();
}
if (schuss == 5) {
spike1.play();
}
if (schuss == 6) {
spike2.play();
}
if (schuss == 7) {
spike3.play();
}
if (schuss == 8) {
spike4.play();
}
}
function m\u00FCnzeplatzieren() {
m\u00FCnze._x = random(624) + 25;
m\u00FCnze._y = random(320) + 25;
m\u00FCnze._visible = true;
}
function lebenzeigen() {
if (gameover == false) {
zufallszahl = random(500);
if (zufallszahl == 23) {
lebena._x = random(624) + 25;
lebena._y = random(320) + 25;
}
}
}
stop();
leben = 5;
score = 0;
roundstart();
intervalleben = setInterval(lebenzeigen, 500);
ball.onEnterFrame = function () {
if (Key.isDown(39)) {
if (gameover == false) {
posx = ball._x;
posx = posx + 15;
if (posx >= 624) {
posx = 624;
}
}
ball._x = posx;
}
if (Key.isDown(37)) {
if (gameover == false) {
posx = ball._x;
posx = posx - 15;
if (posx <= 1) {
posx = 1;
}
ball._x = posx;
}
}
if (Key.isDown(32)) {
if (gameover == true) {
clearInterval(intervalschuss);
intervalschuss = setInterval(shoot, 600);
gameover = false;
pressspace._visible = false;
m\u00FCnzeplatzieren();
ball.ball.gotoAndStop(1);
ball.play();
}
}
};
m\u00FCnze.onEnterFrame = function () {
if (m\u00FCnze.hitTest(ball) == true) {
m\u00FCnzeplatzieren();
score = score + 10;
sound.play();
}
};
lebena.onEnterFrame = function () {
if (lebena.hitTest(ball) == true) {
lebena._x = 1000;
lebena._y = 1000;
score = score + 50;
leben++;
lebensound.play();
}
};
pfeil1.pfeil.spitze.onEnterFrame = function () {
if (pfeil1.pfeil.spitze.hitTest(ball) == true) {
ball.ball.play();
clearInterval(intervalschuss);
m\u00FCnze._x = 1000;
m\u00FCnze._y = 1000;
lebena._x = 1000;
lebena._y = 1000;
ende();
}
};
pfeil2.pfeil.spitze.onEnterFrame = function () {
if (pfeil2.pfeil.spitze.hitTest(ball) == true) {
ball.ball.play();
clearInterval(intervalschuss);
m\u00FCnze._x = 1000;
m\u00FCnze._y = 1000;
lebena._x = 1000;
lebena._y = 1000;
ende();
}
};
pfeil3.pfeil.spitze.onEnterFrame = function () {
if (pfeil3.pfeil.spitze.hitTest(ball) == true) {
ball.ball.play();
clearInterval(intervalschuss);
m\u00FCnze._x = 1000;
m\u00FCnze._y = 1000;
lebena._x = 1000;
lebena._y = 1000;
ende();
}
};
pfeil4.pfeil.spitze.onEnterFrame = function () {
if (pfeil4.pfeil.spitze.hitTest(ball) == true) {
ball.ball.play();
clearInterval(intervalschuss);
m\u00FCnze._x = 1000;
m\u00FCnze._y = 1000;
lebena._x = 1000;
lebena._y = 1000;
ende();
}
};
_global.Behaviors.Sound.bgsound.start(0, 1);
Frame 6
function roundstart() {
pressspace._visible = true;
gameover = true;
ball.stop();
ball.gotoAndPlay(1);
ball._x = 326;
ball._y = 170;
pfeil1.gotoAndStop(1);
pfeil2.gotoAndStop(1);
pfeil3.gotoAndStop(1);
pfeil4.gotoAndStop(1);
}
function ende() {
if (leben == 0) {
gotoAndStop (8);
}
}
function shoot() {
schuss = random(8) + 1;
if (schuss == 1) {
pfeil1.play();
}
if (schuss == 2) {
pfeil2.play();
}
if (schuss == 3) {
pfeil3.play();
}
if (schuss == 4) {
pfeil4.play();
}
if (schuss == 5) {
spike1.play();
}
if (schuss == 6) {
spike2.play();
}
if (schuss == 7) {
spike3.play();
}
if (schuss == 8) {
spike4.play();
}
}
function m\u00FCnzeplatzieren() {
m\u00FCnze._x = random(624) + 25;
m\u00FCnze._y = random(320) + 25;
m\u00FCnze._visible = true;
}
function lebenzeigen() {
if (gameover == false) {
zufallszahl = random(500);
if (zufallszahl == 23) {
lebena._x = random(624) + 25;
lebena._y = random(320) + 25;
}
}
}
stop();
leben = 5;
score = 0;
roundstart();
intervalleben = setInterval(lebenzeigen, 500);
ball.onEnterFrame = function () {
if (Key.isDown(39)) {
if (gameover == false) {
posx = ball._x;
posx = posx + 15;
if (posx >= 624) {
posx = 624;
}
}
ball._x = posx;
}
if (Key.isDown(37)) {
if (gameover == false) {
posx = ball._x;
posx = posx - 15;
if (posx <= 1) {
posx = 1;
}
ball._x = posx;
}
}
if (Key.isDown(32)) {
if (gameover == true) {
clearInterval(intervalschuss);
intervalschuss = setInterval(shoot, 300);
gameover = false;
pressspace._visible = false;
m\u00FCnzeplatzieren();
ball.ball.gotoAndStop(1);
ball.play();
}
}
};
m\u00FCnze.onEnterFrame = function () {
if (m\u00FCnze.hitTest(ball) == true) {
m\u00FCnzeplatzieren();
score = score + 10;
sound.play();
}
};
lebena.onEnterFrame = function () {
if (lebena.hitTest(ball) == true) {
lebena._x = 1000;
lebena._y = 1000;
score = score + 50;
leben++;
lebensound.play();
}
};
pfeil1.pfeil.spitze.onEnterFrame = function () {
if (pfeil1.pfeil.spitze.hitTest(ball) == true) {
ball.ball.play();
clearInterval(intervalschuss);
m\u00FCnze._x = 1000;
m\u00FCnze._y = 1000;
lebena._x = 1000;
lebena._y = 1000;
ende();
}
};
pfeil2.pfeil.spitze.onEnterFrame = function () {
if (pfeil2.pfeil.spitze.hitTest(ball) == true) {
ball.ball.play();
clearInterval(intervalschuss);
m\u00FCnze._x = 1000;
m\u00FCnze._y = 1000;
lebena._x = 1000;
lebena._y = 1000;
ende();
}
};
pfeil3.pfeil.spitze.onEnterFrame = function () {
if (pfeil3.pfeil.spitze.hitTest(ball) == true) {
ball.ball.play();
clearInterval(intervalschuss);
m\u00FCnze._x = 1000;
m\u00FCnze._y = 1000;
lebena._x = 1000;
lebena._y = 1000;
ende();
}
};
pfeil4.pfeil.spitze.onEnterFrame = function () {
if (pfeil4.pfeil.spitze.hitTest(ball) == true) {
ball.ball.play();
clearInterval(intervalschuss);
m\u00FCnze._x = 1000;
m\u00FCnze._y = 1000;
lebena._x = 1000;
lebena._y = 1000;
ende();
}
};
_global.Behaviors.Sound.bgsound.start(0, 1);
Frame 7
function roundstart() {
pressspace._visible = true;
gameover = true;
ball.stop();
ball.gotoAndPlay(1);
ball._x = 326;
ball._y = 170;
pfeil1.gotoAndStop(1);
pfeil2.gotoAndStop(1);
pfeil3.gotoAndStop(1);
pfeil4.gotoAndStop(1);
}
function ende() {
if (leben == 0) {
gotoAndStop (8);
}
}
function shoot() {
schuss = random(6) + 1;
if (schuss == 1) {
pfeil1.play();
}
if (schuss == 2) {
pfeil2.play();
}
if (schuss == 3) {
pfeil3.play();
}
if (schuss == 4) {
pfeil4.play();
}
if (schuss == 5) {
spike1.play();
}
if (schuss == 6) {
spike2.play();
}
if (schuss == 7) {
spike3.play();
}
if (schuss == 8) {
spike4.play();
}
}
function m\u00FCnzeplatzieren() {
m\u00FCnze._x = random(624) + 25;
m\u00FCnze._y = random(320) + 25;
m\u00FCnze._visible = true;
}
function lebenzeigen() {
if (gameover == false) {
zufallszahl = random(500);
if (zufallszahl == 23) {
lebena._x = random(624) + 25;
lebena._y = random(320) + 25;
}
}
}
stop();
leben = 5;
score = 0;
roundstart();
intervalleben = setInterval(lebenzeigen, 500);
ball.onEnterFrame = function () {
if (Key.isDown(39)) {
if (gameover == false) {
posx = ball._x;
posx = posx + 15;
if (posx >= 624) {
posx = 624;
}
}
ball._x = posx;
}
if (Key.isDown(37)) {
if (gameover == false) {
posx = ball._x;
posx = posx - 15;
if (posx <= 1) {
posx = 1;
}
ball._x = posx;
}
}
if (Key.isDown(32)) {
if (gameover == true) {
clearInterval(intervalschuss);
intervalschuss = setInterval(shoot, 200);
gameover = false;
pressspace._visible = false;
m\u00FCnzeplatzieren();
ball.ball.gotoAndStop(1);
ball.play();
}
}
};
m\u00FCnze.onEnterFrame = function () {
if (m\u00FCnze.hitTest(ball) == true) {
m\u00FCnzeplatzieren();
score = score + 10;
sound.play();
}
};
lebena.onEnterFrame = function () {
if (lebena.hitTest(ball) == true) {
lebena._x = 1000;
lebena._y = 1000;
score = score + 50;
leben++;
lebensound.play();
}
};
pfeil1.pfeil.spitze.onEnterFrame = function () {
if (pfeil1.pfeil.spitze.hitTest(ball) == true) {
ball.ball.play();
clearInterval(intervalschuss);
m\u00FCnze._x = 1000;
m\u00FCnze._y = 1000;
lebena._x = 1000;
lebena._y = 1000;
ende();
}
};
pfeil2.pfeil.spitze.onEnterFrame = function () {
if (pfeil2.pfeil.spitze.hitTest(ball) == true) {
ball.ball.play();
clearInterval(intervalschuss);
m\u00FCnze._x = 1000;
m\u00FCnze._y = 1000;
lebena._x = 1000;
lebena._y = 1000;
ende();
}
};
pfeil3.pfeil.spitze.onEnterFrame = function () {
if (pfeil3.pfeil.spitze.hitTest(ball) == true) {
ball.ball.play();
clearInterval(intervalschuss);
m\u00FCnze._x = 1000;
m\u00FCnze._y = 1000;
lebena._x = 1000;
lebena._y = 1000;
ende();
}
};
pfeil4.pfeil.spitze.onEnterFrame = function () {
if (pfeil4.pfeil.spitze.hitTest(ball) == true) {
ball.ball.play();
clearInterval(intervalschuss);
m\u00FCnze._x = 1000;
m\u00FCnze._y = 1000;
lebena._x = 1000;
lebena._y = 1000;
ende();
}
};
_global.Behaviors.Sound.bgsound.start(0, 1);
Frame 8
stop();
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_ende", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.ende = new Sound(this._parent.BS_ende);
} else {
this.createEmptyMovieClip("_ende_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.ende = new Sound(this.BS_ende);
}
_global.Behaviors.Sound.ende.attachSound("ende");
_global.Behaviors.Sound.ende.start(0, 1);
again.onRelease = function () {
gotoAndStop (4);
};
Symbol 20 Button
on (release) {
getURL ("http://www.board23.de", "_blank");
}
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 2
_root.leben--;
Symbol 59 MovieClip Frame 21
_root.roundstart();
Symbol 69 Button
on (rollOver) {
_global.Behaviors.Sound.button.start(0, 1);
}
on (release) {
_global.Behaviors.Sound.klick.start(0, 1);
}
Symbol 71 Button
on (rollOver) {
_global.Behaviors.Sound.button.start(0, 1);
}
on (release) {
_global.Behaviors.Sound.klick.start(0, 1);
}
Symbol 73 Button
on (rollOver) {
_global.Behaviors.Sound.button.start(0, 1);
}
on (release) {
_global.Behaviors.Sound.klick.start(0, 1);
}
Symbol 80 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 1
stop();