Instance of Symbol 2 MovieClip "bc" in Frame 1
onClipEvent (load) {
this.cleanUp = function () {
this._sendEvent("cleanup");
};
}
onClipEvent (enterFrame) {
this._sendEvent("enterframe");
}
onClipEvent (keyDown) {
this._sendEvent("keydown");
}
onClipEvent (keyUp) {
this._sendEvent("keyup");
}
Frame 2
if (this._framesloaded != this._totalframes) {
percent = math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100);
pre_bar._width = 200 - (percent * 2);
} else {
gotoAndStop (5);
}
Frame 3
gotoAndPlay (2);
Frame 5
function Timer(d, t) {
d = d * 60000;
this.duration = d / 12;
this.target = t;
this.elapsed = 0;
Object.broadcaster._addListener(this);
this.time = getTimer();
}
Object.prototype.extends = function (obj) {
obj.prototype.__proto__ = this;
};
Object.prototype.mtrace = function () {
var l = arguments.length;
i = 0;
while (i < l) {
var arg = arguments[i++];
}
};
EventEngine = function () {
this._temp = [];
this._listeners = [];
};
EventEngine.init = function (mc) {
if (Object.broadcaster == undefined) {
Object.broadCaster = mc;
Object.broadCaster.__proto__ = new EventEngine();
}
};
EventEngine.prototype._clearListeners = function () {
this._listeners = [];
};
EventEngine.prototype._addlistener = function (obj) {
var lNum = this._listeners.length;
if (lNum) {
while (lNum) {
if (this._listeners[--lNum] == obj) {
return(0);
}
}
}
this._listeners.push(obj);
};
EventEngine.prototype._removeListener = function (obj) {
var lNum = this._listeners.length;
if (lNum) {
while (lNum) {
if (this._listeners[--lNum] == obj) {
this._listeners.splice(lNum, 1);
}
}
}
};
EventEngine.prototype._sendEvent = function (event) {
var lNum = this._listeners.length;
if (lNum) {
while (lNum) {
this._listeners[--lNum][event]();
}
}
};
MovieClip.prototype.mcIs = function (class) {
this.__proto__ = class.prototype;
this.base = class;
};
EVENTengine.init(_level0.bc);
Timer.prototype.enterframe = function () {
var now = getTimer();
if (now >= (this.time + this.duration)) {
this.elapsed++;
this.target.gotoAndStop(this.elapsed + 1);
this.time = now;
if (this.elapsed == 12) {
if (_level0.points == "00") {
Object.target = "loser";
} else {
Object.target = "winner";
}
_level0.curtains.play();
}
}
};
Timer.prototype.cleanup = function () {
Object.broadcaster._removeListener(this);
};
Object.MovieClipExtension_MovableClip = function () {
};
Object.MovieClipExtension_MovableClip.prototype.move = function () {
if (this.facing == this.heading) {
var nuPos = (this[this.dir] + ((this.step + this.accel) * this.heading));
if (nuPos < this.minMov) {
nuPos = this.minMov;
} else if (this.maxMov < nuPos) {
nuPos = this.maxMov;
}
this[this.dir] = nuPos;
}
this.facing = this.heading;
this.lastStep = now;
};
Object.MovieClipExtension_MovableClip.prototype.cleanup = function () {
Object.broadcaster._removeListener(this);
};
Object.MovieClipExtension_MovableClip.prototype.getCords = function () {
return(this[this.dir]);
};
Object.MovieClipExtension_MovableClip.prototype.enterframe = function () {
var now = getTimer();
if (now >= (this.lastStep + this.interval)) {
this.gameloop();
this.lastStep = now;
} else {
return(0);
}
};
Object.MovieClipExtension_MovableClip.prototype.setVals = function (d, st, iv, mn, mx, l) {
this.lev = l;
if (l) {
this.swapDepths(this.lev);
}
this.heading = -1;
this.dir = "_" + d;
this.step = st;
this.interval = iv;
this.lastStep = getTimer();
this.facing = 1;
this.minMov = mn;
this.maxMov = mx;
this.accel = 0;
Object.broadcaster._addlistener(this);
};
MovieClip.prototype.extends(Object.MovieClipExtension_MovableClip);
Object.MovieClipExtension_MovableClip_RandomMovingClip = function (a, av, am) {
this.active = a;
this.animate = (this.appearance = av);
this.ammo = am;
this.shot = 0;
this.reset = 0;
this.phase = 0;
this.oldPos = 0;
};
Object.MovieClipExtension_MovableClip_RandomMovingClip.prototype.shoot = function () {
var num = this.ammo.getCount();
var nam = (this.ammo._name + num);
this.ammo.duplicateMovieClip(nam, num);
_level0[nam].mcIs(Object.MovieClipExtension_MovableClip_HomingClip);
_level0[nam].setVals("y", 5, 80, -20, 700, 500 + num);
_level0[nam].base(_level0.joseph, _level0.mary, _level0.wall);
_level0[nam].setPos(this._x, this._y);
};
Object.MovieClipExtension_MovableClip_RandomMovingClip.prototype.gameloop = function () {
if (!this.animate) {
this.move();
this.phase = this.phase ^ 1;
this.gotoAndStop("f" + String(this.phase));
if (!this.shot) {
if (this.minMov >= this._y) {
this.active = 1;
this.shoot();
this.gotoAndStop("shoot");
this.shot = 1;
this.reset = 1;
}
} else if (!(--this.reset)) {
this.facing = (this.heading = this.heading * -1);
} else if (this._y >= this.maxMov) {
this.animate = this.appearance;
var nuX = (Math.floor(Math.random() * 358) + 55);
this._x = nuX;
this.shot = 0;
this.active = 0;
this.facing = (this.heading = this.heading * -1);
}
} else {
this.animate--;
}
};
Object.MovieClipExtension_MovableClip_RandomMovingClip.prototype.getPos = function (dir) {
if (this.active) {
return(this[dir] - 12);
}
return(0);
};
Object.MovieClipExtension_MovableClip.prototype.extends(Object.MovieClipExtension_MovableClip_RandomMovingClip);
Object.MovieClipExtension_MovableClip_HomingClip = function (j, m, w, p) {
Object.MovieClipExtension_MovableClip_HomingClip.count++;
this.joseph = j;
this.mary = m;
this.burst = 0;
this.wall = w;
this.parent = p;
};
Object.MovieClipExtension_MovableClip_HomingClip.prototype.setPos = function (x, y) {
this._x = x + 3;
this.mary.addTarget(this._x);
this._y = y;
this.lastStep = 0;
this.creepUp = 0;
};
Object.MovieClipExtension_MovableClip_HomingClip.prototype.checkJoseph = function () {
if (this.joseph.hitTest(this._x, this._y, true)) {
return(1);
}
return(0);
};
Object.MovieClipExtension_MovableClip_HomingClip.prototype.cleanup = function () {
Object.broadcaster._removeListener(this);
this.removeMovieClip();
};
Object.MovieClipExtension_MovableClip_HomingClip.prototype.checkWall = function () {
if (this.wall.hitTest(this._x, this._y, true)) {
return(1);
}
return(0);
};
Object.MovieClipExtension_MovableClip_HomingClip.prototype.getCount = function () {
return(Object.MovieClipExtension_MovableClip_HomingClip.count);
};
Object.MovieClipExtension_MovableClip_HomingClip.prototype.addPoint = function () {
var pts = int(_level0.points);
pts = pts + 1;
if (pts < 10) {
pts = "0" + String(pts);
}
_level0.points = pts;
};
Object.MovieClipExtension_MovableClip_HomingClip.prototype.subPoint = function () {
var pts = int(_level0.points);
pts = pts - 10;
if (pts < 10) {
if (0 >= pts) {
pts = "00";
} else {
pts = "0" + String(pts);
}
}
_level0.points = pts;
};
Object.MovieClipExtension_MovableClip_HomingClip.prototype.checkSheep = function () {
if ((sheep = this.joseph.sheep)) {
if (sheep.hitTest(this._x, this._y)) {
return(1);
}
}
return(0);
};
Object.MovieClipExtension_MovableClip_HomingClip.prototype.checkMary = function () {
if (this.mary.hitTest(this._x, this._y, true)) {
return(1);
}
return(0);
};
Object.MovieClipExtension_MovableClip_HomingClip.prototype.gameloop = function () {
if (!this.burst) {
if (!this.creepUp) {
if (this.minMov >= this[this.dir]) {
this.removeMovieClip();
}
if (150 >= this[this.dir]) {
if (!this.swap) {
this.swapDepths(100);
this.lev = 100;
this.swap = 1;
}
if (this.checkWall()) {
this.burst = 1;
this.mary.removeTarget(this._x);
this.gotoAndPlay("burst");
this.mary.unpreg();
} else if (this.checkMary()) {
this.mary.pregnant();
this.creepUp = 1;
}
} else if (this.checkSheep()) {
this.burst = 1;
this.addPoint();
this.gotoAndPlay("burst");
this.mary.removeTarget(this._x);
this.mary.unpreg();
} else if (this.checkJoseph()) {
this.joseph.eek();
this.subPoint();
this.burst = 1;
this.mary.removeTarget(this._x);
this.mary.unpreg();
this.gotoAndPlay("burst");
}
} else if ((++this.creepUp) == 9) {
this.mary.removeTarget(this._x);
this.mary.unpreg();
this.cleanup();
}
this.move();
} else if (this.done) {
this.cleanup();
}
};
Object.MovieClipExtension_MovableClip.prototype.extends(Object.MovieClipExtension_MovableClip_HomingClip);
Object.MovieClipExtension_MovableClip_TargetMovingClip = function (a, t, c) {
this.active = a;
this.target = t;
this.goto = this[this.dir];
this.dist = 0;
this.phase = 1;
this.brake = 0;
this.reset = (this.delay = 2);
this.preg = 0;
this.counter = c;
this.sperm = 0;
this.targets = [];
};
Object.MovieClipExtension_MovableClip_TargetMovingClip.prototype.decelerate = function (pos) {
var dec = Math.ceil(Math.abs((pos - this.goto) / 10));
if (7 < dec) {
dec = 7;
}
if (dec < 3) {
this.brake = 1;
}
this.accel = dec;
};
Object.MovieClipExtension_MovableClip_TargetMovingClip.prototype.pregnant = function () {
this.gotoAndStop("hit");
this.sperm++;
this.active = 0;
this.preg = 1;
this.counter.gotoAndStop(this.sperm + 1);
if (this.sperm == 3) {
Object.target = "loser";
_level0.curtains.play();
}
};
Object.MovieClipExtension_MovableClip_TargetMovingClip.prototype.getTarget = function () {
if (this.targets.length) {
return(this.targets[0]);
}
return(0);
};
Object.MovieClipExtension_MovableClip_TargetMovingClip.prototype.addTarget = function (t) {
this.targets.unshift(t - 12);
};
Object.MovieClipExtension_MovableClip_TargetMovingClip.prototype.removeTarget = function (t) {
t = t - 12;
var n = this.targets.length;
i = 0;
while (i < n) {
if (this.targets[i] == t) {
this.targets.splice(i, 1);
}
i++;
}
};
Object.MovieClipExtension_MovableClip_TargetMovingClip.prototype.unpreg = function () {
this.preg = 0;
this.active = 0;
this.gotoAndStop("s0");
this.brake = 0;
};
Object.MovieClipExtension_MovableClip_TargetMovingClip.prototype.gameloop = function () {
if (!this.preg) {
if (this.active) {
var cur = this[this.dir];
if (this.active != this.goto) {
this.goto = this.active;
this.dist = cur - this.goto;
this.dist = this.dist / (Math.abs(this.dist) * -1);
if (this.heading != this.dist) {
this.heading = dist;
}
}
var goal = (((this.goto - this.step) < cur) && (cur < (this.goto + this.step)));
this.phase = this.phase ^ 1;
if (!goal) {
this.decelerate(cur);
this.move();
if (!this.brake) {
var ani = (("l" + String(this.heading)) + String(this.phase));
} else {
var ani = ("b" + String(this.heading));
}
} else if (!(this.reset--)) {
if (this.brake) {
this.brake = 0;
this.accel = 0;
}
this.ani = "w" + String(this.phase);
this.reset = this.delay;
}
this.gotoAndStop(ani);
} else {
this.active = this.getTarget();
}
}
};
Object.MovieClipExtension_MovableClip.prototype.extends(Object.MovieClipExtension_MovableClip_TargetMovingClip);
Object.MovieClipExtension_MovableClip_KeyCtrlClip = function () {
this.maxSteps = st;
this.pressed = [];
this.hitting = 0;
this.position = 1;
this.facing = 0;
this.oldDir = 0;
this.gooey = 0;
this.reset = (this.delay = 2);
};
Object.MovieClipExtension_MovableClip_KeyCtrlClip.prototype.update = function () {
var ani = (("w" + String(this.heading)) + String(this.position));
this.gotoAndStop(ani);
this.sheep.gotoAndStop(ani);
this.position = this.position + this.heading;
if (0 >= this.position) {
this.position = 2;
} else if (2 < this.position) {
this.position = 1;
}
};
Object.MovieClipExtension_MovableClip_KeyCtrlClip.prototype.gameloop = function () {
if (!this.gooey) {
if (!this.hitting) {
if (this.pressed.length) {
this.reset = this.delay;
var cur = this.pressed[0];
if (cur == 32) {
if (!this.hitting) {
this.hitting = 1;
if (this.heading) {
this.oldDir = this.heading;
}
var ani = (("h" + String(this.oldDir)) + "1");
this.reset = this.delay;
this.gotoAndStop(ani);
this.sheep.gotoAndStop(ani);
}
} else {
var w = (-38 + cur);
if (this.heading != w) {
this.heading = w;
}
}
if (!this.hitting) {
this.move();
this.update();
}
} else if (this.heading) {
if (!(--this.reset)) {
this.oldDir = this.heading;
this.heading = 0;
var ani = ("s" + String(this.oldDir));
this.gotoAndStop(ani);
this.sheep.gotoAndStop(ani);
this.reset = this.delay;
}
}
} else if (!(--this.reset)) {
if (this.hitting < 2) {
this.hitting++;
var ani = (("h" + String(this.oldDir)) + "2");
this.reset = this.delay;
} else {
var ani = ("s" + String(this.oldDir));
this.hitting = 0;
}
this.gotoAndStop(ani);
this.sheep.gotoAndStop(ani);
}
} else if ((this.reset++) == 2) {
this.gotoAndStop("hit");
} else if (this.reset == 10) {
var ani = ("s" + String(this.oldDir));
this.gotoAndStop(ani);
this.sheep.gotoAndStop(ani);
this.gooey = 0;
this.reset = this.delay;
}
};
Object.MovieClipExtension_MovableClip_KeyCtrlClip.prototype.eek = function () {
this.gooey = 1;
};
Object.MovieClipExtension_MovableClip_KeyCtrlClip.prototype.keydown = function () {
var prs = Key.getCode();
if (((prs == 39) || (prs == 37)) || ((prs == 32) && (prs != this.pressed[0]))) {
if (this.pressed.length) {
i = this.pressed.length;
while (i--) {
if (this.pressed[i] == prs) {
return(undefined);
}
}
}
this.pressed.unshift(prs);
this.lastStep = 0;
}
};
Object.MovieClipExtension_MovableClip_KeyCtrlClip.prototype.keyup = function () {
var prs = Key.getCode();
if (((prs == 39) || (prs == 37)) || (prs == 32)) {
i = this.pressed.length;
while (i--) {
if (this.pressed[i] == prs) {
this.pressed.splice(i, 1);
}
}
}
};
Object.MovieClipExtension_MovableClip.prototype.extends(Object.MovieClipExtension_MovableClip_KeyCtrlClip);
joseph.mcIs(Object.MovieClipExtension_MovableClip_KeyCtrlClip);
joseph.setVals("x", 5, 100, 140, 500, 200);
joseph.base();
mary.mcIs(Object.MovieClipExtension_MovableClip_TargetMovingClip);
mary.setVals("x", 5, 80, 90, 540, 300);
mary.base(0, hesekiel);
hesekiel.mcIs(Object.MovieClipExtension_MovableClip_RandomMovingClip);
hesekiel.setVals("y", 5, 80, 356, 432, 0);
hesekiel.base(0, 10, spermy);
spermy.mcIs(Object.MovieClipExtension_MovableClip_HomingClip);
Frame 9
Object.MovieClipExtension_MovableClip_HomingClip.count = 1;
time.gotoAndStop(1);
mary_counter.gotoAndStop(1);
points = "00";
joseph._x = 236;
joseph._y = 184;
joseph.gotoAndStop("s-1");
mary._x = 452;
mary._y = 16;
mary.gotoAndStop("s0");
hesekiel._x = 132;
hesekiel._y = 431;
hesekiel.gotoAndStop("f0");
stop();
Frame 10
joseph.mcIs(Object.MovieClipExtension_MovableClip_KeyCtrlClip);
joseph.setVals("x", 5, 100, 88, 448, 200);
joseph.base();
mary.mcIs(Object.MovieClipExtension_MovableClip_TargetMovingClip);
mary.setVals("x", 5, 80, 38, 488, 300);
mary.base(0, hesekiel, mary_counter);
hesekiel.mcIs(Object.MovieClipExtension_MovableClip_RandomMovingClip);
hesekiel.setVals("y", 5, 80, 356, 432, 0);
hesekiel.base(0, 10, spermy);
spermy.mcIs(Object.MovieClipExtension_MovableClip_HomingClip);
stool.swapDepths(301);
clock = new Timer(2, time);
stop();
Symbol 9 MovieClip Frame 14
gotoAndPlay (1);
Symbol 9 MovieClip Frame 25
this.done = 1;
stop();
Symbol 27 Button
on (release) {
_level0.gotoAndStop("regel");
}
Symbol 29 MovieClip Frame 5
stop();
Symbol 38 Button
on (release) {
_level0.gotoAndStop("start");
}
Symbol 55 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 20
_level0.gotoAndStop(Object.target);
stop();
Symbol 94 MovieClip Frame 31
_level0.bc.cleanup();
_level0.blank3.swapDepths(200);
_level0.blank1.swapDepths(300);
_level0.blank2.swapDepths(301);
_level0.timer.cleanup();
Symbol 94 MovieClip Frame 51
_level0.gotoAndStop(Object.target);
Symbol 101 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 120 Button
on (release) {
Object.target = "spiel";
curtains.play();
}
Symbol 124 Button
on (release) {
Object.target = "start";
curtains.play();
}
Symbol 143 Button
on (release) {
gotoAndStop (9);
Object.target = "spiel";
curtains.play();
}