Frame 1
stop();
stop();
stop();
stop();
Frame 2
stop();
Frame 5
stop();
Frame 6
loadVariables ("highscore.php", "");
stop();
Frame 7
function setQuality(q) {
q1.gotoAndStop(1);
q2.gotoAndStop(1);
q3.gotoAndStop(1);
if (q == 1) {
_quality = "LOW";
}
if (q == 2) {
_quality = "MEDIUM";
}
if (q == 3) {
_quality = "HIGH";
}
_root["q" + q].gotoAndStop(2);
save_quality = q;
}
_quality = "HIGH";
Object.prototype.$ = {};
$.scroll_dx = 0;
$.scroll_dy = 0;
$.width = 650;
$.border = 0;
$.height = 500;
$.hitpoint = new Object();
$.heli_fire = 0;
$.hausNum = 0;
$.bankNum = 0;
$.gridx = 3;
$.gridy = 3;
$.wait = 0;
$.playergrid = 0;
$.target = null;
$.damage = 0;
$.max_damage = 200;
$.crashfak = 0.55;
$.helidamage = 1.5;
$.repair_cost = 500;
$.repair_fak = 1;
$.actarget = "haus";
$.texthaus = ["Nix wie weg!", "Wir beeilen uns lieber!", "Ich hab die Kohle! Jetzt schnell weg!", "Mist! Hörst du den Alarm?!", "Schnell, die sind hinter uns her!", "Gib Gas!"];
$.textbank = ["Auf zur Bank!", "Ich kann die Kohle schon riechen!", "Die Bank wird sich freuen!", "Statten wir der Bank einen Besuch ab!", "Alle Geiseln an Bord?!"];
$.grid = new Array();
i = 0;
while (i < ($.gridy * $.gridx)) {
$.grid[i] = new Array();
i++;
}
fxnum = 0;
crossNum = 0;
Object.prototype.showText = function (t) {
_root.text.text = t;
_root.text.gotoAndPlay(2);
};
Object.prototype.setDamage = function (d) {
_root.damage._width = _root.damage._width + d;
(($.max_damage < _root.damage._width) ? ((_root.damage._width = $.max_damage)) : null);
((0 >= _root.damage._width) ? ((_root.damage._width = 0)) : null);
};
Movieclip.prototype.setMyGrid = function () {
var myg = (int(_x / $.width) + (int(_y / $.height) * $.gridx));
$.grid[myg].push(_name);
_parent.cm.attachMovie("crossmaske", "cross" + _root.crossNum, _root.crossNum);
_parent.cm["cross" + _root.crossNum]._x = _x;
_parent.cm["cross" + _root.crossNum]._y = _y;
};
Object.prototype.getNewTarget = function (obj) {
$.actarget = obj;
if (obj eq "bank") {
var t = random($.textbank.length);
showText($.textbank[t]);
var dx = ((-_root.levels.player._x) - $.target._x);
var dy = (_root.levels.player._y - $.target._y);
var dist = (27 * Math.sqrt((dx * dx) + (dy * dy)));
_root.bonus = flatten(dist, 2);
$.target = _root.levels.layer[obj + (random($.bankNum) + 1)];
}
if (obj eq "haus") {
var t = random($.texthaus.length);
showText($.texthaus[t]);
_root.xbonus = "$0";
$.target = _root.levels.layer[obj + (random($.hausNum) + 1)];
}
_root.levels.haus_layer.xziel._x = $.target._x;
_root.levels.haus_layer.xziel._y = $.target._y;
};
sound1 = new Sound(_level1.s1);
sound1.attachSound("theme1");
sound1.start(0, 99999);
sound1.setVolume(0);
sound2 = new Sound(_level1.s2);
sound2.attachSound("theme2");
sound2.start(0, 99999);
sound2.setVolume(0);
setQuality(3);
Frame 8
stopAllSounds();
$.hausNum = 0;
$.bankNum = 0;
Frame 9
stop();
Instance of Symbol 59 MovieClip in Frame 26
onClipEvent (enterFrame) {
if (_root.damage._width >= $.max_damage) {
_root.alert = 0;
_root.levels.player.gotoAndPlay("bang");
tellTarget ("/") {
gotoAndPlay ("over");
};
sound2.setVolume(0);
}
}
Frame 27
levels.mask._xscale = 100;
levels.mask._yscale = 100;
levels.layer._yscale = 100;
levels.layer._xscale = 100;
levels.autos._yscale = 100;
levels.autos._xscale = 100;
levels.haus_layer._yscale = 100;
levels.haus_layer._xscale = 100;
sound1.start(0, 99999);
sound2.start(0, 99999);
sound1.setVolume(95);
sound2.setVolume(0);
getNewTarget("haus");
thescore = "$0";
score = 0;
bonus = 0;
showText("Holen wir uns die Geisel!");
setQuality(save_quality);
$.scroll_dx = 0;
$.scroll_dy = 0;
$.heli_fire = 0;
$.wait = 0;
$.playergrid = 0;
$.damage = 0;
damage._width = 0;
Frame 28
stop();
Frame 35
_quality = "HIGH";
Frame 90
gotoAndPlay (222);
Frame 142
loadVariables ("highscore.php", "");
stop();
Instance of Symbol 287 MovieClip "everScroll1" in Frame 142
onClipEvent (load) {
sichtbar = "defaultValue";
sidebar_name = "defaultValue";
sidebar_but_name = "defaultValue";
min = 1;
feld_name = "aktuell";
startwert = 10;
abzug = 2;
}
Frame 152
stopAllSounds();
Frame 191
getURL ("javascript:close()");
Frame 192
stop();
Frame 193
loadVariables ("game_send.php", "", "GET");
Frame 211
stop();
Frame 212
stop();
stopAllSounds();
if (_root.topscore < _root.score) {
message = "Du hast einen neuen Topscore erreicht.'+ newline +'Trage dich nun in die Highscoreliste ein.";
gotoAndPlay (222);
} else if (_root.score < _root.lastscore) {
message = "Zu Schlecht";
gotoAndPlay (241);
} else {
message = "Gut genug zum Eintragen";
gotoAndPlay (231);
}
Frame 222
stopAllSounds();
stop();
Frame 231
stop();
Frame 241
stop();
Frame 251
stop();
Symbol 27 MovieClip [brems] Frame 95
removeMovieClip(this);
Instance of Symbol 29 MovieClip in Symbol 32 MovieClip [fxshot] Frame 1
onClipEvent (load) {
(random(2) ? (_visible = 11) : (_visible = 00));
_rotation = random(360);
}
Instance of Symbol 31 MovieClip in Symbol 32 MovieClip [fxshot] Frame 1
onClipEvent (load) {
(random(2) ? (_visible = 11) : (_visible = 00));
_rotation = random(360);
}
Symbol 32 MovieClip [fxshot] Frame 125
removeMovieClip(this);
Symbol 40 Button
on (release) {
gotoAndPlay (7);
}
Symbol 45 Button
on (release) {
gotoAndStop (5);
}
Symbol 53 Button
on (release) {
gotoAndStop (8);
}
Symbol 56 Button
on (release) {
gotoAndStop (1);
}
Instance of Symbol 59 MovieClip in Symbol 62 MovieClip Frame 1
onClipEvent (load) {
Object.prototype.sin = new Array();
Object.prototype.cos = new Array();
var i = 0;
while (360 >= i) {
sin[i] = Math.sin((i * Math.PI) / 180);
cos[i] = Math.cos((i * Math.PI) / 180);
i++;
}
Movieclip.prototype.move = function (sp, a) {
((a == null) ? ((a = int(getRotation()))) : null);
_x = (_x + (sin[a] * sp));
_y = (_y - (cos[a] * sp));
_rotation = a;
};
Movieclip.prototype.move2 = function (sp, a) {
((a == null) ? ((a = _rotation)) : null);
_x = (_x + (Math.sin((a * Math.PI) / 180) * sp));
_y = (_y - (Math.cos((a * Math.PI) / 180) * sp));
_rotation = a;
};
Movieclip.prototype.move3 = function (sp, a) {
((a == null) ? ((a = _rotation)) : null);
_parent.layer._x = _parent.layer._x - (Math.sin((a * Math.PI) / 180) * sp);
_parent.layer._y = _parent.layer._y + (Math.cos((a * Math.PI) / 180) * sp);
};
Movieclip.prototype.hit_test = function (col, delta, fak) {
var a1;
var a2;
var a3;
var k;
var i;
var ret = 0;
a1 = getRotation(this._rotation);
a2 = a1 - delta;
a3 = a1 + delta;
i = 1;
while (3 >= i) {
k = eval ("a" + i).mode360();
var dx = (_x + (sin[k] * fak));
var dy = (_y - (cos[k] * fak));
if (col.hitTest(dx, dy, 1)) {
return(1);
}
i++;
}
return(0);
};
Movieclip.prototype.xhit_test = function (col, delta, fak, anz) {
var step;
var start;
var k;
var i;
var ret = 0;
var rot;
rot = _rotation.mode360();
i = 0;
while (i < anz) {
k = (((-delta) + (delta * i)) + rot).mode360();
var dx = (_x + (sin[k] * fak));
var dy = (_y - (cos[k] * fak));
if (col.hitTest(dx, dy, 1)) {
return(1);
}
i++;
}
return(0);
};
Object.prototype.flatten = function (x, anz) {
var k = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var n = Number(k.slice(0, int(x).toString().length - anz).join(""));
return(x - (x % n));
};
Movieclip.prototype.playSound = function (idname, ll, vol) {
mysoundobj = new Sound(this);
mysoundobj.attachSound(idname);
mysoundobj.start(0, ll);
mysoundobj.setVolume(vol);
};
Movieclip.prototype.setVol = function (vol) {
mysoundobj.setVolume(vol);
};
Movieclip.prototype.stopSound = function (idname) {
mysoundobj.stop(idname);
};
Movieclip.prototype.playsObject = function () {
};
Movieclip.prototype.getRotation = function () {
if (this._rotation >= 0) {
return(_rotation);
}
if (0 >= this._rotation) {
return(360 + _rotation);
}
};
Number.prototype.mode360 = function () {
return((this + 360) % 360);
};
Object.prototype.notSameRandom = function (range, notin) {
var r = random(range);
while (r == notin) {
r = random(range);
}
return(r);
};
Movieclip.prototype.blink = function (t) {
((blinkTimer == null) ? ((blinkTimer = getTimer() + t)) : null);
if (getTimer() >= blinkTimer) {
_visible = (!_visible);
blinkTimer = null;
}
};
Movieclip.prototype.stopBlink = function () {
this._visible = 1;
this.blinkTimer = null;
};
Movieclip.prototype.getPoint = function (a, h) {
this.pox = this._x + (Math.sin((a * Math.PI) / 180) * h);
this.poy = this._y - (Math.cos((a * Math.PI) / 180) * h);
};
Array.prototype.andArray = function (a) {
var i = 0;
while (i < this.length) {
this[i] = this[i] & a[i];
i++;
}
};
Movieclip.prototype.loop = function () {
gotoAndPlay(_currentframe - 1);
};
Object.prototype.direction = function () {
var temp;
((!random(2)) ? ((temp = -1)) : ((temp = 1)));
return(temp);
};
Object.prototype.randomFloat = function (n, s) {
if (!s) {
return(random(n));
}
var str = (random(n) + ".");
var i = 1;
while (s >= i) {
str = str + random(10);
i++;
}
return(Number(str));
};
Array.prototype.getFree = function () {
var i = 0;
while ((this.length - 1) >= i) {
if (!this[i]) {
return(i);
}
i++;
}
return(-1);
};
Object.prototype.countdown = function (timer) {
var ret = "";
var sek = (timer % 60);
timer = Math.floor(timer / 60);
var min = (timer % 60);
timer = Math.floor(timer / 60);
var std = (timer % 24);
min = min.toString();
sek = sek.toString();
ret = ret + min;
ret = ret + ".";
((sek.length < 2) ? ((ret = ret + ("0" + sek))) : ((ret = ret + sek)));
return(ret);
};
Movieclip.prototype.rotateTo = function (mc, damp, max) {
var fak;
w = int(((Math.atan2(mc._y - _y, mc._x - _x) / 3.14) * 180) + 90).mode360();
var a = _rotation.mode360();
if (mc._x >= _x) {
if (180 >= a) {
((w < a) ? ((fak = -1)) : ((fak = 1)));
}
if (180 < a) {
((((360 - a) + w) < (a - w)) ? ((fak = 1)) : ((fak = -1)));
}
}
if (mc._x < _x) {
if (180 >= a) {
((((a + 360) - w) < (w - a)) ? ((fak = -1)) : ((fak = 1)));
}
if (180 < a) {
((w < a) ? ((fak = -1)) : ((fak = 1)));
}
}
var dw = Math.abs(w - a);
if (max == null) {
if ((damp / 2) < dw) {
_rotation = (_rotation + (damp * fak));
}
} else {
_rotation = (_rotation + (Math.min(dw / damp, max) * fak));
}
((_rotation.mode360() == 180) ? (_rotation = (_rotation + ((Math.min(dw / damp, max) * fak) * 2))_rotation + ((Math.min(dw / damp, max) * fak) * 2)) : null);
};
Object.prototype.lookAt = function (mc1, mc2) {
return(int(((Math.atan2((mc1._y + $.scroll_dy) - mc2._y, (mc1._x + $.scroll_dx) - mc2._x) / 3.14) * 180) + 90));
};
Movieclip.prototype.randomScale = function (ran, min) {
((this.is == null) ? ((this.is = (this.is = this._xscale))) : null);
var sc = (random(ran) + min);
this._xscale = (this._yscale = (sc * this.is) / 100);
};
Movieclip.prototype.initsObject = function (s, pow) {
spower = pow;
sobject = new Sound(this);
sobject.attachSound(s);
sobject.start(0, 99999);
sobject.setVolume(0);
};
Movieclip.prototype.playsObject = function (sref) {
var dx = (sref._x - _x);
var dy = (sref._y - _y);
var rad = Math.sqrt((dx * dx) + (dy * dy));
var vol = ((rad * 100) / spower);
var pan = vol;
((sref._x >= _x) ? ((pan = pan * -1)) : null);
if (spower >= rad) {
sobject.setVolume(100 - vol);
sobject.setPan(pan);
} else {
sobject.setVolume(0);
}
};
Movieclip.prototype.pointAt = function (X, Y) {
return((this._rotation = (Math.atan2(this._y - ((!Y) ? (X._y) : (Y)), this._x - ((!Y) ? (X._x) : (X))) * 180) / Math.PI));
};
}
Symbol 73 Button
on (release) {
gotoAndPlay (26);
}
Symbol 76 Button
on (release) {
loadVariables ("highscore.php", "");
gotoAndPlay (142);
}
Symbol 78 Button
on (release) {
gotoAndPlay (152);
}
Symbol 80 Button
on (release) {
gotoAndPlay (192);
}
Symbol 87 MovieClip Frame 1
$.bankNum++;
_name = ("bank" + $.bankNum);
stop();
Symbol 89 MovieClip Frame 1
$.hausNum++;
_name = ("haus" + $.hausNum);
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 1
stop();
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
/* no clip actions */
Symbol 98 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 1
_root.crossNum++;
id = 8;
_name = ("cross" + _root.crossNum);
setMyGrid();
Symbol 102 MovieClip Frame 1
_root.crossNum++;
id = 3;
_name = ("cross" + _root.crossNum);
setMyGrid();
Symbol 103 MovieClip Frame 1
_root.crossNum++;
id = 4;
_name = ("cross" + _root.crossNum);
setMyGrid();
Symbol 105 MovieClip Frame 1
_root.crossNum++;
id = 5;
_name = ("cross" + _root.crossNum);
setMyGrid();
Symbol 106 MovieClip Frame 1
_root.crossNum++;
id = 1;
_name = ("cross" + _root.crossNum);
setMyGrid();
Symbol 108 MovieClip Frame 1
_root.crossNum++;
id = 6;
_name = ("cross" + _root.crossNum);
setMyGrid();
Symbol 110 MovieClip Frame 1
_root.crossNum++;
id = 7;
_name = ("cross" + _root.crossNum);
setMyGrid();
stop();
stop();
Symbol 111 MovieClip Frame 1
_root.crossNum++;
id = 2;
_name = ("cross" + _root.crossNum);
setMyGrid();
Symbol 112 MovieClip Frame 1
_root.crossNum++;
id = 0;
_name = ("cross" + _root.crossNum);
setMyGrid();
Symbol 124 MovieClip Frame 9
stop();
Symbol 126 MovieClip Frame 1
Symbol 126 MovieClip Frame 10
gotoAndPlay (3);
Symbol 127 MovieClip Frame 1
function speedSound() {
if (((acc >= -10) && (acc < 2.5)) && (gang != 1)) {
setSound(1);
}
if (((acc >= 2.5) && (acc < 5)) && (gang != 2)) {
setSound(2);
}
if (((acc >= 5) && (acc < 10)) && (gang != 3)) {
setSound(3);
}
if ((acc >= 10) && (gang != 4)) {
setSound(4);
}
}
function setSound(g) {
ss[gang].stop();
ss[g].start(0, 999);
gang = g;
}
function getKeys() {
(Key.isDown(37) ? ((keys.l = 1)) : ((keys.l = 0)));
(Key.isDown(39) ? ((keys.r = 1)) : ((keys.r = 0)));
(Key.isDown(40) ? ((keys.d = 1)) : ((keys.d = 0)));
(Key.isDown(38) ? ((keys.u = 1)) : ((keys.u = 0)));
(Key.isDown(32) ? ((keys.s = 1)) : ((keys.s = 0)));
}
function bremsFX(s) {
_parent.layer.fx.attachMovie("brems", "brems" + _root.fxnum, _root.fxnum);
var p = _parent.layer.fx["brems" + _root.fxnum];
var po = new Object();
po.x = ref._x;
po.y = ref._y;
localToGlobal(po);
p._x = po.x - $.scroll_dx;
p._y = po.y - $.scroll_dy;
p._yscale = 80 * s;
p._rotation = _rotation;
_root.fxnum++;
}
max_speed = 10;
max_backspeed = -3;
acc = 0;
crash = 0;
stopon = 0;
fak = 0;
brems = 0;
gang = 0;
ss = new Array();
dxx = Math.sin((_rotation * Math.PI) / 180);
dyy = dyy - Math.cos((_rotation * Math.PI) / 180);
i = 1;
while (4 >= i) {
ss[i] = new Sound(ref);
ss[i].setVolume(100);
ss[i].attachSound("c" + i);
i++;
}
keys = new Object();
speedSound();
Symbol 127 MovieClip Frame 2
if (hitTest($.target)) {
gotoAndPlay (10);
}
if ($.actarget eq "bank") {
_root.xbonus = "$" + _root.bonus;
_root.bonus = _root.bonus - 150;
((0 >= _root.bonus) ? ((_root.bonus = 0)) : null);
}
speedSound();
if (!$.wait) {
getKeys();
if ((keys.u && (!keys.d)) && (!keys.s)) {
acc = acc + 0.6;
}
if ((keys.d && (!keys.u)) && (!keys.s)) {
acc = acc - 0.7;
}
if (keys.s) {
if (!brems) {
playSound("brems5", 1, 70);
brems = 1;
}
bremsFX(acc / 3.5);
if (0 < acc) {
acc = acc - 0.85;
((acc < 0) ? ((acc = 0)) : null);
}
if (acc < 0) {
acc = acc + 0.85;
((0 < acc) ? ((acc = 0)) : null);
}
}
if ((!keys.s) && (brems)) {
stopSound("brems5");
brems = 0;
}
if (keys.r) {
(keys.s ? (_rotation = (_rotation + int(4.3 * Math.sqrt(Math.abs(acc))))_rotation + int(4.3 * Math.sqrt(Math.abs(acc)))) : (_rotation = (_rotation + int(2.5 * Math.sqrt(Math.abs(acc))))_rotation + int(2.5 * Math.sqrt(Math.abs(acc)))));
dxx = Math.sin((_rotation * Math.PI) / 180);
dyy = Math.cos((_rotation * Math.PI) / 180);
}
if (keys.l) {
(keys.s ? (_rotation = (_rotation - int(4.3 * Math.sqrt(Math.abs(acc))))_rotation - int(4.3 * Math.sqrt(Math.abs(acc)))) : (_rotation = (_rotation - int(2.5 * Math.sqrt(Math.abs(acc))))_rotation - int(2.5 * Math.sqrt(Math.abs(acc)))));
dxx = Math.sin((_rotation * Math.PI) / 180);
dyy = Math.cos((_rotation * Math.PI) / 180);
}
if (max_speed < acc) {
acc = max_speed;
}
if (acc < max_backspeed) {
acc = max_backspeed;
}
((acc >= 0) ? ((fak = 1)) : ((fak = -1)));
col1 = hit_test(_parent.autos, 20, 25 * fak, 3);
col2 = hit_test(_parent.mask, 20, 21 * fak, 3);
if (col1 || (col2)) {
((7 < acc) ? (playSound("cr" + (random(3) + 1), 1, 100)) : null);
((3 < acc) ? (setDamage(acc * $.crashfak)) : null);
acc = 0;
}
_x = (_x + (dxx * acc));
_y = (_y - (dyy * acc));
w = $.width - $.border;
h = $.height - $.border;
if (_x >= w) {
_parent.layer._x = _parent.layer._x - w;
_parent.autos._x = _parent.autos._x - w;
_parent.heli_ref._x = _parent.heli_ref._x - w;
_parent.mask._x = _parent.mask._x - w;
_parent.haus_layer._x = _parent.haus_layer._x - w;
$.scroll_dx = $.scroll_dx - w;
_parent.heli._x = _parent.heli._x - ((w + (_x - w)) - $.border);
_x = ($.border + (_x - w));
$.playergrid = Math.abs(int($.scroll_dx / $.width) + (int($.scroll_dy / $.height) * $.gridx));
}
if ($.border >= _x) {
_parent.layer._x = _parent.layer._x + w;
_parent.autos._x = _parent.autos._x + w;
_parent.haus_layer._x = _parent.haus_layer._x + w;
_parent.mask._x = _parent.mask._x + w;
$.scroll_dx = $.scroll_dx + w;
_parent.heli_ref._x = _parent.heli_ref._x + w;
_parent.heli._x = _parent.heli._x + ((w - ($.border - _x)) - $.border);
_x = (w - ($.border - _x));
$.playergrid = Math.abs(int($.scroll_dx / $.width) + (int($.scroll_dy / $.height) * $.gridx));
}
if (_y >= h) {
_parent.layer._y = _parent.layer._y - h;
_parent.autos._y = _parent.autos._y - h;
_parent.mask._y = _parent.mask._y - h;
$.scroll_dy = $.scroll_dy - h;
_parent.heli_ref._y = _parent.heli_ref._y - h;
_parent.haus_layer._y = _parent.haus_layer._y - h;
_parent.heli._y = _parent.heli._y - ((h - (_y - h)) - $.border);
_y = ($.border + (_y - h));
$.playergrid = Math.abs(int($.scroll_dx / $.width) + (int($.scroll_dy / $.height) * $.gridx));
}
if ($.border >= _y) {
_parent.mask._y = _parent.mask._y + h;
_parent.layer._y = _parent.layer._y + h;
_parent.autos._y = _parent.autos._y + h;
_parent.haus_layer._y = _parent.haus_layer._y + h;
_parent.heli_ref._y = _parent.heli_ref._y + h;
$.scroll_dy = $.scroll_dy + h;
_parent.heli._y = _parent.heli._y + ((h + ($.border - _y)) - $.border);
_y = (h - ($.border - _y));
$.playergrid = Math.abs(int($.scroll_dx / $.width) + (int($.scroll_dy / $.height) * $.gridx));
}
}
_parent.pfeil._rotation = lookAt($.target, this);
_parent.pfeil._x = _x;
_parent.pfeil._y = _y;
Symbol 127 MovieClip Frame 3
loop();
Symbol 127 MovieClip Frame 10
acc = 0;
speedSound();
_root.levels.haus_layer.xziel._x = 100000 /* 0x0186A0 */;
_parent.pfeil._visible = 0;
var tar = new Object();
tar.x = $.target._x + $.scroll_dx;
tar.y = $.target._y + $.scroll_dy;
bangle = lookAt($.target, this);
_parent.bruce._rotation = bangle;
_parent.bruce._visible = 1;
_parent.bruce._x = _x;
_parent.bruce._y = _y;
Symbol 127 MovieClip Frame 11
_parent.bruce.move2(3);
if (_parent.bruce.hitTest(tar.x, tar.y, 0)) {
if ($.actarget eq "haus") {
_root.alert = 0;
_root.sound2.setVolume(0);
}
if ($.actarget eq "bank") {
_root.score = _root.score + _root.bonus;
_root.thescore = "$" + _root.score;
_root.cashtext.cash = "+ $" + _root.bonus;
if (0 >= _root.bonus) {
_root.cashtext.cash = "Kein Bonus!";
}
_root.cashtext.gotoAndPlay(2);
}
gotoAndPlay (14);
}
Symbol 127 MovieClip Frame 12
loop();
Symbol 127 MovieClip Frame 14
gotoAndPlay(_currentframe + random(20));
Symbol 127 MovieClip Frame 41
if ($.actarget eq "bank") {
playSound("peng", 2, 100);
}
Symbol 127 MovieClip Frame 46
if ($.actarget eq "bank") {
playSound("ring", 5, 100);
}
Symbol 127 MovieClip Frame 53
_parent.bruce.move2(-3);
gg = 0;
if (_parent.bruce.hitTest(_x, _y, 0)) {
if (($.actarget eq "haus") && (!gg)) {
getNewTarget("bank");
gg = 1;
}
if (($.actarget eq "bank") && (!gg)) {
bon = random(99) * 1000;
_root.score = _root.score + bon;
_root.thescore = "$" + _root.score;
_root.cashtext.cash = "+ $" + bon;
_root.cashtext.gotoAndPlay(2);
_root.alert = 1;
_root.sound2.setVolume(90);
getNewTarget("haus");
gg = 1;
}
_root.levels.haus_layer.xziel._visible = 1;
_parent.pfeil._visible = 1;
_parent.bruce._visible = 0;
gotoAndPlay (2);
}
Symbol 127 MovieClip Frame 54
loop();
Symbol 127 MovieClip Frame 97
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 1
function getCross() {
var n = 0;
while (n < $.grid[screen].length) {
actc = _parent._parent.layer[$.grid[screen][n]];
if (actc.hitTest(pox, poy, 0)) {
return(actc.id);
}
n++;
}
return(-1);
}
function getNeuWinkel(k, a) {
var st = 0;
var p = winkel.prop[k];
var s = ar;
s.andArray(p);
var i = random(4);
var ret = i;
var ok = s[i];
while (!ok) {
ret = i;
ok = s[i];
i++;
if (i >= 4) {
i = 0;
}
}
return(winkel.winkel[ret]);
}
damage = 0;
mybrems = random(4) + 1;
myhupe = random(3) + 1;
stopon = 0;
auto.gotoAndStop(random(6) + 1);
hfak = 22;
angle = 0;
da = 0;
dx = Math.sin((angle * Math.PI) / 180);
dy = -Math.cos((angle * Math.PI) / 180);
pox = _x + (dx * hfak);
poy = _y + (dy * hfak);
actc = null;
getPoint(angle);
turn = 0;
normspeed = 4;
speed = normspeed;
var sturn = 3.6;
var lturn = 7;
var sangle = 5;
var langle = 5;
winkel = new Object();
winkel.w0 = new Object();
winkel.w90 = new Object();
winkel.w180 = new Object();
winkel.w270 = new Object();
winkel.w0.w270 = [lturn, -langle];
winkel.w0.w90 = [sturn, sangle];
winkel.w90.w0 = [lturn, -langle];
winkel.w90.w180 = [sturn, sangle];
winkel.w180.w90 = [lturn, -langle];
winkel.w180.w270 = [sturn, sangle];
winkel.w270.w0 = [sturn, sangle];
winkel.w270.w180 = [lturn, -langle];
winkel.prop = new Array();
winkel.prop[0] = [1, 1, 1, 1];
winkel.prop[1] = [1, 1, 1, 0];
winkel.prop[2] = [1, 0, 1, 1];
winkel.prop[3] = [1, 1, 0, 1];
winkel.prop[4] = [0, 1, 1, 1];
winkel.prop[5] = [0, 1, 1, 0];
winkel.prop[6] = [1, 1, 0, 0];
winkel.prop[7] = [0, 0, 1, 1];
winkel.prop[8] = [1, 0, 0, 1];
winkel.winkel = [0, 90, 180, 270];
Symbol 144 MovieClip Frame 2
screen = int(_x / $.width) + (int(_y / $.height) * $.gridx);
pox = (_x + $.scroll_dx) + (dx * hfak);
poy = (_y + $.scroll_dy) + (dy * hfak);
pox2 = (_x + $.scroll_dx) + ((dx * hfak) * 2);
poy2 = (_y + $.scroll_dy) + ((dy * hfak) * 2);
if ($.playergrid == screen) {
if (hitTest(_parent._parent.player)) {
ospeed = speed;
stopon = 1;
speed = 0;
gotoAndPlay (6);
}
if ($.heli_fire) {
if (hitTest(_parent._parent.heli.carhit)) {
gotoAndPlay (39);
}
}
}
if (_parent.hitTest(pox, poy, 1) || (_parent.hitTest(pox2, poy2, 1))) {
stopon = 1;
} else {
stopon = 0;
}
if (_parent._parent.layer.cm.hitTest(this) && (!turn)) {
c = getCross();
}
if (((c == 0) && (actc.ocu)) && (!turn)) {
stopon = 1;
}
if (!stopon) {
if (!turn) {
if (c != -1) {
if (angle == 0) {
ar = [1, 1, 0, 1];
}
if (angle == 90) {
ar = [1, 1, 1, 0];
}
if (angle == 180) {
ar = [0, 1, 1, 1];
}
if (angle == 270) {
ar = [1, 0, 1, 1];
}
actc.ocu = 1;
oldc = actc;
neuangle = getNeuWinkel(c, angle);
if (neuangle != angle) {
da = winkel["w" + angle]["w" + neuangle][1];
speed = winkel["w" + angle]["w" + neuangle][0];
turn = 2;
} else {
turn = 1;
angle = neuangle;
}
}
}
if (turn == 2) {
if (da < 0) {
if (angle == neuangle) {
angle = neuangle;
da = 0;
turn = 0;
speed = normspeed;
oldc.ocu = 0;
}
angle = angle + da;
_rotation = angle;
}
if (0 < da) {
if (angle == neuangle) {
angle = neuangle;
da = 0;
turn = 0;
speed = normspeed;
oldc.ocu = 0;
}
angle = angle + da;
_rotation = angle;
}
}
if (turn == 1) {
var pox2 = ((_x + $.scroll_dx) + (dx * (hfak * 1.5)));
var poy2 = ((_y + $.scroll_dy) + (dy * (hfak * 1.5)));
if (!oldc.hitTest(this)) {
oldc.ocu = 0;
turn = 0;
}
}
if (angle < 0) {
angle = 360;
}
if (360 < angle) {
angle = 0;
}
dx = sin[angle];
dy = -cos[angle];
_x = (_x + (dx * speed));
_y = (_y + (dy * speed));
}
Symbol 144 MovieClip Frame 3
loop();
Symbol 144 MovieClip Frame 6
playSound("hupe" + myhupe, 1, 90);
(random(2) ? (playSound("brems" + mybrems, 1, 90)) : null);
gotoAndPlay(_currentframe + random(20));
Symbol 144 MovieClip Frame 31
speed = ospeed;
gotoAndPlay (2);
Symbol 144 MovieClip Frame 72
gotoAndPlay(_currentframe + random(50));
Symbol 144 MovieClip Frame 160
_x = _parent.start_ref._x;
_y = _parent.start_ref._y;
_rotation = 0;
stopon = 0;
turn = 0;
dx = (dy = 0);
angle = 0;
oldc.ocu = 0;
actc = null;
gotoAndPlay (2);
stop();
Symbol 146 MovieClip Frame 1
auto.gotoAndStop(random(6) + 1);
Symbol 146 MovieClip Frame 2
if ($.heli_fire) {
screen = int(_x / $.width) + (int(_y / $.height) * $.gridx);
if ($.playergrid == screen) {
if (hitTest(_parent._parent.heli.carhit)) {
gotoAndPlay (39);
}
}
}
Symbol 146 MovieClip Frame 3
loop();
Symbol 146 MovieClip Frame 6
playSound("hupe" + myhupe, 1, 90);
(random(2) ? (playSound("brems" + mybrems, 1, 90)) : null);
gotoAndPlay(_currentframe + random(20));
Symbol 146 MovieClip Frame 31
gotoAndPlay (2);
Symbol 146 MovieClip Frame 72
stop();
Symbol 146 MovieClip Frame 160
_x = _parent.start_ref._x;
_y = _parent.start_ref._y;
_rotation = 0;
stopon = 0;
turn = 0;
dx = (dy = 0);
angle = 0;
oldc.ocu = 0;
actc = null;
gotoAndPlay (2);
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 1
Symbol 164 MovieClip Frame 1
Symbol 168 MovieClip Frame 1
/:hausNum++;
_name = ("haus" add /:hausNum);
stop();
Symbol 197 MovieClip Frame 1
myg = int(_x / $.width) + (int(_y / $.height) * $.gridx);
s = 0;
Symbol 197 MovieClip Frame 2
if ($.playergrid == myg) {
if (hitTest(_root.levels.player)) {
if ((1 < _root.damage._width) && (0 < _root.score)) {
if (!s) {
playSound("hammer", 99, 100);
s = 1;
}
setDamage(-$.repair_fak);
_root.score = _root.score - $.repair_cost;
((0 >= _root.score) ? ((_root.score = 0)) : null);
_root.thescore = "$" + _root.score;
}
} else {
s = 0;
stopSound("hammer");
}
}
Symbol 197 MovieClip Frame 3
loop();
Symbol 209 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 1
/:hausNum++;
_name = ("haus" add /:hausNum);
stop();
Symbol 213 MovieClip Frame 1
/:hausNum++;
_name = ("haus" add /:hausNum);
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 1
/:hausNum++;
_name = ("haus" add /:hausNum);
stop();
Symbol 218 MovieClip Frame 1
/:hausNum++;
_name = ("haus" add /:hausNum);
stop();
Instance of Symbol 228 MovieClip "xziel" in Symbol 229 MovieClip Frame 1
onClipEvent (enterFrame) {
blink(150);
}
Instance of Symbol 235 MovieClip in Symbol 236 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = random(360);
randomScale(50, 30);
}
Symbol 242 MovieClip Frame 1
function brain() {
if ((mode == 2) && (!_root.alert)) {
_parent.heli_ref._x = random(1000) - 300;
_parent.heli_ref._y = random(1000) - 300;
mode = 1;
$.heli_fire = 0;
stopSound("mg");
mg1.gotoAndStop("stop");
mg2.gotoAndStop("stop");
explo.gotoAndStop(1);
}
if (mode == 1) {
kreisen();
}
if (_root.alert && (mode == 1)) {
mode = 2;
}
if (mode == 2) {
attack();
}
}
function kreisen() {
move(8);
rotateTo(_parent.heli_ref, 5, 4);
if (hitTest(_parent.heli_ref._x, _parent.heli_ref._y, 0)) {
_parent.heli_ref._x = random(1000) - 300;
_parent.heli_ref._y = random(1000) - 300;
}
}
function attack() {
if (!next) {
acc = acc - 0.1;
rotateTo(_parent.player, 3, 9);
move(11 + Math.max(0, acc));
var hh = hit.hitTest(_parent.player);
if (hh) {
shotFX();
$.heli_fire = 1;
mg1.gotoAndStop(random(6) + 1);
mg2.gotoAndStop(random(6) + 1);
(random(1) ? ((mg2._visible = 0)) : ((mg2._visible = 1)));
(random(1) ? ((mg1._visible = 0)) : ((mg1._visible = 1)));
explo.gotoAndStop(random(9) + 1);
if (!mgfx) {
playSound("mg", 999, 60);
mgfx = 1;
}
if (carhit.hitTest(_parent.player)) {
playSound("hit", 1, 80);
setDamage($.helidamage);
}
}
if (!hh) {
$.heli_fire = 0;
mg1.gotoAndStop("stop");
mg2.gotoAndStop("stop");
explo.gotoAndStop(1);
stopSound("mg");
mgfx = 0;
}
if (_parent.player.hitTest(_x, _y, 1)) {
next = 1;
acc = 0;
}
}
if (next) {
acc = acc + 0.4;
move(11 + Math.min(3, acc));
if (5 < acc) {
next = 0;
acc = 3;
}
}
}
function shotFX() {
_parent.layer.fx.attachMovie("fxshot", "brems" + _root.fxnum, _root.fxnum);
var p = _parent.layer.fx["brems" + _root.fxnum];
var po = new Object();
po.x = carhit._x;
po.y = carhit._y;
localToGlobal(po);
p._x = po.x - $.scroll_dx;
p._y = po.y - $.scroll_dy;
p._rotation = _rotation;
_root.fxnum++;
}
mode = 1;
mg1.gotoAndStop("stop");
mg2.gotoAndStop("stop");
mgfx = 0;
initsObject("heli", 400);
po = new Object();
next = 0;
acc = 0;
_parent.heli_ref._x = random(1000) - 300;
_parent.heli_ref._y = random(1000) - 300;
Symbol 242 MovieClip Frame 2
brain();
playsObject(_parent.player);
Symbol 242 MovieClip Frame 3
loop();
Instance of Symbol 119 MovieClip "bruce" in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 60
gotoAndStop (1);
Symbol 255 MovieClip Frame 1
stop();
Symbol 257 Button
on (release) {
setQuality(1);
}
Symbol 258 Button
on (release) {
setQuality(2);
}
Symbol 259 Button
on (release) {
setQuality(3);
}
Symbol 262 MovieClip Frame 1
cash = _parent.cash;
Symbol 264 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 17
gotoAndStop (1);
Symbol 278 Button
on (release) {
gotoAndPlay (7);
}
Symbol 283 Button
on (rollOver) {
_root.everScroll1.gotoAndPlay("up");
}
on (rollOut) {
_root.everScroll1.gotoAndPlay("stop");
}
Symbol 284 Button
on (rollOver) {
_root.everScroll1.gotoAndPlay("down");
}
on (rollOut) {
_root.everScroll1.gotoAndPlay("stop");
}
Symbol 287 MovieClip Frame 1
bhoehe = _root[sidebar_but_name]._height;
nhoehe = _root[sidebar_name]._height;
bort_y = _root[sidebar_but_name]._y;
nort_y = _root[sidebar_but_name]._y;
lauflaenge = nhoehe - bhoehe;
nav_einheit = lauflaenge / 100;
fel_einheit = zeilenzahl / 100;
Symbol 287 MovieClip Frame 2
stop();
Symbol 287 MovieClip Frame 10
w_abzug = this.abzug;
w_start = this.startwert;
frame = 0;
_root[feld_name].scroll = _root[feld_name].scroll + 1;
Symbol 287 MovieClip Frame 11
frame = frame + 1;
if (frame == w_start) {
frame = 0;
w_start = w_start - w_abzug;
if (w_start < min) {
w_start = min;
}
_root[feld_name].scroll = _root[feld_name].scroll + 1;
}
Symbol 287 MovieClip Frame 12
frame = frame + 1;
if (frame == w_start) {
frame = 0;
w_start = w_start - w_abzug;
if (w_start < min) {
w_start = min;
}
_root[feld_name].scroll = _root[feld_name].scroll + 1;
}
gotoAndPlay(_currentframe - 1);
Symbol 287 MovieClip Frame 25
w_abzug = this.abzug;
w_start = this.startwert;
frame = 0;
_root[feld_name].scroll = _root[feld_name].scroll - 1;
Symbol 287 MovieClip Frame 26
frame = frame + 1;
if (frame == w_start) {
frame = 0;
w_start = w_start - w_abzug;
if (w_start < min) {
w_start = min;
}
_root[feld_name].scroll = _root[feld_name].scroll - 1;
}
Symbol 287 MovieClip Frame 27
frame = frame + 1;
if (frame == w_start) {
frame = 0;
w_start = w_start - w_abzug;
if (w_start < min) {
w_start = min;
}
_root[feld_name].scroll = _root[feld_name].scroll - 1;
}
gotoAndPlay(_currentframe - 1);
Symbol 298 MovieClip Frame 1
stop();
Symbol 299 Button
on (release) {
getURL ("http://www.innovum.de", "_blank");
}
Symbol 303 Button
on (release) {
gotoAndPlay (193);
}
Symbol 318 Button
on (release) {
gotoAndPlay (192);
}
Symbol 334 Button
on (release) {
loadVariables ("game_eintrag.php", "", "GET");
gotoAndPlay (251);
}
Symbol 336 Button
on (release) {
loadVariables ("highscore.php?action=topscore", "");
gotoAndPlay (7);
}