Frame 1
function chargen(base, text, xoffset, yoffset, xscale, yscale, xspacing, yspacing) {
line = 0;
col = 0;
i = 0;
while (i < text.length) {
if (text.charAt(i) == newline) {
line++;
col = 0;
} else {
base.attachMovie("font_" + text.charAt(i), "char_" + i, i);
base["char_" + i]._x = xoffset + (xspacing * col);
base["char_" + i]._y = yoffset + (yspacing * line);
base["char_" + i]._xscale = xscale;
base["char_" + i]._yscale = yscale;
col++;
}
i++;
}
}
_root.stop();
_root.stop();
_root.g_idlesince = 0;
_level0.highscorephp = "http://www.q-lympics.de/interface.php3";
Instance of Symbol 224 MovieClip in Frame 1
onClipEvent (load) {
stop();
this.wolke1.speed = 1 + random(3);
this.wolke2.speed = -(1 + random(3));
this.wolke3.speed = 1 + random(3);
this.wolke4.speed = -(1 + random(3));
i = 1;
while (4 >= i) {
this["wolke" + i].is_raining = false;
this["wolke" + i].rain_timer = 0;
this["wolke" + i].rain._visible = false;
i++;
}
_root.idleloop = getTimer();
_root.chargen(this.wettmelken_logo, "wettmelken", 0, 0, 100, 100, 40, 40);
}
onClipEvent (mouseDown) {
_root.idleloop = getTimer();
}
onClipEvent (mouseUp) {
_root.idleloop = getTimer();
}
onClipEvent (enterFrame) {
if ((2 >= _root._currentframe) && (20000 < (getTimer() - _root.idleloop))) {
_root.freezehighscore = false;
_root.gotoAndStop(25);
}
i = 0;
while (i < 10) {
this.wettmelken_logo["char_" + i]._yscale = 100 - (30 * Math.sin(((i * 60) + getTimer()) / 70));
i++;
}
i = 1;
while (4 >= i) {
if (!this["wolke" + i].is_raining) {
this["wolke" + i]._x = this["wolke" + i]._x + this["wolke" + i].speed;
}
if (this["wolke" + i]._x >= 500) {
this["wolke" + i].speed = 1 + random(3);
this["wolke" + i]._x = -600;
} else if (-600 >= this["wolke" + i]._x) {
this["wolke" + i].speed = -(1 + random(3));
this["wolke" + i]._x = 500;
}
if (this["wolke" + i].is_raining) {
this["wolke" + i].rain._visible = true;
this["wolke" + i].rain_timer++;
if (this["wolke" + i].rain_timer >= 30) {
this["wolke" + i].rain_timer = 0;
this["wolke" + i].is_raining = false;
this["wolke" + i].rain._visible = false;
}
}
i++;
}
}
Instance of Symbol 230 MovieClip "stdhand" in Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Frame 25
_root.stop();
Frame 50
_root.stop();
Instance of Symbol 282 MovieClip "select_movie" in Frame 50
onClipEvent (load) {
stop();
this.bird_explode.stop();
this.bird._x = 420;
this.bird._y = -90;
this.bird_explode._x = 415;
this.bird_explode._y = -90;
this.bird._visible = true;
this.bird_explode._visible = false;
this.bird.stepping = (random(10) / 5) + 0.25;
this.snd_rollover = new Sound(this);
this.snd_rollover.attachSound("rollover");
this.text = "Wettmelken starten";
_root.chargen(this.select_start, this.text, (-(this.text.length * 20)) / 2, 0, 70, 70, 20, 50);
this.select_start.wrapper._xscale = (4 + this.text.length) * 20;
this.select_start.wrapper._yscale = 600;
this.select_start.wrapper._x = -5;
this.select_start.wrapper._y = 5;
this.text = "Anleitung fuer das Spiel";
_root.chargen(this.select_info, this.text, (-(this.text.length * 20)) / 2, 0, 70, 70, 20, 50);
this.select_info.wrapper._xscale = (4 + this.text.length) * 20;
this.select_info.wrapper._yscale = 600;
this.select_info.wrapper._x = -5;
this.select_info.wrapper._y = 5;
this.text = "Highscores anzeigen";
_root.chargen(this.select_highscore, this.text, (-(this.text.length * 20)) / 2, 0, 70, 70, 20, 50);
this.select_highscore.wrapper._xscale = (4 + this.text.length) * 20;
this.select_highscore.wrapper._yscale = 600;
this.select_highscore.wrapper._x = -5;
this.select_highscore.wrapper._y = 5;
}
onClipEvent (enterFrame) {
if ((_root._currentframe == 50) && (30000 < (getTimer() - _root.g_idlesince))) {
_root.gotoAndStop(1);
_root.idleloop = getTimer();
}
this.bird._x = this.bird._x - 6.5;
this.bird._y = this.bird._y - this.bird.stepping;
this.bird_explode._x = this.bird_explode._x - 6.5;
this.bird_explode._y = this.bird_explode._y - this.bird.stepping;
if (this.bird._x < -350) {
this.bird._x = 420;
this.bird._y = -90;
this.bird_explode._x = 415;
this.bird_explode._y = -90;
this.bird._visible = true;
this.bird_explode._visible = false;
this.bird.stepping = (random(10) / 5) + 0.25;
}
if (this.select_start.active) {
if (!this.select_start.starve) {
_root.select_movie.selectmenu_cow.select_arm._rotation = -90.6;
_root.select_movie.selectmenu_cow.select_head._rotation = -10;
}
this.select_start._xscale = 100 + (40 * Math.sin((Math.PI/180) * this.select_start.stretch));
this.select_start.stretch = this.select_start.stretch + 10;
if (this.select_start.stretch >= 360) {
this.select_start.stretch = this.select_start.stretch - 360;
if (this.select_start.starve) {
this.select_start.active = false;
}
}
}
if (this.select_info.active) {
if (!this.select_info.starve) {
_root.select_movie.selectmenu_cow.select_arm._rotation = -79.3;
_root.select_movie.selectmenu_cow.select_head._rotation = 0;
}
this.select_info._xscale = 100 + (40 * Math.sin((Math.PI/180) * this.select_info.stretch));
this.select_info.stretch = this.select_info.stretch + 10;
if (this.select_info.stretch >= 360) {
this.select_info.stretch = this.select_info.stretch - 360;
if (this.select_info.starve) {
this.select_info.active = false;
}
}
}
if (this.select_highscore.active) {
if (!this.select_highscore.starve) {
_root.select_movie.selectmenu_cow.select_arm._rotation = -68;
_root.select_movie.selectmenu_cow.select_head._rotation = 5;
}
this.select_highscore._xscale = 100 + (40 * Math.sin((Math.PI/180) * this.select_highscore.stretch));
this.select_highscore.stretch = this.select_highscore.stretch + 10;
if (this.select_highscore.stretch >= 360) {
this.select_highscore.stretch = this.select_highscore.stretch - 360;
if (this.select_highscore.starve) {
this.select_highscore.active = false;
}
}
}
}
Instance of Symbol 283 MovieClip in Frame 79
onClipEvent (load) {
_root.stop();
loadMovieNum ("wettmelken.swf", 0);
}
Frame 80
_root.stop();
this.stop();
Instance of Symbol 286 MovieClip "infopad" in Frame 80
onClipEvent (load) {
stop();
this.attachMovie("null", "layer1", 1);
this.attachMovie("null", "layer2", 2);
this.layer1._alpha = 100;
this.layer2._alpha = 100;
this.text1 = "Wettmelken.\nWenn die Kuehe nicht regelmaessig gemolken\nwerden, passiert ein Unglueck. Also, packen\nSie den Bauern am Schlawitchen und zeigen Sie\nihm, wo die Milch ist.\n\nSteuerung:\nMit der Maus koennen Sie die ueber dem Boden\nschwebende Hand steuern, mit der Sie einen\nder beiden Bauern per Mausklick hochheben\nkoennen. Bitte beachten Sie, dass der Bauer\nnur so lange von der Hand gehalten wird,\nwie Sie die Maustaste gedrueckt halten.";
this.text2 = "Nun koennen Sie anhand des Schattens der\nHand sehen, wo der Bauer landen wird, wenn\nSie ihn fallen lassen.\n\nUm eine Kuh melken zu koennen, muss der Bauer\ndirekt vor der Kuh abgesetzt werden.\n\nEine Spielrunde dauert 90 Sekunden. Versuchen\nSie so viele Punkte wie moeglich durch melken\nzu erreichen. Achtung! Der Verlust einer Kuh\nkostet Sie wertvolle Punkte!";
this.page = 1;
_root.chargen(this.layer1, this.text1, -345, -180, 50, 50, 15, 23);
_root.chargen(this.layer2, this.text2, -345, -180, 50, 50, 15, 23);
}
onClipEvent (enterFrame) {
if (this.page == 1) {
this.layer1._visible = true;
this.layer2._visible = false;
_parent.fwdmov._visible = true;
_parent.backmov._visible = false;
} else {
this.layer1._visible = false;
this.layer2._visible = true;
_parent.fwdmov._visible = false;
_parent.backmov._visible = true;
}
}
Frame 81
function buildPlayerName() {
actstr = _root.scorelayer.actstring;
slen = _root[actstr].length;
_root.scorelayer[actstr + slen].removeMovieClip();
_root.scorelayer.attachMovie("font_" + _root[actstr].charAt(slen - 1), actstr + (slen - 1), (slen - 1) + _root.scorelayer[actstr + "_offset"]);
_root.scorelayer[actstr + (slen - 1)]._x = _root.scorelayer.score._x + (((slen - 1) % 25) * 20);
_root.scorelayer[actstr + (slen - 1)]._xscale = 60;
_root.scorelayer[actstr + (slen - 1)]._yscale = 60;
if (actstr == "playername") {
_root.scorelayer[actstr + (slen - 1)]._y = _root.scorelayer.namelabel._y + random(6);
} else {
_root.scorelayer[actstr + (slen - 1)]._y = (_root.scorelayer.maillabel._y + random(6)) + (35 * Math.floor((slen - 1) / 25));
}
}
_root.stop();
stop();
Instance of Symbol 293 MovieClip in Frame 81
onClipEvent (load) {
_root.score_floating = 0;
_root.score_pickup = 0;
_root.score_leeching = 7;
_root.score_death = -256;
_root.q1._x = 200 + random(400);
_root.q2._x = 200 + random(400);
_root.q3._x = 200 + random(400);
_root.q4._x = 200 + random(400);
_root.q5._x = 200 + random(400);
_root.q1.swapDepths(Math.floor(_root.q1._y));
_root.q2.swapDepths(Math.floor(_root.q2._y));
_root.q3.swapDepths(Math.floor(_root.q3._y));
_root.q4.swapDepths(Math.floor(_root.q4._y));
_root.q5.swapDepths(Math.floor(_root.q5._y));
_root.b0.swapDepths(Math.floor(_root.b0._y));
_root.b1.swapDepths(Math.floor(_root.b1._y));
tmp1 = random(3);
if (tmp1 == 0) {
_root.billyboy._y = 244;
} else if (tmp1 == 1) {
_root.billyboy._y = 242;
} else {
_root.billyboy._y = 315;
}
_root.billyboy.swapDepths(Math.floor(_root.billyboy._y));
_root.billyboy._x = -490;
_root.billyboy.speed = 3;
_root.billyboy.melken._visible = false;
_root.billyboy.laufen._visible = true;
_root.s0x = _root.slider0._x;
_root.smx = _root.slider0._x + ((_root.slider1._x - _root.slider0._x) / 2);
_root.s1x = _root.slider1._x;
_root.slider0._x = _root.smx;
_root.slider1._x = _root.smx;
_root.s0tgt = 0;
_root.s1tgt = 0;
_root.s0mov = false;
_root.s1mov = false;
_root.handmov.swapDepths(5000);
_root.gameover.swapDepths(5001);
_root.timeout.swapDepths(5002);
_root.scorelayer.swapDepths(5003);
_root.scorelayer._visible = false;
_root.cowsalive = 5;
_root.slider0.swapDepths(4998);
_root.slider1.swapDepths(4999);
_root.timelimit = 90000 /* 0x015F90 */;
_root.game_running = true;
_root.time_offset = getTimer();
_root.time.timer = _root.timelimit;
i = 0;
while (i < 2) {
_parent["text" + j].attachMovie("font_" + _parent["text" + j].text.charAt(i), "letter" + i, i);
_parent["text" + j]["letter" + i]._x = 30 * (i - (_parent["text" + j].text.length / 2));
i++;
}
_root.handmov.b0_catched = false;
_root.handmov.b0_falling = false;
_root.handmov.b1_catched = false;
_root.handmov.b1_falling = false;
_root.q5.tank = random(250);
_root.q2.tank = random(200);
_root.q4.tank = random(150);
_root.q1.tank = random(100);
_root.q3.tank = random(50);
_root.score.score = 1;
_root.game_running = true;
_root.slider0._visible = false;
_root.slider1._visible = false;
_root.gameover.move_y = true;
_root.gameover.move_x = false;
_root.gameover.loop = false;
_root.gameover.endflash = true;
_root.gameover.y_end = 245;
_root.gameover.speed = 12;
_root.timeout.move_y = true;
_root.timeout.move_x = false;
_root.timeout.loop = false;
_root.timeout.endflash = true;
_root.timeout.y_end = 245;
_root.timeout.speed = 12;
_root.cowkiller.move_x = true;
_root.cowkiller.move_y = false;
_root.cowkiller.loop = true;
_root.cowkiller.endflash = false;
_root.cowkiller.x_start = 1000;
_root.cowkiller.x_end = -200;
_root.cowkiller.speed = -15;
_root.scorelayer._visible = false;
_root.g_key = "";
_root.stdhand._visible = false;
_root.handmov._visible = true;
}
onClipEvent (enterFrame) {
_root._dbgx = _root._xmouse;
_root._dbgy = _root._ymouse;
n = 0;
while (n < 2) {
if (_root[("s" + n) + "mov"]) {
if (_root[("s" + n) + "tgt"] == 0) {
if (_root["slider" + n]._x < (_root.smx - 6)) {
_root["slider" + n]._x = _root["slider" + n]._x + 10;
} else if ((_root.smx + 6) < _root["slider" + n]._x) {
_root["slider" + n]._x = _root["slider" + n]._x - 10;
} else {
_root[("s" + n) + "mov"] = false;
}
}
if (_root[("s" + n) + "tgt"] == 1) {
if (_root["slider" + n]._x < _root.s1x) {
_root["slider" + n]._x = _root["slider" + n]._x + 10;
} else {
_root[("s" + n) + "mov"] = false;
}
}
if (_root[("s" + n) + "tgt"] == -1) {
if (_root.s0x < _root["slider" + n]._x) {
_root["slider" + n]._x = _root["slider" + n]._x - 10;
} else {
_root[("s" + n) + "mov"] = false;
}
}
}
n++;
}
if (_root.game_running) {
if (!_root.dozing) {
if (_root.q1.dead) {
_root.doze = 1;
} else if (_root.q2.dead) {
_root.doze = 2;
} else if (_root.q3.dead) {
_root.doze = 3;
} else if (_root.q4.dead) {
_root.doze = 4;
} else if (_root.q5.dead) {
_root.doze = 5;
} else {
_root.doze = 0;
}
if (0 < _root.doze) {
_root.dozer._y = _root["q" + _root.doze]._y;
_root.dozer.swapDepths(Math.floor(_root.dozer._y - 1));
_root.dozer._yscale = (((_root.dozer._y - 120) / (_root._height - 120)) * 55) + 100;
if (_root["q" + _root.doze]._xscale < 0) {
_root.dozer._x = -50;
_root.dozer._xscale = -((((_root.dozer._y - 120) / (_root._height - 120)) * 55) + 100);
_root.dozerspeed = 4;
} else {
_root.dozer._x = 850;
_root.dozer._xscale = (((_root.dozer._y - 120) / (_root._height - 120)) * 55) + 100;
_root.dozerspeed = -4;
}
_root.dozing = true;
}
}
if (_root.dozing) {
_root.dozer._x = _root.dozer._x + _root.dozerspeed;
if (Math.abs(_root["q" + _root.doze]._x - _root.dozer._x) < 95) {
_root["q" + _root.doze]._x = _root["q" + _root.doze]._x + _root.dozerspeed;
if (_root["q" + _root.doze].die._visible) {
_root["q" + _root.doze].die._visible = false;
_root["q" + _root.doze].die_roll._visible = true;
_root["q" + _root.doze].playRoll = true;
}
}
if (_root.dozer._x < -50) {
_root["q" + _root.doze].tank = -300;
_root["q" + _root.doze].speed = 1.5;
_root["q" + _root.doze].dead = false;
_root["q" + _root.doze].die._visible = false;
_root["q" + _root.doze].run._visible = true;
_root["q" + _root.doze].die_roll._visible = false;
_root["q" + _root.doze].playRoll = false;
_root.cowsalive++;
_root.doze = 0;
_root.dozing = false;
}
if (850 < _root.dozer._x) {
_root["q" + _root.doze].tank = -300;
_root["q" + _root.doze].speed = -1.5;
_root["q" + _root.doze].dead = false;
_root["q" + _root.doze].die._visible = false;
_root["q" + _root.doze].run._visible = true;
_root["q" + _root.doze].die_roll._visible = false;
_root["q" + _root.doze].playRoll = false;
_root.cowsalive++;
_root.doze = 0;
_root.dozing = false;
}
}
if (((_root.b0.offset == 0) && ((Math.abs(_root.billyboy._x - _root.b0._x) < 30) && (Math.abs((25 + _root.billyboy._y) - _root.b0._y) < 25))) || ((_root.b1.offset == 0) && ((Math.abs(_root.billyboy._x - _root.b1._x) < 30) && (Math.abs((25 + _root.billyboy._y) - _root.b1._y) < 25)))) {
_root.billyboy.melken._visible = true;
_root.billyboy.laufen._visible = false;
} else {
_root.billyboy.melken._visible = false;
_root.billyboy.laufen._visible = true;
_root.billyboy._x = _root.billyboy._x + _root.billyboy.speed;
}
if (1200 < _root.billyboy._x) {
_root.billyboy.speed = _root.billyboy.speed * -1;
_root.billyboy._xscale = _root.billyboy._xscale * -1;
tmp1 = random(3);
if (tmp1 == 0) {
_root.billyboy._y = 204;
} else if (tmp1 == 1) {
_root.billyboy._y = 242;
} else {
_root.billyboy._y = 315;
}
_root.billyboy.swapDepths(Math.floor(_root.billyboy._y));
}
if (_root.billyboy._x < -500) {
_root.billyboy.speed = _root.billyboy.speed * -1;
_root.billyboy._xscale = _root.billyboy._xscale * -1;
tmp1 = random(3);
if (tmp1 == 0) {
_root.billyboy._y = 204;
} else if (tmp1 == 1) {
_root.billyboy._y = 242;
} else {
_root.billyboy._y = 315;
}
_root.billyboy.swapDepths(Math.floor(_root.billyboy._y));
}
if (_root.timelimit >= (getTimer() - _root.time_offset)) {
time = ((_root.time_offset + _root.time.timer) - getTimer()) / 1000;
} else {
_root.time.timer = 0;
_root.q1.stop();
_root.q2.stop();
_root.q3.stop();
_root.q4.stop();
_root.q5.stop();
_root.b0.snd_leech.stop();
_root.b0.snd_catch.stop();
_root.b1.snd_leech.stop();
_root.b1.snd_catch.stop();
_root.timeout.trigger = true;
_root.game_running = false;
_root.playerscore = _root.score.score;
}
if ((((_root.q1.dead && (_root.q2.dead)) && (_root.q3.dead)) && (_root.q4.dead)) && (_root.q5.dead)) {
_root.b0.snd_leech.stop();
_root.b0.snd_catch.stop();
_root.b1.snd_leech.stop();
_root.b1.snd_catch.stop();
_root.gameover.trigger = true;
_root.game_running = false;
_root.playerscore = _root.score.score;
}
} else if (_root.gameover.finished || (_root.timeout.finished)) {
_root.q1.removeMovieClip();
_root.q2.removeMovieClip();
_root.q3.removeMovieClip();
_root.q4.removeMovieClip();
_root.q5.removeMovieClip();
_root.b0.removeMovieClip();
_root.b1.removeMovieClip();
_root.billyboy.removeMovieClip();
_root.slider0.removeMovieClip();
_root.slider1.removeMovieClip();
_root.handmov.removeMovieClip();
_root.cowkiller.removeMovieClip();
_root.timeout.removeMovieClip();
_root.gameover.removeMovieClip();
_root.handmov.removeMovieClip();
_root.dozer.removeMovieClip();
_root.stdhand._visible = true;
_root.gotoAndStop(82);
}
d0 = Math.floor(time % 10);
d1 = Math.floor(time / 10);
_root.time.attachMovie("font_" + d0, "digit0", 0);
_root.time.digit0._x = 20;
_root.time.digit0._y = 0;
_root.time.attachMovie("font_" + d1, "digit1", 1);
_root.time.digit1._x = -20;
_root.time.digit1._y = 0;
d0 = Math.floor(_root.score.score % 10);
d1 = Math.floor((_root.score.score / 10) % 10);
d2 = Math.floor((_root.score.score / 100) % 10);
d3 = Math.floor((_root.score.score / 1000) % 10);
d4 = Math.floor((_root.score.score / 10000) % 10);
d5 = Math.floor((_root.score.score / 100000) % 10);
_root.score.attachMovie("font_" + d0, "digit0", 0);
_root.score.digit0._x = 140;
_root.score.digit0._y = 0;
_root.score.attachMovie("font_" + d1, "digit1", 1);
_root.score.digit1._x = 100;
_root.score.digit1._y = 0;
_root.score.attachMovie("font_" + d2, "digit2", 2);
_root.score.digit2._x = 60;
_root.score.digit2._y = 0;
_root.score.attachMovie("font_" + d3, "digit3", 3);
_root.score.digit3._x = 20;
_root.score.digit3._y = 0;
_root.score.attachMovie("font_" + d4, "digit4", 4);
_root.score.digit4._x = -20;
_root.score.digit4._y = 0;
_root.score.attachMovie("font_" + d5, "digit5", 5);
_root.score.digit5._x = -60;
_root.score.digit5._y = 0;
}
Instance of Symbol 334 MovieClip "q5" in Frame 81
onClipEvent (load) {
this.eat._visible = false;
this.run._visible = true;
this.die._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.speed = -1.5;
this.dead = false;
this.snd_die = new Sound(this);
this.snd_die.attachSound("snd_die");
this.playRoll = false;
this.die_roll._visible = false;
}
onClipEvent (enterFrame) {
if (this.run._visible) {
this._x = this._x + this.speed;
}
if (!this.dead) {
if (!this.give_milk._visible) {
if (800 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = true;
this.dead = true;
if (0 < (_root.score.score + _root.score_death)) {
_root.score.score = _root.score.score + _root.score_death;
} else {
_root.score.score = 0;
}
_root.cowsalive--;
_root.cowkiller.trigger = true;
this.die.gotoAndPlay(1);
this.snd_die.start(0);
} else if (550 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = true;
this.turn._visible = false;
this.die._visible = false;
this.full2.gotoAndPlay(1);
}
}
if (_root.game_running) {
if ((0 < this.tank) && (!this.dead)) {
if ((_root.b0.offset == 0) && ((Math.abs(this._x - _root.b0._x) < 30) && (Math.abs((25 + this._y) - _root.b0._y) < 25))) {
_root.slider0._visible = true;
if (_root.slider1._visible) {
if (_root.b1._x >= _root.b0._x) {
_root.s0tgt = -1;
_root.s0mov = true;
_root.s1tgt = 1;
_root.s1mov = true;
} else {
_root.s0tgt = 1;
_root.s0mov = true;
_root.s1tgt = -1;
_root.s1mov = true;
}
} else {
_root.s0tgt = 0;
_root.s0mov = true;
_root.s1tgt = 0;
_root.s1mov = true;
}
_root.slider0.mark._x = (this.tank * 0.55625) - 290;
if (!this.give_milk._visible) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = true;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.give_milk.gotoAndPlay(1);
_root.score.score = _root.score.score + _root.score_leeching;
this.tank = this.tank - 4;
_root.b0.is_leeching = true;
_root.b0.cowgettingleeched = this._name;
} else {
this.tank = this.tank - 4;
_root.score.score = _root.score.score + ((_root.score_leeching * _root.cowsalive) * (1 - (this.tank / 800)));
}
}
if ((_root.b1.offset == 0) && ((Math.abs(this._x - _root.b1._x) < 30) && (Math.abs((25 + this._y) - _root.b1._y) < 25))) {
_root.slider1._visible = true;
if (_root.slider0._visible) {
if (_root.b1._x >= _root.b0._x) {
_root.s0tgt = -1;
_root.s0mov = true;
_root.s1tgt = 1;
_root.s1mov = true;
} else {
_root.s0tgt = 1;
_root.s0mov = true;
_root.s1tgt = -1;
_root.s1mov = true;
}
} else {
_root.s0tgt = 0;
_root.s0mov = true;
_root.s1tgt = 0;
_root.s1mov = true;
}
_root.slider1.mark._x = (this.tank * 0.55625) - 290;
if (!this.give_milk._visible) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = true;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.give_milk.gotoAndPlay(1);
_root.score.score = _root.score.score + _root.score_leeching;
this.tank = this.tank - 4;
_root.b1.is_leeching = true;
_root.b1.cowgettingleeched = this._name;
} else {
this.tank = this.tank - 4;
_root.score.score = _root.score.score + ((_root.score_leeching * _root.cowsalive) * (1 - (this.tank / 800)));
}
}
}
if ((!this.give_milk._visible) && (!this.dead)) {
this.tank = this.tank + 2;
}
}
}
if ((this.event == "run_end") && (this.run._visible)) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
if (250 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = true;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.full1.gotoAndPlay(1);
this.event = "";
} else if (150 >= this._x) {
this.run.stop();
this.turn._visible = true;
this.speed = 1.5;
this.event = "";
this.run.stop();
this.turn._visible = true;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else if (this._x >= 680) {
this.run.stop();
this.turn._visible = true;
this.speed = -1.5;
this.event = "";
this.run.stop();
this.turn._visible = true;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else {
this.event = "";
tmpchoose = random(10);
if (tmpchoose == 1) {
this.run.stop();
this.turn._visible = true;
this.speed = this.speed * -1;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else if (7 < tmpchoose) {
this.run.stop();
this.eat._visible = true;
this.eat.gotoAndPlay(1);
this.run._visible = false;
} else {
this.run._visible = true;
this.run.gotoAndPlay(1);
}
}
}
if ((this.event == "eat_end") && (this.eat._visible)) {
this.event = "";
this.eat.stop();
this.eat._visible = false;
this.run._visible = true;
this.run.gotoAndPlay(1);
}
if ((this.event == "turn_end") && (this.turn._visible)) {
this.event = "";
this.turn.stop();
this.turn._visible = false;
this.run._visible = true;
this.run.gotoAndPlay(1);
this._xscale = this._xscale * -1;
}
}
Instance of Symbol 334 MovieClip "q4" in Frame 81
onClipEvent (load) {
this.eat._visible = false;
this.run._visible = true;
this.die._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.speed = -1.5;
this.dead = false;
this.snd_die = new Sound(this);
this.snd_die.attachSound("snd_die");
this.playRoll = false;
this.die_roll._visible = false;
}
onClipEvent (enterFrame) {
if (this.run._visible) {
this._x = this._x + this.speed;
}
if (!this.dead) {
if (!this.give_milk._visible) {
if (800 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = true;
this.dead = true;
if (0 < (_root.score.score + _root.score_death)) {
_root.score.score = _root.score.score + _root.score_death;
} else {
_root.score.score = 0;
}
_root.cowsalive--;
_root.cowkiller.trigger = true;
this.die.gotoAndPlay(1);
this.snd_die.start(0);
} else if (550 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = true;
this.turn._visible = false;
this.die._visible = false;
this.full2.gotoAndPlay(1);
}
}
if (_root.game_running) {
if ((0 < this.tank) && (!this.dead)) {
if ((_root.b0.offset == 0) && ((Math.abs(this._x - _root.b0._x) < 30) && (Math.abs((25 + this._y) - _root.b0._y) < 25))) {
_root.slider0._visible = true;
if (_root.slider1._visible) {
if (_root.b1._x >= _root.b0._x) {
_root.s0tgt = -1;
_root.s0mov = true;
_root.s1tgt = 1;
_root.s1mov = true;
} else {
_root.s0tgt = 1;
_root.s0mov = true;
_root.s1tgt = -1;
_root.s1mov = true;
}
} else {
_root.s0tgt = 0;
_root.s0mov = true;
_root.s1tgt = 0;
_root.s1mov = true;
}
_root.slider0.mark._x = (this.tank * 0.55625) - 290;
if (!this.give_milk._visible) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = true;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.give_milk.gotoAndPlay(1);
_root.score.score = _root.score.score + _root.score_leeching;
this.tank = this.tank - 4;
_root.b0.is_leeching = true;
_root.b0.cowgettingleeched = this._name;
} else {
this.tank = this.tank - 4;
_root.score.score = _root.score.score + ((_root.score_leeching * _root.cowsalive) * (1 - (this.tank / 800)));
}
}
if ((_root.b1.offset == 0) && ((Math.abs(this._x - _root.b1._x) < 30) && (Math.abs((25 + this._y) - _root.b1._y) < 25))) {
_root.slider1._visible = true;
if (_root.slider0._visible) {
if (_root.b1._x >= _root.b0._x) {
_root.s0tgt = -1;
_root.s0mov = true;
_root.s1tgt = 1;
_root.s1mov = true;
} else {
_root.s0tgt = 1;
_root.s0mov = true;
_root.s1tgt = -1;
_root.s1mov = true;
}
} else {
_root.s0tgt = 0;
_root.s0mov = true;
_root.s1tgt = 0;
_root.s1mov = true;
}
_root.slider1.mark._x = (this.tank * 0.55625) - 290;
if (!this.give_milk._visible) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = true;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.give_milk.gotoAndPlay(1);
_root.score.score = _root.score.score + _root.score_leeching;
this.tank = this.tank - 4;
_root.b1.is_leeching = true;
_root.b1.cowgettingleeched = this._name;
} else {
this.tank = this.tank - 4;
_root.score.score = _root.score.score + ((_root.score_leeching * _root.cowsalive) * (1 - (this.tank / 800)));
}
}
}
if ((!this.give_milk._visible) && (!this.dead)) {
this.tank = this.tank + 2;
}
}
}
if ((this.event == "run_end") && (this.run._visible)) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
if (250 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = true;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.full1.gotoAndPlay(1);
this.event = "";
} else if (150 >= this._x) {
this.run.stop();
this.turn._visible = true;
this.speed = 1.5;
this.event = "";
this.run.stop();
this.turn._visible = true;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else if (this._x >= 680) {
this.run.stop();
this.turn._visible = true;
this.speed = -1.5;
this.event = "";
this.run.stop();
this.turn._visible = true;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else {
this.event = "";
tmpchoose = random(10);
if (tmpchoose == 1) {
this.run.stop();
this.turn._visible = true;
this.speed = this.speed * -1;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else if (7 < tmpchoose) {
this.run.stop();
this.eat._visible = true;
this.eat.gotoAndPlay(1);
this.run._visible = false;
} else {
this.run._visible = true;
this.run.gotoAndPlay(1);
}
}
}
if ((this.event == "eat_end") && (this.eat._visible)) {
this.event = "";
this.eat.stop();
this.eat._visible = false;
this.run._visible = true;
this.run.gotoAndPlay(1);
}
if ((this.event == "turn_end") && (this.turn._visible)) {
this.event = "";
this.turn.stop();
this.turn._visible = false;
this.run._visible = true;
this.run.gotoAndPlay(1);
this._xscale = this._xscale * -1;
}
}
Instance of Symbol 334 MovieClip "q3" in Frame 81
onClipEvent (load) {
this.eat._visible = false;
this.run._visible = true;
this.die._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.speed = -1.5;
this.dead = false;
this.snd_die = new Sound(this);
this.snd_die.attachSound("snd_die");
this.playRoll = false;
this.die_roll._visible = false;
}
onClipEvent (enterFrame) {
if (this.run._visible) {
this._x = this._x + this.speed;
}
if (!this.dead) {
if (!this.give_milk._visible) {
if (800 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = true;
this.dead = true;
if (0 < (_root.score.score + _root.score_death)) {
_root.score.score = _root.score.score + _root.score_death;
} else {
_root.score.score = 0;
}
_root.cowsalive--;
_root.cowkiller.trigger = true;
this.die.gotoAndPlay(1);
this.snd_die.start(0);
} else if (550 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = true;
this.turn._visible = false;
this.die._visible = false;
this.full2.gotoAndPlay(1);
}
}
if (_root.game_running) {
if ((0 < this.tank) && (!this.dead)) {
if ((_root.b0.offset == 0) && ((Math.abs(this._x - _root.b0._x) < 30) && (Math.abs((25 + this._y) - _root.b0._y) < 25))) {
_root.slider0._visible = true;
if (_root.slider1._visible) {
if (_root.b1._x >= _root.b0._x) {
_root.s0tgt = -1;
_root.s0mov = true;
_root.s1tgt = 1;
_root.s1mov = true;
} else {
_root.s0tgt = 1;
_root.s0mov = true;
_root.s1tgt = -1;
_root.s1mov = true;
}
} else {
_root.s0tgt = 0;
_root.s0mov = true;
_root.s1tgt = 0;
_root.s1mov = true;
}
_root.slider0.mark._x = (this.tank * 0.55625) - 290;
if (!this.give_milk._visible) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = true;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.give_milk.gotoAndPlay(1);
_root.score.score = _root.score.score + _root.score_leeching;
this.tank = this.tank - 4;
_root.b0.is_leeching = true;
_root.b0.cowgettingleeched = this._name;
} else {
this.tank = this.tank - 4;
_root.score.score = _root.score.score + ((_root.score_leeching * _root.cowsalive) * (1 - (this.tank / 800)));
}
}
if ((_root.b1.offset == 0) && ((Math.abs(this._x - _root.b1._x) < 30) && (Math.abs((25 + this._y) - _root.b1._y) < 25))) {
_root.slider1._visible = true;
if (_root.slider0._visible) {
if (_root.b1._x >= _root.b0._x) {
_root.s0tgt = -1;
_root.s0mov = true;
_root.s1tgt = 1;
_root.s1mov = true;
} else {
_root.s0tgt = 1;
_root.s0mov = true;
_root.s1tgt = -1;
_root.s1mov = true;
}
} else {
_root.s0tgt = 0;
_root.s0mov = true;
_root.s1tgt = 0;
_root.s1mov = true;
}
_root.slider1.mark._x = (this.tank * 0.55625) - 290;
if (!this.give_milk._visible) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = true;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.give_milk.gotoAndPlay(1);
_root.score.score = _root.score.score + _root.score_leeching;
this.tank = this.tank - 4;
_root.b1.is_leeching = true;
_root.b1.cowgettingleeched = this._name;
} else {
this.tank = this.tank - 4;
_root.score.score = _root.score.score + ((_root.score_leeching * _root.cowsalive) * (1 - (this.tank / 800)));
}
}
}
if ((!this.give_milk._visible) && (!this.dead)) {
this.tank = this.tank + 2;
}
}
}
if ((this.event == "run_end") && (this.run._visible)) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
if (250 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = true;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.full1.gotoAndPlay(1);
this.event = "";
} else if (150 >= this._x) {
this.run.stop();
this.turn._visible = true;
this.speed = 1.5;
this.event = "";
this.run.stop();
this.turn._visible = true;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else if (this._x >= 680) {
this.run.stop();
this.turn._visible = true;
this.speed = -1.5;
this.event = "";
this.run.stop();
this.turn._visible = true;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else {
this.event = "";
tmpchoose = random(10);
if (tmpchoose == 1) {
this.run.stop();
this.turn._visible = true;
this.speed = this.speed * -1;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else if (7 < tmpchoose) {
this.run.stop();
this.eat._visible = true;
this.eat.gotoAndPlay(1);
this.run._visible = false;
} else {
this.run._visible = true;
this.run.gotoAndPlay(1);
}
}
}
if ((this.event == "eat_end") && (this.eat._visible)) {
this.event = "";
this.eat.stop();
this.eat._visible = false;
this.run._visible = true;
this.run.gotoAndPlay(1);
}
if ((this.event == "turn_end") && (this.turn._visible)) {
this.event = "";
this.turn.stop();
this.turn._visible = false;
this.run._visible = true;
this.run.gotoAndPlay(1);
this._xscale = this._xscale * -1;
}
}
Instance of Symbol 334 MovieClip "q2" in Frame 81
onClipEvent (load) {
this.eat._visible = false;
this.run._visible = true;
this.die._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.speed = -1.5;
this.dead = false;
this.snd_die = new Sound(this);
this.snd_die.attachSound("snd_die");
this.playRoll = false;
this.die_roll._visible = false;
}
onClipEvent (enterFrame) {
if (this.run._visible) {
this._x = this._x + this.speed;
}
if (!this.dead) {
if (!this.give_milk._visible) {
if (800 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = true;
this.dead = true;
if (0 < (_root.score.score + _root.score_death)) {
_root.score.score = _root.score.score + _root.score_death;
} else {
_root.score.score = 0;
}
_root.cowsalive--;
_root.cowkiller.trigger = true;
this.die.gotoAndPlay(1);
this.snd_die.start(0);
} else if (550 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = true;
this.turn._visible = false;
this.die._visible = false;
this.full2.gotoAndPlay(1);
}
}
if (_root.game_running) {
if ((0 < this.tank) && (!this.dead)) {
if ((_root.b0.offset == 0) && ((Math.abs(this._x - _root.b0._x) < 30) && (Math.abs((25 + this._y) - _root.b0._y) < 25))) {
_root.slider0._visible = true;
if (_root.slider1._visible) {
if (_root.b1._x >= _root.b0._x) {
_root.s0tgt = -1;
_root.s0mov = true;
_root.s1tgt = 1;
_root.s1mov = true;
} else {
_root.s0tgt = 1;
_root.s0mov = true;
_root.s1tgt = -1;
_root.s1mov = true;
}
} else {
_root.s0tgt = 0;
_root.s0mov = true;
_root.s1tgt = 0;
_root.s1mov = true;
}
_root.slider0.mark._x = (this.tank * 0.55625) - 290;
if (!this.give_milk._visible) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = true;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.give_milk.gotoAndPlay(1);
_root.score.score = _root.score.score + _root.score_leeching;
this.tank = this.tank - 4;
_root.b0.is_leeching = true;
_root.b0.cowgettingleeched = this._name;
} else {
this.tank = this.tank - 4;
_root.score.score = _root.score.score + ((_root.score_leeching * _root.cowsalive) * (1 - (this.tank / 800)));
}
}
if ((_root.b1.offset == 0) && ((Math.abs(this._x - _root.b1._x) < 30) && (Math.abs((25 + this._y) - _root.b1._y) < 25))) {
_root.slider1._visible = true;
if (_root.slider0._visible) {
if (_root.b1._x >= _root.b0._x) {
_root.s0tgt = -1;
_root.s0mov = true;
_root.s1tgt = 1;
_root.s1mov = true;
} else {
_root.s0tgt = 1;
_root.s0mov = true;
_root.s1tgt = -1;
_root.s1mov = true;
}
} else {
_root.s0tgt = 0;
_root.s0mov = true;
_root.s1tgt = 0;
_root.s1mov = true;
}
_root.slider1.mark._x = (this.tank * 0.55625) - 290;
if (!this.give_milk._visible) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = true;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.give_milk.gotoAndPlay(1);
_root.score.score = _root.score.score + _root.score_leeching;
this.tank = this.tank - 4;
_root.b1.is_leeching = true;
_root.b1.cowgettingleeched = this._name;
} else {
this.tank = this.tank - 4;
_root.score.score = _root.score.score + ((_root.score_leeching * _root.cowsalive) * (1 - (this.tank / 800)));
}
}
}
if ((!this.give_milk._visible) && (!this.dead)) {
this.tank = this.tank + 2;
}
}
}
if ((this.event == "run_end") && (this.run._visible)) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
if (250 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = true;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.full1.gotoAndPlay(1);
this.event = "";
} else if (150 >= this._x) {
this.run.stop();
this.turn._visible = true;
this.speed = 1.5;
this.event = "";
this.run.stop();
this.turn._visible = true;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else if (this._x >= 680) {
this.run.stop();
this.turn._visible = true;
this.speed = -1.5;
this.event = "";
this.run.stop();
this.turn._visible = true;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else {
this.event = "";
tmpchoose = random(10);
if (tmpchoose == 1) {
this.run.stop();
this.turn._visible = true;
this.speed = this.speed * -1;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else if (7 < tmpchoose) {
this.run.stop();
this.eat._visible = true;
this.eat.gotoAndPlay(1);
this.run._visible = false;
} else {
this.run._visible = true;
this.run.gotoAndPlay(1);
}
}
}
if ((this.event == "eat_end") && (this.eat._visible)) {
this.event = "";
this.eat.stop();
this.eat._visible = false;
this.run._visible = true;
this.run.gotoAndPlay(1);
}
if ((this.event == "turn_end") && (this.turn._visible)) {
this.event = "";
this.turn.stop();
this.turn._visible = false;
this.run._visible = true;
this.run.gotoAndPlay(1);
this._xscale = this._xscale * -1;
}
}
Instance of Symbol 334 MovieClip "q1" in Frame 81
onClipEvent (load) {
this.eat._visible = false;
this.run._visible = true;
this.die._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.speed = -1.5;
this.dead = false;
this.snd_die = new Sound(this);
this.snd_die.attachSound("snd_die");
this.playRoll = false;
this.die_roll._visible = false;
}
onClipEvent (enterFrame) {
if (this.run._visible) {
this._x = this._x + this.speed;
}
if (!this.dead) {
if (!this.give_milk._visible) {
if (800 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = true;
this.dead = true;
if (0 < (_root.score.score + _root.score_death)) {
_root.score.score = _root.score.score + _root.score_death;
} else {
_root.score.score = 0;
}
_root.cowsalive--;
_root.cowkiller.trigger = true;
this.die.gotoAndPlay(1);
this.snd_die.start(0);
} else if (550 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = true;
this.turn._visible = false;
this.die._visible = false;
this.full2.gotoAndPlay(1);
}
}
if (_root.game_running) {
if ((0 < this.tank) && (!this.dead)) {
if ((_root.b0.offset == 0) && ((Math.abs(this._x - _root.b0._x) < 30) && (Math.abs((25 + this._y) - _root.b0._y) < 25))) {
_root.slider0._visible = true;
if (_root.slider1._visible) {
if (_root.b1._x >= _root.b0._x) {
_root.s0tgt = -1;
_root.s0mov = true;
_root.s1tgt = 1;
_root.s1mov = true;
} else {
_root.s0tgt = 1;
_root.s0mov = true;
_root.s1tgt = -1;
_root.s1mov = true;
}
} else {
_root.s0tgt = 0;
_root.s0mov = true;
_root.s1tgt = 0;
_root.s1mov = true;
}
_root.slider0.mark._x = (this.tank * 0.55625) - 290;
if (!this.give_milk._visible) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = true;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.give_milk.gotoAndPlay(1);
_root.score.score = _root.score.score + _root.score_leeching;
this.tank = this.tank - 4;
_root.b0.is_leeching = true;
_root.b0.cowgettingleeched = this._name;
} else {
this.tank = this.tank - 4;
_root.score.score = _root.score.score + ((_root.score_leeching * _root.cowsalive) * (1 - (this.tank / 800)));
}
}
if ((_root.b1.offset == 0) && ((Math.abs(this._x - _root.b1._x) < 30) && (Math.abs((25 + this._y) - _root.b1._y) < 25))) {
_root.slider1._visible = true;
if (_root.slider0._visible) {
if (_root.b1._x >= _root.b0._x) {
_root.s0tgt = -1;
_root.s0mov = true;
_root.s1tgt = 1;
_root.s1mov = true;
} else {
_root.s0tgt = 1;
_root.s0mov = true;
_root.s1tgt = -1;
_root.s1mov = true;
}
} else {
_root.s0tgt = 0;
_root.s0mov = true;
_root.s1tgt = 0;
_root.s1mov = true;
}
_root.slider1.mark._x = (this.tank * 0.55625) - 290;
if (!this.give_milk._visible) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = true;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.give_milk.gotoAndPlay(1);
_root.score.score = _root.score.score + _root.score_leeching;
this.tank = this.tank - 4;
_root.b1.is_leeching = true;
_root.b1.cowgettingleeched = this._name;
} else {
this.tank = this.tank - 4;
_root.score.score = _root.score.score + ((_root.score_leeching * _root.cowsalive) * (1 - (this.tank / 800)));
}
}
}
if ((!this.give_milk._visible) && (!this.dead)) {
this.tank = this.tank + 2;
}
}
}
if ((this.event == "run_end") && (this.run._visible)) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = false;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
if (250 < this.tank) {
this.eat._visible = false;
this.run._visible = false;
this.give_milk._visible = false;
this.full1._visible = true;
this.full2._visible = false;
this.turn._visible = false;
this.die._visible = false;
this.full1.gotoAndPlay(1);
this.event = "";
} else if (150 >= this._x) {
this.run.stop();
this.turn._visible = true;
this.speed = 1.5;
this.event = "";
this.run.stop();
this.turn._visible = true;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else if (this._x >= 680) {
this.run.stop();
this.turn._visible = true;
this.speed = -1.5;
this.event = "";
this.run.stop();
this.turn._visible = true;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else {
this.event = "";
tmpchoose = random(10);
if (tmpchoose == 1) {
this.run.stop();
this.turn._visible = true;
this.speed = this.speed * -1;
this.turn.gotoAndPlay(1);
this.run._visible = false;
} else if (7 < tmpchoose) {
this.run.stop();
this.eat._visible = true;
this.eat.gotoAndPlay(1);
this.run._visible = false;
} else {
this.run._visible = true;
this.run.gotoAndPlay(1);
}
}
}
if ((this.event == "eat_end") && (this.eat._visible)) {
this.event = "";
this.eat.stop();
this.eat._visible = false;
this.run._visible = true;
this.run.gotoAndPlay(1);
}
if ((this.event == "turn_end") && (this.turn._visible)) {
this.event = "";
this.turn.stop();
this.turn._visible = false;
this.run._visible = true;
this.run.gotoAndPlay(1);
this._xscale = this._xscale * -1;
}
}
Instance of Symbol 351 MovieClip "b0" in Frame 81
onClipEvent (load) {
this.setz._visible = true;
this.setz.gotoAndStop(16);
this.zappel._visible = false;
this.melk._visible = false;
this.posx = this._x;
this.posy = this._y;
this.offset = 0;
this.zappel.mater_yofs = this.zappel._y;
this.is_leeching = false;
this.snd_leech = new Sound(this.melk);
this.snd_leech.attachSound("snd_melken");
this.snd_leech.setVolume(50);
this.snd_catch = new Sound(this.zappel);
this.snd_catch.attachSound("snd_catch");
}
onClipEvent (enterFrame) {
if (!_root.game_running) {
if (this.melk._visible) {
this.setz._visible = true;
this.melk._visible = false;
this.melk.gotoAndPlay(1);
this.event = "";
this.snd_leech.stop();
}
}
if ((this.event == "setz_end") && (this.setz._visible)) {
this.setz.stop();
this.event = "";
if (_root.game_running && (this.is_leeching)) {
this.setz._visible = false;
this.melk._visible = true;
this.melk.gotoAndPlay(1);
this.snd_leech.start(0, 9999);
}
}
if (_parent.handmov[this._name + "_catched"]) {
this.posx = _parent.handmov._x;
if (180 >= _parent.handmov._y) {
this.posy = 180;
} else if (_parent.handmov._y >= 450) {
this.posy = 450;
} else {
this.posy = _parent.handmov._y;
}
}
if ((this.offset >= 5) && (_root.game_running)) {
this.is_leeching = false;
this.snd_leech.stop();
_root.score.score = _root.score.score + _root.score_floating;
this.setz._visible = false;
this.zappel._visible = true;
this.melk._visible = false;
} else if (this.zappel._visible) {
this.zappel._visible = false;
this.setz._visible = true;
this.setz.gotoAndPlay(1);
}
this._x = this.posx;
this._y = this.posy;
this.zappel._y = this.zappel.mater_yofs - this.offset;
this._yscale = (((this.posy - 120) / (_root._height - 120)) * 33) + 80;
this._xscale = (((this.posy - 120) / (_root._height - 120)) * 33) + 80;
}
Instance of Symbol 351 MovieClip "b1" in Frame 81
onClipEvent (load) {
this.setz._visible = true;
this.setz.gotoAndStop(16);
this.zappel._visible = false;
this.melk._visible = false;
this.posx = this._x;
this.posy = this._y;
this.offset = 0;
this.zappel.mater_yofs = this.zappel._y;
this.is_leeching = false;
this.snd_leech = new Sound(this.melk);
this.snd_leech.attachSound("snd_melken");
this.snd_leech.setVolume(50);
this.snd_catch = new Sound(this.zappel);
this.snd_catch.attachSound("snd_catch");
}
onClipEvent (enterFrame) {
if (!_root.game_running) {
if (this.melk._visible) {
this.setz._visible = true;
this.melk._visible = false;
this.melk.gotoAndPlay(1);
this.event = "";
this.snd_leech.stop();
}
}
if ((this.event == "setz_end") && (this.setz._visible)) {
this.setz.stop();
this.event = "";
if (_root.game_running && (this.is_leeching)) {
this.setz._visible = false;
this.melk._visible = true;
this.melk.gotoAndPlay(1);
this.snd_leech.start(0, 9999);
}
}
if (_parent.handmov[this._name + "_catched"]) {
this.posx = _parent.handmov._x;
if (180 >= _parent.handmov._y) {
this.posy = 180;
} else if (_parent.handmov._y >= 450) {
this.posy = 450;
} else {
this.posy = _parent.handmov._y;
}
}
if ((this.offset >= 5) && (_root.game_running)) {
this.is_leeching = false;
this.snd_leech.stop();
_root.score.score = _root.score.score + _root.score_floating;
this.setz._visible = false;
this.zappel._visible = true;
this.melk._visible = false;
} else if (this.zappel._visible) {
this.zappel._visible = false;
this.setz._visible = true;
this.setz.gotoAndPlay(1);
}
this._x = this.posx;
this._y = this.posy;
this.zappel._y = this.zappel.mater_yofs - this.offset;
this._yscale = (((this.posy - 120) / (_root._height - 120)) * 33) + 80;
this._xscale = (((this.posy - 120) / (_root._height - 120)) * 33) + 80;
}
Instance of Symbol 359 MovieClip "handmov" in Frame 81
onClipEvent (load) {
Mouse.hide();
this.offset = 0;
this.hand.master_yofs = this.hand._y;
this.shadow.master_yofs = this.shadow._y;
}
onClipEvent (enterFrame) {
stop();
if (_root.game_running) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (((_root._xmouse >= 40) && (760 >= _root._xmouse)) && ((_root._ymouse >= 120) && (460 >= _root._ymouse))) {
Mouse.hide();
} else {
Mouse.show();
}
if (_root._ymouse >= 120) {
this.hand._y = this.hand.master_yofs - offset;
this._yscale = (((_root._ymouse - 120) / (_root._height - 120)) * 33) + 67;
this._xscale = (((_root._ymouse - 120) / (_root._height - 120)) * 33) + 67;
}
}
if (_root._ymouse >= 480) {
Mouse.show();
}
if (this.moveup && (this.offset < 75)) {
this.offset = this.offset + 20;
if (this.offset >= 75) {
this.moveup = false;
}
}
if (this.movedown && (0 < this.offset)) {
this.offset = this.offset - 5;
if (0 >= this.offset) {
this.movedown = false;
}
}
if (this.b0_catched) {
_parent.b0.offset = this.offset;
}
if (this.b1_catched) {
_parent.b1.offset = this.offset;
}
if (this.b0_falling) {
if (this.offset >= 60) {
_parent.b0.offset = _parent.b0.offset - 15;
} else {
_parent.b0.offset = 0;
this.b0_falling = false;
}
}
if (this.b1_falling) {
if (this.offset >= 60) {
_parent.b1.offset = _parent.b1.offset - 15;
} else {
_parent.b1.offset = 0;
this.b1_falling = false;
}
}
}
Instance of Symbol 367 MovieClip "cowkiller" in Frame 81
onClipEvent (load) {
this.trigger = false;
this.finished = false;
this.flashing = false;
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.trigger) {
this._visible = true;
if (this.move_x) {
this._x = this._x + this.speed;
if (((this._x < this.x_end) && (this.speed < 0)) || ((this.x_end < this._x) && (0 < this.speed))) {
this.trigger = false;
if (this.loop) {
this._x = this.x_start;
this.finished = true;
} else if (this.endflash) {
this.flashing = true;
this.flashcount = 0;
} else {
this.finished = true;
this._visible = false;
}
}
}
if (this.move_y) {
this._y = this._y + this.speed;
if (((this._y < this.y_end) && (this.speed < 0)) || ((this.y_end < this._y) && (0 < this.speed))) {
this.trigger = false;
if (this.loop) {
this._y = this.y_start;
this.finished = true;
} else if (this.endflash) {
this.flashing = true;
this.flashcount = 0;
} else {
this.finished = true;
this._visible = false;
}
}
}
}
if (this.flashing) {
this.flashcount++;
if (Math.floor(Math.floor(this.flashcount / 12) % 2) == 0) {
this._visible = true;
} else {
this._visible = false;
}
if (this.flashcount >= 100) {
this.flashing = false;
this.trigger = false;
this.flashcount = 0;
this.finished = true;
this._visible = false;
}
}
}
Instance of Symbol 388 MovieClip "timeout" in Frame 81
onClipEvent (load) {
this.trigger = false;
this.finished = false;
this.flashing = false;
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.trigger) {
this._visible = true;
if (this.move_x) {
this._x = this._x + this.speed;
if (((this._x < this.x_end) && (this.speed < 0)) || ((this.x_end < this._x) && (0 < this.speed))) {
this.trigger = false;
if (this.loop) {
this._x = this.x_start;
this.finished = true;
} else if (this.endflash) {
this.flashing = true;
this.flashcount = 0;
} else {
this.finished = true;
this._visible = false;
}
}
}
if (this.move_y) {
this._y = this._y + this.speed;
if (((this._y < this.y_end) && (this.speed < 0)) || ((this.y_end < this._y) && (0 < this.speed))) {
this.trigger = false;
if (this.loop) {
this._y = this.y_start;
this.finished = true;
} else if (this.endflash) {
this.flashing = true;
this.flashcount = 0;
} else {
this.finished = true;
this._visible = false;
}
}
}
}
if (this.flashing) {
this.flashcount++;
if (Math.floor(Math.floor(this.flashcount / 12) % 2) == 0) {
this._visible = true;
} else {
this._visible = false;
}
if (this.flashcount >= 100) {
this.flashing = false;
this.trigger = false;
this.flashcount = 0;
this.finished = true;
this._visible = false;
}
}
}
Instance of Symbol 389 MovieClip "gameover" in Frame 81
onClipEvent (load) {
this.trigger = false;
this.finished = false;
this.flashing = false;
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.trigger) {
this._visible = true;
if (this.move_x) {
this._x = this._x + this.speed;
if (((this._x < this.x_end) && (this.speed < 0)) || ((this.x_end < this._x) && (0 < this.speed))) {
this.trigger = false;
if (this.loop) {
this._x = this.x_start;
this.finished = true;
} else if (this.endflash) {
this.flashing = true;
this.flashcount = 0;
} else {
this.finished = true;
this._visible = false;
}
}
}
if (this.move_y) {
this._y = this._y + this.speed;
if (((this._y < this.y_end) && (this.speed < 0)) || ((this.y_end < this._y) && (0 < this.speed))) {
this.trigger = false;
if (this.loop) {
this._y = this.y_start;
this.finished = true;
} else if (this.endflash) {
this.flashing = true;
this.flashcount = 0;
} else {
this.finished = true;
this._visible = false;
}
}
}
}
if (this.flashing) {
this.flashcount++;
if (Math.floor(Math.floor(this.flashcount / 12) % 2) == 0) {
this._visible = true;
} else {
this._visible = false;
}
if (this.flashcount >= 100) {
this.flashing = false;
this.trigger = false;
this.flashcount = 0;
this.finished = true;
this._visible = false;
}
}
}
Frame 82
_root.stop();
Instance of Symbol 399 MovieClip "scorelayer" in Frame 82
onClipEvent (load) {
_root.scorelayer._visible = true;
_root.scorelayer.actstring = "playername";
_root.scorelayer.playername_offset = 0;
_root.scorelayer.playermail_offset = 50;
this.attachMovie("txtcursor", "txtcursor", 1000);
this.txtcursor._x = _root.scorelayer.score._x - 5;
this.txtcursor._y = this.namelabel._y;
this.txtcursor._xscale = 60;
this.txtcursor._yscale = 60;
loadVariables ((_level0.highscorephp + "?action=place&score=") + _root.playerscore, this.data);
_root.game_running = false;
}
onClipEvent (enterFrame) {
actstr = _root.scorelayer.actstring;
slen = _root[actstr].length;
if (slen == 0) {
_root.scorelayer.txtcursor._x = _root.scorelayer.score._x - 5;
} else {
_root.scorelayer.txtcursor._x = (_root.scorelayer.score._x + (((slen - 1) % 25) * 20)) + 15;
}
if (actstr == "playername") {
_root.scorelayer.txtcursor._y = _root.scorelayer.namelabel._y;
} else if (slen == 0) {
_root.scorelayer.txtcursor._y = _root.scorelayer.maillabel._y;
} else {
_root.scorelayer.txtcursor._y = _root.scorelayer.maillabel._y + (35 * Math.floor((slen - 1) / 25));
}
}
Instance of Symbol 159 MovieClip [null] "datarecv" in Frame 82
onClipEvent (data) {
_root.gotoAndStop(25);
}
Instance of Symbol 400 MovieClip in Frame 89
onClipEvent (load) {
loadMovieNum ("q-board.swf", 0);
}
Frame 90
_root.stop();
Instance of Symbol 402 MovieClip in Frame 90
onClipEvent (load) {
i = 0;
while (i < 8) {
this.attachMovie("null", "ATK" + i, (i * 4) + 1);
this.attachMovie("null", "REL" + i, (i * 4) + 3);
this.attachMovie("null", "SUS" + i, (i * 4) + 2);
i++;
}
}
onClipEvent (enterFrame) {
stop();
i = 0;
while (i < 8) {
if (_root["qkey" + i].note_on) {
_root["qkey" + i]["mysnd_a_" + i].stop();
_root["qkey" + i]["mysnd_s_" + i].stop();
_root["qkey" + i]["mysnd_r_" + i].stop();
j = 0;
while (j < 8) {
if (i != j) {
_root["qkey" + j].note_off = true;
}
j++;
}
_root["qkey" + i]["mysnd_a_" + i] = new Sound(this["ATK" + i]);
_root["qkey" + i]["mysnd_a_" + i].attachSound(("attack" + i) + ".wav");
_root["qkey" + i]["mysnd_a_" + i].setVolume(100);
_root["qkey" + i]["mysnd_a_" + i].start();
_root["qkey" + i]["mysnd_s_" + i] = new Sound(this["SUS" + i]);
_root["qkey" + i]["mysnd_s_" + i].attachSound(("sustain" + i) + ".wav");
_root["qkey" + i]["mysnd_s_" + i].setVolume(0);
_root["qkey" + i]["mysnd_s_" + i].start(0, 99);
_root["qkey" + i].note_on = false;
_root["qkey" + i].phase = 1;
_root["qkey" + i].level = 100;
}
if (_root["qkey" + i].phase == 1) {
_root["qkey" + i]["mysnd_a_" + i].setVolume(_root["qkey" + i].level);
_root["qkey" + i]["mysnd_s_" + i].setVolume(100 - _root["qkey" + i].level);
_root["qkey" + i].level = _root["qkey" + i].level - 20;
if (0 >= _root["qkey" + i].level) {
_root["qkey" + i].phase = 2;
}
}
if (_root["qkey" + i].note_off) {
if (1 < _root["qkey" + i].phase) {
_root["qkey" + i]["mysnd_a_" + i].stop();
_root["qkey" + i]["mysnd_s_" + i].stop();
_root["qkey" + i]["mysnd_r_" + i] = new Sound(this["REL" + i]);
_root["qkey" + i]["mysnd_r_" + i].attachSound(("release" + i) + ".wav");
_root["qkey" + i]["mysnd_r_" + i].setVolume(100);
_root["qkey" + i]["mysnd_r_" + i].start();
_root["qkey" + i].phase = 0;
_root["qkey" + i].note_off = false;
}
}
i++;
}
}
Symbol 47 MovieClip Frame 2
if (_parent._parent.playRoll) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Instance of Symbol 45 MovieClip [null] in Symbol 47 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent.playMe) {
_parent.play();
} else {
_parent.stop();
}
}
Symbol 48 MovieClip [mkuh_sterb_roll_ab_final] Frame 2
if (_parent.playRoll) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 168 MovieClip [mkuh_sterb_roll_ab_final] Frame 2
if (_parent.playRoll) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 190 Button
on (press) {
this.is_raining = true;
}
Symbol 193 Button
on (press) {
this.is_raining = true;
}
Symbol 196 Button
on (press) {
this.is_raining = true;
}
Symbol 199 Button
on (press) {
this.is_raining = true;
}
Symbol 214 Button
on (press) {
_root.g_idlesince = getTimer();
_root.gotoAndStop(50);
}
Symbol 230 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 230 MovieClip Frame 1
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseDown) {
_parent.gotoAndStop(2);
}
onClipEvent (mouseUp) {
_parent.gotoAndStop(1);
}
onClipEvent (unload) {
Mouse.show();
}
Symbol 230 MovieClip Frame 2
stop();
Instance of Symbol 232 MovieClip "highscore_bkg" in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
stop();
_parent.attachMovie("null", "title", 0);
_parent.attachMovie("null", "text0", 1);
_parent.attachMovie("null", "text1", 2);
_parent.attachMovie("null", "text2", 3);
_parent.datarecv.ack = false;
loadVariables ((_level0.highscorephp + "?action=getList&from=1&to=3&dummy=") + getTimer(), _parent.datarecv);
_parent.title.title = "wettmelken";
i = 0;
while (i < _parent.title.title.length) {
_parent.title.attachMovie("font_" + _parent.title.title.charAt(i), "title" + i, i);
i++;
}
this.low = 100;
this.high = -330;
this.leveloffset = 45;
this.timer = 0;
this.loaded = false;
}
onClipEvent (enterFrame) {
i = 0;
while (i < _parent.title.title.length) {
_parent.title["title" + i]._x = 40 * (i - (_parent.title.title.length / 2));
_parent.title["title" + i]._y = -220;
_parent.title["title" + i]._yscale = 100 - (30 * Math.sin(((i * 15) + this.timer) / 20));
i++;
}
if (!_root.freezehighscore) {
if (1300 < this.timer) {
_parent.title._y = this.timer - 1300;
}
if (1450 < this.timer) {
_parent.title._alpha = 1550 - this.timer;
}
if (1600 < this.timer) {
_root.gotoAndStop(2);
}
}
if (this.loaded) {
i = 0;
while (i < 3) {
j = 0;
while (j < _parent["text" + i].text.length) {
if (270 >= this.timer) {
_parent["text" + i]["letter" + j]._x = (540 - (this.timer * 2)) + (30 * (j - (_parent["text" + i].text.length / 2)));
}
if (90 >= ((this.timer - (j * 10)) - (this.leveloffset * i))) {
_parent["text" + i]["letter" + j]._y = (this.low - _parent["text" + i].amp1) + (_parent["text" + i].amp1 * Math.sin((Math.PI * ((this.timer - (j * 10)) - (this.leveloffset * i))) / 180));
} else if (270 >= ((this.timer - (j * 10)) - (this.leveloffset * i))) {
_parent["text" + i]["letter" + j]._y = (this.low - _parent["text" + i].amp2) + (_parent["text" + i].amp2 * Math.sin((Math.PI * ((this.timer - (j * 10)) - (this.leveloffset * i))) / 180));
} else if (720 >= ((this.timer - (j * 10)) - (this.leveloffset * i))) {
} else if ((900 >= ((this.timer - (j * 10)) - (this.leveloffset * i))) && (!_root.freezehighscore)) {
tmp = ((this.timer - 720) - (j * 10)) - (this.leveloffset * i);
if (0 < tmp) {
_parent["text" + i]._xscale = 100 + (((800 - ((this.timer - (j * 10)) - (this.leveloffset * i))) / 10) * Math.sin(tmp));
}
} else if ((1100 >= ((this.timer - (j * 10)) - (this.leveloffset * i))) && (!_root.freezehighscore)) {
tmp = ((this.timer - 720) - (j * 10)) - (this.leveloffset * i);
if (0 < tmp) {
_parent["text" + i]._xscale = 100 + (((800 - ((this.timer - (j * 10)) - (this.leveloffset * i))) / 10) * Math.sin(tmp));
_parent["text" + i]._alpha = 1000 - ((this.timer - (j * 10)) - (this.leveloffset * i));
}
}
j++;
}
i++;
}
this.timer = this.timer + 8;
}
}
Instance of Symbol 176 MovieClip [null] "datarecv" in Symbol 233 MovieClip Frame 1
onClipEvent (data) {
n1 = 25 - (this.alias_1.length + 8);
f1 = "";
i = 0;
while (i < n1) {
f1 = f1 + ".";
i++;
}
n2 = 25 - (this.alias_2.length + 8);
f2 = "";
i = 0;
while (i < n2) {
f2 = f2 + ".";
i++;
}
n3 = 25 - (this.alias_3.length + 8);
f3 = "";
i = 0;
while (i < n3) {
f3 = f3 + ".";
i++;
}
_parent.text0.text = (this.score_1 + f1) + this.alias_1;
_parent.text1.text = (this.score_2 + f2) + this.alias_2;
_parent.text2.text = (this.score_3 + f3) + this.alias_3;
j = 0;
while (j < 5) {
_parent["text" + j].amp1 = 430;
_parent["text" + j].amp2 = 110 - (j * 40);
i = 0;
while (i < _parent["text" + j].text.length) {
_parent["text" + j].attachMovie("font_" + _parent["text" + j].text.charAt(i), "letter" + i, i);
_parent["text" + j]["letter" + i]._x = 30 * (i - (_parent["text" + j].text.length / 2));
i++;
}
j++;
}
this.ack = true;
_parent.highscore_bkg.loaded = true;
}
Symbol 239 Button
on (rollOver) {
stop();
_parent.active = true;
_parent.starve = false;
_parent._parent.snd_rollover.start();
}
on (rollOut) {
stop();
_parent.starve = true;
}
on (release) {
if (_parent._name == "select_start") {
_root.gotoAndStop(81);
}
if (_parent._name == "select_info") {
_root.gotoAndStop(80);
}
if (_parent._name == "select_highscore") {
_root.freezehighscore = true;
_root.gotoAndStop(25);
}
}
Symbol 258 Button
on (press) {
_root.g_idlesince = getTimer();
this._visible = false;
_parent.bird_explode._visible = true;
_parent.bird_explode.play(1);
}
Symbol 266 MovieClip Frame 7
stop();
Symbol 287 Button
on (press) {
_root.gotoAndStop(50);
}
Symbol 288 Button
on (release) {
_root.infopad.page = 2;
}
Symbol 290 Button
on (release) {
_root.infopad.page = 1;
}
Symbol 321 MovieClip Frame 48
_parent.event = "turn_end";
Symbol 329 MovieClip Frame 40
stop();
Symbol 332 MovieClip Frame 95
_parent.event = "eat_end";
Symbol 333 MovieClip Frame 40
_parent.event = "run_end";
Symbol 341 MovieClip Frame 5
Symbol 341 MovieClip Frame 16
_parent.event = "setz_end";
Symbol 357 Button
on (press) {
if (_root.game_running) {
_parent.moveup = true;
_parent.movedown = false;
dx = _root.b0._x - _parent._x;
dy = _root.b0._y - _parent._y;
_root.g_dbg001 = dx;
_root.g_dbg002 = dy;
if (((-50 < dy) && (dy < 20)) && ((-30 < dx) && (dx < 30))) {
_root.b0.swapDepths(4000);
_parent.b0_catched = true;
_parent.b0_falling = false;
_root.b0.snd_catch.start(random(5), 9999);
_root.score.score = _root.score.score + _root.score_pickup;
if (_root[_root.b0.cowgettingleeched].give_milk._visible) {
_root[_root.b0.cowgettingleeched].event = "run_end";
_root[_root.b0.cowgettingleeched].run._visible = true;
}
_root.slider0._visible = false;
_root.s0tgt = 0;
_root.s0mov = true;
_root.s1tgt = 0;
_root.s1mov = true;
}
dx = _root.b1._x - _parent._x;
dy = _root.b1._y - _parent._y;
_root.g_dbg001 = dx;
_root.g_dbg002 = dy;
if ((((-50 < dy) && (dy < 20)) && ((-30 < dx) && (dx < 30))) && (!_parent.b0_catched)) {
_root.b1.swapDepths(4000);
_parent.b1_catched = true;
_parent.b1_falling = false;
_root.b1.snd_catch.start(random(5), 9999);
_root.score.score = _root.score.score + _root.score_pickup;
if (_root[_root.b1.cowgettingleeched].give_milk._visible) {
_root[_root.b1.cowgettingleeched].event = "run_end";
_root[_root.b1.cowgettingleeched].run._visible = true;
}
_root.slider1._visible = false;
_root.s0tgt = 0;
_root.s0mov = true;
_root.s1tgt = 0;
_root.s1mov = true;
}
}
}
on (release) {
_parent.moveup = false;
_parent.movedown = true;
if (_parent.b0_catched) {
_parent.b0_catched = false;
_parent.b0_falling = true;
_root.b0.offset = 80;
_root.b0.swapDepths(Math.floor(_root.b0._y));
_root.b0.snd_catch.stop();
}
if (_parent.b1_catched) {
_parent.b1_catched = false;
_parent.b1_falling = true;
_root.b1.offset = 80;
_root.b1.swapDepths(Math.floor(_root.b1._y));
_root.b1.snd_catch.stop();
}
}
Symbol 390 Button
on (press) {
_root.scorelayer.actstring = "playername";
}
Symbol 391 Button
on (press) {
_root.scorelayer.actstring = "playermail";
}
Symbol 396 Button
on (press) {
actstr = _root.scorelayer.actstring;
point = new object();
point.x = _root._xmouse;
point.y = _root._ymouse;
globalToLocal(point);
tx = Math.round((point.x + 290) / 40);
ty = Math.round((point.y + 60) / 60);
toolong = false;
if (actstr == "playername") {
if (_root.playername.length >= 20) {
toolong = true;
}
} else if (_root.playermail.length >= 50) {
toolong = true;
}
if ((((tx >= 0) && (12 >= tx)) && ((ty >= 0) && (1 >= ty))) && (!toolong)) {
_root[actstr] = _root[actstr] + chr(((ty * 13) + tx) + 97);
_root.buildPlayerName();
}
if ((((tx >= 0) && (tx < 10)) && (ty == 2)) && (!toolong)) {
_root[actstr] = _root[actstr] + tx;
_root.buildPlayerName();
}
if (((tx == 10) && (ty == 2)) && (!toolong)) {
_root[actstr] = _root[actstr] + "_";
_root.buildPlayerName();
}
if (((tx == 11) && (ty == 2)) && (!toolong)) {
_root[actstr] = _root[actstr] + "-";
_root.buildPlayerName();
}
if (((tx == 12) && (ty == 2)) && (!toolong)) {
_root[actstr] = _root[actstr] + ".";
_root.buildPlayerName();
}
if (((tx == 13) && (ty == 2)) && (!toolong)) {
_root[actstr] = _root[actstr] + "@";
_root.buildPlayerName();
}
if ((tx == 14) && (ty < 2)) {
if (ty == 0) {
_root[actstr] = _root[actstr].substring(0, _root[actstr].length - 1);
_root.buildPlayerName();
}
if (ty == 1) {
if (actstr != "playermail") {
_root.scorelayer.actstring = "playermail";
} else if (!_root.scoresubmitted) {
loadVariables ((((((_level0.highscorephp + "?action=insert&alias=") + _root.playername) + "&score=") + _root.playerscore) + "&mail=") + _root.playermail, _root.datarecv);
_root.scoresubmitted = true;
}
}
}
}
Instance of Symbol 397 MovieClip "keypad" in Symbol 399 MovieClip Frame 1
onClipEvent (load) {
_root.scoresubmitted = false;
_root.q1.removeMovieClip();
_root.q2.removeMovieClip();
_root.q3.removeMovieClip();
_root.q4.removeMovieClip();
_root.q5.removeMovieClip();
_root.b0.removeMovieClip();
_root.b1.removeMovieClip();
i = 0;
while (i < 26) {
this.attachMovie("font_" + chr(i + 97), "key_" + chr(i + 97), i);
keychar = chr(i + 97);
this["key_" + keychar]._x = (Math.floor(i % 13) * 40) - 290;
this["key_" + keychar]._y = (Math.floor(i / 13) * 60) - 60;
this["key_" + keychar]._xscale = 60;
this["key_" + keychar]._yscale = 60;
i++;
}
i = 0;
while (i < 10) {
this.attachMovie("font_" + i, "key_" + i, i + 40);
keychar = i;
this["key_" + keychar]._x = (Math.floor(i % 13) * 40) - 290;
this["key_" + keychar]._y = (Math.floor(i / 13) * 60) + 60;
this["key_" + keychar]._xscale = 60;
this["key_" + keychar]._yscale = 60;
i++;
}
this.attachMovie("font_bs", "key_bs", 26);
this.key_bs._x = 270;
this.key_bs._y = -60;
this.key_bs._xscale = 60;
this.key_bs._yscale = 60;
this.attachMovie("font_crlf", "key_crlf", 27);
this.key_crlf._x = 270;
this.key_crlf._y = 0;
this.key_crlf._xscale = 60;
this.key_crlf._yscale = 60;
this.attachMovie("font__", "key__", 28);
this.key__._x = 110;
this.key__._y = 60;
this.key__._xscale = 60;
this.key__._yscale = 60;
this.attachMovie("font_-", "key_-", 29);
this["key_-"]._x = 150;
this["key_-"]._y = 60;
this["key_-"]._xscale = 60;
this["key_-"]._yscale = 60;
this.attachMovie("font_.", "key_dot", 30);
this.key_dot._x = 190;
this.key_dot._y = 60;
this.key_dot._xscale = 60;
this.key_dor._yscale = 60;
this.attachMovie("font_@", "key_@", 31);
this["key_@"]._x = 230;
this["key_@"]._y = 60;
this["key_@"]._xscale = 60;
this["key_@"]._yscale = 60;
_root.playername = "";
_root.playermail = "";
}
Instance of Symbol 160 MovieClip [null] "data" in Symbol 399 MovieClip Frame 1
onClipEvent (data) {
trace("got data");
xscore = _root.playerscore;
this.d0 = Math.floor(xscore % 10);
this.d1 = Math.floor((xscore / 10) % 10);
this.d2 = Math.floor((xscore / 100) % 10);
this.d3 = Math.floor((xscore / 1000) % 10);
this.d4 = Math.floor((xscore / 10000) % 10);
this.d5 = Math.floor((xscore / 100000) % 10);
i = 0;
while (i < 6) {
_parent.score.attachMovie("font_" + this["d" + i], "digit" + i, i);
_parent.score["digit" + i]._x = (5 - i) * 25;
_parent.score["digit" + i]._y = 0;
_parent.score["digit" + i]._xscale = 60;
_parent.score["digit" + i]._yscale = 60;
i++;
}
if (this.rank.lastIndexOf(newline) != -1) {
xrank = Number(this.rank.substr(0, this.rank.lastIndexOf(newline)));
} else {
xrank = Number(this.rank);
}
this.d0 = Math.floor(xrank % 10);
this.d1 = Math.floor((xrank / 10) % 10);
this.d2 = Math.floor((xrank / 100) % 10);
this.d3 = Math.floor((xrank / 1000) % 10);
this.d4 = Math.floor((xrank / 10000) % 10);
this.d5 = Math.floor((xrank / 100000) % 10);
i = 0;
while (i < 6) {
_parent.ranking.attachMovie("font_" + this["d" + i], "digit" + i, i + 10);
_parent.ranking["digit" + i]._x = (5 - i) * 25;
_parent.ranking["digit" + i]._y = 0;
_parent.ranking["digit" + i]._xscale = 60;
_parent.ranking["digit" + i]._yscale = 60;
i++;
}
}
Symbol 419 Button
on (press) {
this.note_off = false;
this.note_on = true;
}
on (release) {
this.note_on = false;
this.note_off = true;
}
Symbol 428 Button
on (release) {
i = 0;
while (i < 8) {
_root["qkey" + i]["mysnd_a_" + i].stop();
_root["qkey" + i]["mysnd_s_" + i].stop();
_root["qkey" + i]["mysnd_r_" + i].stop();
i++;
}
_root.gotoAndStop(1);
}