Frame 1
_root.str_statsname = "sf_olympiade";
var ExpressInstall = function () {
this.needsUpdate = ((_root.MMplayerType == undefined) ? false : true);
};
ExpressInstall.prototype = {init:function () {
if (this.needsUpdate) {
this.loadUpdater();
return(true);
}
return(false);
}, loadUpdater:function () {
System.security.allowDomain("fpdownload.macromedia.com");
this.updater = _root.createEmptyMovieClip("expressInstallHolder", 10000000);
var _self = this;
this.updater.installStatus = _self.onInstallStatus;
this.hold = this.updater.createEmptyMovieClip("hold", 1);
this.updater.onEnterFrame = function () {
if (typeof(this.hold.startUpdate) == "function") {
_self.initUpdater();
this.onEnterFrame = null;
}
};
var _local3 = Math.random();
this.hold.loadMovie("http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + _local3);
}, initUpdater:function () {
this.hold.redirectURL = _root.MMredirectURL;
this.hold.MMplayerType = _root.MMplayerType;
this.hold.MMdoctitle = _root.MMdoctitle;
this.hold.startUpdate();
}, onInstallStatus:function (msg) {
if (msg == "Download.Complete") {
} else if (msg == "Download.Cancelled") {
getURL ("javascript:alert('This content requires a more recent version of the Macromedia Flash Player.')");
} else if (msg == "Download.Failed") {
getURL ("javascript:alert('There was an error downloading the Flash Player update. Please try again later, or visit macrmedia.com to download the latest version of the Flash plugin.')");
}
}};
var ExpressInstall = new ExpressInstall();
if (ExpressInstall.needsUpdate) {
ExpressInstall.init();
stop();
}
fn_createstats = function (var_stats_id) {
statsCookie = SharedObject.getLocal("gamestat");
if (statsCookie.data.lastvisit != undefined) {
lastvisit = statsCookie.data.lastvisit;
if (int(lastvisit) != int(_root.visitor_day)) {
var_visit_id = 2;
} else {
var_visit_id = 3;
}
} else {
var_visit_id = 1;
}
_root.var_visit_id = var_visit_id;
statsCookie.data.lastvisit = int(_root.visitor_day);
statsCookie.flush();
delete statsCookie;
statsCookie = SharedObject.getLocal("gamestat");
if (statsCookie.data.lastvisit != undefined) {
} else {
var_visit_id = 0;
}
myData = new LoadVars();
myData.onLoad = function () {
};
myData.stats_id = var_stats_id;
myData.visitor_visit_id = var_visit_id;
myData.visitor_day = _root.visitor_day;
myData.visitor_useragent = _root.visitor_useragent;
myData.visitor_useragent_name = _root.visitor_useragent_name;
myData.visitor_useragent_version = _root.visitor_useragent_version;
myData.visitor_referrer = _root.visitor_referrer;
myData.visitor_ip = _root.visitor_ip;
myData.sendAndLoad("http://www.dissenter.ch/gamestats/gamestats.php", myData, "POST");
};
stop();
this.mc_header.gotoAndStop(1);
_root.ue2 = "";
if (_root.ue.toUpperCase() == "SF") {
this.mc_header.gotoAndStop(1);
_root.str_lang = "d";
_root.ue2 = _root.ue;
}
if (_root.ue.toUpperCase() == "TSR") {
this.mc_header.gotoAndStop(2);
_root.str_lang = "f";
_root.ue2 = _root.ue;
}
if (_root.ue.toUpperCase() == "RTSI") {
this.mc_header.gotoAndStop(3);
_root.str_lang = "i";
_root.ue2 = _root.ue;
}
if (_root.ue.toUpperCase() == "RTR") {
this.mc_header.gotoAndStop(4);
_root.str_lang = "r";
_root.ue2 = _root.ue;
}
if (_root.ue.toUpperCase() == "SWISSINFO") {
this.mc_header.gotoAndStop(5);
_root.str_lang = "e";
_root.ue2 = _root.ue;
}
if (_root.ue.toUpperCase() == "DRS") {
this.mc_header.gotoAndStop(6);
_root.str_lang = "d";
_root.ue2 = _root.ue;
}
Instance of Symbol 13 MovieClip "mc_blende" in Frame 1
onClipEvent (load) {
gotoAndStop(this._totalframes);
}
Frame 2
stop();
_root.str_username = "";
_root.int_timeout_showtopscore = 0;
var user1 = new Object();
var user2 = new Object();
var user3 = new Object();
var user4 = new Object();
i = 1;
while (i <= 4) {
this["user" + i].str_username = "";
this["user" + i].int_country = 0;
i++;
}
Frame 5
mc_sounds.loop_crowd = new Sound(mc_sounds);
mc_sounds.loop_crowd.attachSound("loop_crowd");
mc_sounds.snd_bodenprall = new Sound(mc_sounds);
mc_sounds.snd_bodenprall.attachSound("snd_bodenprall");
mc_sounds.snd_boing = new Sound(mc_sounds);
mc_sounds.snd_boing.attachSound("snd_boing");
mc_sounds.snd_buzzer = new Sound(mc_sounds);
mc_sounds.snd_buzzer.attachSound("snd_buzzer");
mc_sounds.snd_crash = new Sound(mc_sounds);
mc_sounds.snd_crash.attachSound("snd_crash");
mc_sounds.snd_punch = new Sound(mc_sounds);
mc_sounds.snd_punch.attachSound("snd_punch");
mc_sounds.snd_schalter = new Sound(mc_sounds);
mc_sounds.snd_schalter.attachSound("snd_schalter");
mc_sounds.snd_schritt = new Sound(mc_sounds);
mc_sounds.snd_schritt.attachSound("snd_schritt");
mc_sounds.snd_scratch = new Sound(mc_sounds);
mc_sounds.snd_scratch.attachSound("snd_scratch");
mc_sounds.snd_swoosh = new Sound(mc_sounds);
mc_sounds.snd_swoosh.attachSound("snd_swoosh");
mc_sounds.snd_trara = new Sound(mc_sounds);
mc_sounds.snd_trara.attachSound("snd_trara");
mc_sounds.snd_splash1 = new Sound(mc_sounds);
mc_sounds.snd_splash1.attachSound("snd_splash1");
mc_sounds.snd_splash2 = new Sound(mc_sounds);
mc_sounds.snd_splash2.attachSound("snd_splash2");
mc_sounds.snd_splash3 = new Sound(mc_sounds);
mc_sounds.snd_splash3.attachSound("snd_splash3");
mc_sounds.snd_splash4 = new Sound(mc_sounds);
mc_sounds.snd_splash4.attachSound("snd_splash4");
mc_sounds.snd_fanfare = new Sound(mc_sounds);
mc_sounds.snd_fanfare.attachSound("snd_fanfare");
mc_sounds.loop_chinese = new Sound(mc_sounds);
mc_sounds.loop_chinese.attachSound("loop_chinese");
mc_sounds.snd_shortshot = new Sound(mc_sounds);
mc_sounds.snd_shortshot.attachSound("snd_shortshot");
mc_sounds.loop_fluss = new Sound(mc_sounds);
mc_sounds.loop_fluss.attachSound("loop_fluss");
mc_sounds.loop_smallcrowd = new Sound(mc_sounds);
mc_sounds.loop_smallcrowd.attachSound("loop_smallcrowd");
mc_sounds.snd_smallcrowdapplause = new Sound(mc_sounds);
mc_sounds.snd_smallcrowdapplause.attachSound("snd_smallcrowdapplause");
mc_sounds.snd_fechten = new Sound(mc_sounds);
mc_sounds.snd_fechten.attachSound("snd_fechten");
mc_sounds.snd_argh = new Sound(mc_sounds);
mc_sounds.snd_argh.attachSound("snd_argh");
mc_sounds.snd_deephit = new Sound(mc_sounds);
mc_sounds.snd_deephit.attachSound("snd_deephit");
mc_sounds.snd_paddel = new Sound(mc_sounds);
mc_sounds.snd_paddel.attachSound("snd_paddel");
mc_sounds.snd_reload = new Sound(mc_sounds);
mc_sounds.snd_reload.attachSound("snd_reload");
mc_sounds.snd_shot = new Sound(mc_sounds);
mc_sounds.snd_shot.attachSound("snd_shot");
mc_sounds.loop_draussen = new Sound(mc_sounds);
mc_sounds.loop_draussen.attachSound("loop_draussen");
mc_sounds.snd_onyourmarks = new Sound(mc_sounds);
mc_sounds.snd_onyourmarks.attachSound("snd_onyourmarks");
mc_sounds.snd_getset = new Sound(mc_sounds);
mc_sounds.snd_getset.attachSound("snd_getset");
mc_sounds.snd_go = new Sound(mc_sounds);
mc_sounds.snd_go.attachSound("snd_go");
mc_sounds2.snd_horse = new Sound(mc_sounds2);
mc_sounds2.snd_horse.attachSound("snd_horse");
_global.fn_playsound = function (str_sound, int_loops) {
if (_root.int_soundon == 1) {
_root.mc_sounds["" + str_sound].start(0, int_loops);
}
};
_global.fn_playsound2 = function (str_sound, int_loops) {
if (_root.int_soundon == 1) {
_root.mc_sounds2["" + str_sound].start(0, int_loops);
}
};
_root.int_soundon = 1;
gotoAndStop ("texte");
Instance of Symbol 83 MovieClip "soundsymbol" in Frame 5
onClipEvent (load) {
if (_root.int_soundon == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
}
Frame 10
if (((((_root.str_lang != "d") && (_root.str_lang != "f")) && (_root.str_lang != "i")) && (_root.str_lang != "r")) && (_root.str_lang != "e")) {
_root.str_lang = "d";
}
if (_root.str_lang == "d") {
_root.str_training = "Eine Disziplin \u00FCben";
_root.txt_disziplinabbrechen = "Disziplin abbrechen";
_root.txt_saveerror = "Beim Speichern ist ein Fehler aufgetreten. Klicke auf 'Speichern', um die Daten zu speichern\noder 'Abbrechen', um das Resultat zu verwerfen... ";
_root.txt_btnsave = "Speichern";
_root.txt_btncancel = "Abbrechen";
_root.txt_punkte = "Punkte";
_root.txt_sprung = "Sprung";
_root.txt_zwischentotal = "Zwischentotal";
_root.txt_starten = "Spiel starten";
_root.txt_anleitung = "Anleitung";
_root.txt_highscore = "Rekorde";
_root.txt_versuch = "Versuch";
_root.txt_start = "Start";
_root.txt_weiter = "Weiter";
_root.txt_meter = "Meter";
_root.txt_uebertritt = "Ung\u00FCltig";
_root.txt_titel = "China Games";
_root.txt_nickname = "Nickname Spieler";
_root.txt_spielstarten = "Spiel starten";
_root.txt_mehrspieler = "Spieler hinzufuegen";
_root.txt_anleitung1 = "Du musst dich in acht Sportarten beweisen. Spiele alle Disziplinen am St\u00FCck oder w\u00E4hle eine einzelne Disziplin.\n\nKlicke auf 'Spiel starten', w\u00E4hle dein Land und gib deinen Nicknamen ein. Du gelangst anschliessend zur Liste der Disziplinen.";
_root.txt_anleitung2 = "Die Funktionsweise einer jeden Disziplin wird dir vor deren Start erkl\u00E4rt.\n\nMit einem Klick auf 'Spieler hinzuf\u00FCgen' in der L\u00E4nderwahl kannst du gegen deine Kollegen spielen. In diesem Modus wird abwechslungsweise am selben PC gespielt.";
_root.txt_disziplinenwahlOutput1 = "Klicke auf 'Wettkampf', um den alle Diszipline zu spielen oder w\u00E4hle aus der Liste die Disziplin aus, welche du spielen m\u00F6chtest.";
_root.txt_alle_disziplinen = "Wettkampf";
_root.txt_spielstarten = "Spiel starten";
_root.txt_speerwerfen = "Speerwerfen";
_root.txt_springreiten = "Springreiten";
_root.txt_kajak = "Kajak";
_root.txt_turmspringen = "Turmspringen";
_root.txt_tontaubenschiessen = "Tontaubenschiessen";
_root.txt_gewichtheben = "Gewichtheben";
_root.txt_fechten = "Fechten";
_root.txt_100meter = "100 Meter Sprint";
_root.txt_anleitung_speerwerfen = "Wirf den Speer so weit wie m\u00F6glich.";
_root.txt_anleitung_springreiten = "Absolviere den Kurs in m\u00F6glichst kurzer Zeit.";
_root.txt_anleitung_kajak = "Rudere zwischen den Stangen durch.";
_root.txt_anleitung_turmspringen = "Tauche nach deiner K\u00FCr m\u00F6glichst senkrecht ein.";
_root.txt_anleitung_tontaubenschiessen = "Triff die Tontauben.";
_root.txt_anleitung_gewichtheben = "Reisse und stosse das Gewicht in die H\u00F6he und halte es 5 Sekunden.";
_root.txt_anleitung_fechten = "Lande 5 Treffer bei deinem Gegner";
_root.txt_anleitung_100meter = "Absolviere die 100 Meter in schnellst-m\u00F6glicher Zeit.";
_root.txt_beschleunigen = "Beschleunigen";
_root.txt_winkeleinstellen = "Winkel einstellen";
_root.txt_werfen = "Werfen";
_root.txt_hocke = "Hocke";
_root.txt_paket = "Gebeugt";
_root.txt_strecken = "Strecken";
_root.txt_springen = "Springen";
_root.txt_zielen = "Zielen";
_root.txt_schiessen = "Schiessen";
_root.txt_richtungweisen = "Richtung weisen";
_root.txt_antreiben = "Antreiben";
_root.txt_angreifen = "Angriff";
_root.txt_zurueck = "Zur\u00FCck";
_root.txt_vor = "Vorw\u00E4rts";
_root.txt_reissen = "Reissen";
_root.txt_stossen = "Stossen";
_root.txt_ausgleich = "Ausgleichen";
_root.txt_gewicht = "Gewicht";
_root.txt_steuern = "Steuern";
_root.txt_rudern = "Rudern";
_root.txt_weltrekord = "Weltrekord";
_root.txt_tagesbestleistung = "Tagesbestleistung";
_root.txt_sieger = "Sieger";
_root.txt_nochmals = "Nochmals Spielen";
_root.txt_zumtitel = "Zum Titel";
_root.txt_herausforderung = "Fordere mit deinem Resultat einen Kollegen/eine Kollegin heraus.";
_root.txt_emailungueltig = "Die eingegebene E-Mail Adresse ist ung\u00FCltig.";
_root.txt_allesausfuellen = "Bitte f\u00FClle alle Felder aus.";
_root.txt_deinname = "Dein Name:";
_root.txt_deinmail = "Deine E-Mail Adresse:";
_root.txt_empfaengername = "Name des Empf\u00E4ngers:";
_root.txt_empfaengeremail = "E-Mail Adresse des Empf\u00E4ngers:";
_root.txt_emailsubject = " will dich in den China Games herausfordern!";
_root.txt_emailtext1 = "Hallo\n\n";
_root.txt_emailtext2 = " fordert dich unter dem Nicknamen '";
_root.txt_emailtext3 = "' in den China Games heraus.";
_root.txt_emailtext4 = "Versuche, seine/ihre Resultate zu schlagen unter http://peking2008.sf.tv/";
_root.txt_emailtext5 = "Gib dort im Feld 'Herausforderung' den folgenden Code ein: ";
_root.txt_emailtext6 = "Viel Spass";
_root.txt_herausforderungversandt = "Die Herausforderung wurde versandt.";
_root.txt_abk_meter = " m";
_root.txt_abk_kg = " kg";
_root.txt_abk_sek = " sec";
}
if (_root.str_lang == "e") {
_root.str_training = "Practice in one event";
_root.txt_disziplinabbrechen = "skip event";
_root.txt_saveerror = "Can't save data. Please press 'Save' to try again or\npress 'Cancel' to discard the scores... ";
_root.txt_btnsave = "Save";
_root.txt_btncancel = "Cancel";
_root.txt_punkte = "Points";
_root.txt_sprung = "Jump";
_root.txt_zwischentotal = "Intermediate total";
_root.txt_starten = "Start game";
_root.txt_anleitung = "Instructions";
_root.txt_highscore = "Records";
_root.txt_versuch = "Attempt";
_root.txt_start = "Start";
_root.txt_weiter = "Next";
_root.txt_meter = "Meters";
_root.txt_uebertritt = "Invalid";
_root.txt_titel = "China Games";
_root.txt_nickname = "Player nickname";
_root.txt_spielstarten = "Start game";
_root.txt_mehrspieler = "Add player";
_root.txt_anleitung1 = "Prove your skills in eight different sports. Try all of them or just one.\n\nClick on 'Start game', choose your country and type in your nickname. After this, you will be able to see the list of the different sports.";
_root.txt_anleitung2 = "Instructions on how to play are provided before starting.\n\nWith just a click on 'Add player' in the country selection zone, you can take on your friends. In this mode, players use the same computer one at a time.";
_root.txt_disziplinenwahlOutput1 = "Click on 'Competition' to participate in all sports or select one sport you would like to try from the list.";
_root.txt_alle_disziplinen = "Competition";
_root.txt_spielstarten = "Start game";
_root.txt_speerwerfen = "Javelin";
_root.txt_springreiten = "Equestrian";
_root.txt_kajak = "Kayak";
_root.txt_turmspringen = "Diving";
_root.txt_tontaubenschiessen = "Skeet";
_root.txt_gewichtheben = "Weightlifting";
_root.txt_fechten = "Fencing";
_root.txt_100meter = "100m sprint";
_root.txt_anleitung_speerwerfen = "Throw the javelin as far as you can.";
_root.txt_anleitung_springreiten = "Complete the course as fast as possible.";
_root.txt_anleitung_kajak = "Steer your way through the gates.";
_root.txt_anleitung_turmspringen = "Hit the water as straight as possible after completing your dive.";
_root.txt_anleitung_tontaubenschiessen = "Hit the clay targets.";
_root.txt_anleitung_gewichtheben = "Lift and bring the weights above your head, holding them there for five seconds.";
_root.txt_anleitung_fechten = "Touch your opponent five times";
_root.txt_anleitung_100meter = "Finish the 100 meters as fast as possible.";
_root.txt_beschleunigen = "Accelerate";
_root.txt_winkeleinstellen = "Set angle";
_root.txt_werfen = "Throw";
_root.txt_hocke = "Crouch";
_root.txt_paket = "Bend";
_root.txt_strecken = "Stretch";
_root.txt_springen = "Jump";
_root.txt_zielen = "Aim";
_root.txt_schiessen = "Fire";
_root.txt_richtungweisen = "Choose direction";
_root.txt_antreiben = "Encourage";
_root.txt_angreifen = "Attack";
_root.txt_zurueck = "Move backwards";
_root.txt_vor = "Move forward";
_root.txt_reissen = "Grab";
_root.txt_stossen = "Jerk";
_root.txt_ausgleich = "Balance";
_root.txt_gewicht = "Weight";
_root.txt_steuern = "Steer";
_root.txt_rudern = "Paddle";
_root.txt_weltrekord = "World record";
_root.txt_tagesbestleistung = "Best result of the day";
_root.txt_sieger = "Winner";
_root.txt_nochmals = "Play again";
_root.txt_zumtitel = "To the home page";
_root.txt_herausforderung = "Challenge a friend to beat your result.";
_root.txt_emailungueltig = "The given email address is invalid.";
_root.txt_allesausfuellen = "Please complete all fields.";
_root.txt_deinname = "Your name:";
_root.txt_deinmail = "Your email:";
_root.txt_empfaengername = "Recipient\u2019s name:";
_root.txt_empfaengeremail = "Recipient\u2019s email:";
_root.txt_emailsubject = "Thomas wants to challenge you at the China Games!";
_root.txt_emailtext1 = "Hello\n\n";
_root.txt_emailtext2 = "Thomas challenges you under the nickname 'Thomas1974";
_root.txt_emailtext3 = "' to take part in the China Games.";
_root.txt_emailtext4 = "Try to beat his/her result at http://sport.sf.tv/";
_root.txt_emailtext5 = "Please insert the following code in the \u201EChallenge\u201C field: ";
_root.txt_emailtext6 = "Have fun!";
_root.txt_herausforderungversandt = "Your challenge has been sent.";
_root.txt_abk_meter = " m";
_root.txt_abk_kg = " kg";
_root.txt_abk_sek = " sec";
}
if (_root.str_lang == "f") {
_root.str_training = "S'entra\u00EEner \u00E0 une discipline";
_root.txt_disziplinabbrechen = "sautez cet \u00E9preuve";
_root.txt_saveerror = "Impossible de sauver les donn\u00E9es. SVP, cliquez sur 'sauvegarder' pour essayer \u00E0 nouveau ou cliquez sur 'annuler' pour d\u00E9truire les scores";
_root.txt_btnsave = "sauvegarder";
_root.txt_btncancel = "annuler";
_root.txt_punkte = "Points";
_root.txt_sprung = "saut";
_root.txt_zwischentotal = "total interm\u00E9diaire";
_root.txt_starten = "Demarrer le jeu";
_root.txt_anleitung = "Instruction";
_root.txt_highscore = "Records";
_root.txt_versuch = "Essai";
_root.txt_start = "D\u00E9marrer";
_root.txt_weiter = "Continuer";
_root.txt_meter = "M\u00E8tre";
_root.txt_uebertritt = "pas valable";
_root.txt_titel = "Jeux de Pekin";
_root.txt_nickname = "Pseudo du joueur";
_root.txt_spielstarten = "Demarrer le jeu";
_root.txt_mehrspieler = "Ajouter un joueur";
_root.txt_anleitung1 = "Tu dois faire tes preuves dans huit disciplines. Prends part \u00E0 toutes les disciplines en une fois ou choisis une discipline apr\u00E8s l\u2019autre. \n\nClique sur \u201Ed\u00E9marrer le jeu\u201C, choisis ta nationalit\u00E9 et donne ton pseudo. Ensuite tu arrives sur la liste des disciplines.";
_root.txt_anleitung2 = "La fonction de chaque discipline t\u2019est expliqu\u00E9e avant son d\u00E9marrage. \n\nAvec un clic sur \u201Eajouter un joueur\u201C Klick dans le choix de la nationalit\u00E9 tu peux jouer contre tes amis. Dans ce mode, on peut jouer alternativement sur le m\u00EAme PC.";
_root.txt_disziplinenwahlOutput1 = "Clique sur \u201Ccomp\u00E9tition\u201C, pour jouer dans toutes les disciplines ou s\u00E9lectionne la discipline que tu souhaites dans la liste.";
_root.txt_alle_disziplinen = "Epreuve";
_root.txt_spielstarten = "Demarrer le jeu";
_root.txt_speerwerfen = "Lancer du javelot";
_root.txt_springreiten = "Saut \u00E0 cheval";
_root.txt_kajak = "Kayak";
_root.txt_turmspringen = "Plongeon";
_root.txt_tontaubenschiessen = "Ball-trap";
_root.txt_gewichtheben = "Halt\u00E9rophilie";
_root.txt_fechten = "Escrime";
_root.txt_100meter = "100 m\u00E8tres";
_root.txt_anleitung_speerwerfen = "Lance le javelot aussi loin que possible.";
_root.txt_anleitung_springreiten = "Suis le cours aussi vite que possible.";
_root.txt_anleitung_kajak = "Rame entre les piquets.";
_root.txt_anleitung_turmspringen = "Plonge aussi verticalement que possible en fonction de ta figure libre.";
_root.txt_anleitung_tontaubenschiessen = "Vise le pigeon d\u2019argile.";
_root.txt_anleitung_gewichtheben = "Soul\u00E8ve et pousse le poid en hauteur, maintien le durant 5 secondes.";
_root.txt_anleitung_fechten = "R\u00E9ussi 5 coups sur ton adversaire";
_root.txt_anleitung_100meter = "Parcours les 100 m\u00E8tres aussi vite que possible.";
_root.txt_beschleunigen = "Acc\u00E9l\u00E9rer";
_root.txt_winkeleinstellen = "R\u00E9tablir l\u2019angle";
_root.txt_werfen = "Lancer";
_root.txt_hocke = "Saut group\u00E9";
_root.txt_paket = "Pench\u00E9";
_root.txt_strecken = "Tendre";
_root.txt_springen = "Sauter";
_root.txt_zielen = "Viser";
_root.txt_schiessen = "Tirer";
_root.txt_richtungweisen = "R\u00E9tablir la direction";
_root.txt_antreiben = "Propulser";
_root.txt_angreifen = "Attaque";
_root.txt_zurueck = "en arri\u00E8re";
_root.txt_vor = "en avant";
_root.txt_reissen = "Soulever";
_root.txt_stossen = "Pousser";
_root.txt_ausgleich = "Egaliser";
_root.txt_gewicht = "Poid";
_root.txt_steuern = "guider";
_root.txt_rudern = "Ramer";
_root.txt_weltrekord = "Record mondial";
_root.txt_tagesbestleistung = "Meilleure performance du jour";
_root.txt_sieger = "Vainqueur";
_root.txt_nochmals = "Nouvelle partie";
_root.txt_zumtitel = "Vers le titre";
_root.txt_herausforderung = "D\u00E9fie tes amis avec ton r\u00E9sultat.";
_root.txt_emailungueltig = "Adresse E-Mail n\u2019est pas valable.";
_root.txt_allesausfuellen = "Rempli tous les champs.";
_root.txt_deinname = "Ton nom:";
_root.txt_deinmail = "Ton adresse E-Mail:";
_root.txt_empfaengername = "Nom du destinataire:";
_root.txt_empfaengeremail = " Adresse E-Mail du destinataire:";
_root.txt_emailsubject = "Thomas aimerait te lancer au d\u00E9fi des Jeux de P\u00E9kin !";
_root.txt_emailtext1 = "Hallo\n\n";
_root.txt_emailtext2 = "Thomas te d\u00E9fie sous le nom de 'Thomas1974";
_root.txt_emailtext3 = "' sortir des Jeux de P\u00E9kin.";
_root.txt_emailtext4 = "Essai de battre ses/leurs r\u00E9sultats sous http://sport.sf.tv/";
_root.txt_emailtext5 = "Indique le code suivant dans le champs \u201ED\u00E9fier\u201C: ";
_root.txt_emailtext6 = "Bonne chance";
_root.txt_herausforderungversandt = "Le d\u00E9fi a \u00E9t\u00E9 envoy\u00E9.";
_root.txt_abk_meter = " m";
_root.txt_abk_kg = " kg";
_root.txt_abk_sek = " sec";
}
if (_root.str_lang == "i") {
_root.str_training = "Allena una singola disciplina";
_root.txt_disziplinabbrechen = "Salta questa disciplin";
_root.txt_saveerror = "Impossibile salvare i dati. Per favore premere 'Salva' per riprovare oppure 'Cancel' per scartare i risultati..";
_root.txt_btnsave = "Salva";
_root.txt_btncancel = "Cancel";
_root.txt_punkte = "punti";
_root.txt_sprung = "Salto";
_root.txt_zwischentotal = "Totale intermedio";
_root.txt_starten = "Iniziare il gioco";
_root.txt_anleitung = "Istruzioni";
_root.txt_highscore = "Record";
_root.txt_versuch = "Tentativo";
_root.txt_start = "Inizia";
_root.txt_weiter = "Continua";
_root.txt_meter = "Metri";
_root.txt_uebertritt = "Non valido";
_root.txt_titel = "China games";
_root.txt_nickname = "Nickname del giocatore";
_root.txt_spielstarten = "Iniziare il gioco";
_root.txt_mehrspieler = "Aggiungere giocatore";
_root.txt_anleitung1 = "Ti devi destreggiare in otto discipline sportive. Giocale di fila oppure scegline una dopo l\u2019altra.\n\nClicca su 'Iniziare il gioco', scegli il tuo Paese e inserisci il tuo nickname. In seguito apparir\u00E0 la lista delle discipline.";
_root.txt_anleitung2 = "Il funzionamento di ogni disciplina ti verr\u00E0 spiegato prima dell\u2019inizio del gioco.\n\nCliccando su 'Aggiungere un giocatore' puoi giocare contro un tuo amico. In questa modalit\u00E0 puoi giocare a turno sul medesimo PC.";
_root.txt_disziplinenwahlOutput1 = "Clicca su 'Competizione' per giocare tutte le discipline una dopo l\u2019altra oppure scegli la disciplina da giocare.";
_root.txt_alle_disziplinen = "Competizione";
_root.txt_spielstarten = "Iniziare il gioco";
_root.txt_speerwerfen = "Lancio del giavellotto";
_root.txt_springreiten = "Salto con gli ostacoli";
_root.txt_kajak = "Kayak";
_root.txt_turmspringen = "Tuffi dalla piattaforma";
_root.txt_tontaubenschiessen = "Tiro al piattello";
_root.txt_gewichtheben = "Sollevamento pesi";
_root.txt_fechten = "Scherma";
_root.txt_100meter = "100 metri";
_root.txt_anleitung_speerwerfen = "Lancia il giavellotto il pi\u00F9 lontano possibile.";
_root.txt_anleitung_springreiten = "Finisci la gara nel minor tempo possibile.";
_root.txt_anleitung_kajak = "Rema tra i pali.";
_root.txt_anleitung_turmspringen = "Tuffati nel tuo stile cercando di entrare in acqua il pi\u00F9 perpendicolare possibile.";
_root.txt_anleitung_tontaubenschiessen = "Colpisci il piattello.";
_root.txt_anleitung_gewichtheben = "Solleva il peso e tienilo sollevato per 5 secondi.";
_root.txt_anleitung_fechten = "Sferza 5 stoccate al tuo avversario.";
_root.txt_anleitung_100meter = "Corri i 100 metri nel minor tempo possibile.";
_root.txt_beschleunigen = "Accelerare";
_root.txt_winkeleinstellen = "Impostare angolo";
_root.txt_werfen = "Lanciare";
_root.txt_hocke = "Salto";
_root.txt_paket = "Flettere";
_root.txt_strecken = "Stirare";
_root.txt_springen = "Saltare";
_root.txt_zielen = "Mirare";
_root.txt_schiessen = "Sparare";
_root.txt_richtungweisen = "Aggiustare la direzione";
_root.txt_antreiben = "Spingere in avanti";
_root.txt_angreifen = "Attacco";
_root.txt_zurueck = "Indietro";
_root.txt_vor = "Avanti";
_root.txt_reissen = "Strappo";
_root.txt_stossen = "Slancio";
_root.txt_ausgleich = "Equilibrio";
_root.txt_gewicht = "Peso";
_root.txt_steuern = "Virare";
_root.txt_rudern = "Remare";
_root.txt_weltrekord = "Record del mondo";
_root.txt_tagesbestleistung = "Migliore prestazione del giorno";
_root.txt_sieger = "Vincitore";
_root.txt_nochmals = "Giocare ancora";
_root.txt_zumtitel = "Al menu";
_root.txt_herausforderung = "Sfida i tuoi amici con il tuo risultato.";
_root.txt_emailungueltig = "L\u2019e-mail immessa non \u00E8 valida.";
_root.txt_allesausfuellen = "Riempire tutti i campi.";
_root.txt_deinname = "Nome:";
_root.txt_deinmail = "Indirizzo e-mail:";
_root.txt_empfaengername = "Nome del destinatario:";
_root.txt_empfaengeremail = "E-mail del destinatario:";
_root.txt_emailsubject = "Thomas vuole sfidarti in China Games!";
_root.txt_emailtext1 = "Ciao\n\n";
_root.txt_emailtext2 = "Thomas ti sfida con il nickname 'Thomas1974'";
_root.txt_emailtext3 = "' nel gioco China Games.";
_root.txt_emailtext4 = "prova a battere il suo risultato su http://sport.sf.tv/";
_root.txt_emailtext5 = "Clicca su 'sfida' e inserisci questo codice: ";
_root.txt_emailtext6 = "Buon divertimento";
_root.txt_herausforderungversandt = "La sfida \u00E8 stata inviata.";
_root.txt_abk_meter = " m";
_root.txt_abk_kg = " kg";
_root.txt_abk_sek = " sec";
}
if (_root.str_lang == "r") {
_root.str_training = "Trenar ina disciplina";
_root.txt_disziplinabbrechen = "Interrumper quell'acziun";
_root.txt_saveerror = "I na va betg d\u2019arcunar las datas. Emprova anc ina giada cun cliccar sin 'Arcunar' u clicca sin 'Annullar' per sbittar il resultat.";
_root.txt_btnsave = "Arcunar";
_root.txt_btncancel = "Annullar";
_root.txt_punkte = "Puncts";
_root.txt_sprung = "Sigl";
_root.txt_zwischentotal = "Total intermediar";
_root.txt_starten = "Cumenzar gieu";
_root.txt_anleitung = "Instrucziun";
_root.txt_highscore = "Records";
_root.txt_versuch = "Emprova";
_root.txt_start = "Partenza";
_root.txt_weiter = "Vinavant";
_root.txt_meter = "Meter";
_root.txt_uebertritt = "Nunvalaivel";
_root.txt_titel = "China Games";
_root.txt_nickname = "Num giugader";
_root.txt_spielstarten = "Cumenzar gieu";
_root.txt_mehrspieler = "Agiuntar giugader";
_root.txt_anleitung1 = "Ti stos mussar tia abilitad en otg differentas disciplinas da sport. Gioga tut ils gieus en ina u elegia ina suletta disciplina.\n\nClicca sin 'Cumenzar gieu', elegia tes pajais e tes num. Ti cuntanschas uschia tar la glista da las disciplinas.";
_root.txt_anleitung2 = "La moda da funcziun da mintga disciplina vegn mintgamai declerada avant la partenza.\n\nTar l\u2019elecziun dal pajais pos ti cun in clic sin \u2018Agiuntar giugader\u2019 giugar cunter tes collegas. En quest modus vegn giug\u00E0 al medem computer alternativamain.";
_root.txt_disziplinenwahlOutput1 = "Clicca sin 'Concurrenza' per giugar tut las disciplinas u elegia or da la glista da disciplinas tgeninas che ti vuls giugar.";
_root.txt_alle_disziplinen = "Concurrenza";
_root.txt_spielstarten = "Cumenzar gieu";
_root.txt_speerwerfen = "Bittar la lantscha";
_root.txt_springreiten = "Chavaltgar sur obstachels";
_root.txt_kajak = "Cajac";
_root.txt_turmspringen = "Sigl giu da la tur";
_root.txt_tontaubenschiessen = "Tir sin columbas d\u2019arschiglia";
_root.txt_gewichtheben = "Auzar pais";
_root.txt_fechten = "Scrima";
_root.txt_100meter = "Sprint da 100 meters";
_root.txt_anleitung_speerwerfen = "Tira la lantscha usch\u00E8 lunsch sco pussibel.";
_root.txt_anleitung_springreiten = "Frequenta il curs usch\u00E8 svelt sco pussibel.";
_root.txt_anleitung_kajak = "Rembla atras las pitgas.";
_root.txt_anleitung_turmspringen = "Sfunsa suenter tes exercizi liber usch\u00E8 vertical sco pussibel.";
_root.txt_anleitung_tontaubenschiessen = "Tutga las columbas d\u2019arschiglia.";
_root.txt_anleitung_gewichtheben = "Stgarpa e stumpla la paisa en l\u2019autezza e tegn ella 5 secundas.";
_root.txt_anleitung_fechten = "Tutga tes adversaria 5 giadas";
_root.txt_anleitung_100meter = "Frequenta ils 100 meters usch\u00E8 svelt sco pussibel.";
_root.txt_beschleunigen = "Accelerar";
_root.txt_winkeleinstellen = "Drizzar l\u2019angul";
_root.txt_werfen = "Trair";
_root.txt_hocke = "Posiziun da sez";
_root.txt_paket = "Stort";
_root.txt_strecken = "Stender";
_root.txt_springen = "Siglir";
_root.txt_zielen = "Mirar";
_root.txt_schiessen = "Sajettar";
_root.txt_richtungweisen = "Mussar direcziun";
_root.txt_antreiben = "Chatschar";
_root.txt_angreifen = "Attatga";
_root.txt_zurueck = "Enavos";
_root.txt_vor = "Enavant";
_root.txt_reissen = "Stgarpar";
_root.txt_stossen = "Stumplar";
_root.txt_ausgleich = "Gulivar";
_root.txt_gewicht = "Paisa";
_root.txt_steuern = "Diriger";
_root.txt_rudern = "Remplar";
_root.txt_weltrekord = "Record mundial";
_root.txt_tagesbestleistung = "Prestaziun maximala dal di";
_root.txt_sieger = "Victur";
_root.txt_nochmals = "Anc ina giada giugar";
_root.txt_zumtitel = "Tar il titel";
_root.txt_herausforderung = "Provochescha cun tes resultat ina da tes collegas.";
_root.txt_emailungueltig = "L\u2019adressa dad e-mail endatada n\u2019\u00E8 betg valaivla.";
_root.txt_allesausfuellen = "Per plaschair emplenir ils quadrets.";
_root.txt_deinname = "Tes num:";
_root.txt_deinmail = "Tia adressa dad e-mail:";
_root.txt_empfaengername = "Num dal retschavider:";
_root.txt_empfaengeremail = "Adressa dad e-mail dal retschavider:";
_root.txt_emailsubject = "Thomas provochescha tai ad in China Games!";
_root.txt_emailtext1 = "Hallo\n\n";
_root.txt_emailtext2 = "Thomas provochescha tai sut il num 'Thomas1974";
_root.txt_emailtext3 = "' en il China Games.";
_root.txt_emailtext4 = "Emprova da batter ses resultat sut http://sport.sf.tv/";
_root.txt_emailtext5 = "Endatescha l\u00E0 en il quadret 'Provocaziun al duel' il suandant code: ";
_root.txt_emailtext6 = "Bler spass";
_root.txt_herausforderungversandt = "La provocaziun al duel \u00E8 vegnida tramessa.";
_root.txt_abk_meter = " m";
_root.txt_abk_kg = " kg";
_root.txt_abk_sek = " sec";
}
_root.int_speerwerfen = 0;
_root.int_springreiten = 0;
_root.int_kajak = 0;
_root.int_turmspringen = 0;
_root.int_tontaubenschiessen = 0;
_root.int_gewichtheben = 0;
_root.int_fechten = 0;
_root.int_100meter = 0;
gotoAndStop ("titel");
Frame 15
stop();
_root.int_titelindex = 1;
_root.int_anzahlspieler = 0;
_root.int_spieler_am_zug = 0;
i = 1;
while (i <= 4) {
_root["str_username" + i] = "";
_root["str_country" + i] = 0;
i++;
}
i = 1;
while (i <= 4) {
j = 1;
while (j <= 8) {
_root["user" + i]["int_score" + j] = 0;
j++;
}
i++;
}
stopAllSounds();
fn_playsound("loop_chinese", 2);
Frame 20
stop();
mc_laenderwahl.outputText1.text = (_root.txt_nickname + " ") + (_root.int_anzahlspieler + 1);
mc_laenderwahl.inputText1.tabIndex = 1;
Selection.setFocus(mc_laenderwahl.inputText1);
_root.int_anzahldisziplinen_gespielt = 0;
stopAllSounds();
if (user1.str_username != "") {
mc_laenderwahl.inputText1.text = user1.str_username;
_root.int_country = int(user1.int_country);
mc_laenderwahl.mc_flagge.gotoAndStop(int(user1.int_country));
} else {
mc_laenderwahl.inputText1.text = "";
_root.int_country = 0;
}
wr = 1;
while (wr < 7) {
_root["wr_resultat" + wr] = 9999;
_root["tb_resultat" + wr] = 9999;
wr++;
}
myData = new LoadVars();
myData.load("http://80.74.149.208/chinagames/load.php");
myData.onLoad = function (succes) {
if (succes) {
if ((this.wr_resultat1 != "") && (this.wr_resultat1 != undefined)) {
_root.wr_resultat1 = (this.wr_resultat1 + " ") + _root.txt_abk_meter;
} else {
_root.wr_resultat1 = "---";
}
if ((this.wr_resultat2 != "") && (this.wr_resultat2 != undefined)) {
_root.wr_resultat2 = (this.wr_resultat2 + " ") + _root.txt_abk_kg;
} else {
_root.wr_resultat2 = "---";
}
if ((this.wr_resultat3 != "") && (this.wr_resultat3 != undefined)) {
_root.wr_resultat3 = (this.wr_resultat3 + " ") + _root.txt_abk_sek;
} else {
_root.wr_resultat3 = "---";
}
if ((this.wr_resultat4 != "") && (this.wr_resultat4 != undefined)) {
_root.wr_resultat4 = this.wr_resultat4;
} else {
_root.wr_resultat4 = "---";
}
if ((this.wr_resultat5 != "") && (this.wr_resultat5 != undefined)) {
_root.wr_resultat5 = this.wr_resultat5;
} else {
_root.wr_resultat5 = "---";
}
if ((this.wr_resultat6 != "") && (this.wr_resultat6 != undefined)) {
_root.wr_resultat6 = (this.wr_resultat6 + " ") + _root.txt_abk_sek;
} else {
_root.wr_resultat6 = "---";
}
if ((this.wr_resultat7 != "") && (this.wr_resultat7 != undefined)) {
_root.wr_resultat7 = (this.wr_resultat7 + " ") + _root.txt_abk_sek;
} else {
_root.wr_resultat7 = "---";
}
if ((this.tb_resultat1 != "") && (this.tb_resultat1 != undefined)) {
_root.tb_resultat1 = (this.tb_resultat1 + " ") + _root.txt_abk_meter;
} else {
_root.tb_resultat1 = "---";
}
if ((this.tb_resultat2 != "") && (this.tb_resultat2 != undefined)) {
_root.tb_resultat2 = (this.tb_resultat2 + " ") + _root.txt_abk_kg;
} else {
_root.tb_resultat2 = "---";
}
if ((this.tb_resultat3 != "") && (this.tb_resultat3 != undefined)) {
_root.tb_resultat3 = (this.tb_resultat3 + " ") + _root.txt_abk_sek;
} else {
_root.tb_resultat3 = "---";
}
if ((this.tb_resultat4 != "") && (this.tb_resultat4 != undefined)) {
_root.tb_resultat4 = this.tb_resultat4;
} else {
_root.tb_resultat4 = "---";
}
if ((this.tb_resultat5 != "") && (this.tb_resultat5 != undefined)) {
_root.tb_resultat5 = this.tb_resultat5;
} else {
_root.tb_resultat5 = "---";
}
if ((this.tb_resultat6 != "") && (this.tb_resultat6 != undefined)) {
_root.tb_resultat6 = (this.tb_resultat6 + " ") + _root.txt_abk_sek;
} else {
_root.tb_resultat6 = "---";
}
if ((this.tb_resultat7 != "") && (this.tb_resultat7 != undefined)) {
_root.tb_resultat7 = (this.tb_resultat7 + " ") + _root.txt_abk_sek;
} else {
_root.tb_resultat7 = "---";
}
_root.wr_resultat1num = parseFloat(this.wr_resultat1);
_root.wr_resultat2num = parseFloat(this.wr_resultat2);
_root.wr_resultat3num = parseFloat(this.wr_resultat3);
_root.wr_resultat4num = parseFloat(this.wr_resultat4);
_root.wr_resultat5num = parseFloat(this.wr_resultat5);
_root.wr_resultat6num = parseFloat(this.wr_resultat6);
_root.wr_resultat7num = parseFloat(this.wr_resultat7);
_root.tb_resultat1num = parseFloat(this.tb_resultat1);
_root.tb_resultat2num = parseFloat(this.tb_resultat2);
_root.tb_resultat3num = parseFloat(this.tb_resultat3);
_root.tb_resultat4num = parseFloat(this.tb_resultat4);
_root.tb_resultat5num = parseFloat(this.tb_resultat5);
_root.tb_resultat6num = parseFloat(this.tb_resultat6);
_root.tb_resultat7num = parseFloat(this.tb_resultat7);
i = 1;
while (i <= 7) {
if ((this["wr_resultat" + i] == undefined) || (this["wr_resultat" + i] == "")) {
this["wr_resultat" + i] = 0;
}
if ((this["tb_resultat" + i] == undefined) || (this["tb_resultat" + i] == "")) {
this["tb_resultat" + i] = 0;
}
i++;
}
wr = 1;
while (wr < 7) {
trace((("WR Disziplin " + wr) + " = ") + _root["wr_resultat" + wr]);
trace((("TB Disziplin " + wr) + " = ") + _root["tb_resultat" + wr]);
wr++;
}
} else {
trace("Error loading data");
}
};
stop();
function fn_reset_userdata() {
_root.int_spieler_am_zug = 0;
j = 1;
while (j <= 4) {
_root.mc_players["outputScore" + j].text = "";
i = 1;
while (i <= _root.int_attempts_total) {
_root["user" + j]["atempt" + i] = "---";
_root["user" + j].topScore = -1;
i++;
}
j++;
}
}
function fn_writescore(num_result) {
_root.int_new_wr = 0;
_root.int_new_tb = 0;
if (_root.int_id_disziplin == 8) {
if (num_result == 2) {
_root["user" + _root.int_spieler_am_zug].atempt1 = 0;
_root["user" + _root.int_spieler_am_zug].topScore = 0;
_root["user" + int(_root.int_spieler_am_zug + 1)].atempt1 = 500;
_root["user" + int(_root.int_spieler_am_zug + 1)].topScore = 500;
} else {
_root["user" + _root.int_spieler_am_zug].atempt1 = 500;
_root["user" + _root.int_spieler_am_zug].topScore = 500;
_root["user" + int(_root.int_spieler_am_zug + 1)].atempt1 = 0;
_root["user" + int(_root.int_spieler_am_zug + 1)].topScore = 0;
}
setTimeout(fn_update_topscores, _root.int_timeout_showtopscore);
} else {
_root.int_new_wr = 0;
_root.int_new_tb = 0;
_root.rekordindiesematempt = 0;
if (_root.int_id_disziplin == 7) {
trace("_root.int_figur1_zeit: " + _root.int_figur1_zeit);
trace("_root.int_figur2_zeit: " + _root.int_figur2_zeit);
if (_root.int_figur1_zeit == 0) {
_root.int_figur1_zeit = 99999 /* 0x01869F */;
}
if (_root.int_figur2_zeit == 0) {
_root.int_figur2_zeit = 99999 /* 0x01869F */;
}
trace("_root.int_figur1_zeit: " + _root.int_figur1_zeit);
trace("_root.int_figur2_zeit: " + _root.int_figur2_zeit);
trace((("WR: " + _root.wr_resultat7num) + " TB: ") + _root.tb_resultat7num);
_root["user" + _root.int_spieler_am_zug].atempt1 = _root.int_figur1_zeit / 1000;
_root["user" + _root.int_spieler_am_zug].topScore = _root.int_figur1_zeit / 1000;
_root["user" + int(_root.int_spieler_am_zug + 1)].atempt1 = _root.int_figur2_zeit / 1000;
_root["user" + int(_root.int_spieler_am_zug + 1)].topScore = _root.int_figur2_zeit / 1000;
trace((((((("Vergleiche: user" + _root.int_spieler_am_zug) + " mit ") + _root["user" + _root.int_spieler_am_zug].topScore) + " oder user") + (_root.int_spieler_am_zug + 1)) + " mit ") + _root["user" + (_root.int_spieler_am_zug + 1)].topScore);
if ((_root.wr_resultat7num >= _root["user" + _root.int_spieler_am_zug].topScore) || (_root.wr_resultat7num >= _root["user" + (_root.int_spieler_am_zug + 1)].topScore)) {
trace("7: NEW WORLD RECORD!!!!!!!!!!!!");
_root.int_new_wr = 1;
_root.rekordindiesematempt = 1;
if (_root[("user" + _root.int_spieler_am_zug) + 1].topScore <= _root["user" + _root.int_spieler_am_zug].topScore) {
_root.wr_resultat7num = _root["user" + (_root.int_spieler_am_zug + 1)].topScore;
} else {
_root.wr_resultat7num = _root["user" + _root.int_spieler_am_zug].topScore;
}
}
if ((_root.tb_resultat7num >= _root["user" + _root.int_spieler_am_zug].topScore) || (_root.tb_resultat7num >= _root["user" + (_root.int_spieler_am_zug + 1)].topScore)) {
trace("7: NEW DAILY RECORD!!!!!!!!!!!!");
_root.int_new_tb = 1;
_root.rekordindiesematempt = 1;
if (_root[("user" + _root.int_spieler_am_zug) + 1].topScore <= _root["user" + _root.int_spieler_am_zug].topScore) {
_root.tb_resultat7num = _root["user" + (_root.int_spieler_am_zug + 1)].topScore;
} else {
_root.tb_resultat7num = _root["user" + _root.int_spieler_am_zug].topScore;
}
}
setTimeout(fn_update_topscores, _root.int_timeout_showtopscore);
} else {
_root["user" + _root.int_spieler_am_zug]["atempt" + _root.int_attempt] = num_result;
temp_added_score = 0;
i = 1;
while (i <= _root.int_attempts_total) {
if (_root["user" + _root.int_spieler_am_zug]["atempt" + i] != "---") {
_root.rekordindiesematempt = 0;
if (_root.int_id_disziplin != 4) {
temp_num_score = parseFloat(_root["user" + _root.int_spieler_am_zug]["atempt" + i]);
if (temp_num_score > _root["user" + _root.int_spieler_am_zug].topScore) {
_root["user" + _root.int_spieler_am_zug].topScore = temp_num_score;
_root.rekordindiesematempt = 1;
trace("Top Score Neu: " + temp_num_score);
}
trace((("WR: Vergleiche " + _root["user" + _root.int_spieler_am_zug].topScore) + " mit ") + _root[("wr_resultat" + _root.int_id_disziplin) + "num"]);
trace((("TB: Vergleiche " + _root["user" + _root.int_spieler_am_zug].topScore) + " mit ") + _root[("tb_resultat" + _root.int_id_disziplin) + "num"]);
if (((_root.int_id_disziplin == 1) || (_root.int_id_disziplin == 2)) || (_root.int_id_disziplin == 5)) {
if (_root[("wr_resultat" + _root.int_id_disziplin) + "num"] <= _root["user" + _root.int_spieler_am_zug].topScore) {
trace("NEW WORLD RECORD!!!!!!!!!!!!");
_root.int_new_wr = 1;
_root[("wr_resultat" + _root.int_id_disziplin) + "num"] = _root["user" + _root.int_spieler_am_zug].topScore;
}
if (_root[("tb_resultat" + _root.int_id_disziplin) + "num"] <= _root["user" + _root.int_spieler_am_zug].topScore) {
trace("NEW DAILY RECORD!!!!!!!!!!!!");
_root.int_new_tb = 1;
_root[("tb_resultat" + _root.int_id_disziplin) + "num"] = _root["user" + _root.int_spieler_am_zug].topScore;
}
}
if ((_root.int_id_disziplin == 3) || (_root.int_id_disziplin == 6)) {
if (_root[("wr_resultat" + _root.int_id_disziplin) + "num"] >= _root["user" + _root.int_spieler_am_zug].topScore) {
trace("NEW WORLD RECORD!!!!!!!!!!!!");
_root.int_new_wr = 1;
_root[("wr_resultat" + _root.int_id_disziplin) + "num"] = _root["user" + _root.int_spieler_am_zug].topScore;
}
if (_root[("tb_resultat" + _root.int_id_disziplin) + "num"] >= _root["user" + _root.int_spieler_am_zug].topScore) {
trace("NEW DAILY RECORD!!!!!!!!!!!!");
_root.int_new_tb = 1;
_root[("tb_resultat" + _root.int_id_disziplin) + "num"] = _root["user" + _root.int_spieler_am_zug].topScore;
}
}
} else {
temp_added_score = temp_added_score + parseFloat(_root["user" + _root.int_spieler_am_zug]["atempt" + i]);
_root["user" + _root.int_spieler_am_zug].topScore = temp_added_score;
if (_root.wr_resultat4num <= _root["user" + _root.int_spieler_am_zug].topScore) {
trace("NEW WORLD RECORD!!!!!!!!!!!!");
_root.int_new_wr = 1;
_root.wr_resultat4num = _root["user" + _root.int_spieler_am_zug].topScore;
_root.rekordindiesematempt = 1;
}
if ((_root.tb_resultat4num <= _root["user" + _root.int_spieler_am_zug].topScore) && (_root["user" + _root.int_spieler_am_zug].atempt4 != 0)) {
trace("NEW DAILY RECORD!!!!!!!!!!!!");
_root.int_new_tb = 1;
_root.tb_resultat4num = _root["user" + _root.int_spieler_am_zug].topScore;
_root.rekordindiesematempt = 1;
}
if (i < 4) {
_root.int_new_wr = 0;
_root.int_new_tb = 0;
}
}
}
_root.mc_game.mc_anzeigetafel["outputText" + (i + 1)].text = _root["user" + _root.int_spieler_am_zug]["atempt" + i];
i++;
}
setTimeout(fn_update_topscores, _root.int_timeout_showtopscore);
trace((((((((("User1: " + _root.user1.atempt1) + " / ") + _root.user1.atempt2) + " / ") + _root.user1.atempt3) + " / ") + _root.user1.atempt4) + " Top: ") + _root.user1.topScore);
trace((((((("User2: " + _root.user2.atempt1) + " / ") + _root.user2.atempt2) + " / ") + _root.user2.atempt3) + " Top: ") + _root.user2.topScore);
}
}
if (_root.int_new_wr == 1) {
_root.wr_resultat1 = (_root.wr_resultat1num + " ") + _root.txt_abk_meter;
_root.wr_resultat2 = (_root.wr_resultat2num + " ") + _root.txt_abk_kg;
_root.wr_resultat3 = (_root.wr_resultat3num + " ") + _root.txt_abk_sek;
_root.wr_resultat4 = _root.wr_resultat4num;
_root.wr_resultat5 = _root.wr_resultat5num;
_root.wr_resultat6 = (_root.wr_resultat6num + " ") + _root.txt_abk_sek;
_root.wr_resultat7 = (_root.wr_resultat7num + " ") + _root.txt_abk_sek;
}
if (_root.int_new_tb == 1) {
_root.tb_resultat1 = (_root.tb_resultat1num + " ") + _root.txt_abk_meter;
_root.tb_resultat2 = (_root.tb_resultat2num + " ") + _root.txt_abk_kg;
_root.tb_resultat3 = (_root.tb_resultat3num + " ") + _root.txt_abk_sek;
_root.tb_resultat4 = _root.tb_resultat4num;
_root.tb_resultat5 = _root.tb_resultat5num;
_root.tb_resultat6 = (_root.tb_resultat6num + " ") + _root.txt_abk_sek;
_root.tb_resultat7 = (_root.tb_resultat7num + " ") + _root.txt_abk_sek;
}
if ((_root.int_new_tb == 1) || (_root.int_new_wr == 1)) {
if (_root.rekordindiesematempt == 1) {
fn_playsound("snd_fanfare", 1);
} else {
_root.int_new_wr = 0;
_root.int_new_tb = 0;
}
}
}
function fn_update_topscores() {
trace((("TopScores nachf\u00FChren 1: " + _root.user1.topScore) + " 2: ") + _root.user2.topScore);
if (_root.int_anzahlspieler == 1) {
_root.mc_players.outputScore3.text = _root.user1.topScore;
}
if (_root.int_anzahlspieler == 2) {
trace("Schreibe TopScore User 1: " + _root.user1.topScore);
trace("Schreibe TopScore User 2: " + _root.user2.topScore);
_root.mc_players.outputScore3.text = _root.user1.topScore;
_root.mc_players.outputScore4.text = _root.user2.topScore;
}
if (_root.int_anzahlspieler == 3) {
_root.mc_players.outputScore1.text = _root.user1.topScore;
_root.mc_players.outputScore2.text = _root.user2.topScore;
_root.mc_players.outputScore3.text = _root.user3.topScore;
}
if (_root.int_anzahlspieler == 4) {
_root.mc_players.outputScore1.text = _root.user1.topScore;
_root.mc_players.outputScore2.text = _root.user2.topScore;
_root.mc_players.outputScore3.text = _root.user3.topScore;
_root.mc_players.outputScore4.text = _root.user4.topScore;
}
if (_root.int_anzahlspieler > 2) {
if (parseFloat(_root.user1.topScore) < 0) {
trace("User 1 - leer");
_root.mc_players.outputScore1.text = "";
}
if (parseFloat(_root.user2.topScore) < 0) {
trace("User 2 - leer");
_root.mc_players.outputScore2.text = "";
}
if (parseFloat(_root.user3.topScore) < 0) {
_root.mc_players.outputScore3.text = "";
}
if (parseFloat(_root.user4.topScore) < 0) {
_root.mc_players.outputScore4.text = "";
}
} else {
if (parseFloat(_root.user1.topScore) < 0) {
trace("User 1 - leer");
_root.mc_players.outputScore3.text = "";
}
if (parseFloat(_root.user2.topScore) < 0) {
trace("User 2 - leer");
_root.mc_players.outputScore4.text = "";
}
}
if ((_root.int_id_disziplin == 2) && (_root.int_reissen == 1)) {
_root.user1.topScore2 = _root.user1.topScore;
_root.user2.topScore2 = _root.user2.topScore;
_root.user3.topScore2 = _root.user3.topScore;
_root.user4.topScore2 = _root.user4.topScore;
}
}
function fn_showscores() {
i = 1;
while (i <= _root.int_attempts_total) {
_root.mc_game.mc_anzeigetafel["outputText" + (i + 1)].text = _root["user" + _root.int_spieler_am_zug]["atempt" + i];
i++;
}
}
function fn_nextplayer() {
_root.int_new_wr = 0;
_root.int_new_tb = 0;
if (_root.int_id_disziplin > 6) {
if (_root.int_spieler_am_zug == 0) {
_root.int_spieler_am_zug++;
} else {
_root.int_spieler_am_zug = _root.int_spieler_am_zug + 2;
}
} else {
_root.int_spieler_am_zug++;
}
if (_root.int_spieler_am_zug > _root.int_anzahlspieler) {
_root.int_attempt++;
_root.int_spieler_am_zug = 1;
trace((("am Zug: " + _root.int_spieler_am_zug) + " von ") + _root.int_anzahlspieler);
if (_root.int_attempt > _root.int_attempts_total) {
if ((_root.int_id_disziplin == 2) && (_root.int_reissen == 1)) {
_root.user1.topScore2 = _root.user1.topScore;
_root.user2.topScore2 = _root.user2.topScore;
_root.user3.topScore2 = _root.user3.topScore;
_root.user4.topScore2 = _root.user4.topScore;
fn_reset_userdata();
_root.int_spieler_am_zug = 1;
_root.user1.topScore = _root.user1.topScore2;
_root.user2.topScore = _root.user2.topScore2;
_root.user3.topScore = _root.user3.topScore2;
_root.user4.topScore = _root.user4.topScore2;
_root.user1.int_gewicht = 150;
_root.user2.int_gewicht = 150;
_root.user3.int_gewicht = 150;
_root.user4.int_gewicht = 150;
_root.int_reissen = 0;
_root.int_attempt = 1;
} else {
Key.removeListener(myListenerKajak);
Key.removeListener(myListenerSpringreiten);
Key.removeListener(myListenerTurmspringen);
_root.mc_game.mc_anzeigetafel.gotoAndStop(4);
_root.str_gehezu = "auswertung";
_root.mc_blende.play();
}
}
}
if (_root.int_id_disziplin > 6) {
if (_root.int_spieler_am_zug < _root.int_anzahlspieler) {
_root.int_spieler_am_zug2 = _root.int_spieler_am_zug + 1;
_root.int_computergegner = 0;
} else {
_root.int_spieler_am_zug2 = 0;
_root.int_computergegner = 1;
}
}
fn_showscores();
fn_updateplayers();
}
function fn_updateplayers() {
trace("-----> Update Player");
_root.mc_players.mc_licht1.gotoAndStop(1);
_root.mc_players.mc_licht2.gotoAndStop(1);
_root.mc_players.mc_licht3.gotoAndStop(1);
_root.mc_players.mc_licht4.gotoAndStop(1);
if (_root.int_anzahlspieler < 3) {
if (_root.int_spieler_am_zug == 1) {
_root.mc_players.mc_licht3.gotoAndStop(2);
}
if (_root.int_spieler_am_zug == 2) {
_root.mc_players.mc_licht4.gotoAndStop(2);
}
} else {
if (_root.int_spieler_am_zug == 1) {
_root.mc_players.mc_licht1.gotoAndStop(2);
}
if (_root.int_spieler_am_zug == 2) {
_root.mc_players.mc_licht2.gotoAndStop(2);
}
if (_root.int_spieler_am_zug == 3) {
_root.mc_players.mc_licht3.gotoAndStop(2);
}
if (_root.int_spieler_am_zug == 4) {
_root.mc_players.mc_licht4.gotoAndStop(2);
}
}
if (_root.int_spieler_am_zug2 != 0) {
if (_root.int_anzahlspieler < 3) {
if (_root.int_spieler_am_zug == 1) {
_root.mc_players.mc_licht4.gotoAndStop(2);
}
} else {
if (_root.int_spieler_am_zug == 1) {
_root.mc_players.mc_licht2.gotoAndStop(2);
}
if (_root.int_spieler_am_zug == 2) {
_root.mc_players.mc_licht3.gotoAndStop(2);
}
if (_root.int_spieler_am_zug == 3) {
_root.mc_players.mc_licht4.gotoAndStop(2);
}
}
}
}
function fn_setplayers(int_offset) {
if ((_root.int_anzahlspieler + int_offset) == 0) {
_root.mc_players.outputText1.text = "";
_root.mc_players.outputText2.text = "";
_root.mc_players.outputText3.text = "";
_root.mc_players.outputText4.text = "";
_root.mc_players.mc_flagge1._visible = false;
_root.mc_players.mc_flagge2._visible = false;
_root.mc_players.mc_flagge3._visible = false;
_root.mc_players.mc_flagge4._visible = false;
}
if ((_root.int_anzahlspieler + int_offset) == 1) {
_root.mc_players.outputText1.text = "";
_root.mc_players.outputText2.text = "";
_root.mc_players.outputText3.text = _root.user1.str_username;
_root.mc_players.outputText4.text = "";
_root.mc_players.mc_flagge1._visible = false;
_root.mc_players.mc_flagge2._visible = false;
_root.mc_players.mc_flagge3._visible = true;
_root.mc_players.mc_flagge4._visible = false;
_root.mc_players.mc_flagge3.gotoAndStop(_root.user1.int_country + 1);
_root.mc_players.mc_licht3._visible = true;
}
if ((_root.int_anzahlspieler + int_offset) == 2) {
_root.mc_players.outputText1.text = "";
_root.mc_players.outputText2.text = "";
_root.mc_players.outputText3.text = _root.user1.str_username;
_root.mc_players.outputText4.text = _root.user2.str_username;
_root.mc_players.mc_flagge1._visible = false;
_root.mc_players.mc_flagge2._visible = false;
_root.mc_players.mc_flagge3._visible = true;
_root.mc_players.mc_flagge4._visible = true;
_root.mc_players.mc_flagge3.gotoAndStop(_root.user1.int_country + 1);
_root.mc_players.mc_flagge4.gotoAndStop(_root.user2.int_country + 1);
_root.mc_players.mc_licht3._visible = true;
_root.mc_players.mc_licht4._visible = true;
}
if ((_root.int_anzahlspieler + int_offset) == 3) {
_root.mc_players.outputText1.text = _root.user1.str_username;
_root.mc_players.outputText2.text = _root.user2.str_username;
_root.mc_players.outputText3.text = _root.user3.str_username;
_root.mc_players.outputText4.text = "";
_root.mc_players.mc_flagge1._visible = true;
_root.mc_players.mc_flagge2._visible = true;
_root.mc_players.mc_flagge3._visible = true;
_root.mc_players.mc_flagge4._visible = false;
_root.mc_players.mc_flagge1.gotoAndStop(_root.user1.int_country + 1);
_root.mc_players.mc_flagge2.gotoAndStop(_root.user2.int_country + 1);
_root.mc_players.mc_flagge3.gotoAndStop(_root.user3.int_country + 1);
_root.mc_players.mc_licht1._visible = true;
_root.mc_players.mc_licht2._visible = true;
_root.mc_players.mc_licht3._visible = true;
_root.mc_players.mc_licht4._visible = false;
}
if ((_root.int_anzahlspieler + int_offset) == 4) {
_root.mc_players.outputText1.text = _root.user1.str_username;
_root.mc_players.outputText2.text = _root.user2.str_username;
_root.mc_players.outputText3.text = _root.user3.str_username;
_root.mc_players.outputText4.text = _root.user4.str_username;
_root.mc_players.mc_flagge1._visible = true;
_root.mc_players.mc_flagge2._visible = true;
_root.mc_players.mc_flagge3._visible = true;
_root.mc_players.mc_flagge4._visible = true;
_root.mc_players.mc_flagge1.gotoAndStop(_root.user1.int_country + 1);
_root.mc_players.mc_flagge2.gotoAndStop(_root.user2.int_country + 1);
_root.mc_players.mc_flagge3.gotoAndStop(_root.user3.int_country + 1);
_root.mc_players.mc_flagge4.gotoAndStop(_root.user4.int_country + 1);
_root.mc_players.mc_licht1._visible = true;
_root.mc_players.mc_licht2._visible = true;
_root.mc_players.mc_licht3._visible = true;
_root.mc_players.mc_licht4._visible = true;
}
}
mc_players._visible = true;
_root.mc_players.outputText1.text = "";
_root.mc_players.outputText2.text = "";
_root.mc_players.outputText3.text = "";
_root.mc_players.outputText4.text = "";
_root.mc_players.outputScore1.text = "";
_root.mc_players.outputScore2.text = "";
_root.mc_players.outputScore3.text = "";
_root.mc_players.outputScore4.text = "";
_root.mc_players.mc_flagge1.mc_abdecker._visible = false;
_root.mc_players.mc_flagge2.mc_abdecker._visible = false;
_root.mc_players.mc_flagge3.mc_abdecker._visible = false;
_root.mc_players.mc_flagge4.mc_abdecker._visible = false;
_root.mc_players.mc_flagge1._visible = false;
_root.mc_players.mc_flagge2._visible = false;
_root.mc_players.mc_flagge3._visible = false;
_root.mc_players.mc_flagge4._visible = false;
_root.mc_players.mc_licht1._visible = false;
_root.mc_players.mc_licht2._visible = false;
_root.mc_players.mc_licht3._visible = false;
_root.mc_players.mc_licht4._visible = false;
j = 1;
while (j <= 4) {
_root["user" + j].topScore = 0;
j++;
}
Frame 25
stop();
j = 1;
while (j <= 4) {
i = 1;
while (i <= 8) {
_root["user" + j]["int_result" + i] = "";
_root["user" + j]["int_score" + i] = 0;
i++;
}
j++;
}
_root.int_training = 0;
_root.int_spieler_am_zug2 = 0;
_root.int_abgebrochen = 0;
Frame 30
function fn_reset_userdata() {
_root.int_spieler_am_zug = 0;
j = 1;
while (j <= 4) {
_root.mc_players["outputScore" + j].text = "";
i = 1;
while (i <= _root.int_attempts_total) {
_root["user" + j]["atempt" + i] = "---";
_root["user" + j].topScore = -1;
i++;
}
j++;
}
}
function fn_writescore(num_result) {
_root.int_new_wr = 0;
_root.int_new_tb = 0;
if (_root.int_id_disziplin == 8) {
if (num_result == 2) {
_root["user" + _root.int_spieler_am_zug].atempt1 = 0;
_root["user" + _root.int_spieler_am_zug].topScore = 0;
_root["user" + int(_root.int_spieler_am_zug + 1)].atempt1 = 500;
_root["user" + int(_root.int_spieler_am_zug + 1)].topScore = 500;
} else {
_root["user" + _root.int_spieler_am_zug].atempt1 = 500;
_root["user" + _root.int_spieler_am_zug].topScore = 500;
_root["user" + int(_root.int_spieler_am_zug + 1)].atempt1 = 0;
_root["user" + int(_root.int_spieler_am_zug + 1)].topScore = 0;
}
setTimeout(fn_update_topscores, _root.int_timeout_showtopscore);
} else {
_root.int_new_wr = 0;
_root.int_new_tb = 0;
_root.rekordindiesematempt = 0;
if (_root.int_id_disziplin == 7) {
trace("_root.int_figur1_zeit: " + _root.int_figur1_zeit);
trace("_root.int_figur2_zeit: " + _root.int_figur2_zeit);
if (_root.int_figur1_zeit == 0) {
_root.int_figur1_zeit = 99999 /* 0x01869F */;
}
if (_root.int_figur2_zeit == 0) {
_root.int_figur2_zeit = 99999 /* 0x01869F */;
}
trace("_root.int_figur1_zeit: " + _root.int_figur1_zeit);
trace("_root.int_figur2_zeit: " + _root.int_figur2_zeit);
trace((("WR: " + _root.wr_resultat7num) + " TB: ") + _root.tb_resultat7num);
_root["user" + _root.int_spieler_am_zug].atempt1 = _root.int_figur1_zeit / 1000;
_root["user" + _root.int_spieler_am_zug].topScore = _root.int_figur1_zeit / 1000;
_root["user" + int(_root.int_spieler_am_zug + 1)].atempt1 = _root.int_figur2_zeit / 1000;
_root["user" + int(_root.int_spieler_am_zug + 1)].topScore = _root.int_figur2_zeit / 1000;
trace((((((("Vergleiche: user" + _root.int_spieler_am_zug) + " mit ") + _root["user" + _root.int_spieler_am_zug].topScore) + " oder user") + (_root.int_spieler_am_zug + 1)) + " mit ") + _root["user" + (_root.int_spieler_am_zug + 1)].topScore);
if ((_root.wr_resultat7num >= _root["user" + _root.int_spieler_am_zug].topScore) || (_root.wr_resultat7num >= _root["user" + (_root.int_spieler_am_zug + 1)].topScore)) {
trace("7: NEW WORLD RECORD!!!!!!!!!!!!");
_root.int_new_wr = 1;
if (_root[("user" + _root.int_spieler_am_zug) + 1].topScore <= _root["user" + _root.int_spieler_am_zug].topScore) {
_root.wr_resultat7num = _root["user" + (_root.int_spieler_am_zug + 1)].topScore;
} else {
_root.wr_resultat7num = _root["user" + _root.int_spieler_am_zug].topScore;
}
}
if ((_root.tb_resultat7num >= _root["user" + _root.int_spieler_am_zug].topScore) || (_root.tb_resultat7num >= _root["user" + (_root.int_spieler_am_zug + 1)].topScore)) {
trace("7: NEW DAILY RECORD!!!!!!!!!!!!");
_root.int_new_tb = 1;
if (_root[("user" + _root.int_spieler_am_zug) + 1].topScore <= _root["user" + _root.int_spieler_am_zug].topScore) {
_root.tb_resultat7num = _root["user" + (_root.int_spieler_am_zug + 1)].topScore;
} else {
_root.tb_resultat7num = _root["user" + _root.int_spieler_am_zug].topScore;
}
}
setTimeout(fn_update_topscores, _root.int_timeout_showtopscore);
} else {
_root["user" + _root.int_spieler_am_zug]["atempt" + _root.int_attempt] = num_result;
temp_added_score = 0;
i = 1;
while (i <= _root.int_attempts_total) {
if (_root["user" + _root.int_spieler_am_zug]["atempt" + i] != "---") {
_root.rekordindiesematempt = 0;
if (_root.int_id_disziplin != 4) {
temp_num_score = parseFloat(_root["user" + _root.int_spieler_am_zug]["atempt" + i]);
if (temp_num_score > _root["user" + _root.int_spieler_am_zug].topScore) {
_root["user" + _root.int_spieler_am_zug].topScore = temp_num_score;
_root.rekordindiesematempt = 1;
trace("Top Score Neu: " + temp_num_score);
}
trace((("WR: Vergleiche " + _root["user" + _root.int_spieler_am_zug].topScore) + " mit ") + _root[("wr_resultat" + _root.int_id_disziplin) + "num"]);
trace((("TB: Vergleiche " + _root["user" + _root.int_spieler_am_zug].topScore) + " mit ") + _root[("tb_resultat" + _root.int_id_disziplin) + "num"]);
if (((_root.int_id_disziplin == 1) || (_root.int_id_disziplin == 2)) || (_root.int_id_disziplin == 5)) {
if (_root[("wr_resultat" + _root.int_id_disziplin) + "num"] <= _root["user" + _root.int_spieler_am_zug].topScore) {
trace("NEW WORLD RECORD!!!!!!!!!!!!");
_root.int_new_wr = 1;
_root[("wr_resultat" + _root.int_id_disziplin) + "num"] = _root["user" + _root.int_spieler_am_zug].topScore;
}
if (_root[("tb_resultat" + _root.int_id_disziplin) + "num"] <= _root["user" + _root.int_spieler_am_zug].topScore) {
trace("NEW DAILY RECORD!!!!!!!!!!!!");
_root.int_new_tb = 1;
_root[("tb_resultat" + _root.int_id_disziplin) + "num"] = _root["user" + _root.int_spieler_am_zug].topScore;
}
}
if ((_root.int_id_disziplin == 3) || (_root.int_id_disziplin == 6)) {
if (_root[("wr_resultat" + _root.int_id_disziplin) + "num"] >= _root["user" + _root.int_spieler_am_zug].topScore) {
trace("NEW WORLD RECORD!!!!!!!!!!!!");
_root.int_new_wr = 1;
_root[("wr_resultat" + _root.int_id_disziplin) + "num"] = _root["user" + _root.int_spieler_am_zug].topScore;
}
if (_root[("tb_resultat" + _root.int_id_disziplin) + "num"] >= _root["user" + _root.int_spieler_am_zug].topScore) {
trace("NEW DAILY RECORD!!!!!!!!!!!!");
_root.int_new_tb = 1;
_root[("tb_resultat" + _root.int_id_disziplin) + "num"] = _root["user" + _root.int_spieler_am_zug].topScore;
}
}
} else {
temp_added_score = temp_added_score + parseFloat(_root["user" + _root.int_spieler_am_zug]["atempt" + i]);
_root["user" + _root.int_spieler_am_zug].topScore = temp_added_score;
if (_root.wr_resultat4num <= _root["user" + _root.int_spieler_am_zug].topScore) {
trace("NEW WORLD RECORD!!!!!!!!!!!!");
_root.int_new_wr = 1;
_root.wr_resultat4num = _root["user" + _root.int_spieler_am_zug].topScore;
}
if ((_root.tb_resultat4num <= _root["user" + _root.int_spieler_am_zug].topScore) && (_root["user" + _root.int_spieler_am_zug].atempt4 != 0)) {
trace("NEW DAILY RECORD!!!!!!!!!!!!");
_root.int_new_tb = 1;
_root.tb_resultat4num = _root["user" + _root.int_spieler_am_zug].topScore;
}
if (i < 4) {
_root.int_new_wr = 0;
_root.int_new_tb = 0;
}
}
}
_root.mc_game.mc_anzeigetafel["outputText" + (i + 1)].text = _root["user" + _root.int_spieler_am_zug]["atempt" + i];
i++;
}
setTimeout(fn_update_topscores, _root.int_timeout_showtopscore);
trace((((((((("User1: " + _root.user1.atempt1) + " / ") + _root.user1.atempt2) + " / ") + _root.user1.atempt3) + " / ") + _root.user1.atempt4) + " Top: ") + _root.user1.topScore);
trace((((((("User2: " + _root.user2.atempt1) + " / ") + _root.user2.atempt2) + " / ") + _root.user2.atempt3) + " Top: ") + _root.user2.topScore);
}
}
if (_root.int_new_wr == 1) {
_root.wr_resultat1 = (_root.wr_resultat1num + " ") + _root.txt_abk_meter;
_root.wr_resultat2 = (_root.wr_resultat2num + " ") + _root.txt_abk_kg;
_root.wr_resultat3 = (_root.wr_resultat3num + " ") + _root.txt_abk_sek;
_root.wr_resultat4 = _root.wr_resultat4num;
_root.wr_resultat5 = _root.wr_resultat5num;
_root.wr_resultat6 = (_root.wr_resultat6num + " ") + _root.txt_abk_sek;
_root.wr_resultat7 = (_root.wr_resultat7num + " ") + _root.txt_abk_sek;
}
if (_root.int_new_tb == 1) {
_root.tb_resultat1 = (_root.tb_resultat1num + " ") + _root.txt_abk_meter;
_root.tb_resultat2 = (_root.tb_resultat2num + " ") + _root.txt_abk_kg;
_root.tb_resultat3 = (_root.tb_resultat3num + " ") + _root.txt_abk_sek;
_root.tb_resultat4 = _root.tb_resultat4num;
_root.tb_resultat5 = _root.tb_resultat5num;
_root.tb_resultat6 = (_root.tb_resultat6num + " ") + _root.txt_abk_sek;
_root.tb_resultat7 = (_root.tb_resultat7num + " ") + _root.txt_abk_sek;
}
if (_root.int_training == 1) {
_root.int_new_wr = 0;
_root.int_new_tb = 0;
}
if ((_root.int_new_tb == 1) || (_root.int_new_wr == 1)) {
if (_root.rekordindiesematempt == 1) {
fn_playsound("snd_fanfare", 1);
} else {
_root.int_new_wr = 0;
_root.int_new_tb = 0;
}
}
}
function fn_update_topscores() {
trace((("TopScores nachf\u00FChren 1: " + _root.user1.topScore) + " 2: ") + _root.user2.topScore);
if (_root.int_anzahlspieler == 1) {
_root.mc_players.outputScore3.text = _root.user1.topScore;
}
if (_root.int_anzahlspieler == 2) {
trace("Schreibe TopScore User 1: " + _root.user1.topScore);
trace("Schreibe TopScore User 2: " + _root.user2.topScore);
_root.mc_players.outputScore3.text = _root.user1.topScore;
_root.mc_players.outputScore4.text = _root.user2.topScore;
}
if (_root.int_anzahlspieler == 3) {
_root.mc_players.outputScore1.text = _root.user1.topScore;
_root.mc_players.outputScore2.text = _root.user2.topScore;
_root.mc_players.outputScore3.text = _root.user3.topScore;
}
if (_root.int_anzahlspieler == 4) {
_root.mc_players.outputScore1.text = _root.user1.topScore;
_root.mc_players.outputScore2.text = _root.user2.topScore;
_root.mc_players.outputScore3.text = _root.user3.topScore;
_root.mc_players.outputScore4.text = _root.user4.topScore;
}
if (_root.int_anzahlspieler > 2) {
if (parseFloat(_root.user1.topScore) < 0) {
trace("User 1 - leer");
_root.mc_players.outputScore1.text = "";
}
if (parseFloat(_root.user2.topScore) < 0) {
trace("User 2 - leer");
_root.mc_players.outputScore2.text = "";
}
if (parseFloat(_root.user3.topScore) < 0) {
_root.mc_players.outputScore3.text = "";
}
if (parseFloat(_root.user4.topScore) < 0) {
_root.mc_players.outputScore4.text = "";
}
} else {
if (parseFloat(_root.user1.topScore) < 0) {
trace("User 1 - leer");
_root.mc_players.outputScore3.text = "";
}
if (parseFloat(_root.user2.topScore) < 0) {
trace("User 2 - leer");
_root.mc_players.outputScore4.text = "";
}
}
if ((_root.int_id_disziplin == 2) && (_root.int_reissen == 1)) {
_root.user1.topScore2 = _root.user1.topScore;
_root.user2.topScore2 = _root.user2.topScore;
_root.user3.topScore2 = _root.user3.topScore;
_root.user4.topScore2 = _root.user4.topScore;
}
}
function fn_showscores() {
i = 1;
while (i <= _root.int_attempts_total) {
_root.mc_game.mc_anzeigetafel["outputText" + (i + 1)].text = _root["user" + _root.int_spieler_am_zug]["atempt" + i];
i++;
}
}
function fn_nextplayer() {
_root.int_new_wr = 0;
_root.int_new_tb = 0;
if (_root.int_id_disziplin > 6) {
if (_root.int_spieler_am_zug == 0) {
_root.int_spieler_am_zug++;
} else {
_root.int_spieler_am_zug = _root.int_spieler_am_zug + 2;
}
} else {
_root.int_spieler_am_zug++;
}
if (_root.int_spieler_am_zug > _root.int_anzahlspieler) {
_root.int_attempt++;
_root.int_spieler_am_zug = 1;
trace((("am Zug: " + _root.int_spieler_am_zug) + " von ") + _root.int_anzahlspieler);
if (_root.int_attempt > _root.int_attempts_total) {
if ((_root.int_id_disziplin == 2) && (_root.int_reissen == 1)) {
_root.user1.topScore2 = _root.user1.topScore;
_root.user2.topScore2 = _root.user2.topScore;
_root.user3.topScore2 = _root.user3.topScore;
_root.user4.topScore2 = _root.user4.topScore;
fn_reset_userdata();
_root.int_spieler_am_zug = 1;
_root.user1.topScore = _root.user1.topScore2;
_root.user2.topScore = _root.user2.topScore2;
_root.user3.topScore = _root.user3.topScore2;
_root.user4.topScore = _root.user4.topScore2;
_root.user1.int_gewicht = 150;
_root.user2.int_gewicht = 150;
_root.user3.int_gewicht = 150;
_root.user4.int_gewicht = 150;
_root.int_reissen = 0;
_root.int_attempt = 1;
} else {
Key.removeListener(myListenerKajak);
Key.removeListener(myListenerSpringreiten);
Key.removeListener(myListenerTurmspringen);
_root.mc_game.mc_anzeigetafel.gotoAndStop(4);
_root.str_gehezu = "auswertung";
_root.mc_blende.play();
}
}
}
if (_root.int_id_disziplin > 6) {
if (_root.int_spieler_am_zug < _root.int_anzahlspieler) {
_root.int_spieler_am_zug2 = _root.int_spieler_am_zug + 1;
_root.int_computergegner = 0;
} else {
_root.int_spieler_am_zug2 = 0;
_root.int_computergegner = 1;
}
}
fn_showscores();
fn_updateplayers();
}
function fn_updateplayers() {
trace("-----> Update Player");
_root.mc_players.mc_licht1.gotoAndStop(1);
_root.mc_players.mc_licht2.gotoAndStop(1);
_root.mc_players.mc_licht3.gotoAndStop(1);
_root.mc_players.mc_licht4.gotoAndStop(1);
if (_root.int_anzahlspieler < 3) {
if (_root.int_spieler_am_zug == 1) {
_root.mc_players.mc_licht3.gotoAndStop(2);
}
if (_root.int_spieler_am_zug == 2) {
_root.mc_players.mc_licht4.gotoAndStop(2);
}
} else {
if (_root.int_spieler_am_zug == 1) {
_root.mc_players.mc_licht1.gotoAndStop(2);
}
if (_root.int_spieler_am_zug == 2) {
_root.mc_players.mc_licht2.gotoAndStop(2);
}
if (_root.int_spieler_am_zug == 3) {
_root.mc_players.mc_licht3.gotoAndStop(2);
}
if (_root.int_spieler_am_zug == 4) {
_root.mc_players.mc_licht4.gotoAndStop(2);
}
}
if (_root.int_spieler_am_zug2 != 0) {
if (_root.int_anzahlspieler < 3) {
if (_root.int_spieler_am_zug == 1) {
_root.mc_players.mc_licht4.gotoAndStop(2);
}
} else {
if (_root.int_spieler_am_zug == 1) {
_root.mc_players.mc_licht2.gotoAndStop(2);
}
if (_root.int_spieler_am_zug == 2) {
_root.mc_players.mc_licht3.gotoAndStop(2);
}
if (_root.int_spieler_am_zug == 3) {
_root.mc_players.mc_licht4.gotoAndStop(2);
}
}
}
}
function fn_setplayers(int_offset) {
if ((_root.int_anzahlspieler + int_offset) == 0) {
_root.mc_players.outputText1.text = "";
_root.mc_players.outputText2.text = "";
_root.mc_players.outputText3.text = "";
_root.mc_players.outputText4.text = "";
_root.mc_players.mc_flagge1._visible = false;
_root.mc_players.mc_flagge2._visible = false;
_root.mc_players.mc_flagge3._visible = false;
_root.mc_players.mc_flagge4._visible = false;
}
if ((_root.int_anzahlspieler + int_offset) == 1) {
_root.mc_players.outputText1.text = "";
_root.mc_players.outputText2.text = "";
_root.mc_players.outputText3.text = _root.user1.str_username;
_root.mc_players.outputText4.text = "";
_root.mc_players.mc_flagge1._visible = false;
_root.mc_players.mc_flagge2._visible = false;
_root.mc_players.mc_flagge3._visible = true;
_root.mc_players.mc_flagge4._visible = false;
_root.mc_players.mc_flagge3.gotoAndStop(_root.user1.int_country + 1);
_root.mc_players.mc_licht3._visible = true;
}
if ((_root.int_anzahlspieler + int_offset) == 2) {
_root.mc_players.outputText1.text = "";
_root.mc_players.outputText2.text = "";
_root.mc_players.outputText3.text = _root.user1.str_username;
_root.mc_players.outputText4.text = _root.user2.str_username;
_root.mc_players.mc_flagge1._visible = false;
_root.mc_players.mc_flagge2._visible = false;
_root.mc_players.mc_flagge3._visible = true;
_root.mc_players.mc_flagge4._visible = true;
_root.mc_players.mc_flagge3.gotoAndStop(_root.user1.int_country + 1);
_root.mc_players.mc_flagge4.gotoAndStop(_root.user2.int_country + 1);
_root.mc_players.mc_licht3._visible = true;
_root.mc_players.mc_licht4._visible = true;
}
if ((_root.int_anzahlspieler + int_offset) == 3) {
_root.mc_players.outputText1.text = _root.user1.str_username;
_root.mc_players.outputText2.text = _root.user2.str_username;
_root.mc_players.outputText3.text = _root.user3.str_username;
_root.mc_players.outputText4.text = "";
_root.mc_players.mc_flagge1._visible = true;
_root.mc_players.mc_flagge2._visible = true;
_root.mc_players.mc_flagge3._visible = true;
_root.mc_players.mc_flagge4._visible = false;
_root.mc_players.mc_flagge1.gotoAndStop(_root.user1.int_country + 1);
_root.mc_players.mc_flagge2.gotoAndStop(_root.user2.int_country + 1);
_root.mc_players.mc_flagge3.gotoAndStop(_root.user3.int_country + 1);
_root.mc_players.mc_licht1._visible = true;
_root.mc_players.mc_licht2._visible = true;
_root.mc_players.mc_licht3._visible = true;
_root.mc_players.mc_licht4._visible = false;
}
if (_root.int_anzahlspieler == 4) {
_root.mc_players.outputText1.text = _root.user1.str_username;
_root.mc_players.outputText2.text = _root.user2.str_username;
_root.mc_players.outputText3.text = _root.user3.str_username;
_root.mc_players.outputText4.text = _root.user4.str_username;
_root.mc_players.mc_flagge1._visible = true;
_root.mc_players.mc_flagge2._visible = true;
_root.mc_players.mc_flagge3._visible = true;
_root.mc_players.mc_flagge4._visible = true;
_root.mc_players.mc_flagge1.gotoAndStop(_root.user1.int_country + 1);
_root.mc_players.mc_flagge2.gotoAndStop(_root.user2.int_country + 1);
_root.mc_players.mc_flagge3.gotoAndStop(_root.user3.int_country + 1);
_root.mc_players.mc_flagge4.gotoAndStop(_root.user4.int_country + 1);
_root.mc_players.mc_licht1._visible = true;
_root.mc_players.mc_licht2._visible = true;
_root.mc_players.mc_licht3._visible = true;
_root.mc_players.mc_licht4._visible = true;
}
}
stop();
j = 1;
while (j <= 4) {
i = 1;
while (i <= 8) {
_root["user" + j]["int_result" + i] = "";
_root["user" + j]["int_score" + i] = 0;
i++;
}
j++;
}
_root.usersave_name = _root.user1.str_username;
_root.usersave_country = _root.user1.int_country;
stopAllSounds();
_root.int_playersautoupdate = 0;
_root.int_anzahlspieler++;
_root.user1.str_username = "Player";
_root.user1.int_country = 1;
_root.fn_setplayers(0);
trace((("Spieler 1 Country: " + _root.user1.int_country) + " ANZ: ") + _root.int_anzahlspieler);
mc_players._visible = false;
_root.int_training = 1;
_root.int_spieler_am_zug2 = 0;
_root.int_abgebrochen = 0;
wr = 1;
while (wr < 7) {
_root["wr_resultat" + wr] = 9999;
_root["tb_resultat" + wr] = 9999;
wr++;
}
_root.mc_players.outputText1.text = "";
_root.mc_players.outputText2.text = "";
_root.mc_players.outputText3.text = "";
_root.mc_players.outputText4.text = "";
_root.mc_players.outputScore1.text = "";
_root.mc_players.outputScore2.text = "";
_root.mc_players.outputScore3.text = "";
_root.mc_players.outputScore4.text = "";
_root.mc_players.mc_flagge1.mc_abdecker._visible = false;
_root.mc_players.mc_flagge2.mc_abdecker._visible = false;
_root.mc_players.mc_flagge3.mc_abdecker._visible = false;
_root.mc_players.mc_flagge4.mc_abdecker._visible = false;
_root.mc_players.mc_flagge1._visible = false;
_root.mc_players.mc_flagge2._visible = false;
_root.mc_players.mc_flagge3._visible = false;
_root.mc_players.mc_flagge4._visible = false;
_root.mc_players.mc_licht1._visible = false;
_root.mc_players.mc_licht2._visible = false;
_root.mc_players.mc_licht3._visible = false;
_root.mc_players.mc_licht4._visible = false;
j = 1;
while (j <= 4) {
_root["user" + j].topScore = 0;
j++;
}
Frame 35
stop();
_root.int_anzahldisziplinen_gespielt++;
stopAllSounds();
fn_playsound("loop_crowd", 100);
Frame 40
stop();
_root.int_anzahldisziplinen_gespielt++;
stopAllSounds();
fn_playsound("loop_smallcrowd", 100);
Frame 45
stop();
_root.int_anzahldisziplinen_gespielt++;
stopAllSounds();
fn_playsound("loop_fluss", 100);
Instance of Symbol 842 MovieClip "mc_game" in Frame 45
onClipEvent (unload) {
Key.removeListener(myListenerKajak);
}
Frame 50
stop();
_root.int_anzahldisziplinen_gespielt++;
stopAllSounds();
fn_playsound("loop_smallcrowd", 100);
Instance of Symbol 901 MovieClip "mc_game" in Frame 50
onClipEvent (unload) {
Key.removeListener(myListenerTurmspringen);
}
Frame 55
stop();
_root.int_anzahldisziplinen_gespielt++;
stopAllSounds();
fn_playsound("loop_draussen", 100);
Frame 60
stop();
_root.int_anzahldisziplinen_gespielt++;
stopAllSounds();
fn_playsound("loop_smallcrowd", 100);
Instance of Symbol 1035 MovieClip "mc_game" in Frame 60
onClipEvent (unload) {
Key.removeListener(myListenerSpringreiten);
}
Frame 65
stop();
_root.int_anzahldisziplinen_gespielt++;
stopAllSounds();
fn_playsound("loop_crowd", 100);
Frame 70
stop();
_root.int_anzahldisziplinen_gespielt++;
stopAllSounds();
fn_playsound("loop_smallcrowd", 100);
Instance of Symbol 1163 MovieClip "mc_game" in Frame 70
onClipEvent (unload) {
Key.removeListener(myListenerFechten);
}
Frame 80
stop();
stopAllSounds();
Frame 85
stop();
stopAllSounds();
Frame 90
stop();
stopAllSounds();
Symbol 13 MovieClip Frame 8
if (_root.str_gehezu == "naechstedisziplin") {
_root.str_gehezu = _root.arr_disziplinen.shift();
}
_root.gotoAndStop(_root.str_gehezu);
Symbol 13 MovieClip Frame 24
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 3
_root.fn_createstats(_root.str_statsname);
_root.play();
Symbol 1193 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 1194 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 1195 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 41 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 1
_root.geladen = int(100 / (_root.getBytesTotal() / _root.getBytesLoaded()));
if (_root.getBytesTotal() == _root.getBytesLoaded()) {
gotoAndPlay (3);
}
Instance of Symbol 37 MovieClip in Symbol 42 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = int(100 / (_root.getBytesTotal() / _root.getBytesLoaded()));
}
Symbol 42 MovieClip Frame 2
gotoAndPlay (1);
Symbol 42 MovieClip Frame 5
_root.str_gehezu = "sound";
_root.mc_blende.play();
Symbol 76 MovieClip Frame 1
stop();
Symbol 82 Button
on (release) {
if (_root.int_soundon == 1) {
stopAllSounds();
_root.int_soundon = 0;
_root.soundsymbol.gotoAndStop(3);
} else {
_root.int_soundon = 1;
if (_root.int_beimspiel == 1) {
_root.mc_sounds.bringenhei.start(0, 100);
}
_root.soundsymbol.gotoAndStop(1);
}
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 2
stop();
Symbol 83 MovieClip Frame 3
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 11
fn_playsound("snd_swoosh", 1);
Symbol 140 MovieClip Frame 20
this._parent.gotoAndStop("stehenend");
_root.int_speerwerfer_rennen = 0;
stop();
Symbol 140 MovieClip Frame 22
play();
Symbol 140 MovieClip Frame 71
this._parent._parent.mc_feuer.play();
Symbol 140 MovieClip Frame 85
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 15
gotoAndPlay ("loop1");
Symbol 181 MovieClip Frame 39
fn_playsound("snd_schritt", 1);
Symbol 181 MovieClip Frame 43
gotoAndPlay ("loop2");
Symbol 181 MovieClip Frame 45
fn_playsound("snd_smallcrowdapplause", 1);
Symbol 181 MovieClip Frame 68
gotoAndPlay ("loop3");
Symbol 182 MovieClip Frame 1
play();
Symbol 182 MovieClip Frame 2
if (_parent.int_speed > 10) {
nextFrame();
}
Symbol 182 MovieClip Frame 3
play();
Symbol 182 MovieClip Frame 4
if (_parent.int_speed > 10) {
nextFrame();
}
Symbol 182 MovieClip Frame 5
play();
Symbol 182 MovieClip Frame 6
fn_playsound("snd_schritt", 1);
if (_parent.int_speed > 10) {
nextFrame();
}
Symbol 182 MovieClip Frame 7
play();
Symbol 182 MovieClip Frame 8
if (_parent.int_speed > 10) {
nextFrame();
}
Symbol 182 MovieClip Frame 9
play();
Symbol 182 MovieClip Frame 10
if (_parent.int_speed > 10) {
nextFrame();
}
Symbol 182 MovieClip Frame 11
play();
Symbol 182 MovieClip Frame 12
if (_parent.int_speed > 10) {
nextFrame();
}
Symbol 182 MovieClip Frame 13
fn_playsound("snd_schritt", 1);
play();
Symbol 182 MovieClip Frame 14
if (_parent.int_speed > 10) {
nextFrame();
}
Symbol 182 MovieClip Frame 15
play();
Symbol 182 MovieClip Frame 16
if (_parent.int_speed > 10) {
nextFrame();
}
Symbol 182 MovieClip Frame 17
if (_root.int_speerwerfer_rennen == 1) {
gotoAndPlay (1);
}
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 15
stop();
Symbol 196 MovieClip Frame 22
stop();
Symbol 196 MovieClip Frame 23
fn_playsound("snd_scratch", 1);
Symbol 196 MovieClip Frame 29
if (_root.int_startknopfpressed == 0) {
_parent.gotoAndStop(_root.int_titelindex);
gotoAndPlay (13);
} else {
stop();
}
Symbol 201 Button
on (release) {
fn_release_action();
}
on (rollOver) {
fn_playsound("snd_schalter", 1);
}
Symbol 206 Button
on (release) {
_root.str_gehezu = "training";
_root.mc_blende.play();
}
on (rollOver) {
fn_playsound("snd_schalter", 1);
}
Symbol 210 Button
on (release) {
_root.str_lang = "f";
_root.gotoAndPlay("texte");
}
Symbol 211 Button
on (release) {
_root.str_lang = "i";
_root.gotoAndPlay("texte");
}
Symbol 212 Button
on (release) {
_root.str_lang = "r";
_root.gotoAndPlay("texte");
}
Symbol 213 Button
on (release) {
_root.str_lang = "e";
_root.gotoAndPlay("texte");
}
Symbol 215 Button
on (release) {
_root.str_lang = "d";
_root.gotoAndPlay("texte");
}
Symbol 255 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 2
stop();
Symbol 286 MovieClip Frame 3
stop();
Symbol 286 MovieClip Frame 4
stop();
Symbol 286 MovieClip Frame 5
stop();
Symbol 286 MovieClip Frame 6
stop();
Symbol 286 MovieClip Frame 7
stop();
Symbol 286 MovieClip Frame 8
stop();
Symbol 286 MovieClip Frame 9
stop();
stop();
Symbol 286 MovieClip Frame 10
stop();
Symbol 286 MovieClip Frame 11
stop();
Symbol 286 MovieClip Frame 12
stop();
Symbol 286 MovieClip Frame 13
stop();
Symbol 286 MovieClip Frame 14
stop();
stop();
Symbol 286 MovieClip Frame 15
stop();
Symbol 286 MovieClip Frame 16
stop();
Symbol 286 MovieClip Frame 17
stop();
Symbol 286 MovieClip Frame 18
stop();
Symbol 286 MovieClip Frame 19
stop();
Symbol 286 MovieClip Frame 20
stop();
Symbol 286 MovieClip Frame 21
stop();
Symbol 286 MovieClip Frame 22
stop();
Symbol 286 MovieClip Frame 23
stop();
Symbol 286 MovieClip Frame 24
stop();
Symbol 286 MovieClip Frame 25
stop();
Symbol 286 MovieClip Frame 26
stop();
Symbol 286 MovieClip Frame 27
stop();
Symbol 286 MovieClip Frame 28
stop();
Symbol 286 MovieClip Frame 29
stop();
Symbol 317 Button
on (release) {
gotoAndStop (2);
}
Symbol 341 Button
on (release) {
gotoAndStop (1);
}
Symbol 342 MovieClip Frame 1
stop();
i = 1;
while (i <= 7) {
this["mc_flag" + i].gotoAndStop(1);
this["mc_flag" + i].mc_abdecker._visible = 0;
i++;
}
i = 1;
while (i <= 7) {
this["mc_flag" + i].gotoAndStop(int(_root["wr_flag" + i]) + 1);
this["mc_flag" + i].mc_abdecker._visible = 0;
i++;
}
Symbol 342 MovieClip Frame 2
stop();
i = 1;
while (i <= 7) {
this["mc_flag" + i].gotoAndStop(1);
this["mc_flag" + i].mc_abdecker._visible = 0;
i++;
}
i = 1;
while (i <= 7) {
this["mc_flag" + i].gotoAndStop(int(_root["tb_flag" + i]) + 1);
this["mc_flag" + i].mc_abdecker._visible = 0;
i++;
}
Symbol 344 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 1
myData = new LoadVars();
myData.load("http://80.74.149.208/chinagames/load.php?rnd=" + random(99999));
myData.onLoad = function (succes) {
if (succes) {
_root.hs_count = this.count;
i = 1;
while (i <= _root.hs_count) {
_root["hs_nickname" + i] = this["nickname" + i];
_root["hs_country" + i] = this["country" + i];
_root["hs_totalpoints" + i] = this["totalpoints" + i];
i++;
}
if ((this.wr_resultat1 != "") && (this.wr_resultat1 != undefined)) {
_root.wr_resultat1 = (this.wr_resultat1 + " ") + _root.txt_abk_meter;
} else {
_root.wr_resultat1 = "---";
}
if ((this.wr_resultat2 != "") && (this.wr_resultat2 != undefined)) {
_root.wr_resultat2 = (this.wr_resultat2 + " ") + _root.txt_abk_kg;
} else {
_root.wr_resultat2 = "---";
}
if ((this.wr_resultat3 != "") && (this.wr_resultat3 != undefined)) {
_root.wr_resultat3 = (this.wr_resultat3 + " ") + _root.txt_abk_sek;
} else {
_root.wr_resultat3 = "---";
}
if ((this.wr_resultat4 != "") && (this.wr_resultat4 != undefined)) {
_root.wr_resultat4 = this.wr_resultat4;
} else {
_root.wr_resultat4 = "---";
}
if ((this.wr_resultat5 != "") && (this.wr_resultat5 != undefined)) {
_root.wr_resultat5 = this.wr_resultat5;
} else {
_root.wr_resultat5 = "---";
}
if ((this.wr_resultat6 != "") && (this.wr_resultat6 != undefined)) {
_root.wr_resultat6 = (this.wr_resultat6 + " ") + _root.txt_abk_sek;
} else {
_root.wr_resultat6 = "---";
}
if ((this.wr_resultat7 != "") && (this.wr_resultat7 != undefined)) {
_root.wr_resultat7 = (this.wr_resultat7 + " ") + _root.txt_abk_sek;
} else {
_root.wr_resultat7 = "---";
}
i = 1;
while (i <= 7) {
if ((this["wr_resultat" + i] != "") && (this["wr_resultat" + i] != undefined)) {
_root["wr_flag" + i] = this["wr_country" + i];
_root["wr_name" + i] = this["wr_name" + i];
} else {
_root["wr_flag" + i] = 0;
_root["wr_name" + i] = "";
_root["wr_resultat" + i] = "";
}
i++;
}
if ((this.tb_resultat1 != "") && (this.tb_resultat1 != undefined)) {
_root.tb_resultat1 = (this.tb_resultat1 + " ") + _root.txt_abk_meter;
} else {
_root.tb_resultat1 = "---";
}
if ((this.tb_resultat2 != "") && (this.tb_resultat2 != undefined)) {
_root.tb_resultat2 = (this.tb_resultat2 + " ") + _root.txt_abk_kg;
} else {
_root.tb_resultat2 = "---";
}
if ((this.tb_resultat3 != "") && (this.tb_resultat3 != undefined)) {
_root.tb_resultat3 = (this.tb_resultat3 + " ") + _root.txt_abk_sek;
} else {
_root.tb_resultat3 = "---";
}
if ((this.tb_resultat4 != "") && (this.tb_resultat4 != undefined)) {
_root.tb_resultat4 = this.tb_resultat4;
} else {
_root.tb_resultat4 = "---";
}
if ((this.tb_resultat5 != "") && (this.tb_resultat5 != undefined)) {
_root.tb_resultat5 = this.tb_resultat5;
} else {
_root.tb_resultat5 = "---";
}
if ((this.tb_resultat6 != "") && (this.tb_resultat6 != undefined)) {
_root.tb_resultat6 = (this.tb_resultat6 + " ") + _root.txt_abk_sek;
} else {
_root.tb_resultat6 = "---";
}
if ((this.tb_resultat7 != "") && (this.tb_resultat7 != undefined)) {
_root.tb_resultat7 = (this.tb_resultat7 + " ") + _root.txt_abk_sek;
} else {
_root.tb_resultat7 = "---";
}
i = 1;
while (i <= 7) {
if ((this["tb_resultat" + i] != "") && (this["tb_resultat" + i] != undefined)) {
_root["tb_flag" + i] = this["tb_country" + i];
_root["tb_name" + i] = this["tb_name" + i];
} else {
_root["tb_flag" + i] = 0;
_root["tb_name" + i] = "";
_root["tb_resultat" + i] = "";
}
i++;
}
trace("GOT IT");
_root.mc_titel.mc_anzeige.gotoAndStop(2);
} else {
trace("Error loading data");
}
};
stop();
Symbol 345 MovieClip Frame 2
i = 1;
while (i <= _root.hs_count) {
duplicateMovieClip (mc_highscore.mc_hs_anzeige, "mc_hs_anzeige" + i, i);
this.mc_highscore["mc_hs_anzeige" + i]._y = (i - 1) * 17;
this.mc_highscore["mc_hs_anzeige" + i].myOutput1.text = i + ".";
this.mc_highscore["mc_hs_anzeige" + i].myOutput2.text = _root["hs_nickname" + i];
this.mc_highscore["mc_hs_anzeige" + i].myOutput3.text = (_root["hs_totalpoints" + i] + " ") + _root.txt_punkte;
this.mc_highscore["mc_hs_anzeige" + i].mc_flag.gotoAndStop(int(_root["hs_country" + i]) + 1);
this.mc_highscore["mc_hs_anzeige" + i].mc_flag.mc_abdecker._visible = false;
i++;
}
this.mc_highscore.mc_hs_anzeige._visible = false;
stop();
Instance of Symbol 344 MovieClip in Symbol 345 MovieClip Frame 2
on (rollOver) {
hs_scrollen = 1;
}
on (rollOut) {
hs_scrollen = 0;
}
on (dragOut) {
hs_scrollen = 0;
}
onClipEvent (enterFrame) {
if (hs_scrollen == 1) {
if (this._parent.mc_highscore._height > 170) {
int_scrollspeed = (this._ymouse - 85) / 8;
this._parent.mc_highscore._y = this._parent.mc_highscore._y - int_scrollspeed;
if (this._parent.mc_highscore._y > 100) {
this._parent.mc_highscore._y = 100;
}
if ((this._parent.mc_highscore._y + this._parent.mc_highscore._height) < 270) {
this._parent.mc_highscore._y = 270 - this._parent.mc_highscore._height;
}
}
}
}
Symbol 346 MovieClip Frame 1
_root.int_speerwerfer_rennen = 1;
mc_figur.mc_wurfarm.gotoAndStop("fakel");
onEnterFrame = function () {
if (mc_figur._x <= 220) {
mc_figur._x = mc_figur._x + 2;
}
if ((mc_figur._x > 220) && (mc_figur._x < 223)) {
mc_figur.gotoAndStop("stehenfakel");
mc_figur.mc_figur.gotoAndStop("fakel");
mc_figur.mc_wurfarm.gotoAndPlay("fakelsenken");
mc_figur._x = mc_figur._x + 1;
}
if (mc_figur._x == 223) {
}
mc_feuer2.gotoAndStop(mc_feuer._currentframe);
mc_figur2._x = ((mc_figur._x - 300) / 1.1) + 300;
mc_figur2.gotoAndStop(mc_figur._currentframe);
mc_figur2.mc_wurfarm.gotoAndStop(mc_figur.mc_wurfarm._currentframe);
};
stop();
Instance of Symbol 202 MovieClip "btn_1" in Symbol 346 MovieClip Frame 1
onClipEvent (load) {
this.str_buttontext = _root.txt_starten;
_parent.mc_sanduhr._visible = 0;
this._parent.inputText1.text = _root.str_username;
fn_release_action = function () {
_root.int_startknopfpressed = 1;
this._parent.mc_klappe.play();
setTimeout(fn_close, 300);
};
fn_close = function () {
_root.str_gehezu = "laenderwahl";
_root.mc_blende.play();
};
}
Instance of Symbol 202 MovieClip "btn_2" in Symbol 346 MovieClip Frame 1
onClipEvent (load) {
this.str_buttontext = _root.txt_anleitung;
_parent.mc_sanduhr._visible = 0;
this._parent.inputText1.text = _root.str_username;
fn_release_action = function () {
_root.int_startknopfpressed = 0;
if (_root.int_titelindex != 2) {
_root.int_titelindex = 2;
} else {
_root.int_titelindex = 1;
}
this._parent.mc_klappe.play();
};
}
Instance of Symbol 202 MovieClip "btn_3" in Symbol 346 MovieClip Frame 1
onClipEvent (load) {
this.str_buttontext = _root.txt_highscore;
_parent.mc_sanduhr._visible = 0;
this._parent.inputText1.text = _root.str_username;
fn_release_action = function () {
if (_root.int_titelindex != 3) {
_root.int_titelindex = 3;
} else {
_root.int_titelindex = 1;
}
_root.int_startknopfpressed = 0;
this._parent.mc_klappe.play();
};
}
Instance of Symbol 219 MovieClip in Symbol 346 MovieClip Frame 1
onClipEvent (load) {
if (_root.str_lang == "d") {
this.gotoAndStop(1);
}
if (_root.str_lang == "f") {
this.gotoAndStop(2);
}
if (_root.str_lang == "i") {
this.gotoAndStop(3);
}
if (_root.str_lang == "r") {
this.gotoAndStop(4);
}
if (_root.str_lang == "e") {
this.gotoAndStop(5);
}
}
Instance of Symbol 348 MovieClip "mc_press" in Symbol 349 MovieClip Frame 1
on (press) {
this._parent.int_pressed = 1;
this._parent.int_xnull = _parent.int_rotationswinkel - this._parent._xmouse;
}
on (release, releaseOutside) {
this._parent.int_pressed = 0;
}
Symbol 356 MovieClip Frame 22
stop();
Symbol 356 MovieClip Frame 29
stop();
Symbol 365 MovieClip Frame 1
function downloadstatus(soundObj) {
var _local3 = soundObj.getBytesTotal();
var _local2 = soundObj.getBytesLoaded();
var _local1 = Math.round((_local2 * 100) / _local3);
balken.balken_mc._width = _local1 * (balken_breite / 100);
balken.pos_txt.text = ("Loading: " + _local1) + "%";
balken.pos_txt.setTextFormat(my_fmt);
}
function positionstatus(soundObj) {
var _local1 = Math.round((soundObj.position * 100) / soundObj.duration);
balken.vbalken_mc._x = _local1 * (balken_breite / 100);
balken.pos_txt.text = ("Playing: " + _local1) + "%";
balken.pos_txt.setTextFormat(my_fmt);
}
function stopsound() {
mein_sound.stop();
}
var balken_hoehe = 8;
var balken_breite = 91;
var balken = this.createEmptyMovieClip("statusbalken_mc", this.getNextHighestDepth());
balken.createEmptyMovieClip("balken_mc", balken.getNextHighestDepth());
balken.createEmptyMovieClip("vbalken_mc", balken.getNextHighestDepth());
balken.createEmptyMovieClip("rahmen_mc", balken.getNextHighestDepth());
my_fmt.font = "Arial Narrow";
my_fmt.color = 13426158 /* 0xCCDDEE */;
my_fmt.size = 10;
balken.pos_txt.antiAliasType = "advanced";
balken.pos_txt.text = "";
balken.pos_txt.setTextFormat(my_fmt);
balken._x = 0;
balken._y = 0;
with (balken.balken_mc) {
beginFill(0);
moveTo(0, 0);
lineTo(balken_breite, 0);
lineTo(balken_breite, balken_hoehe);
lineTo(0, balken_hoehe);
lineTo(0, 0);
endFill();
_xscale = 0;
}
balken.balken_mc._alpha = 20;
with (balken.vbalken_mc) {
lineStyle(2, 16777215);
moveTo(0, 1);
lineTo(0, balken_hoehe - 1);
}
with (balken.rahmen_mc) {
lineStyle(1, 0);
moveTo(0, 0);
lineTo(balken_breite, 0);
lineTo(balken_breite, balken_hoehe);
lineTo(0, balken_hoehe);
lineTo(0, 0);
}
_global.playsound = function (soundDatei) {
mein_sound = new Sound();
mein_sound.onLoad = function (erfolgreich) {
if (erfolgreich) {
balken.balken_mc._width = 100 * (balken_breite / 100);
clearInterval(sound_iv);
delete sound_iv;
position_iv = setInterval(positionstatus, 100, mein_sound);
}
};
mein_sound.onSoundComplete = function () {
clearInterval(position_iv);
delete position_iv;
playsound(sound_file);
};
mein_sound.loadSound(soundDatei, true);
sound_iv = setInterval(downloadstatus, 100, mein_sound);
};
var aktsound = 2;
Instance of Symbol 364 MovieClip "knopf" in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
soundabspielen = 1;
}
on (release) {
if (_root.soundon == 1) {
if (soundabspielen == 2) {
i = 0;
while (i < _parent._parent.sound_array.length) {
if (_parent._parent["track" + i].knopf.soundabspielen == 1) {
_parent._parent["track" + i].pausenpos = _parent._parent["track" + i].mein_sound.position / 1000;
_parent._parent["track" + i].mein_sound.stop();
_parent._parent["track" + i].knopf.soundabspielen = 2;
_parent._parent["track" + i].knopf.gotoAndStop(1);
}
i++;
}
soundabspielen = 3;
_parent.mein_sound.start(_parent.pausenpos);
this.gotoAndStop(2);
}
if (soundabspielen == 1) {
_parent.pausenpos = _parent.mein_sound.position / 1000;
_parent.mein_sound.stop();
soundabspielen = 2;
this.gotoAndStop(1);
}
if (soundabspielen == 0) {
i = 0;
while (i < _parent._parent.sound_array.length) {
if (_parent._parent["track" + i].knopf.soundabspielen == 1) {
_parent._parent["track" + i].pausenpos = _parent._parent["track" + i].mein_sound.position / 1000;
_parent._parent["track" + i].mein_sound.stop();
_parent._parent["track" + i].knopf.soundabspielen = 2;
_parent._parent["track" + i].knopf.gotoAndStop(1);
}
i++;
}
soundabspielen = 1;
_parent.playsound(_parent.sound_file);
this.gotoAndStop(2);
}
if (soundabspielen == 3) {
soundabspielen = 1;
}
trace(soundabspielen);
}
}
Instance of Symbol 349 MovieClip "mc_karussel" in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
this._parent.mc_flagge.gotoAndStop(1);
this._parent.mc_flagge.mc_abdecker._visible = false;
int_anz_elemente = 28;
i = 1;
while (i <= int_anz_elemente) {
if (i > 1) {
this.mc_1.duplicateMovieClip(["mc_" + i], i);
}
this["mc_" + i].num_winkel = (360 / int_anz_elemente) * (i - 1);
this["mc_" + i].gotoAndStop(1);
trace((("MC_" + i) + ": ") + this["mc_" + i].num_winkel);
this["mc_" + i]._alpha = 0;
this["mc_" + i].int_id = i;
this["mc_" + i].gotoAndStop(i + 1);
this["mc_" + i].onPress = function () {
this._parent.int_pressed = 1;
this._parent.int_xnull = this._parent.int_rotationswinkel - this._parent._xmouse;
};
this["mc_" + i].onRelease = function () {
j = 1;
while (j <= int_anz_elemente) {
this._parent["mc_" + j].mc_rahmen.gotoAndStop(1);
j++;
}
this.mc_rahmen.gotoAndStop(2);
_root.int_country = this.int_id;
stopAllSounds();
if (_root.int_soundon == 1) {
playsound(("hymnen/" + _root.int_country) + ".mp3");
}
this._parent.int_pressed = 0;
};
this["mc_" + i].onReleaseOutside = function () {
this._parent.int_pressed = 0;
};
i++;
}
this.mc_5.play();
int_rotationswinkel = 45;
this.int_pressed = 0;
this.int_ball_v = 0;
this.mc_ball._alpha = 0;
}
onClipEvent (enterFrame) {
this._parent.mc_flagge.gotoAndStop(_root.int_country + 1);
if (this.int_pressed == 0) {
int_rotationswinkel = int_rotationswinkel - 0.5;
}
if (this.int_pressed == 1) {
this.int_xnow = this._xmouse;
int_rotationswinkel = this.int_xnull + this.int_xnow;
}
if (int_rotationswinkel > 360) {
int_rotationswinkel = int_rotationswinkel - 360;
}
if (this._parent.mc_stadion._alpha < 100) {
this._parent.mc_stadion._alpha = this._parent.mc_stadion._alpha + 5;
}
if (this.mc_ball._alpha < 100) {
this.mc_ball._alpha = this.mc_ball._alpha + 5;
}
i = 1;
while (i <= int_anz_elemente) {
if (this["mc_" + i]._alpha < 100) {
this["mc_" + i]._alpha = this["mc_" + i]._alpha + 5;
}
Xfaktor = Math.sin((this["mc_" + i].num_winkel + int_rotationswinkel) * (Math.PI/180));
Xfaktor2 = 2 - (Xfaktor * Xfaktor);
this["mc_" + i]._x = (220 * Xfaktor) * Xfaktor2;
this["mc_" + i]._y = 90 * Math.cos((this["mc_" + i].num_winkel + int_rotationswinkel) * (Math.PI/180));
this["mc_" + i].mc_abdecker._alpha = 180 - (this["mc_" + i]._y * 2);
this["mc_" + i]._yscale = (this["mc_" + i]._xscale = 0 + this["mc_" + i]._y);
if (this["mc_" + i]._yscale < 0) {
this["mc_" + i]._yscale = (this["mc_" + i]._xscale = 0);
}
this["mc_" + i].swapDepths((100 + (int(this["mc_" + i]._y) * 100)) + i);
this["mc_" + i]._y = this["mc_" + i]._y + 155;
this["mc_" + i]._x = this["mc_" + i]._x + 300;
i++;
}
}
Instance of Symbol 202 MovieClip "btn_1" in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
this.str_buttontext = _root.txt_spielstarten;
fn_release_action = function () {
stopAllSounds();
_root.int_playersautoupdate = 0;
_root.int_anzahlspieler++;
if (this._parent.inputText1.text != "") {
_root["user" + _root.int_anzahlspieler].str_username = this._parent.inputText1.text.toUpperCase();
} else {
_root["user" + _root.int_anzahlspieler].str_username = "Player " + _root.int_anzahlspieler;
}
if (_root.int_country == 0) {
_root.int_country = 1;
}
_root["user" + _root.int_anzahlspieler].int_country = _root.int_country;
this._parent.mc_klappe.play();
setTimeout(fn_close, 300);
_root.fn_setplayers(0);
trace((("Spieler 1 Country: " + _root.user1.int_country) + " ANZ: ") + _root.int_anzahlspieler);
};
fn_close = function () {
_root.str_gehezu = "disziplinenwahl";
_root.mc_blende.play();
};
}
Instance of Symbol 202 MovieClip "btn_2" in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
_root.int_playersautoupdate = 1;
this.str_buttontext = _root.txt_mehrspieler;
fn_release_action = function () {
stopAllSounds();
_root.int_anzahlspieler++;
if (this._parent.inputText1.text != "") {
_root["user" + _root.int_anzahlspieler].str_username = this._parent.inputText1.text.toUpperCase();
} else {
_root["user" + _root.int_anzahlspieler].str_username = "Player " + _root.int_anzahlspieler;
}
if (_root.int_country == 0) {
_root.int_country = 1;
}
_root["user" + _root.int_anzahlspieler].int_country = _root.int_country;
this._parent.outputText1.text = (_root.txt_nickname + " ") + (_root.int_anzahlspieler + 1);
this._parent.inputText1.text = "";
_root.int_country = 0;
_root.fn_setplayers(0);
if (_root.int_anzahlspieler == 3) {
this._visible = 0;
}
if (_root["user" + _root.int_anzahlspieler].str_username != "") {
this._parent.inputText1.text = _root["user" + int(_root.int_anzahlspieler + 1)].str_username;
_root.int_country = int(_root["user" + int(_root.int_anzahlspieler + 1)].int_country);
mc_laenderwahl.mc_flagge.gotoAndStop(int(_root["user" + int(_root.int_anzahlspieler + 1)].int_country));
} else {
mc_laenderwahl.inputText1.text = "";
}
};
}
onClipEvent (enterFrame) {
if (_root.int_playersautoupdate == 1) {
if (this._parent.inputText1.text != "") {
_root["user" + (_root.int_anzahlspieler + 1)].str_username = this._parent.inputText1.text.toUpperCase();
} else {
_root["user" + (_root.int_anzahlspieler + 1)].str_username = "Player " + (_root.int_anzahlspieler + 1);
}
_root["user" + (_root.int_anzahlspieler + 1)].int_country = _root.int_country;
_root.fn_setplayers(1);
}
}
Instance of Symbol 365 MovieClip "tonspur" in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
this.soundabspielen = 0;
}
Symbol 369 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 2
stop();
fn_playsound("snd_schalter", 1);
Symbol 387 MovieClip Frame 3
stop();
Instance of Symbol 202 MovieClip in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
this.str_buttontext = _root.txt_alle_disziplinen;
fn_release_action = function () {
_root.arr_disziplinen = Array("speerwerfen", "gewichtheben", "kajak", "turmspringen", "tontaubenschiessen", "springreiten", "100meter", "fechten");
_root.str_gehezu = "naechstedisziplin";
_root.mc_blende.play();
};
}
Instance of Symbol 202 MovieClip in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
this.str_buttontext = _root.txt_spielstarten;
fn_release_action = function () {
_root.arr_disziplinen = Array();
if (_root.int_speerwerfen == 1) {
_root.arr_disziplinen.push("speerwerfen");
}
if (_root.int_gewichtheben == 1) {
_root.arr_disziplinen.push("gewichtheben");
}
if (_root.int_kajak == 1) {
_root.arr_disziplinen.push("kajak");
}
if (_root.int_turmspringen == 1) {
_root.arr_disziplinen.push("turmspringen");
}
if (_root.int_tontaubenschiessen == 1) {
_root.arr_disziplinen.push("tontaubenschiessen");
}
if (_root.int_springreiten == 1) {
_root.arr_disziplinen.push("springreiten");
}
if (_root.int_100meter == 1) {
_root.arr_disziplinen.push("100meter");
}
if (_root.int_fechten == 1) {
_root.arr_disziplinen.push("fechten");
}
trace(_root.arr_disziplinen);
trace(_root.arr_disziplinen.length);
if (_root.arr_disziplinen.length > 0) {
_root.str_gehezu = "naechstedisziplin";
_root.mc_blende.play();
}
};
}
Instance of Symbol 387 MovieClip in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
str_disz = "speerwerfen";
this.outputText.text = _root["txt_" + str_disz];
}
onClipEvent (enterFrame) {
if (_root["int_" + str_disz] == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (release) {
if (_root["int_" + str_disz] == 1) {
_root["int_" + str_disz] = 0;
} else {
_root["int_" + str_disz] = 1;
}
}
Instance of Symbol 387 MovieClip in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
str_disz = "gewichtheben";
this.outputText.text = _root["txt_" + str_disz];
}
onClipEvent (enterFrame) {
if (_root["int_" + str_disz] == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (release) {
if (_root["int_" + str_disz] == 1) {
_root["int_" + str_disz] = 0;
} else {
_root["int_" + str_disz] = 1;
}
}
Instance of Symbol 387 MovieClip in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
str_disz = "kajak";
this.outputText.text = _root["txt_" + str_disz];
}
onClipEvent (enterFrame) {
if (_root["int_" + str_disz] == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (release) {
if (_root["int_" + str_disz] == 1) {
_root["int_" + str_disz] = 0;
} else {
_root["int_" + str_disz] = 1;
}
}
Instance of Symbol 387 MovieClip in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
str_disz = "turmspringen";
this.outputText.text = _root["txt_" + str_disz];
}
onClipEvent (enterFrame) {
if (_root["int_" + str_disz] == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (release) {
if (_root["int_" + str_disz] == 1) {
_root["int_" + str_disz] = 0;
} else {
_root["int_" + str_disz] = 1;
}
}
Instance of Symbol 387 MovieClip in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
str_disz = "tontaubenschiessen";
this.outputText.text = _root["txt_" + str_disz];
}
onClipEvent (enterFrame) {
if (_root["int_" + str_disz] == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (release) {
if (_root["int_" + str_disz] == 1) {
_root["int_" + str_disz] = 0;
} else {
_root["int_" + str_disz] = 1;
}
}
Instance of Symbol 387 MovieClip in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
str_disz = "springreiten";
this.outputText.text = _root["txt_" + str_disz];
}
onClipEvent (enterFrame) {
if (_root["int_" + str_disz] == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (release) {
if (_root["int_" + str_disz] == 1) {
_root["int_" + str_disz] = 0;
} else {
_root["int_" + str_disz] = 1;
}
}
Instance of Symbol 387 MovieClip in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
str_disz = "100meter";
this.outputText.text = _root["txt_" + str_disz];
}
onClipEvent (enterFrame) {
if (_root["int_" + str_disz] == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (release) {
if (_root["int_" + str_disz] == 1) {
_root["int_" + str_disz] = 0;
} else {
_root["int_" + str_disz] = 1;
}
}
Instance of Symbol 387 MovieClip in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
str_disz = "fechten";
this.outputText.text = _root["txt_" + str_disz];
}
onClipEvent (enterFrame) {
if (_root["int_" + str_disz] == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (release) {
if (_root["int_" + str_disz] == 1) {
_root["int_" + str_disz] = 0;
} else {
_root["int_" + str_disz] = 1;
}
}
Instance of Symbol 387 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
str_disz = "speerwerfen";
this.gotoAndStop(3);
this.outputText.text = _root["txt_" + str_disz];
}
on (release) {
_root.str_gehezu = str_disz;
_root.mc_blende.play();
}
Instance of Symbol 387 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
str_disz = "gewichtheben";
this.gotoAndStop(3);
this.outputText.text = _root["txt_" + str_disz];
}
on (release) {
_root.str_gehezu = str_disz;
_root.mc_blende.play();
}
Instance of Symbol 387 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
str_disz = "kajak";
this.gotoAndStop(3);
this.outputText.text = _root["txt_" + str_disz];
}
on (release) {
_root.str_gehezu = str_disz;
_root.mc_blende.play();
}
Instance of Symbol 387 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
str_disz = "turmspringen";
this.gotoAndStop(3);
this.outputText.text = _root["txt_" + str_disz];
}
on (release) {
_root.str_gehezu = str_disz;
_root.mc_blende.play();
}
Instance of Symbol 387 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
str_disz = "tontaubenschiessen";
this.gotoAndStop(3);
this.outputText.text = _root["txt_" + str_disz];
}
on (release) {
_root.str_gehezu = str_disz;
_root.mc_blende.play();
}
Instance of Symbol 387 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
str_disz = "springreiten";
this.gotoAndStop(3);
this.outputText.text = _root["txt_" + str_disz];
}
on (release) {
_root.str_gehezu = str_disz;
_root.mc_blende.play();
}
Instance of Symbol 387 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
str_disz = "100meter";
this.gotoAndStop(3);
this.outputText.text = _root["txt_" + str_disz];
}
on (release) {
_root.str_gehezu = str_disz;
_root.mc_blende.play();
}
Instance of Symbol 387 MovieClip in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(3);
str_disz = "fechten";
this.gotoAndStop(3);
this.outputText.text = _root["txt_" + str_disz];
}
on (release) {
_root.str_gehezu = str_disz;
_root.mc_blende.play();
}
Symbol 419 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 2
stop();
Symbol 419 MovieClip Frame 3
stop();
fn_playsound("snd_punch", 1);
Symbol 425 MovieClip Frame 1
stop();
Symbol 431 Button
on (rollOver) {
fn_playsound("snd_schalter", 1);
}
Symbol 583 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 1
stop();
Instance of Symbol 447 MovieClip in Symbol 584 MovieClip Frame 1
onClipEvent (load) {
if ((((_root["wr_resultat" + _root.int_id_disziplin] != 9999) && (_root["wr_resultat" + _root.int_id_disziplin] != undefined)) && (_root.int_id_disziplin != 8)) && (this._parent.outputTextStart.text == _root.txt_start)) {
this.num_wr = _root["wr_resultat" + _root.int_id_disziplin];
this.num_tb = _root["tb_resultat" + _root.int_id_disziplin];
this.gotoAndPlay(160);
} else {
this.gotoAndStop(this._totalframes);
}
}
onClipEvent (enterFrame) {
if ((((_root["wr_resultat" + _root.int_id_disziplin] != 9999) && (_root["wr_resultat" + _root.int_id_disziplin] != undefined)) && (_root.int_id_disziplin != 8)) && (this._parent.outputTextStart.text == _root.txt_start)) {
this.num_wr = _root["wr_resultat" + _root.int_id_disziplin];
this.num_tb = _root["tb_resultat" + _root.int_id_disziplin];
this.play();
} else {
this.gotoAndStop(this._totalframes);
}
}
Instance of Symbol 548 MovieClip in Symbol 584 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._parent._y <= -50) {
this.gotoAndStop(1);
this._visible = false;
} else if (_root.int_new_wr == 1) {
this.txt_rekord = _root.txt_weltrekord;
this.play();
this._visible = true;
} else if (_root.int_new_tb == 1) {
this.txt_rekord = _root.txt_tagesbestleistung;
this.play();
this._visible = true;
} else {
this.stop();
this._visible = false;
}
}
Symbol 584 MovieClip Frame 2
stop();
Symbol 584 MovieClip Frame 3
stop();
Symbol 584 MovieClip Frame 4
stop();
Symbol 584 MovieClip Frame 5
stop();
Symbol 584 MovieClip Frame 6
stop();
Symbol 636 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 2
stop();
Symbol 636 MovieClip Frame 3
stop();
Symbol 636 MovieClip Frame 4
stop();
Symbol 636 MovieClip Frame 5
stop();
Symbol 636 MovieClip Frame 6
stop();
Symbol 636 MovieClip Frame 7
stop();
Instance of Symbol 626 MovieClip in Symbol 636 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.int_computergegner == 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 636 MovieClip Frame 8
stop();
Instance of Symbol 635 MovieClip in Symbol 636 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.int_computergegner == 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 637 Button
on (release, keyPress "<Left>") {
if ((_root.tastenvar == 2) && (_root.tastenaktiv == 1)) {
_root.tastendruckzaehler++;
}
_root.tastenvar = 1;
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(mc_anzeigetafel, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
}
}
Symbol 638 Button
on (release, keyPress "<Right>") {
if ((_root.tastenvar == 1) && (_root.tastenaktiv == 1)) {
_root.tastendruckzaehler++;
}
_root.tastenvar = 2;
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(mc_anzeigetafel, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
}
}
Symbol 639 Button
on (keyPress "<Space>") {
if ((_root.int_speersenken == 0) && (int_spiellaeuft == 1)) {
_root.int_speersenken = 1;
}
trace("SPACE");
if (mc_anzeigetafel.outputTextStart.text == _root.txt_weiter) {
trace("SPACE2");
if (mc_anzeigetafel._y == 0) {
trace("RESET");
fn_reset();
}
}
}
Symbol 642 MovieClip Frame 1
zeitverstrichen = 0;
zeitseitstartverstrichen = 0;
startzeit = 0;
druckprosekunde = 0;
Symbol 642 MovieClip Frame 2
zeitseitstartverstrichen = getTimer();
if (_root.tastenvar == 0) {
startzeit = getTimer();
speicherzeit = getTimer();
speicherzaehler = _root.tastendruckzaehler;
_root.tastenvar = 1;
}
if (_root.tastenaktiv == 1) {
zeitverstrichen = zeitseitstartverstrichen - startzeit;
}
if (zeitverstrichen > 100000) {
_root.tastenaktiv = 0;
}
intervall = zeitseitstartverstrichen - speicherzeit;
if (intervall > 200) {
druecke = _root.tastendruckzaehler - speicherzaehler;
druckprosekunde = (1200 / intervall) * druecke;
_root.int_speedtogo = druckprosekunde;
if (_root.int_speedtogo > 20) {
_root.int_speedtogo = 20;
}
speicherzeit = getTimer();
speicherzaehler = _root.tastendruckzaehler;
}
Symbol 642 MovieClip Frame 3
gotoAndPlay (2);
Symbol 644 Button
on (release, keyPress "<Enter>") {
trace("ENTER");
if (mc_anzeigetafel.outputTextStart.text == _root.txt_weiter) {
trace("ENTER2");
if (mc_anzeigetafel._y == 0) {
trace("RESET");
fn_reset();
}
}
}
Symbol 645 MovieClip Frame 1
_root.int_id_disziplin = 1;
num_speerwerferX_setting = this.mc_speerwerfer._x;
num_speerwerferY_setting = this.mc_speerwerfer._y;
num_speerX_setting = this.mc_speer._x;
num_speerY_setting = this.mc_speer._y;
num_speerRotation_setting = this.mc_speer._rotation;
num_htgX_setting = this.mc_htg._x;
num_shtgY_setting = this.mc_htg._y;
num_bahnX_setting = this.mc_bahn._x;
num_bahnY_setting = this.mc_bahn._y;
mc_flagge.gotoAndStop(_root.int_country + 1);
mc_flagge.mc_abdecker._visible = false;
int_bodenY = 300;
num_gravity = 0.2;
_root.int_attempt = 1;
_root.int_attempts_total = 3;
_root.int_timeout_showtopscore = 3000;
this.mc_anzeigetafel.gotoAndStop(1);
this.mc_anzeigetafel.outputText2.text = "---";
this.mc_anzeigetafel.outputText3.text = "---";
this.mc_anzeigetafel.outputText4.text = "---";
_root.fn_reset_userdata();
this.mc_anzeigetafel.outputText5.text = _root.txt_versuch + " 1";
this.mc_anzeigetafel.outputText6.text = _root.txt_versuch + " 2";
this.mc_anzeigetafel.outputText7.text = _root.txt_versuch + " 3";
this.mc_anzeigetafel.btn_start.onRelease = function () {
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(this._parent, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
} else {
this._parent._parent.fn_reset();
}
};
fn_reset = function () {
_root.fn_nextplayer();
mc_blende.gotoAndPlay(1);
_root.tastenvar = 0;
_root.tastenaktiv = 1;
_root.tastendruckzaehler = 0;
int_speed = 0;
_root.int_speedtogo = 0;
_root.int_speersenken = 0;
int_speersenker = 0.1;
num_speer_distanz = 0;
int_uebertritt = 0;
int_uebertritt_counter = 0;
_root.int_speerwerfer_rennen = 1;
int_spiellaeuft = 0;
this.mc_anzeigetafel.outputText0.text = _root["user" + _root.int_spieler_am_zug].str_username;
this.mc_anzeigetafel.outputText1.text = (_root.txt_versuch + " ") + _root.int_attempt;
this.mc_speerwerfer._x = num_speerwerferX_setting;
this.mc_speerwerfer._y = num_speerwerferY_setting;
this.mc_speer._x = num_speerX_setting;
this.mc_speer._y = num_speerY_setting;
this.mc_speer._rotation = num_speerRotation_setting;
this.mc_speer.gotoAndStop(1);
this.mc_htg._x = num_htgX_setting;
this.mc_htg._y = num_shtgY_setting;
this.mc_bahn._x = num_bahnX_setting;
this.mc_bahn._y = num_bahnY_setting;
this.mc_speerwerfer.gotoAndStop("stehenstart");
this.mc_anzeigetafel.outputTextStart.text = _root.txt_start;
this.mc_anzeigetafel._y = 0;
this.mc_speedanzeige.mc_speedbalken._xscale = 0;
mc_schattenspeerwerfer._x = mc_speerwerfer._x;
mc_schattenspeerwerfer._y = mc_speerwerfer._y;
mc_schattenspeer._x = mc_speer._x;
mc_schattenspeer._width = mc_speer._width;
mc_schattenspeer._y = mc_speerwerfer._y;
};
fn_reset();
onEnterFrame = function () {
if ((int_spiellaeuft == 0) && (_root.int_attempt == 1)) {
this.mc_speerwerfer.gotoAndStop("stehenstart");
}
if (int_spiellaeuft == 1) {
if (_root.int_speersenken < 2) {
if ((int_speed >= 0) && (this.mc_speerwerfer._currentframe > 9)) {
this.mc_speerwerfer.gotoAndPlay("rennen");
}
if ((int_speed <= 0) && (this.mc_speerwerfer._currentframe < 10)) {
this.mc_speerwerfer.gotoAndStop("stehenstart");
}
if (int_speed < _root.int_speedtogo) {
int_speed = int_speed + ((_root.int_speedtogo - int_speed) / 40);
}
if (int_speed > _root.int_speedtogo) {
int_speed = int_speed - 0.1;
}
if (int_speed < 0) {
int_speed = 0;
}
int_prozente = 4 * int_speed;
if (int_prozente > 100) {
int_prozente = 100;
}
this.mc_speedanzeige.mc_speedbalken._xscale = int_prozente;
this.mc_speedanzeige.mc_speedbalken.gotoAndStop(int(int_prozente));
}
if (_root.int_speersenken < 2) {
this.mc_bahn._x = this.mc_bahn._x - int_speed;
}
if (_root.int_speersenken == 2) {
this.mc_bahn._x = this.mc_bahn._x - int_speed_winkelabhaengig;
}
if (_root.int_speersenken < 2) {
this.mc_htg._x = this.mc_htg._x - int_speed;
this.mc_gebaeude._x = this.mc_gebaeude._x - (int_speed / 2);
}
if (_root.int_speersenken == 2) {
this.mc_htg._x = this.mc_htg._x - int_speed_winkelabhaengig;
this.mc_gebaeude._x = this.mc_gebaeude._x - (int_speed_winkelabhaengig / 2);
}
if (this.mc_htg._x < -600) {
this.mc_htg._x = this.mc_htg._x + 600;
}
if (this.mc_gebaeude._x < -600) {
this.mc_gebaeude._x = this.mc_gebaeude._x + 600;
}
if (_root.int_speersenken < 2) {
this.mc_speerwerfer._x = this.mc_speerwerfer._x + (int_speed / 10);
}
if (_root.int_speersenken == 2) {
this.mc_speerwerfer._x = this.mc_speerwerfer._x - int_speed_winkelabhaengig;
}
int_speerwerfer_distanz = (((-mc_bahn._x) - mc_bahn._width) + mc_speerwerfer._x) + 20;
if (int_speerwerfer_distanz > 0) {
int_uebertritt = 1;
}
if ((int_speerwerfer_distanz > 200) && (_root.int_speersenken < 3)) {
_root.int_speersenken = 3;
num_speer_distanz_meter = 0;
int_scrollspeed = 10;
this.mc_anzeigetafel.outputText1.text = _root.txt_uebertritt;
_root.fn_writescore(num_speer_distanz_meter);
this.mc_anzeigetafel.outputTextStart.text = _root.txt_weiter;
this.mc_speerwerfer.gotoAndStop("stehenstart");
}
if ((int_uebertritt == 1) && (_root.int_speersenken == 3)) {
int_uebertritt_counter++;
if ((this.mc_speerwerfer._x < 300) && (int_uebertritt_counter > 15)) {
this.mc_htg._x = this.mc_htg._x + int_scrollspeed;
this.mc_gebaeude._x = this.mc_gebaeude._x + (int_scrollspeed / 2);
this.mc_speerwerfer._x = this.mc_speerwerfer._x + int_scrollspeed;
this.mc_bahn._x = this.mc_bahn._x + int_scrollspeed;
this.mc_speer._x = this.mc_speer._x + int_scrollspeed;
if (this.mc_htg._x > 0) {
this.mc_htg._x = this.mc_htg._x - 600;
}
if (this.mc_gebaeude._x > 0) {
this.mc_gebaeude._x = this.mc_gebaeude._x - 600;
}
fn_playsound("snd_buzzer", 1);
this.mc_speerwerfer.gotoAndStop("stehenend");
}
if (this.mc_speerwerfer._x >= 300) {
_root.int_speersenken = 4;
new mx.transitions.Tween(this.mc_anzeigetafel, "_y", Elastic.easeIn, -200, 0, 1, true);
this.mc_speerwerfer.mc_figur.gotoAndPlay("trauer");
}
}
if ((int_uebertritt == 0) && (_root.int_speersenken == 3)) {
int_uebertritt_counter++;
if ((this.mc_speerwerfer._x < 300) && (int_uebertritt_counter > 45)) {
this.mc_htg._x = this.mc_htg._x + int_scrollspeed;
this.mc_gebaeude._x = this.mc_gebaeude._x + (int_scrollspeed / 2);
this.mc_speerwerfer._x = this.mc_speerwerfer._x + int_scrollspeed;
this.mc_bahn._x = this.mc_bahn._x + int_scrollspeed;
this.mc_speer._x = this.mc_speer._x + int_scrollspeed;
if (this.mc_htg._x > 0) {
this.mc_htg._x = this.mc_htg._x - 600;
}
if (this.mc_gebaeude._x > 0) {
this.mc_gebaeude._x = this.mc_gebaeude._x - 600;
}
this.mc_speerwerfer.gotoAndStop("stehenend");
}
if (this.mc_speerwerfer._x >= 300) {
_root.int_speersenken = 4;
new mx.transitions.Tween(this.mc_anzeigetafel, "_y", Elastic.easeIn, -200, 0, 1, true);
trace(num_speer_distanz_meter);
if (int(num_speer_distanz_meter) < 40) {
this.mc_speerwerfer.mc_figur.gotoAndPlay("trauer");
} else if (int(num_speer_distanz_meter) > 75) {
this.mc_speerwerfer.mc_figur.gotoAndPlay("freude");
fn_playsound("snd_smallcrowdapplause", 1);
} else {
this.mc_speerwerfer.mc_figur.gotoAndPlay("egal");
fn_playsound("snd_smallcrowdapplause", 1);
}
}
}
if (_root.int_speersenken < 2) {
this.mc_speer._x = this.mc_speer._x + (int_speed / 10);
} else if (_root.int_speersenken == 2) {
this.mc_htg._x = this.mc_htg._x - num_speer_moveX;
this.mc_speerwerfer._x = this.mc_speerwerfer._x - num_speer_moveX;
this.mc_bahn._x = this.mc_bahn._x - num_speer_moveX;
num_speer_flughoehe = num_speer_flughoehe - num_speer_moveY;
if (num_speer_flughoehe < 255) {
this.mc_speer._y = int_bodenY - num_speer_flughoehe;
this.mc_speerwerfer._y = 300;
this.mc_bahn._y = 280;
this.mc_htg._y = 0;
this.mc_gebaeude._y = 0;
this.mc_himmel._y = 0;
} else {
this.mc_speer._y = int_bodenY - 255;
this.mc_speerwerfer._y = int_bodenY + (num_speer_flughoehe - 255);
this.mc_bahn._y = 280 + (num_speer_flughoehe - 255);
this.mc_htg._y = 0 + (num_speer_flughoehe - 255);
this.mc_gebaeude._y = 0 + (num_speer_flughoehe - 255);
this.mc_himmel._y = 0 + (num_speer_flughoehe - 255);
}
num_speer_moveY = num_speer_moveY + num_gravity;
xdelta = num_speer_moveX;
ydelta = num_speer_moveY;
num_winkel = Math.atan2(ydelta, xdelta);
num_winkel = (num_winkel * 180) / Math.PI;
this.mc_speer._rotation = num_winkel;
num_speer_distanz = (((-mc_bahn._x) - mc_bahn._width) + mc_speer._x) + (mc_speer._width / 2);
num_speer_distanz_meter = Math.round((num_speer_distanz * 10) / 4) / 100;
if ((num_speer_flughoehe - (this.mc_speer._height / 2)) <= 0) {
this.mc_speer.gotoAndStop(3);
this.mc_speer._y = (int_bodenY - (this.mc_speer._height / 2)) + 6;
_root.int_speersenken = 3;
int_scrollspeed = num_speer_distanz_meter;
if (int_scrollspeed < 0) {
int_scrollspeed = int_scrollspeed * -1;
}
if (int_scrollspeed < 5) {
int_scrollspeed = 5;
}
if (num_speer_distanz_meter < 0) {
num_speer_distanz_meter = 0;
}
if (int_uebertritt == 0) {
this.mc_anzeigetafel.outputText1.text = (num_speer_distanz_meter + " ") + _root.txt_meter;
} else {
num_speer_distanz_meter = 0;
this.mc_anzeigetafel.outputText1.text = _root.txt_uebertritt;
}
_root.fn_writescore(num_speer_distanz_meter);
this.mc_anzeigetafel.outputTextStart.text = _root.txt_weiter;
}
}
if (_root.int_speersenken == 1) {
this.mc_speer._rotation = this.mc_speer._rotation - int_speersenker;
this.mc_speer._x = this.mc_speer._x - (int_speersenker / 1.3);
this.mc_speer._y = this.mc_speer._y + (int_speersenker / 3);
this.mc_speerwerfer.mc_wurfarm.gotoAndStop(Math.floor((-this.mc_speer._rotation) / 9) + 1);
int_speersenker = int_speersenker + 0.3;
if (this.mc_speer._rotation < -89) {
this.mc_speer._rotation = -89;
_root.int_speersenken = 2;
if (int_speed < 5) {
int_speed = 5;
}
int_winkel = this.mc_speer._rotation;
num_speer_moveX = (int_speed * 1.5) * Math.cos((Math.PI/180) * int_winkel);
num_speer_moveY = (int_speed * 1.5) * Math.sin((Math.PI/180) * int_winkel);
num_speer_flughoehe = int_bodenY - this.mc_speer._y;
this.mc_speerwerfer.mc_wurfarm.gotoAndPlay("wurf");
this.mc_speer.gotoAndStop(2);
}
}
if (Key.isDown(32)) {
} else if (_root.int_speersenken == 1) {
_root.int_speersenken = 2;
if (int_speed < 5) {
int_speed = 5;
}
int_winkel = this.mc_speer._rotation;
num_speer_moveX = (int_speed * 1.5) * Math.cos((Math.PI/180) * int_winkel);
num_speer_moveY = (int_speed * 1.5) * Math.sin((Math.PI/180) * int_winkel);
num_speer_flughoehe = int_bodenY - this.mc_speer._y;
this.mc_speerwerfer.mc_wurfarm.gotoAndPlay("wurf");
this.mc_speer.gotoAndStop(2);
}
i = 1;
while (i <= 12) {
this["mc_distanzlinie" + i]._y = mc_htg._y;
this["mc_distanzlinie" + i]._x = ((mc_bahn._x + mc_bahn._width) + (i * 400)) - 5;
this["mc_distanzlinie" + i].int_distanz = i * 10;
i++;
}
mc_schattenspeerwerfer._x = mc_speerwerfer._x;
mc_schattenspeerwerfer._y = mc_speerwerfer._y;
mc_schattenspeer._x = mc_speer._x;
mc_schattenspeer._width = mc_speer._width;
mc_schattenspeer._y = mc_speerwerfer._y;
}
};
Instance of Symbol 636 MovieClip "mc_anleitung" in Symbol 645 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.int_id_disziplin);
}
onClipEvent (enterFrame) {
if (this._x <= 604) {
this.gotoAndStop(_root.int_id_disziplin);
if (this._parent.mc_anzeigetafel._y <= -21) {
this._x = this._x + 5;
}
}
}
Symbol 649 Button
on (release) {
j = 1;
while (j <= 4) {
_root["user" + j].topScore = 0;
_root.int_abgebrochen = 1;
j++;
}
_root.mc_game.mc_anzeigetafel.gotoAndStop(4);
_root.str_gehezu = "auswertung";
_root.mc_blende.play();
}
Symbol 724 MovieClip Frame 1
stop();
Symbol 724 MovieClip Frame 100
gotoAndPlay ("parat");
Symbol 724 MovieClip Frame 102
if (_parent.int_reissen == 1) {
nextFrame();
}
Symbol 724 MovieClip Frame 103
fn_playsound("snd_argh", 1);
play();
Symbol 724 MovieClip Frame 104
if (_parent.int_reissen == 1) {
nextFrame();
}
Symbol 724 MovieClip Frame 105
play();
Symbol 724 MovieClip Frame 106
if (_parent.int_reissen == 1) {
nextFrame();
}
Symbol 724 MovieClip Frame 107
play();
Symbol 724 MovieClip Frame 108
if (_parent.int_reissen == 1) {
nextFrame();
}
Symbol 724 MovieClip Frame 109
play();
Symbol 724 MovieClip Frame 110
if (_parent.int_reissen == 1) {
nextFrame();
}
Symbol 724 MovieClip Frame 111
play();
Symbol 724 MovieClip Frame 112
if (_parent.int_reissen == 1) {
nextFrame();
}
Symbol 724 MovieClip Frame 113
play();
Symbol 724 MovieClip Frame 114
if (_parent.int_reissen == 1) {
nextFrame();
}
Symbol 724 MovieClip Frame 115
play();
Symbol 724 MovieClip Frame 116
if (_root.int_reissen == 1) {
gotoAndPlay ("endreissen");
}
stop();
Symbol 724 MovieClip Frame 117
fn_playsound("snd_argh", 1);
Symbol 724 MovieClip Frame 127
play();
Symbol 724 MovieClip Frame 130
stop();
_root.int_phase = 4;
Symbol 724 MovieClip Frame 143
fn_playsound("snd_crash", 1);
Symbol 724 MovieClip Frame 145
fn_playsound("snd_buzzer", 1);
stop();
Symbol 724 MovieClip Frame 159
fn_playsound("snd_crash", 1);
Symbol 724 MovieClip Frame 161
fn_playsound("snd_buzzer", 1);
stop();
Symbol 724 MovieClip Frame 169
fn_playsound("snd_deephit", 1);
Symbol 724 MovieClip Frame 170
stop();
Symbol 724 MovieClip Frame 190
fn_playsound("snd_deephit", 1);
Symbol 724 MovieClip Frame 193
fn_playsound("snd_smallcrowdapplause", 1);
Symbol 724 MovieClip Frame 220
gotoAndPlay ("geschafftloop");
Symbol 741 Button
on (release, keyPress "<Enter>") {
trace("ENTER");
if (mc_anzeigetafel.outputTextStart.text == _root.txt_weiter) {
trace("ENTER2");
if (mc_anzeigetafel._y == -20) {
trace("RESET");
fn_reset();
}
}
}
on (release, keyPress "<Space>") {
trace("SPACE");
if (mc_anzeigetafel.outputTextStart.text == _root.txt_weiter) {
trace("SPACE2");
if (mc_anzeigetafel._y == -20) {
trace("RESET");
fn_reset();
}
}
}
Symbol 742 MovieClip Frame 1
_root.int_id_disziplin = 2;
_root.int_attempt = 1;
_root.int_attempts_total = 3;
_root.int_timeout_showtopscore = 0;
_root.user1.topScore2 = 0;
_root.user2.topScore2 = 0;
_root.user3.topScore2 = 0;
_root.user4.topScore2 = 0;
_root.user1.int_gewicht = 150;
_root.user2.int_gewicht = 150;
_root.user3.int_gewicht = 150;
_root.user4.int_gewicht = 150;
_root.int_reissen = 1;
int_gewicht = 150;
_root.int_gewichtchange = 0;
this.mc_anzeigetafel.gotoAndStop(1);
this.mc_anzeigetafel.outputText5.text = _root.txt_versuch + " 1";
this.mc_anzeigetafel.outputText6.text = _root.txt_versuch + " 2";
this.mc_anzeigetafel.outputText7.text = _root.txt_versuch + " 3";
_root.fn_reset_userdata();
this.mc_gewichtsanzeige.btn_up.onPress = function () {
_root.int_gewichtchange = 1;
};
this.mc_gewichtsanzeige.btn_down.onPress = function () {
_root.int_gewichtchange = 2;
};
this.mc_gewichtsanzeige.btn_up.onRelease = function () {
_root.int_gewichtchange = 0;
};
this.mc_gewichtsanzeige.btn_down.onRelease = function () {
_root.int_gewichtchange = 0;
};
this.mc_anzeigetafel.btn_start.onRelease = function () {
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(this._parent, "_y", Elastic.easeIn, -20, -200, 1, true);
int_spiellaeuft = 1;
_root.int_phase = 1;
mc_figur.play();
_root["user" + _root.int_spieler_am_zug].int_gewicht = int_gewicht;
this._parent._parent.mc_gewichtsanzeige._visible = false;
} else {
this._parent._parent.fn_reset();
}
};
fn_reset = function () {
_root.fn_nextplayer();
int_gewicht = _root["user" + _root.int_spieler_am_zug].int_gewicht;
mc_gewichtsanzeige._visible = true;
if (_root.int_attempt > 3) {
_root.int_reissen = 0;
this.mc_anzeigetafel.outputText2.text = "---";
this.mc_anzeigetafel.outputText3.text = "---";
this.mc_anzeigetafel.outputText4.text = "---";
_root.int_attempt = 1;
}
int_spiellaeuft = 0;
this.mc_anzeigetafel.outputText0.text = _root["user" + _root.int_spieler_am_zug].str_username;
if (_root.int_reissen == 1) {
this.mc_anzeigetafel.outputText1.text = (((_root.txt_reissen + " ") + _root.txt_versuch) + " ") + _root.int_attempt;
} else {
this.mc_anzeigetafel.outputText1.text = (((_root.txt_stossen + " ") + _root.txt_versuch) + " ") + _root.int_attempt;
}
this.mc_anzeigetafel.outputTextStart.text = _root.txt_start;
this.mc_anzeigetafel._y = -20;
this.mc_figur.gotoAndStop(1);
this.mc_figur._rotation = 0;
int_seitenlagewechselcounter = 0;
int_seitenlage = 0;
int_zugrichtung = 0;
_root.int_phase = 0;
int_sinuscounter = 5;
int_warten = 0;
mc_poweranzeige.mc_power1._xscale = 0;
mc_poweranzeige.mc_power2._xscale = 0;
mc_poweranzeige.mc_balance._visible = false;
mc_poweranzeige.mc_power1._visible = true;
mc_poweranzeige.mc_power2._visible = true;
mc_poweranzeige._alpha = 0;
int_warten_rotlicht = 20;
int_gruenlicht = 0;
int_warten_gruenlicht = 50;
int_warten_gruenlicht_counter = int_warten_gruenlicht;
mc_lampen1.mc_lampe1.gotoAndStop(1);
mc_lampen1.mc_lampe2.gotoAndStop(1);
mc_lampen1.mc_lampe3.gotoAndStop(1);
mc_lampen2.mc_lampe1.gotoAndStop(1);
mc_lampen2.mc_lampe2.gotoAndStop(1);
mc_lampen2.mc_lampe3.gotoAndStop(1);
};
fn_reset();
onEnterFrame = function () {
trace((((_root.int_spieler_am_zug + " - ") + _root["user" + _root.int_spieler_am_zug].int_gewicht) + " _root.int_spieler_am_zug: ") + _root.int_spieler_am_zug);
if (_root.int_gewichtchange == 1) {
int_gewicht++;
if (int_gewicht > 400) {
int_gewicht = 400;
}
}
if (_root.int_gewichtchange == 2) {
int_gewicht--;
if (int_gewicht < _root["user" + _root.int_spieler_am_zug].int_gewicht) {
int_gewicht = _root["user" + _root.int_spieler_am_zug].int_gewicht;
}
}
if (_root.int_phase == 0) {
this.mc_gewichtsanzeige.int_gewicht_anzeige = int_gewicht + _root.txt_abk_kg;
}
if (((_root.int_phase == 1) || (_root.int_phase == 2)) && (int_warten <= 0)) {
if (_root.int_reissen == 0) {
num_minpower = 65 + (int_gewicht / 10);
} else {
num_minpower = 75 + (int_gewicht / 10);
}
if (num_minpower > 100) {
num_minpower = 100;
}
if (mc_poweranzeige._alpha < 100) {
mc_poweranzeige._alpha = mc_poweranzeige._alpha + 5;
}
int_sinuscounter = int_sinuscounter + 0.04;
num_faktor = Math.sin(int_sinuscounter) * 100;
if (num_faktor < 0) {
num_faktor = num_faktor * -1;
}
num_powerscale = 100 - num_faktor;
if (_root.int_reissen == 1) {
mc_poweranzeige.mc_power1._xscale = num_powerscale;
mc_poweranzeige.mc_power2._xscale = num_powerscale;
} else {
mc_poweranzeige["mc_power" + _root.int_phase]._xscale = num_powerscale;
}
}
if (_root.int_phase == 4) {
mc_poweranzeige.mc_power1._visible = false;
mc_poweranzeige.mc_power2._visible = false;
mc_poweranzeige.mc_balance._visible = true;
int_xmousestart = _root._xmouse;
_root.int_phase = 5;
}
if (_root.int_phase == 5) {
int_seitenlagewechselcounter--;
if (int_seitenlagewechselcounter <= 0) {
int_seitenlagewechselcounter = 20;
int_zugrichtung = random(2) + ((1 * int_gewicht) / 25);
int_plusminus = random(2);
if (int_plusminus == 1) {
int_zugrichtung = int_zugrichtung * -1;
}
}
int_seitenlage = int_seitenlage + (((int_zugrichtung * ((mc_poweranzeige.mc_balance._x - 150) / 100)) + 1) + ((_root._xmouse - int_xmousestart) / 10));
mc_poweranzeige.mc_balance._x = 150 + int_seitenlage;
mc_figur.mc_arme._rotation = (mc_poweranzeige.mc_balance._x - 150) / 7;
mc_figur._rotation = (-(mc_poweranzeige.mc_balance._x - 150)) / 25;
if (mc_poweranzeige.mc_balance._x < 10) {
mc_poweranzeige.mc_balance._x = 10;
mc_figur.gotoAndPlay("sturzlinks");
this.mc_anzeigetafel.outputTextStart.text = _root.txt_weiter;
this.mc_anzeigetafel["outputText" + (_root.int_attempt + 1)].text = _root.txt_uebertritt;
this.mc_anzeigetafel.outputText1.text = _root.txt_uebertritt;
_root.fn_writescore(0);
new mx.transitions.Tween(this.mc_anzeigetafel, "_y", Elastic.easeIn, -200, -20, 1, true);
_root.int_phase = 10;
mc_figur._rotation = 0;
}
if (mc_poweranzeige.mc_balance._x > 290) {
mc_poweranzeige.mc_balance._x = 290;
mc_figur.gotoAndPlay("sturzrechts");
this.mc_anzeigetafel.outputTextStart.text = _root.txt_weiter;
this.mc_anzeigetafel["outputText" + (_root.int_attempt + 1)].text = _root.txt_uebertritt;
this.mc_anzeigetafel.outputText1.text = _root.txt_uebertritt;
_root.fn_writescore(0);
new mx.transitions.Tween(this.mc_anzeigetafel, "_y", Elastic.easeIn, -200, -20, 1, true);
_root.int_phase = 10;
mc_figur._rotation = 0;
}
int_warten_gruenlicht_counter--;
if (int_warten_gruenlicht_counter <= 0) {
int_gruenlicht++;
mc_lampen1["mc_lampe" + int_gruenlicht].gotoAndStop(2);
mc_lampen2["mc_lampe" + int_gruenlicht].gotoAndStop(2);
if (int_gruenlicht == 3) {
_root.int_phase = 9;
mc_figur.gotoAndPlay("geschafft");
_root["user" + _root.int_spieler_am_zug].int_gewicht++;
this.mc_anzeigetafel.outputTextStart.text = _root.txt_weiter;
if (_root.int_reissen == 0) {
int_gewicht_temp = int_gewicht;
int_gewicht = int_gewicht + _root["user" + _root.int_spieler_am_zug].topScore2;
this.mc_anzeigetafel.outputText1.text = ((((_root["user" + _root.int_spieler_am_zug].topScore2 + " + ") + int_gewicht_temp) + " = ") + int_gewicht) + " kg";
} else {
this.mc_anzeigetafel.outputText1.text = int_gewicht + " kg";
}
this.mc_anzeigetafel["outputText" + (_root.int_attempt + 1)].text = int_gewicht + " kg";
_root.fn_writescore(int_gewicht);
new mx.transitions.Tween(this.mc_anzeigetafel, "_y", Elastic.easeIn, -200, -20, 1, true);
mc_figur._rotation = 0;
}
int_warten_gruenlicht_counter = int_warten_gruenlicht;
}
}
if (_root.int_phase < 4) {
if (int_warten > 0) {
int_warten--;
}
}
if (_root.int_phase == 10) {
int_warten_rotlicht--;
if (int_warten_rotlicht <= 0) {
mc_lampen1.mc_lampe1.gotoAndStop(3);
mc_lampen1.mc_lampe2.gotoAndStop(3);
mc_lampen1.mc_lampe3.gotoAndStop(3);
mc_lampen2.mc_lampe1.gotoAndStop(3);
mc_lampen2.mc_lampe2.gotoAndStop(3);
mc_lampen2.mc_lampe3.gotoAndStop(3);
}
}
};
onMouseDown = function () {
if (_root.int_phase == 0) {
} else if (_root.int_phase == 1) {
if (num_powerscale >= num_minpower) {
int_warten = 10;
if (_root.int_reissen == 0) {
_root.int_phase = 2;
int_sinuscounter = 5;
} else {
_root.int_phase = 3;
}
mc_figur.gotoAndPlay("reissen");
} else {
mc_figur.gotoAndPlay("hantelverloren");
this.mc_anzeigetafel["outputText" + (_root.int_attempt + 1)].text = _root.txt_uebertritt;
this.mc_anzeigetafel.outputTextStart.text = _root.txt_weiter;
this.mc_anzeigetafel.outputText1.text = _root.txt_uebertritt;
_root.fn_writescore(0);
new mx.transitions.Tween(this.mc_anzeigetafel, "_y", Elastic.easeIn, -200, -20, 1, true);
_root.int_phase = 10;
}
} else if (_root.int_phase == 2) {
if (num_powerscale >= num_minpower) {
_root.int_phase = 3;
mc_figur.gotoAndPlay("stossen");
} else {
mc_figur.gotoAndPlay("hantelverloren");
this.mc_anzeigetafel["outputText" + (_root.int_attempt + 1)].text = _root.txt_uebertritt;
this.mc_anzeigetafel.outputTextStart.text = _root.txt_weiter;
this.mc_anzeigetafel.outputText1.text = _root.txt_uebertritt;
_root.fn_writescore(0);
new mx.transitions.Tween(this.mc_anzeigetafel, "_y", Elastic.easeIn, -200, -20, 1, true);
_root.int_phase = 10;
}
}
};
Instance of Symbol 636 MovieClip "mc_anleitung" in Symbol 742 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.int_id_disziplin);
}
onClipEvent (enterFrame) {
if (this._x <= 604) {
this.gotoAndStop(_root.int_id_disziplin);
if (this._parent.mc_anzeigetafel._y <= -21) {
this._x = this._x + 5;
}
}
}
Symbol 757 MovieClip Frame 1
stop();
Symbol 757 MovieClip Frame 2
fn_playsound("snd_paddel", 1);
Symbol 757 MovieClip Frame 10
fn_playsound("snd_paddel", 1);
Symbol 757 MovieClip Frame 18
gotoAndPlay ("rudern");
Symbol 757 MovieClip Frame 24
fn_playsound("snd_paddel", 1);
Symbol 757 MovieClip Frame 32
fn_playsound("snd_paddel", 1);
Symbol 757 MovieClip Frame 36
gotoAndPlay ("zurueckrudern");
Symbol 757 MovieClip Frame 37
fn_playsound("snd_paddel", 1);
Symbol 757 MovieClip Frame 48
gotoAndPlay ("linksrudern");
Symbol 757 MovieClip Frame 49
fn_playsound("snd_paddel", 1);
Symbol 757 MovieClip Frame 59
gotoAndPlay ("rechtsrudern");
Symbol 827 MovieClip Frame 1
stop();
Symbol 835 MovieClip Frame 1
stop();
mc_torstange1.gotoAndStop(1);
mc_torstange2.gotoAndStop(1);
Symbol 835 MovieClip Frame 2
stop();
mc_torstange1.gotoAndStop(2);
mc_torstange2.gotoAndStop(2);
Symbol 837 MovieClip Frame 1
stop();
Symbol 841 Button
on (release, keyPress "<Enter>") {
trace("ENTER");
if ((mc_anzeigetafel.outputTextStart.text == _root.txt_weiter) && (int_keypressed == 0)) {
int_keypressed = 1;
trace("ENTER2");
if (mc_anzeigetafel._y == 0) {
trace("RESET");
fn_reset();
}
}
if ((mc_anzeigetafel.outputTextStart.text == _root.txt_start) && (int_keypressed == 0)) {
int_keypressed = 1;
trace("ENTER3");
if (mc_anzeigetafel._y == 0) {
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(mc_anzeigetafel, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
}
}
}
}
on (release, keyPress "<Space>") {
trace("SPACE " + int_keypressed);
if ((mc_anzeigetafel.outputTextStart.text == _root.txt_weiter) && (int_keypressed == 0)) {
int_keypressed = 1;
trace("SPACE2");
if (mc_anzeigetafel._y == 0) {
trace("RESET");
fn_reset();
}
}
if ((mc_anzeigetafel.outputTextStart.text == _root.txt_start) && (int_keypressed == 0)) {
int_keypressed = 1;
trace("SPACE3");
if (mc_anzeigetafel._y == 0) {
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(mc_anzeigetafel, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
}
}
}
}
Symbol 842 MovieClip Frame 1
_root.int_id_disziplin = 3;
_root.int_attempt = 1;
_root.int_attempts_total = 1;
_root.int_timeout_showtopscore = 0;
_root.fn_reset_userdata();
this.mc_anzeigetafel.gotoAndStop(2);
this.mc_anzeigetafel.btn_start.onRelease = function () {
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(this._parent, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
} else {
this._parent._parent.fn_reset();
}
};
int_rotationsvalue = 5;
int_maxspeed = 5;
num_stroemung1 = -3;
num_stroemung2 = 2;
num_stroemung3 = 4;
num_stroemung4 = 8;
int_anzahl_tore = 8;
int_mc_tor1_richtung = 1;
int_mc_tor2_richtung = 1;
int_mc_tor3_richtung = 1;
int_mc_tor4_richtung = 2;
int_mc_tor5_richtung = 1;
int_mc_tor6_richtung = 1;
int_mc_tor7_richtung = 1;
int_mc_tor8_richtung = 2;
int_keypressed = 0;
fn_reset = function () {
_root.fn_nextplayer();
this.mc_anzeigetafel.outputText0.text = _root["user" + _root.int_spieler_am_zug].str_username;
this.mc_anzeigetafel.outputText1.text = _root.txt_start;
this.mc_anzeigetafel.outputTextStart.text = _root.txt_start;
this.mc_anzeigetafel._y = 0;
_root.num_timepassed = 0;
_root.num_savedzeit = 0;
savedzeit = 0;
zwischenzeit = 0;
int_anzahl_tore_gefahren = 0;
_root.arr_tore = Array();
int_kajakpos = 1;
int_verpasst = 0;
int_kajakpos_show = 0;
num_stroemung = num_stroemung2;
int_leftrot = 0;
int_rightrot = 0;
int_upgedrueckt = 0;
int_downgedrueckt = 0;
num_kajak_velocity = 0;
int_streckenabschnitt = 1;
this.mc_fluss1._y = 0;
this.mc_tore1._y = 0;
this.mc_fluss2._y = 350;
this.mc_tore2._y = 350;
this.mc_fluss1.gotoAndStop(int_streckenabschnitt);
this.mc_fluss2.gotoAndStop(int_streckenabschnitt + 1);
this.mc_tore1.gotoAndStop(int_streckenabschnitt);
this.mc_tore2.gotoAndStop(int_streckenabschnitt + 1);
this.mc_kajak._x = 300;
this.mc_kajak._y = 240;
this.mc_kajak._rotation = 0;
this.mc_kajak_schatten._x = 300;
this.mc_kajak_schatten._y = 240;
this.mc_kajak_schatten._rotation = 0;
j = 1;
while (j <= 2) {
i = 1;
while (i <= int_anzahl_tore) {
trace(("SET int_mc_tor" + i) + "int_status = 0;");
this[("int_mc_tor" + i) + "int_status"] = 0;
this[("int_mc_tor" + i) + "stange1_beruehrung"] = 0;
this[("int_mc_tor" + i) + "stange2_beruehrung"] = 0;
i++;
}
j++;
}
int_zeitlaeuft = 0;
str_zeitanzeige = "0:00.000";
str_fehler = "+0";
int_stangenberuehrungen = 0;
int_torfehler = 0;
int_spiellaeuft = 0;
};
fn_reset();
trace("----------------------------------------------------");
onEnterFrame = function () {
if (int_spiellaeuft == 1) {
fn_savepos();
int_kajakpos = 1;
if (int_leftrot == 1) {
int_kajakpos = 4;
this.mc_kajak._rotation = this.mc_kajak._rotation - int_rotationsvalue;
}
int_speedchanger = 0;
if (int_rightrot == 1) {
int_kajakpos = 5;
this.mc_kajak._rotation = this.mc_kajak._rotation + int_rotationsvalue;
}
if (int_downgedrueckt == 1) {
int_kajakpos = 3;
int_speedchanger = 1;
num_kajak_velocity--;
if (num_kajak_velocity <= (-int_maxspeed)) {
num_kajak_velocity = -int_maxspeed;
}
}
if (int_upgedrueckt == 1) {
int_kajakpos = 2;
int_speedchanger = 1;
num_kajak_velocity++;
if (num_kajak_velocity >= int_maxspeed) {
num_kajak_velocity = int_maxspeed;
}
}
if (int_speedchanger == 0) {
if (num_kajak_velocity < 0) {
num_kajak_velocity = num_kajak_velocity + 0.2;
}
if (num_kajak_velocity > 0) {
num_kajak_velocity = num_kajak_velocity - 0.2;
}
}
if ((int_kajakpos == 1) && (int_kajakpos_show != 1)) {
int_kajakpos_show = 1;
this.mc_kajak.gotoAndStop("stehen");
}
if ((int_kajakpos == 2) && (int_kajakpos_show != 2)) {
int_kajakpos_show = 2;
this.mc_kajak.gotoAndPlay("rudern");
}
if ((int_kajakpos == 3) && (int_kajakpos_show != 3)) {
int_kajakpos_show = 3;
this.mc_kajak.gotoAndPlay("zurueckrudern");
}
if ((int_kajakpos == 4) && (int_kajakpos_show != 4)) {
int_kajakpos_show = 4;
this.mc_kajak.gotoAndPlay("rechtsrudern");
}
if ((int_kajakpos == 5) && (int_kajakpos_show != 5)) {
int_kajakpos_show = 5;
this.mc_kajak.gotoAndPlay("linksrudern");
}
mc_kajakmoveX = (-num_kajak_velocity) * Math.cos((Math.PI/180) * (90 + this.mc_kajak._rotation));
mc_kajakmoveY = num_kajak_velocity * Math.sin((Math.PI/180) * (90 + this.mc_kajak._rotation));
this.mc_kajak._x = this.mc_kajak._x + mc_kajakmoveX;
if (this.mc_kajak._x < 0) {
this.mc_kajak._x = 0;
}
if (this.mc_kajak._x > 600) {
this.mc_kajak._x = 600;
}
this.mc_kajak._rotation = this.mc_kajak._rotation + int_kollisionsrotation;
if (int_kollisionsrotation > 0) {
int_kollisionsrotation = int_kollisionsrotation - 0.5;
}
if (int_kollisionsrotation < 0) {
int_kollisionsrotation = int_kollisionsrotation + 0.5;
}
if ((int_kollisionsrotation > -0.5) && (int_kollisionsrotation < 0.5)) {
int_kollisionsrotation = 0;
}
this.mc_kajak._x = this.mc_kajak._x + int_kollisionsx;
if (int_kollisionsx > 0) {
int_kollisionsx = int_kollisionsx - 0.5;
}
if (int_kollisionsx < 0) {
int_kollisionsx = int_kollisionsx + 0.5;
}
if ((int_kollisionsx > -0.5) && (int_kollisionsrotation < 0.5)) {
int_kollisionsx = 0;
}
this.mc_kajak._rotation = this.mc_kajak._rotation + int_stroemungsrotation;
if (int_stroemungsrotation > 0) {
int_stroemungsrotation = int_stroemungsrotation - 0.5;
}
if (int_stroemungsrotation < 0) {
int_stroemungsrotation = int_stroemungsrotation + 0.5;
}
if ((int_stroemungsrotation > -0.5) && (int_stroemungsrotation < 0.5)) {
int_stroemungsrotation = 0;
}
int_fluss_velocityY = num_stroemung + mc_kajakmoveY;
this.mc_fluss1._y = this.mc_fluss1._y + int_fluss_velocityY;
this.mc_fluss2._y = this.mc_fluss1._y + 350;
if (this.mc_fluss1._y <= -350) {
int_streckenabschnitt--;
this.mc_fluss1.gotoAndStop(int_streckenabschnitt + 1);
this.mc_fluss2.gotoAndStop(int_streckenabschnitt);
this.mc_fluss1._y = this.mc_fluss1._y + 350;
this.mc_fluss2._y = this.mc_fluss2._y + 350;
}
if (this.mc_fluss2._y >= 350) {
int_streckenabschnitt++;
this.mc_fluss1.gotoAndStop(int_streckenabschnitt + 1);
this.mc_fluss2.gotoAndStop(int_streckenabschnitt);
this.mc_fluss1._y = this.mc_fluss1._y - 350;
this.mc_fluss2._y = this.mc_fluss2._y - 350;
}
fn_checkhit(0);
fn_checkstroemung();
this.mc_kajak_schatten._x = this.mc_kajak._x + 1;
this.mc_kajak_schatten._y = this.mc_kajak._y + 1;
this.mc_kajak_schatten._rotation = this.mc_kajak._rotation;
this.mc_kajak_schatten.gotoAndStop(this.mc_kajak._currentframe);
this.mc_tore1._y = this.mc_fluss1._y;
this.mc_tore1.gotoAndPlay(this.mc_fluss1._currentframe);
this.mc_tore2._y = this.mc_fluss2._y;
this.mc_tore2.gotoAndPlay(this.mc_fluss2._currentframe);
j = 1;
while (j <= 2) {
i = 1;
while (i <= int_anzahl_tore) {
this["mc_tore" + j]["mc_tor" + i].gotoAndStop(this[("int_mc_tor" + i) + "_richtung"]);
if (this[("int_mc_tor" + i) + "int_status"] < 50) {
if (this[("int_mc_tor" + i) + "_richtung"] == 1) {
this["mc_tore" + j]["mc_tor" + i].mc_symbol.gotoAndStop(1);
} else {
this["mc_tore" + j]["mc_tor" + i].mc_symbol.gotoAndStop(2);
}
} else if (this[("int_mc_tor" + i) + "int_status"] == 99) {
this["mc_tore" + j]["mc_tor" + i].mc_symbol.gotoAndStop(4);
} else {
this["mc_tore" + j]["mc_tor" + i].mc_symbol.gotoAndStop(3);
}
htnr = 1;
while (htnr <= 5) {
stnr = 1;
while (stnr <= 2) {
if (this["mc_tore" + j]["mc_tor" + i]["mc_torstange" + stnr].mc_hitter.hitTest(this.mc_kajak["mc_hitter" + htnr])) {
if (this[((("int_mc_tor" + i) + "stange") + stnr) + "_beruehrung"] == 0) {
int_stangenberuehrungen++;
}
this[((("int_mc_tor" + i) + "stange") + stnr) + "_beruehrung"]++;
trace((("BERUEHRUNG TOR" + i) + " STANGE") + stnr);
} else if (this[((("int_mc_tor" + i) + "stange") + stnr) + "_beruehrung"] > 0) {
this[((("int_mc_tor" + i) + "stange") + stnr) + "_beruehrung"]++;
}
this["mc_tore" + j]["mc_tor" + i]["mc_torstange" + stnr]._rotation = 10 * Math.sin(this[((("int_mc_tor" + i) + "stange") + stnr) + "_beruehrung"] / 20);
stnr++;
}
htnr++;
}
i++;
}
j++;
}
j = 1;
while (j <= 2) {
i = 1;
while (i <= int_anzahl_tore) {
if (this["mc_tore" + j]["mc_tor" + i].mc_hitter1.hitTest(this.mc_kajak.mc_hitter)) {
if (((this[("int_mc_tor" + i) + "int_status"] == 0) || (this[("int_mc_tor" + i) + "int_status"] == 11)) || (this[("int_mc_tor" + i) + "int_status"] == 12)) {
if (this[("int_mc_tor" + i) + "int_status"] == 0) {
this[("int_mc_tor" + i) + "int_status"] = 1;
trace(("TOR" + i) + " STATUS = 1");
}
}
}
if (this["mc_tore" + j]["mc_tor" + i].mc_hitter2.hitTest(this.mc_kajak.mc_hitter)) {
if (this[("int_mc_tor" + i) + "int_status"] == 1) {
this[("int_mc_tor" + i) + "int_status"] = 2;
trace(("TOR" + i) + " STATUS = 2");
}
}
if (this["mc_tore" + j]["mc_tor" + i].mc_hitter2.hitTest(this.mc_kajak.mc_hitter_bug) || (this["mc_tore" + j]["mc_tor" + i].mc_hitter2.hitTest(this.mc_kajak.mc_hitter_heck))) {
if (this[("int_mc_tor" + i) + "int_status"] == 2) {
this[("int_mc_tor" + i) + "int_status"] = 100;
trace(("TOR" + i) + " STATUS = 100");
int_anzahl_tore_gefahren++;
fn_playsound("snd_trara", 1);
}
}
if (this["mc_tore" + j]["mc_tor" + i].mc_hitter2.hitTest(this.mc_kajak.mc_hitter)) {
if (this[("int_mc_tor" + i) + "int_status"] == 0) {
if (this[("int_mc_tor" + i) + "int_status"] == 0) {
this[("int_mc_tor" + i) + "int_status"] = 11;
trace(("TOR" + i) + " STATUS = 1");
}
}
}
if (this["mc_tore" + j]["mc_tor" + i].mc_hitter1.hitTest(this.mc_kajak.mc_hitter)) {
if (this[("int_mc_tor" + i) + "int_status"] == 11) {
this[("int_mc_tor" + i) + "int_status"] = 12;
trace(("TOR" + i) + " STATUS = 2");
}
}
if (this["mc_tore" + j]["mc_tor" + i].mc_hitter2.hitTest(this.mc_kajak.mc_hitter_heck)) {
if (this[("int_mc_tor" + i) + "_richtung"] == 2) {
if ((this.mc_kajak._rotation <= 90) && (this.mc_kajak._rotation >= -90)) {
if (this[("int_mc_tor" + i) + "int_status"] == 12) {
trace("FEHLER TOR" + i);
int_anzahl_tore_gefahren++;
int_torfehler++;
fn_playsound("snd_buzzer", 1);
this[("int_mc_tor" + i) + "int_status"] = 99;
}
}
}
}
if (this["mc_tore" + j]["mc_tor" + i].mc_hitter2.hitTest(this.mc_kajak.mc_hitter_bug)) {
if (this[("int_mc_tor" + i) + "_richtung"] == 2) {
if ((this.mc_kajak._rotation >= 90) || (this.mc_kajak._rotation <= -90)) {
if (this[("int_mc_tor" + i) + "int_status"] == 12) {
trace("FEHLER TOR" + i);
int_anzahl_tore_gefahren++;
int_torfehler++;
this[("int_mc_tor" + i) + "int_status"] = 99;
}
}
}
}
if (this["mc_tore" + j]["mc_tor" + i].mc_hitter2.hitTest(this.mc_kajak.mc_hitter_heck)) {
if (this[("int_mc_tor" + i) + "_richtung"] == 1) {
if ((this.mc_kajak._rotation >= 90) || (this.mc_kajak._rotation <= -90)) {
if (this[("int_mc_tor" + i) + "int_status"] == 12) {
trace("FEHLER TOR" + i);
int_anzahl_tore_gefahren++;
int_torfehler++;
this[("int_mc_tor" + i) + "int_status"] = 99;
}
}
}
}
if (this["mc_tore" + j]["mc_tor" + i].mc_hitter2.hitTest(this.mc_kajak.mc_hitter_bug)) {
if (this[("int_mc_tor" + i) + "_richtung"] == 1) {
if ((this.mc_kajak._rotation <= 90) && (this.mc_kajak._rotation >= -90)) {
if (this[("int_mc_tor" + i) + "int_status"] == 12) {
trace("FEHLER TOR" + i);
int_anzahl_tore_gefahren++;
int_torfehler++;
this[("int_mc_tor" + i) + "int_status"] = 99;
}
}
}
}
i++;
}
j++;
}
zwischenTime = new Date();
zwischenTime = int(zwischenTime.getTime());
_root.num_timepassed = int(zwischenTime) - int(_root.num_savedzeit);
_root.num_savedzeit = zwischenTime;
if (int_zeitlaeuft == 1) {
zeit = int(zwischenTime) - int(_root.startzeit);
if (zeit < savedzeit) {
zeit = 120000 /* 0x01D4C0 */;
}
savedzeit = zeit;
mins = Math.floor(zeit / 60000);
minstext = "" + mins;
seks = Math.floor((zeit - (mins * 60000)) / 1000);
if (seks < 10) {
sekstext = "0" + seks;
} else {
sekstext = "" + seks;
}
miliseks = Math.floor((zeit - (mins * 60000)) - (seks * 1000));
if (miliseks < 10) {
milisekstext = "00" + miliseks;
} else if (miliseks < 100) {
milisekstext = "0" + miliseks;
} else {
milisekstext = "" + miliseks;
}
str_zeitanzeige = (((minstext + ":") + sekstext) + ".") + milisekstext;
}
str_fehler = "+" + int(((int_stangenberuehrungen * 2) + (int_torfehler * 20)) + (int_verpasst * 20));
int_fehler = (int_stangenberuehrungen * 2) + (int_torfehler * 20);
if ((int_zeitlaeuft == 0) && (this.mc_kajak.hitTest(this.mc_tore1.mc_startlinie) || (this.mc_kajak.hitTest(this.mc_tore2.mc_startlinie)))) {
trace("START TIME");
startTime = new Date();
_root.startzeit = int(startTime.getTime());
_root.num_savedzeit = _root.startzeit;
int_zeitlaeuft = 1;
this.mc_pfeil1._visible = true;
}
if ((int_zeitlaeuft == 1) && (this.mc_tore1.mc_ziellinie.hitTest(mc_kajak) || (this.mc_tore2.mc_ziellinie.hitTest(mc_kajak)))) {
int_zeitlaeuft = 2;
int_verpasst = int_anzahl_tore - int_anzahl_tore_gefahren;
str_fehler = "+" + int(((int_stangenberuehrungen * 2) + (int_torfehler * 20)) + (int_verpasst * 20));
int_endzeit = int(((int_verpasst * 20000) + (int_fehler * 1000)) + zeit) / 1000;
trace("Verpasst: " + int_verpasst);
trace("Endzeit: " + int_endzeit);
this.mc_anzeigetafel.outputText1.text = int_endzeit + _root.txt_abk_sek;
this.mc_anzeigetafel.outputTextStart.text = _root.txt_weiter;
_root.fn_writescore(int_endzeit);
new mx.transitions.Tween(this.mc_anzeigetafel, "_y", Elastic.easeIn, -200, 0, 1, true);
trace("------ Endzeit: " + int_endzeit);
}
}
};
fn_checkstroemung = function () {
int_bugstroemung = num_stroemung2;
int_heckstroemung = num_stroemung2;
int_mittelstroemung = num_stroemung2;
if (this.mc_fluss1.mc_stroemung1.hitTest(this.mc_kajak._x + num_bug_x, (this.mc_kajak._y + num_bug_y) + 45, true) || (this.mc_fluss2.mc_stroemung1.hitTest(this.mc_kajak._x + num_bug_x, (this.mc_kajak._y + num_bug_y) + 45, true))) {
int_bugstroemung = num_stroemung1;
}
if (this.mc_fluss1.mc_stroemung1.hitTest(this.mc_kajak._x + num_heck_x, (this.mc_kajak._y + num_heck_y) + 45, true) || (this.mc_fluss2.mc_stroemung1.hitTest(this.mc_kajak._x + num_heck_x, (this.mc_kajak._y + num_heck_y) + 45, true))) {
int_heckstroemung = num_stroemung1;
}
if (this.mc_fluss1.mc_stroemung1.hitTest(this.mc_kajak._x, this.mc_kajak._y + 45, true) || (this.mc_fluss2.mc_stroemung1.hitTest(this.mc_kajak._x, this.mc_kajak._y + 45, true))) {
int_mittelstroemung = num_stroemung1;
}
if (this.mc_fluss1.mc_stroemung3.hitTest(this.mc_kajak._x + num_bug_x, (this.mc_kajak._y + num_bug_y) + 45, true) || (this.mc_fluss2.mc_stroemung3.hitTest(this.mc_kajak._x + num_bug_x, (this.mc_kajak._y + num_bug_y) + 45, true))) {
int_bugstroemung = num_stroemung3;
}
if (this.mc_fluss1.mc_stroemung3.hitTest(this.mc_kajak._x + num_heck_x, (this.mc_kajak._y + num_heck_y) + 45, true) || (this.mc_fluss2.mc_stroemung3.hitTest(this.mc_kajak._x + num_heck_x, (this.mc_kajak._y + num_heck_y) + 45, true))) {
int_heckstroemung = num_stroemung3;
}
if (this.mc_fluss1.mc_stroemung3.hitTest(this.mc_kajak._x, this.mc_kajak._y + 45, true) || (this.mc_fluss2.mc_stroemung3.hitTest(this.mc_kajak._x, this.mc_kajak._y + 45, true))) {
int_mittelstroemung = num_stroemung3;
}
if (this.mc_fluss1.mc_stroemung4.hitTest(this.mc_kajak._x + num_bug_x, (this.mc_kajak._y + num_bug_y) + 45, true) || (this.mc_fluss2.mc_stroemung4.hitTest(this.mc_kajak._x + num_bug_x, (this.mc_kajak._y + num_bug_y) + 45, true))) {
int_bugstroemung = num_stroemung4;
}
if (this.mc_fluss1.mc_stroemung4.hitTest(this.mc_kajak._x + num_heck_x, (this.mc_kajak._y + num_heck_y) + 45, true) || (this.mc_fluss2.mc_stroemung4.hitTest(this.mc_kajak._x + num_heck_x, (this.mc_kajak._y + num_heck_y) + 45, true))) {
int_heckstroemung = num_stroemung4;
}
if (this.mc_fluss1.mc_stroemung4.hitTest(this.mc_kajak._x, this.mc_kajak._y + 45, true) || (this.mc_fluss2.mc_stroemung4.hitTest(this.mc_kajak._x, this.mc_kajak._y + 45, true))) {
int_mittelstroemung = num_stroemung4;
}
num_stroemung_togo = ((int_bugstroemung + int_heckstroemung) + int_mittelstroemung) / 3;
num_stroemung = num_stroemung + ((num_stroemung_togo - num_stroemung) / 10);
num_rotfaktor = Math.sin((this.mc_kajak._rotation / 180) * Math.PI);
int_stroemungsrotation = ((-(int_bugstroemung - int_heckstroemung)) * num_rotfaktor) * 2;
};
fn_checkhit = function (int_checktest) {
num_bug_x = Math.round(-30 * Math.cos((Math.PI/180) * (90 + this.mc_kajak._rotation)));
num_bug_y = Math.round(-30 * Math.sin((Math.PI/180) * (90 + this.mc_kajak._rotation)));
num_heck_x = Math.round(30 * Math.cos((Math.PI/180) * (90 + this.mc_kajak._rotation)));
num_heck_y = Math.round(30 * Math.sin((Math.PI/180) * (90 + this.mc_kajak._rotation)));
num_left_x = Math.round(10 * Math.cos((Math.PI/180) * this.mc_kajak._rotation));
num_left_y = Math.round(10 * Math.sin((Math.PI/180) * this.mc_kajak._rotation));
num_right_x = Math.round(-10 * Math.cos((Math.PI/180) * this.mc_kajak._rotation));
num_right_y = Math.round(-10 * Math.sin((Math.PI/180) * this.mc_kajak._rotation));
int_kollisiondetected = 0;
if (this.mc_fluss1.mc_hindernisse.hitTest(this.mc_kajak._x + num_bug_x, (this.mc_kajak._y + num_bug_y) + 45, true) || (this.mc_fluss2.mc_hindernisse.hitTest(this.mc_kajak._x + num_bug_x, (this.mc_kajak._y + num_bug_y) + 45, true))) {
if (int_checktest == 0) {
if (int_kollisiondetected == 0) {
int_kollisiondetected = 1;
fn_hit("bug");
}
} else {
int_kollisionscheck = 1;
}
}
if (this.mc_fluss1.mc_hindernisse.hitTest(this.mc_kajak._x + num_heck_x, (this.mc_kajak._y + num_heck_y) + 45, true) || (this.mc_fluss2.mc_hindernisse.hitTest(this.mc_kajak._x + num_heck_x, (this.mc_kajak._y + num_heck_y) + 45, true))) {
if (int_checktest == 0) {
if (int_kollisiondetected == 0) {
int_kollisiondetected = 1;
fn_hit("heck");
}
} else {
int_kollisionscheck = 1;
}
}
if (this.mc_fluss1.mc_hindernisse.hitTest(this.mc_kajak._x + num_left_x, (this.mc_kajak._y + num_left_y) + 45, true) || (this.mc_fluss2.mc_hindernisse.hitTest(this.mc_kajak._x + num_left_x, (this.mc_kajak._y + num_left_y) + 45, true))) {
if (int_checktest == 0) {
if (int_kollisiondetected == 0) {
int_kollisiondetected = 1;
fn_hit("left");
}
} else {
int_kollisionscheck = 1;
}
}
if (this.mc_fluss1.mc_hindernisse.hitTest(this.mc_kajak._x + num_right_x, (this.mc_kajak._y + num_right_y) + 45, true) || (this.mc_fluss2.mc_hindernisse.hitTest(this.mc_kajak._x + num_right_x, (this.mc_kajak._y + num_right_y) + 45, true))) {
if (int_checktest == 0) {
if (int_kollisiondetected == 0) {
int_kollisiondetected = 1;
fn_hit("right");
}
} else {
int_kollisionscheck = 1;
}
}
};
fn_hit = function (str_kollisionsort) {
if (str_kollisionsort == "bug") {
int_kollisionsrotation = this.mc_kajak._rotation;
if (int_kollisionsrotation <= -90) {
int_kollisionsrotation = -(180 + int_kollisionsrotation);
}
int_kollisionsrotation = int_kollisionsrotation / 10;
}
if (str_kollisionsort == "heck") {
int_kollisionsrotation = -this.mc_kajak._rotation;
if (int_kollisionsrotation <= -90) {
int_kollisionsrotation = -(180 + int_kollisionsrotation);
}
int_kollisionsrotation = int_kollisionsrotation / 10;
}
if (str_kollisionsort == "left") {
int_kollisionsrotation = this.mc_kajak._rotation + 90;
if (int_kollisionsrotation <= -90) {
int_kollisionsrotation = -(180 + int_kollisionsrotation);
}
int_kollisionsrotation = int_kollisionsrotation / 20;
}
if (str_kollisionsort == "right") {
int_kollisionsrotation = this.mc_kajak._rotation - 90;
if (int_kollisionsrotation <= -90) {
int_kollisionsrotation = -(180 + int_kollisionsrotation);
}
int_kollisionsrotation = int_kollisionsrotation / 20;
}
fn_loadpos();
mc_freiweg1._x = mc_kajak._x;
mc_freiweg2._x = mc_kajak._x;
mc_freiweg3._x = mc_kajak._x - 40;
mc_freiweg4._x = mc_kajak._x + 40;
if (this.mc_fluss1.mc_hindernisse.hitTest(this.mc_freiweg1._x, this.mc_freiweg1._y + 45, true) || (this.mc_fluss2.mc_hindernisse.hitTest(this.mc_freiweg1._x, this.mc_freiweg1._y + 45, true))) {
trace("FREIWEG 1!!!!!!!!!!");
this.mc_fluss1._y = this.mc_fluss1._y - (num_stroemung + 1);
this.mc_fluss2._y = this.mc_fluss2._y - (num_stroemung + 1);
fn_savepos();
}
if (this.mc_fluss1.mc_hindernisse.hitTest(this.mc_freiweg2._x, this.mc_freiweg2._y + 45, true) || (this.mc_fluss2.mc_hindernisse.hitTest(this.mc_freiweg2._x, this.mc_freiweg2._y + 45, true))) {
trace("FREIWEG 2!!!!!!!!!!");
trace((this.mc_fluss1._y + " - ") + this.mc_fluss2._y);
this.mc_fluss1._y = this.mc_fluss1._y + 1;
this.mc_fluss2._y = this.mc_fluss2._y + 1;
trace((this.mc_fluss1._y + " - ") + this.mc_fluss2._y);
fn_savepos();
}
if (this.mc_fluss1.mc_hindernisse.hitTest(this.mc_freiweg3._x, this.mc_freiweg3._y + 45, true) || (this.mc_fluss2.mc_hindernisse.hitTest(this.mc_freiweg3._x, this.mc_freiweg3._y + 45, true))) {
trace("FREIWEG 3!!!!!!!!!!");
this.mc_kajak._x++;
this.mc_kajak._x++;
fn_savepos();
}
if (this.mc_fluss1.mc_hindernisse.hitTest(this.mc_freiweg4._x, this.mc_freiweg4._y + 45, true) || (this.mc_fluss2.mc_hindernisse.hitTest(this.mc_freiweg4._x, this.mc_freiweg4._y + 45, true))) {
trace("FREIWEG 4!!!!!!!!!!");
this.mc_kajak._x--;
this.mc_kajak._x--;
fn_savepos();
}
this.mc_kajak._rotation = this.mc_kajak._rotation + int_kollisionsrotation;
};
fn_savepos = function () {
save_flussimg1 = this.mc_fluss1._currentframe;
save_flussimg2 = this.mc_fluss2._currentframe;
save_flussY1 = this.mc_fluss1._y;
save_flussY2 = this.mc_fluss2._y;
save_int_streckenabschnitt = int_streckenabschnitt;
save_kajakX = this.mc_kajak._x;
save_kajakY = this.mc_kajak._y;
save_kajakrot = this.mc_kajak._rotation;
};
fn_loadpos = function () {
this.mc_fluss1.gotoAndStop(save_flussimg1);
this.mc_fluss2.gotoAndStop(save_flussimg2);
this.mc_fluss1._y = save_flussY1;
this.mc_fluss2._y = save_flussY2;
int_streckenabschnitt = save_int_streckenabschnitt;
this.mc_kajak._x = save_kajakX;
this.mc_kajak._y = save_kajakY;
};
var myListenerKajak = new Object();
myListenerKajak.onKeyDown = function () {
switch (Key.getCode()) {
case 37 :
int_leftrot = 1;
return;
case 39 :
int_rightrot = 1;
return;
case 38 :
int_upgedrueckt = 1;
return;
case 40 :
int_downgedrueckt = 1;
return;
case 32 :
}
};
myListenerKajak.onKeyUp = function () {
int_keypressed = 0;
switch (Key.getCode()) {
case 37 :
int_leftrot = 0;
return;
case 39 :
int_rightrot = 0;
return;
case 38 :
int_upgedrueckt = 0;
return;
case 40 :
int_downgedrueckt = 0;
}
};
Key.addListener(myListenerKajak);
Instance of Symbol 636 MovieClip "mc_anleitung" in Symbol 842 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.int_id_disziplin);
}
onClipEvent (enterFrame) {
if (this._x <= 604) {
this.gotoAndStop(_root.int_id_disziplin);
if (this._parent.mc_anzeigetafel._y <= -21) {
this._x = this._x + 5;
}
}
}
Symbol 855 MovieClip Frame 1
stop();
Symbol 859 MovieClip Frame 1
stop();
Symbol 863 MovieClip Frame 1
stop();
Symbol 873 MovieClip Frame 1
stop();
Symbol 873 MovieClip Frame 10
stop();
Symbol 880 MovieClip Frame 1
stop();
Symbol 882 MovieClip Frame 1
function fn_splash(int_splashvalue) {
i = 1;
while (i <= (int_splashvalue * 2)) {
this.mc_tropfen.duplicateMovieClip("mc_tropfen" + i, i);
this["mc_tropfen" + i].int_velocityX = Math.round(random(int_splashvalue) - (int_splashvalue / 2)) / 10;
this["mc_tropfen" + i].int_velocityY = -5 - (Math.round(random(int_splashvalue)) / 3);
this["mc_tropfen" + i]._x = this["mc_tropfen" + i]._x + Math.round(random(int_splashvalue) - (int_splashvalue / 2));
this["mc_tropfen" + i].int_gravitation = 1 + (random(10) / 10);
this["mc_tropfen" + i].mc_kleintropfen1.gotoAndStop(random(6) + 1);
this["mc_tropfen" + i].mc_kleintropfen2.gotoAndStop(random(6) + 1);
this["mc_tropfen" + i].mc_kleintropfen3.gotoAndStop(random(6) + 1);
this["mc_tropfen" + i].mc_kleintropfen4.gotoAndStop(random(6) + 1);
this["mc_tropfen" + i].int_startY = this["mc_tropfen" + i]._y;
this["mc_tropfen" + i].onEnterFrame = function () {
this._x = this._x + this.int_velocityX;
this._y = this._y + this.int_velocityY;
this.int_velocityY = this.int_velocityY + this.int_gravitation;
this.mc_kleintropfen1._x = this.mc_kleintropfen1._x - random(3);
this.mc_kleintropfen1._y = this.mc_kleintropfen1._y - random(3);
this.mc_kleintropfen2._x = this.mc_kleintropfen2._x + random(3);
this.mc_kleintropfen2._y = this.mc_kleintropfen2._y - random(3);
this.mc_kleintropfen3._x = this.mc_kleintropfen3._x - random(3);
this.mc_kleintropfen3._y = this.mc_kleintropfen3._y + random(3);
this.mc_kleintropfen4._x = this.mc_kleintropfen4._x + random(3);
this.mc_kleintropfen4._y = this.mc_kleintropfen4._y + random(3);
if (this._y > (this.int_startY + 20)) {
this.removeMovieClip();
}
};
i++;
}
}
this.mc_tropfen._visible = false;
Symbol 897 MovieClip Frame 51
stop();
Symbol 900 Button
on (release, keyPress "<Enter>") {
trace("ENTER");
if ((mc_anzeigetafel.outputTextStart.text == _root.txt_weiter) && (int_keypressed == 0)) {
int_keypressed = 1;
trace("ENTER2");
if (mc_anzeigetafel._y == 0) {
trace("RESET");
fn_reset();
}
}
if ((mc_anzeigetafel.outputTextStart.text == _root.txt_start) && (int_keypressed == 0)) {
int_keypressed = 1;
trace("ENTER3");
if (mc_anzeigetafel._y == 0) {
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(mc_anzeigetafel, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
int_sprungY = -10;
int_sprungX = 12;
int_rotation = 5;
num_rotationsfaktor = num_rotationsfaktor1;
str_fig = "pos1";
int_startverzoegerung = 20;
}
}
}
}
on (release, keyPress "<Space>") {
trace("SPACE");
if ((mc_anzeigetafel.outputTextStart.text == _root.txt_weiter) && (int_keypressed == 0)) {
int_keypressed = 1;
trace("SPACE2");
if (mc_anzeigetafel._y == 0) {
trace("RESET");
fn_reset();
}
}
if ((mc_anzeigetafel.outputTextStart.text == _root.txt_start) && (int_keypressed == 0)) {
int_keypressed = 1;
trace("SPACE3");
if (mc_anzeigetafel._y == 0) {
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(mc_anzeigetafel, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
int_sprungY = -10;
int_sprungX = 12;
int_rotation = 5;
num_rotationsfaktor = num_rotationsfaktor1;
str_fig = "pos1";
int_startverzoegerung = 20;
}
}
}
}
Symbol 901 MovieClip Frame 1
_root.int_id_disziplin = 4;
_root.int_attempt = 1;
_root.int_attempts_total = 4;
_root.int_timeout_showtopscore = 0;
int_keypressed = 0;
this.mc_anzeigetafel.gotoAndStop(3);
this.mc_anzeigetafel.outputText2.text = "---";
this.mc_anzeigetafel.outputText3.text = "---";
this.mc_anzeigetafel.outputText4.text = "---";
this.mc_anzeigetafel.outputText5.text = "---";
this.mc_anzeigetafel.outputText6.text = _root.txt_sprung + " 1";
this.mc_anzeigetafel.outputText7.text = _root.txt_sprung + " 2";
this.mc_anzeigetafel.outputText8.text = _root.txt_sprung + " 3";
this.mc_anzeigetafel.outputText9.text = _root.txt_sprung + " 4";
_root.fn_reset_userdata();
this.mc_anzeigetafel.btn_start.onRelease = function () {
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(this._parent, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
int_sprungY = -10;
int_sprungX = 12;
int_rotation = 5;
num_rotationsfaktor = num_rotationsfaktor1;
str_fig = "pos1";
int_startverzoegerung = 20;
} else {
this._parent._parent.fn_reset();
}
};
fn_reset = function () {
int_spiellaeuft = 0;
int_gravitation = 0.8;
int_xstopp = 0.5;
int_splash = 0;
int_wartenbisabsprung = 7;
int_score = 0;
int_wertungenzeigen = 100;
this.mc_turm.mc_wertung1.gotoAndStop(1);
this.mc_turm.mc_wertung2.gotoAndStop(1);
this.mc_turm.mc_wertung3.gotoAndStop(1);
_root.fn_nextplayer();
if (_root.int_attempt == 1) {
this.mc_figur._x = 258;
this.mc_figur._y = 145;
this.mc_figur._xscale = 100;
int_maxY = 17;
num_rotationsfaktor1 = 1;
num_rotationsfaktor2 = 2;
num_rotationsfaktor3 = 4;
int_pos2_gezeigt = 10;
int_pos3_gezeigt = 10;
}
if (_root.int_attempt == 2) {
this.mc_figur._x = 258;
this.mc_figur._y = 145;
this.mc_figur._xscale = 100;
int_maxY = 17;
num_rotationsfaktor1 = -1;
num_rotationsfaktor2 = -2;
num_rotationsfaktor3 = -4;
int_pos2_gezeigt = 10;
int_pos3_gezeigt = 10;
}
if (_root.int_attempt == 3) {
this.mc_figur._x = 258;
this.mc_figur._y = 145;
this.mc_figur._xscale = -100;
int_maxY = 17;
num_rotationsfaktor1 = 1;
num_rotationsfaktor2 = 2;
num_rotationsfaktor3 = 4;
int_pos2_gezeigt = 15;
int_pos3_gezeigt = 15;
}
if (_root.int_attempt == 4) {
this.mc_figur._x = 258;
this.mc_figur._y = 145;
this.mc_figur._xscale = -100;
int_maxY = 17;
num_rotationsfaktor1 = -1;
num_rotationsfaktor2 = -2;
num_rotationsfaktor3 = -4;
int_pos2_gezeigt = 15;
int_pos3_gezeigt = 15;
}
this.mc_turm._y = 200;
this.mc_sprungturm_vordergrund._y = this.mc_turm._y;
int_spiellaeuft = 0;
this.mc_anzeigetafel.outputText0.text = _root["user" + _root.int_spieler_am_zug].str_username;
this.mc_anzeigetafel.outputText1.text = (_root.txt_sprung + " ") + _root.int_attempt;
this.mc_anzeigetafel.outputTextStart.text = _root.txt_start;
this.mc_anzeigetafel._y = 0;
};
fn_reset();
onEnterFrame = function () {
if (int_spiellaeuft == 1) {
if (int_startverzoegerung == 0) {
mc_figur.play();
int_wartenbisabsprung--;
if (int_wartenbisabsprung <= 0) {
int_spiellaeuft = 2;
}
} else {
int_startverzoegerung--;
}
}
if (int_spiellaeuft == 2) {
if (int_sprungX > 0) {
this.mc_figur._x = this.mc_figur._x + int_sprungX;
int_sprungX = int_sprungX - int_xstopp;
}
if ((int_sprungY <= 0) || (this.mc_turm._y <= -700)) {
this.mc_figur._y = this.mc_figur._y + int_sprungY;
} else {
this.mc_turm._y = this.mc_turm._y - int_sprungY;
if (this.mc_turm._y < -700) {
this.mc_turm._y = -700;
}
}
int_sprungY = int_sprungY + int_gravitation;
if (int_sprungY > int_maxY) {
int_sprungY = int_maxY;
}
this.mc_figur._rotation = this.mc_figur._rotation + (int_rotation * num_rotationsfaktor);
if (str_fig == "pos2") {
int_pos2_gezeigt--;
if (int_pos2_gezeigt == 0) {
int_score = int_score + 40;
}
int_score = int_score + 1;
}
if (str_fig == "pos3") {
int_pos3_gezeigt--;
if (int_pos3_gezeigt == 0) {
int_score = int_score + 40;
}
int_score = int_score + 2;
}
mc_sprungturm_vordergrund._y = mc_turm._y;
if (((this.mc_figur._y + (this.mc_figur._height / 2)) > 300) && (int_splash == 0)) {
int_splash = 1;
if (str_fig != "pos1") {
int_splashvalue = 100;
fn_playsound("snd_splash4", 1);
int_score = 0;
int_wertung1 = 0;
int_wertung2 = 0;
int_wertung3 = 0;
int_wertung_total = 0;
mc_sprungturm_vordergrund.mc_sprutz2._xscale = (mc_sprungturm_vordergrund.mc_sprutz2._yscale = 100);
} else {
int_eintauchmultiplikator = Math.sin(((this.mc_figur._rotation - 10) / 180) * Math.PI);
if (int_eintauchmultiplikator < 0) {
int_eintauchmultiplikator = -int_eintauchmultiplikator;
}
trace("Score vor Aufschlag: " + int_score);
int_wertung1 = Math.round((int_score / 2) * (1 - int_eintauchmultiplikator)) / 10;
trace("int_eintauchmultiplikator: " + int_eintauchmultiplikator);
int_score = int_score * (1 - int_eintauchmultiplikator);
int_wertung2 = Math.round((1 - int_eintauchmultiplikator) * 100) / 10;
trace("Score nach Aufschlag: " + int_score);
if (((this.mc_figur._rotation > 90) && (this.mc_figur._rotation < 270)) || ((this.mc_figur._rotation > -270) && (this.mc_figur._rotation < -90))) {
trace("Kopf! " + this.mc_figur._rotation);
int_score = int_score;
} else {
trace("Fuss! " + this.mc_figur._rotation);
int_score = int_score * 0.4;
int_wertung1 = Math.round((int_score / 2) * (1 - int_eintauchmultiplikator)) / 10;
int_wertung2 = Math.round((1 - int_eintauchmultiplikator) * 100) / 10;
}
int_wertung3 = Math.round(int_score / 2) / 10;
if (int_wertung1 > 10) {
int_wertung1 = 10;
}
if (int_wertung2 > 10) {
int_wertung2 = 10;
}
while ((int_wertung2 - int_wertung1) > 1.5) {
int_wertung2 = int_wertung2 - 1;
}
if (int_wertung3 > 10) {
int_wertung3 = 10;
}
trace("-----------------------> Score: " + int_score);
trace((((("-----------------------> Wertung1: " + int_wertung1) + " 2: ") + int_wertung2) + " 3: ") + int_wertung3);
int_wertung_total = Math.round((((int_wertung1 + int_wertung2) + int_wertung3) / 3) * 10) / 10;
trace("-----------------------> Gesamtwertung: " + int_wertung_total);
int_splashvalue = int_eintauchmultiplikator * 100;
if (int_splashvalue < 20) {
fn_playsound("snd_splash1", 1);
} else if (int_splashvalue < 40) {
fn_playsound("snd_splash2", 1);
} else if (int_splashvalue < 60) {
fn_playsound("snd_splash3", 1);
} else {
fn_playsound("snd_splash4", 1);
}
mc_sprungturm_vordergrund.mc_sprutz2._xscale = (mc_sprungturm_vordergrund.mc_sprutz2._yscale = (90 * int_eintauchmultiplikator) + 10);
}
mc_sprungturm_vordergrund.mc_splash.fn_splash(int_splashvalue);
mc_sprungturm_vordergrund.mc_sprutz2.play();
int_spiellaeuft = 3;
}
}
if (int_spiellaeuft == 3) {
this.mc_figur._y = this.mc_figur._y + int_sprungY;
int_sprungY = int_sprungY - 1;
if (this.mc_figur._y < 300) {
this.mc_figur._y = 300;
}
if (int_sprungY < -3) {
int_sprungY = -3;
this.mc_figur._rotation = 0;
this.mc_figur.gotoAndStop(1);
}
int_wertungenzeigen--;
if (int_wertungenzeigen == 70) {
trace("WERTUNG: " + int_wertung1);
this.mc_turm.mc_wertung1.int_wertung = int_wertung1;
this.mc_turm.mc_wertung1.gotoAndStop(2);
}
if (int_wertungenzeigen == 50) {
this.mc_turm.mc_wertung2.int_wertung = int_wertung2;
this.mc_turm.mc_wertung2.gotoAndStop(2);
}
if (int_wertungenzeigen == 30) {
this.mc_turm.mc_wertung3.int_wertung = int_wertung3;
this.mc_turm.mc_wertung3.gotoAndStop(2);
if (int_wertung_total > 4) {
fn_playsound("snd_smallcrowdapplause", 1);
}
}
if (int_wertungenzeigen == 0) {
this.mc_anzeigetafel.outputText1.text = int_wertung_total;
_root.fn_writescore(int_wertung_total);
this.mc_anzeigetafel.outputTextStart.text = _root.txt_weiter;
new mx.transitions.Tween(this.mc_anzeigetafel, "_y", Elastic.easeIn, -200, 0, 1, true);
}
}
};
var myListenerTurmspringen = new Object();
myListenerTurmspringen.onKeyDown = function () {
switch (Key.getCode()) {
case 37 :
if (int_spiellaeuft == 2) {
mc_figur.gotoAndStop("pos2");
str_fig = "pos2";
num_rotationsfaktor = num_rotationsfaktor2;
}
return;
case 39 :
if (int_spiellaeuft == 2) {
mc_figur.gotoAndStop("pos3");
str_fig = "pos3";
num_rotationsfaktor = num_rotationsfaktor3;
}
return;
case 38 :
trace("Turmspringen UP");
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(mc_anzeigetafel, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
int_sprungY = -10;
int_sprungX = 12;
int_rotation = 5;
num_rotationsfaktor = num_rotationsfaktor1;
str_fig = "pos1";
int_startverzoegerung = 20;
} else if (int_spiellaeuft == 2) {
num_rotationsfaktor = num_rotationsfaktor1;
mc_figur.gotoAndStop("pos1");
str_fig = "pos1";
}
return;
case 40 :
if (int_spiellaeuft == 2) {
num_rotationsfaktor = num_rotationsfaktor1;
mc_figur.gotoAndStop("pos1");
str_fig = "pos1";
}
return;
case 32 :
}
};
myListenerTurmspringen.onKeyUp = function () {
int_keypressed = 0;
switch (Key.getCode()) {
case 37 :
return;
case 39 :
return;
case 38 :
}
};
Key.addListener(myListenerTurmspringen);
Instance of Symbol 636 MovieClip "mc_anleitung" in Symbol 901 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.int_id_disziplin);
}
onClipEvent (enterFrame) {
if (this._x <= 604) {
this.gotoAndStop(_root.int_id_disziplin);
if (this._parent.mc_anzeigetafel._y <= -21) {
this._x = this._x + 5;
}
}
}
Symbol 912 MovieClip Frame 1
stop();
Symbol 912 MovieClip Frame 2
fn_playsound("snd_crash", 1);
Symbol 912 MovieClip Frame 11
stop();
Symbol 936 MovieClip Frame 8
stop();
Symbol 941 MovieClip Frame 2
fn_playsound("snd_shot", 1);
Symbol 941 MovieClip Frame 4
stop();
Symbol 944 MovieClip Frame 1
stop();
Symbol 946 Button
on (release, keyPress "<Enter>") {
trace("ENTER");
if (mc_anzeigetafel.outputTextStart.text == _root.txt_weiter) {
trace("ENTER2");
if (mc_anzeigetafel._y == 0) {
trace("RESET");
fn_reset_tontaubenschiessen();
}
}
}
on (release, keyPress "<Space>") {
trace("SPACE");
if (mc_anzeigetafel.outputTextStart.text == _root.txt_weiter) {
trace("SPACE2");
if (mc_anzeigetafel._y == 0) {
trace("RESET");
fn_reset_tontaubenschiessen();
}
}
}
Symbol 947 MovieClip Frame 1
_root.int_id_disziplin = 5;
_root.int_attempt = 1;
_root.int_attempts_total = 1;
_root.int_timeout_showtopscore = 0;
_root.fn_reset_userdata();
this.mc_anzeigetafel.gotoAndStop(2);
this.mc_anzeigetafel.btn_start.onRelease = function () {
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(this._parent, "_y", Elastic.easeIn, 0, -200, 1, true);
this._parent._parent.int_spiellaeuft = 1;
this._parent._parent.int_wartenzumschuss = 50;
Mouse.hide();
this._parent._parent.mc_visier._visible = true;
} else {
this._parent._parent.fn_reset_tontaubenschiessen();
}
};
this.mc_visier._visible = false;
fn_reset = function () {
trace("Resetten Normal");
this.mc_rundenanzeige.gotoAndStop(11 - int_anzahl_runden);
this.mc_tontaube1._x = -30;
this.mc_tontaube2._x = 630;
this.mc_tontaube1.gotoAndStop(1);
this.mc_tontaube2.gotoAndStop(1);
int_wartenzumschuss = 30;
int_anz_schuss = 2;
fn_playsound("snd_reload", 1);
mc_munanzeige.gotoAndStop(3 - int_anz_schuss);
int_sinuscounterX = 0;
int_sinuscounterY = 0;
this.mc_tontaube1.int_flugspeedy = -6;
this.mc_tontaube2.int_flugspeedy = -4;
num_gravitation = 0.2;
int_taubenabstand = int_anzahl_runden * 2;
int_pause = 40;
};
fn_reset_tontaubenschiessen = function () {
int_spiellaeuft = 0;
this.mc_blitz.gotoAndStop(this.mc_blitz._totalframes);
this.mc_lauf.mc_rauch.gotoAndStop(this.mc_lauf.mc_rauch._totalframes);
this.mc_tontaube1.int_richtung = 1;
this.mc_tontaube2.int_richtung = -1;
trace("Resetten Tontaubenschiessen");
_root.fn_nextplayer();
int_spiellaeuft = 0;
this.mc_anzeigetafel.outputText0.text = _root["user" + _root.int_spieler_am_zug].str_username;
this.mc_anzeigetafel.outputText1.text = _root.txt_start;
this.mc_anzeigetafel.outputTextStart.text = _root.txt_start;
this.mc_anzeigetafel._y = 0;
int_anzahl_runden = 10;
int_flugspeedx = 14;
int_getroffen = 0;
fn_reset();
};
fn_reset_tontaubenschiessen();
onEnterFrame = function () {
mc_wolke1._x = mc_wolke1._x + 0.5;
mc_wolke2._x = mc_wolke2._x - 0.6;
if (mc_wolke1._x > 650) {
mc_wolke1._x = -500;
}
if (mc_wolke2._x < -500) {
mc_wolke2._x = 650;
}
if (int_spiellaeuft == 1) {
int_sinuscounterX = int_sinuscounterX + (random(10) / 10);
int_sinuscounterY = int_sinuscounterY + (random(10) / 10);
this.mc_visier.mc_visier._x = 3 * Math.sin(int_sinuscounterX);
this.mc_visier.mc_visier._y = 3 * Math.sin(int_sinuscounterY);
this.mc_visier._x = _xmouse;
this.mc_visier._y = _ymouse;
num_distanz_x = 300 - this.mc_visier._x;
num_distanz_y = this.mc_lauf._y - this.mc_visier._y;
xdelta = num_distanz_x;
ydelta = num_distanz_y;
num_winkel = Math.atan2(ydelta, xdelta);
num_winkel = ((num_winkel * 180) / Math.PI) - 90;
this.mc_lauf._rotation = num_winkel - this._rotation;
int_scheibedraussen = 0;
if (int_wartenzumschuss <= 0) {
this["mc_tontaube" + int_taubezuerst]._x = this["mc_tontaube" + int_taubezuerst]._x + (int_flugspeedx * this["mc_tontaube" + int_taubezuerst].int_richtung);
this["mc_tontaube" + int_taubezuerst]._y = this["mc_tontaube" + int_taubezuerst]._y + this["mc_tontaube" + int_taubezuerst].int_flugspeedy;
this["mc_tontaube" + int_taubezuerst].int_flugspeedy = this["mc_tontaube" + int_taubezuerst].int_flugspeedy + num_gravitation;
if ((this["mc_tontaube" + int_taubezuerst]._x > 700) || (this["mc_tontaube" + int_taubezuerst]._x < -100)) {
int_scheibedraussen++;
}
if (int_taubenabstand <= 0) {
this["mc_tontaube" + int_taubedanach]._x = this["mc_tontaube" + int_taubedanach]._x + (int_flugspeedx * this["mc_tontaube" + int_taubedanach].int_richtung);
this["mc_tontaube" + int_taubedanach]._y = this["mc_tontaube" + int_taubedanach]._y + this["mc_tontaube" + int_taubedanach].int_flugspeedy;
this["mc_tontaube" + int_taubedanach].int_flugspeedy = this["mc_tontaube" + int_taubedanach].int_flugspeedy + num_gravitation;
if ((this["mc_tontaube" + int_taubedanach]._x > 700) || (this["mc_tontaube" + int_taubedanach]._x < -100)) {
int_scheibedraussen++;
}
} else {
int_taubenabstand--;
}
} else {
int_wartenzumschuss--;
this.mc_tontaube1._y = random(100) + 150;
this.mc_tontaube2._y = random(100) + 150;
this.mc_tontaube1.int_flugspeedy = -3 - random(4);
this.mc_tontaube2.int_flugspeedy = -3 - random(4);
int_taubezuerst = random(2) + 1;
if (int_taubezuerst == 1) {
int_taubedanach = 2;
} else {
int_taubedanach = 1;
}
}
if (int_scheibedraussen == 2) {
int_pause--;
if (int_pause == 0) {
if (int_anzahl_runden > 0) {
int_anzahl_runden--;
int_flugspeedx = int_flugspeedx + 0.4;
fn_reset();
} else {
Mouse.show();
mc_visier._visible = 0;
this.mc_anzeigetafel.outputText1.text = int_getroffen;
this.mc_anzeigetafel.outputTextStart.text = _root.txt_weiter;
_root.fn_writescore(int_getroffen);
new mx.transitions.Tween(this.mc_anzeigetafel, "_y", Elastic.easeIn, -200, 0, 1, true);
}
}
}
}
};
this.mc_visier.onPress = function () {
if ((this._parent.int_spiellaeuft == 1) && (this._parent.int_anz_schuss > 0)) {
this._parent.int_anz_schuss--;
this._parent.mc_munanzeige.gotoAndStop(3 - int_anz_schuss);
this._parent.mc_blitz.gotoAndPlay(1);
this._parent.mc_lauf.mc_rauch.play();
if (this.mc_visier.mc_hitter.hitTest(this._parent.mc_tontaube1) && (this._parent.mc_tontaube1._currentframe == 1)) {
this._parent.mc_tontaube1.play();
this._parent.int_getroffen++;
}
if (this.mc_visier.mc_hitter.hitTest(this._parent.mc_tontaube2) && (this._parent.mc_tontaube2._currentframe == 1)) {
this._parent.mc_tontaube2.play();
this._parent.int_getroffen++;
}
}
};
Instance of Symbol 636 MovieClip "mc_anleitung" in Symbol 947 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.int_id_disziplin);
}
onClipEvent (enterFrame) {
if (this._x <= 604) {
this.gotoAndStop(_root.int_id_disziplin);
if (this._parent.mc_anzeigetafel._y <= -21) {
this._x = this._x + 5;
}
}
}
Symbol 959 MovieClip Frame 1
stop();
Symbol 959 MovieClip Frame 2
fn_playsound("snd_deephit", 1);
Symbol 959 MovieClip Frame 3
fn_playsound("snd_deephit", 1);
Symbol 959 MovieClip Frame 4
fn_playsound("snd_deephit", 1);
Symbol 966 MovieClip Frame 1
stop();
Symbol 966 MovieClip Frame 2
fn_playsound("snd_deephit", 1);
Symbol 966 MovieClip Frame 3
fn_playsound("snd_deephit", 1);
Symbol 966 MovieClip Frame 4
fn_playsound("snd_deephit", 1);
Symbol 973 MovieClip Frame 1
stop();
Symbol 973 MovieClip Frame 2
fn_playsound("snd_deephit", 1);
Symbol 973 MovieClip Frame 3
fn_playsound("snd_deephit", 1);
Symbol 973 MovieClip Frame 4
fn_playsound("snd_deephit", 1);
Symbol 978 MovieClip Frame 1
stop();
Symbol 978 MovieClip Frame 2
fn_playsound("snd_deephit", 1);
Symbol 978 MovieClip Frame 3
fn_playsound("snd_deephit", 1);
Symbol 978 MovieClip Frame 4
fn_playsound("snd_deephit", 1);
Symbol 986 MovieClip Frame 1
stop();
Symbol 986 MovieClip Frame 2
fn_playsound("snd_deephit", 1);
Symbol 986 MovieClip Frame 3
fn_playsound("snd_deephit", 1);
Symbol 986 MovieClip Frame 4
fn_playsound("snd_deephit", 1);
Symbol 995 MovieClip Frame 1
stop();
Symbol 995 MovieClip Frame 2
fn_playsound("snd_deephit", 1);
Symbol 995 MovieClip Frame 3
fn_playsound("snd_deephit", 1);
Symbol 995 MovieClip Frame 4
fn_playsound("snd_deephit", 1);
Symbol 995 MovieClip Frame 5
fn_playsound("snd_deephit", 1);
Symbol 995 MovieClip Frame 6
fn_playsound("snd_deephit", 1);
Symbol 1002 MovieClip Frame 1
stop();
Symbol 1002 MovieClip Frame 2
fn_playsound("snd_deephit", 1);
Symbol 1002 MovieClip Frame 3
fn_playsound("snd_deephit", 1);
Symbol 1002 MovieClip Frame 4
fn_playsound("snd_deephit", 1);
Symbol 1010 MovieClip Frame 1
stop();
Symbol 1010 MovieClip Frame 2
stop();
Symbol 1010 MovieClip Frame 3
stop();
Symbol 1020 MovieClip Frame 10
stop();
Symbol 1031 MovieClip Frame 1
_root.int_xsprungoffset = 0;
Instance of Symbol 1020 MovieClip "mc_kopf" in Symbol 1031 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(10);
}
Symbol 1031 MovieClip Frame 9
if (_root.int_sprung == 0) {
gotoAndPlay (1);
}
Symbol 1031 MovieClip Frame 10
_root.int_xsprungoffset = 1 * int_xoffsetcount;
Symbol 1031 MovieClip Frame 11
_root.int_xsprungoffset = 2 * int_xoffsetcount;
Symbol 1031 MovieClip Frame 12
_root.int_xsprungoffset = 3 * int_xoffsetcount;
Symbol 1031 MovieClip Frame 13
_root.int_xsprungoffset = 4 * int_xoffsetcount;
Symbol 1031 MovieClip Frame 14
_root.int_xsprungoffset = 5 * int_xoffsetcount;
Symbol 1031 MovieClip Frame 15
_root.int_xsprungoffset = 6 * int_xoffsetcount;
Symbol 1031 MovieClip Frame 16
_root.int_xsprungoffset = 7 * int_xoffsetcount;
Symbol 1031 MovieClip Frame 18
_root.int_xsprungoffset = 6 * int_xoffsetcount;
Symbol 1031 MovieClip Frame 19
_root.int_xsprungoffset = 5 * int_xoffsetcount;
Symbol 1031 MovieClip Frame 20
_root.int_xsprungoffset = 4 * int_xoffsetcount;
Symbol 1031 MovieClip Frame 21
_root.int_xsprungoffset = 3 * int_xoffsetcount;
Symbol 1031 MovieClip Frame 22
_root.int_xsprungoffset = 2 * int_xoffsetcount;
Symbol 1031 MovieClip Frame 23
_root.int_xsprungoffset = 1 * int_xoffsetcount;
Symbol 1031 MovieClip Frame 24
_root.int_xsprungoffset = 1 * int_xoffsetcount;
_root.int_sprung = 0;
_parent.num_velocity = _parent.num_velocity - _parent.num_sprungbeschleunigung;
gotoAndStop (1);
Symbol 1034 Button
on (release, keyPress "<Enter>") {
trace("ENTER");
if (mc_anzeigetafel.outputTextStart.text == _root.txt_weiter) {
trace("ENTER2");
if (mc_anzeigetafel._y == 0) {
trace("RESET");
fn_reset();
}
}
}
on (release, keyPress "<Space>") {
trace("SPACE");
if (mc_anzeigetafel.outputTextStart.text == _root.txt_weiter) {
trace("SPACE2");
if (mc_anzeigetafel._y == 0) {
trace("RESET");
fn_reset();
}
}
}
Symbol 1035 MovieClip Frame 1
_root.int_id_disziplin = 6;
_root.int_attempt = 1;
_root.int_attempts_total = 1;
_root.int_timeout_showtopscore = 0;
_root.fn_reset_userdata();
this.mc_anzeigetafel.gotoAndStop(2);
this.mc_anzeigetafel.btn_start.onRelease = function () {
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(this._parent, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
} else {
this._parent._parent.fn_reset();
}
};
fn_reset = function () {
int_playsoundpferd = 0;
this.mc_pferd._x = 545;
this.mc_pferd._y = 300;
this.mc_pferd._rotation = 0;
this.mc_pferd.int_xoffsetcount = 3;
_root.int_sprung = 0;
num_velocity = 0;
int_leftrot = 0;
int_rightrot = 0;
int_kurvengehorsam = 5;
int_upgedrueckt = 0;
num_sprungbeschleunigung = 1;
int_maxvelocity = 6;
int_sprungnr = 1;
int_scheuen = 0;
int_scheuenrot = 0;
int_scheuenx = 0;
int_reissen_counter = 0;
int_reissen = 0;
int_zeitlaeuft = 0;
savedzeit = 0;
int_fehler = 0;
str_zeitanzeige = "0:00.000";
str_fehler = "";
i = 1;
while (i <= 7) {
this["mc_pfeil" + i]._visible = false;
this["mc_sprung" + i].int_geschafft = 0;
this.mc_hindernisse["mc_sprung" + i].gotoAndStop(1);
i++;
}
_root.fn_nextplayer();
int_spiellaeuft = 0;
this.mc_anzeigetafel.outputText0.text = _root["user" + _root.int_spieler_am_zug].str_username;
this.mc_anzeigetafel.outputText1.text = _root.txt_start;
this.mc_anzeigetafel.outputTextStart.text = _root.txt_start;
this.mc_anzeigetafel._y = 0;
};
fn_reset();
onEnterFrame = function () {
if (int_spiellaeuft == 1) {
zwischenTime = new Date();
zwischenTime = int(zwischenTime.getTime());
_root.num_timepassed = int(zwischenTime) - int(_root.num_savedzeit);
_root.num_savedzeit = zwischenTime;
if (int_zeitlaeuft == 1) {
zeit = int(zwischenTime) - int(_root.startzeit);
if (zeit < savedzeit) {
zeit = 120000 /* 0x01D4C0 */;
}
savedzeit = zeit;
mins = Math.floor(zeit / 60000);
minstext = "" + mins;
seks = Math.floor((zeit - (mins * 60000)) / 1000);
if (seks < 10) {
sekstext = "0" + seks;
} else {
sekstext = "" + seks;
}
miliseks = Math.floor((zeit - (mins * 60000)) - (seks * 1000));
if (miliseks < 10) {
milisekstext = "00" + miliseks;
} else if (miliseks < 100) {
milisekstext = "0" + miliseks;
} else {
milisekstext = "" + miliseks;
}
str_zeitanzeige = (((minstext + ":") + sekstext) + ".") + milisekstext;
}
if ((int_zeitlaeuft == 0) && (this.mc_startlinie.hitTest(mc_pferd._x, mc_pferd._y + 45, true))) {
startTime = new Date();
_root.startzeit = int(startTime.getTime());
_root.num_savedzeit = _root.startzeit;
int_zeitlaeuft = 1;
this.mc_pfeil1._visible = true;
}
if (((int_zeitlaeuft == 1) && (this.mc_ziellinie.hitTest(mc_pferd._x, mc_pferd._y + 45, true))) && (int_sprungnr >= 8)) {
fn_playsound("snd_smallcrowdapplause", 1);
int_zeitlaeuft = 2;
int_endzeit = ((int_fehler * 4000) + zeit) / 1000;
this.mc_anzeigetafel.outputText1.text = int_endzeit + _root.txt_abk_sek;
this.mc_anzeigetafel.outputTextStart.text = _root.txt_weiter;
_root.fn_writescore(int_endzeit);
new mx.transitions.Tween(this.mc_anzeigetafel, "_y", Elastic.easeIn, -200, 0, 1, true);
trace("------ Endzeit: " + int_endzeit);
}
if ((((this["mc_sprung" + int_sprungnr].mc_hit2.hitTest(mc_pferd._x, mc_pferd._y + 45, true) || (this["mc_sprung" + int_sprungnr].mc_hit3.hitTest(mc_pferd._x, mc_pferd._y + 45, true))) || (this.mc_startobjekte.hitTest(mc_pferd._x, mc_pferd._y + 45, true))) || (this.mc_zielobjekte.hitTest(mc_pferd._x, mc_pferd._y + 45, true))) || (this.mc_buesche.hitTest(mc_pferd._x, mc_pferd._y + 45, true))) {
trace("Hit");
num_velocity = -4;
int_scheuen = 15;
int_scheuenrot = random(2) + 1;
int_scheuenx = random(11) - 5;
} else if (this["mc_sprung" + int_sprungnr].mc_hit1.hitTest(mc_pferd._x, mc_pferd._y + 45, true) && (_root.int_sprung == 1)) {
this["mc_sprung" + int_sprungnr].gotoAndStop(2);
this["mc_sprung" + int_sprungnr].int_geschafft = 1;
this["mc_pfeil" + int_sprungnr]._visible = false;
int_sprungnr++;
this["mc_pfeil" + int_sprungnr]._visible = true;
}
int_beruehrung_sprung = 0;
i = 1;
while (i <= 7) {
if (this["mc_sprung" + i].hitTest(mc_pferd._x, mc_pferd._y + 45, true) && (_root.int_sprung == 0)) {
int_beruehrung_sprung = 1;
if (this["mc_sprung" + i].int_geschafft != 1) {
num_velocity = -4;
int_scheuen = 15;
int_scheuenrot = random(2) + 1;
int_scheuenx = random(11) - 5;
} else {
int_reissen_counter = int_reissen_counter + 1;
if ((int_reissen_counter > 0) && (int_reissen_counter <= 5)) {
if (int_reissen == 0) {
int_reissen = 1;
this.mc_hindernisse["mc_sprung" + i].gotoAndStop(2);
int_fehler++;
trace("1 Stange");
}
}
if ((int_reissen_counter > 5) && (int_reissen_counter <= 10)) {
if (int_reissen == 1) {
int_reissen = 2;
trace("2 Stangen");
this.mc_hindernisse["mc_sprung" + i].gotoAndStop(3);
int_fehler++;
}
}
if ((int_reissen_counter > 10) && (int_reissen_counter <= 15)) {
if (int_reissen == 2) {
int_reissen = 3;
trace("3 Stangen");
this.mc_hindernisse["mc_sprung" + i].gotoAndStop(4);
int_fehler++;
}
}
if (i == 3) {
if ((int_reissen_counter > 15) && (int_reissen_counter <= 20)) {
if (int_reissen == 2) {
int_reissen = 3;
trace("4 Stangen");
this.mc_hindernisse["mc_sprung" + i].gotoAndStop(5);
int_fehler++;
}
}
if ((int_reissen_counter > 20) && (int_reissen_counter <= 25)) {
if (int_reissen == 2) {
int_reissen = 3;
trace("5 Stangen");
this.mc_hindernisse["mc_sprung" + i].gotoAndStop(6);
int_fehler++;
}
}
}
this["mc_sprung" + i].gotoAndStop(3);
str_fehler = ("+" + (int_fehler * 4)) + "s";
}
} else if ((this["mc_sprung" + i].int_geschafft == 1) && (_root.int_sprung == 0)) {
this["mc_sprung" + i].int_geschafft = 2;
}
i++;
}
if (int_beruehrung_sprung == 0) {
int_reissen_counter = 0;
int_reissen = 0;
}
if (int_scheuen > 0) {
int_scheuen--;
if (int_scheuenrot == 1) {
int_leftrot = 1;
int_rightrot = 0;
}
if (int_scheuenrot == 2) {
int_leftrot = 0;
int_rightrot = 1;
}
if (int_scheuen == 0) {
int_leftrot = 0;
int_rightrot = 0;
num_velocity = 0;
}
}
if ((num_velocity == 0) && (_root.int_sprung == 0)) {
this.mc_pferd.stop();
if (int_playsoundpferd == 1) {
int_playsoundpferd = 0;
_root.mc_sounds2.snd_horse.stop();
}
} else {
this.mc_pferd.play();
if (int_playsoundpferd == 0) {
int_playsoundpferd = 1;
fn_playsound2("snd_horse", 100);
}
}
int_kurvenstaerke = 0;
if ((int_leftrot == 1) && (_root.int_sprung == 0)) {
this.mc_pferd._rotation = this.mc_pferd._rotation - int_kurvengehorsam;
int_kurvenstaerke = int_kurvenstaerke - int_kurvengehorsam;
}
if ((int_rightrot == 1) && (_root.int_sprung == 0)) {
this.mc_pferd._rotation = this.mc_pferd._rotation + int_kurvengehorsam;
int_kurvenstaerke = int_kurvenstaerke + int_kurvengehorsam;
}
if (num_velocity >= 0) {
this.mc_pferd.mc_kopf.gotoAndStop(10 + int_kurvenstaerke);
} else {
this.mc_pferd.mc_kopf.gotoAndStop(10 - int_kurvenstaerke);
}
if ((num_velocity >= int_maxvelocity) && (_root.int_sprung == 0)) {
num_velocity = int_maxvelocity;
}
if ((num_velocity <= -2) && (int_scheuen == 0)) {
num_velocity = -2;
}
if ((int_zeitlaeuft == 2) && (int_scheuen == 0)) {
num_velocity = 0.5;
}
mc_pferdmoveX = (-num_velocity) * Math.cos((Math.PI/180) * (90 + this.mc_pferd._rotation));
mc_pferdmoveY = (-num_velocity) * Math.sin((Math.PI/180) * (90 + this.mc_pferd._rotation));
this.mc_pferd._x = this.mc_pferd._x + mc_pferdmoveX;
this.mc_pferd._y = this.mc_pferd._y + mc_pferdmoveY;
if (this.mc_pferd._x < (15 + (this.mc_pferd._width / 2))) {
this.mc_pferd._x = 15 + (this.mc_pferd._width / 2);
}
if (this.mc_pferd._x > (585 - (this.mc_pferd._width / 2))) {
this.mc_pferd._x = 585 - (this.mc_pferd._width / 2);
}
if (this.mc_pferd._y < (15 + (this.mc_pferd._height / 2))) {
this.mc_pferd._y = 15 + (this.mc_pferd._height / 2);
}
if (this.mc_pferd._y > (335 - (this.mc_pferd._height / 2))) {
this.mc_pferd._y = 335 - (this.mc_pferd._height / 2);
}
this.mc_pferd_schatten._x = this.mc_pferd._x + _root.int_xsprungoffset;
this.mc_pferd_schatten._xscale = (this.mc_pferd_schatten._yscale = 100 + (_root.int_xsprungoffset * 2));
this.mc_pferd_schatten._y = this.mc_pferd._y;
this.mc_pferd_schatten._rotation = this.mc_pferd._rotation;
}
};
var myListenerSpringreiten = new Object();
myListenerSpringreiten.onKeyDown = function () {
switch (Key.getCode()) {
case 37 :
int_leftrot = 1;
break;
case 39 :
int_rightrot = 1;
break;
case 38 :
trace("Springreiten UP");
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(mc_anzeigetafel, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
}
if ((_root.int_sprung == 0) && (int_upgedrueckt == 0)) {
int_upgedrueckt = 1;
num_velocity++;
}
break;
case 40 :
if (_root.int_sprung == 0) {
if (num_velocity > 1) {
num_velocity = 1;
} else {
num_velocity--;
}
}
break;
case 32 :
if (!((_root.int_sprung == 0) && (int_scheuen == 0))) {
break;
}
fn_playsound("snd_swoosh", 1);
num_velocity = num_velocity + num_sprungbeschleunigung;
_root.int_sprung = 1;
_root.mc_game.mc_pferd.gotoAndPlay("sprung");
}
};
myListenerSpringreiten.onKeyUp = function () {
switch (Key.getCode()) {
case 37 :
int_leftrot = 0;
return;
case 39 :
int_rightrot = 0;
return;
case 38 :
int_upgedrueckt = 0;
}
};
Key.addListener(myListenerSpringreiten);
Instance of Symbol 636 MovieClip "mc_anleitung" in Symbol 1035 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.int_id_disziplin);
}
onClipEvent (enterFrame) {
if (this._x <= 604) {
this.gotoAndStop(_root.int_id_disziplin);
if (this._parent.mc_anzeigetafel._y <= -21) {
this._x = this._x + 5;
}
}
}
Symbol 1054 MovieClip Frame 1
stop();
Symbol 1054 MovieClip Frame 2
fn_playsound("snd_shortshot", 1);
Symbol 1054 MovieClip Frame 3
fn_playsound("snd_go", 1);
Symbol 1054 MovieClip Frame 11
stop();
Symbol 1076 MovieClip Frame 7
fn_playsound("snd_schritt", 1);
stop();
Symbol 1076 MovieClip Frame 16
fn_playsound("snd_schritt", 1);
stop();
Symbol 1076 MovieClip Frame 19
gotoAndPlay ("rennen");
Symbol 1096 MovieClip Frame 7
fn_playsound("snd_schritt", 1);
stop();
Symbol 1096 MovieClip Frame 15
fn_playsound("snd_schritt", 1);
stop();
Symbol 1096 MovieClip Frame 19
gotoAndPlay ("rennen");
Symbol 1099 MovieClip Frame 1
stop();
Symbol 1105 Button
on (release, keyPress "a") {
if ((_root.tastenvar == 2) && (_root.tastenaktiv == 1)) {
_root.tastendruckzaehler2++;
}
_root.tastenvar = 1;
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(mc_anzeigetafel, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
}
}
Symbol 1106 Button
on (release, keyPress "s") {
if ((_root.tastenvar == 1) && (_root.tastenaktiv == 1)) {
_root.tastendruckzaehler2++;
}
_root.tastenvar = 2;
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(mc_anzeigetafel, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
}
}
Symbol 1109 MovieClip Frame 1
zeitverstrichen = 0;
zeitseitstartverstrichen = 0;
startzeit = 0;
druckprosekunde = 0;
druckprosekunde2 = 0;
Symbol 1109 MovieClip Frame 2
zeitseitstartverstrichen = getTimer();
if (_root.tastenvar == 0) {
startzeit = getTimer();
speicherzeit = getTimer();
speicherzaehler = _root.tastendruckzaehler;
speicherzaehler2 = _root.tastendruckzaehler2;
_root.tastenvar = 1;
}
if (_root.tastenaktiv == 1) {
zeitverstrichen = zeitseitstartverstrichen - startzeit;
}
if (zeitverstrichen > 100000) {
_root.tastenaktiv = 0;
}
intervall = zeitseitstartverstrichen - speicherzeit;
if (intervall > 100) {
druecke = _root.tastendruckzaehler - speicherzaehler;
druckprosekunde = (1200 / intervall) * druecke;
_root.int_speed_figur1_togo = druckprosekunde;
if (_root.int_speed_figur1_togo > 20) {
_root.int_speed_figur1_togo = 20;
}
speicherzeit = getTimer();
speicherzaehler = _root.tastendruckzaehler;
druecke2 = _root.tastendruckzaehler2 - speicherzaehler2;
druckprosekunde2 = (1200 / intervall) * druecke2;
_root.int_speed_figur2_togo = druckprosekunde2;
if (_root.int_speed_figur2_togo > 20) {
_root.int_speed_figur2_togo = 20;
}
if (_root.int_speed_figur1 < _root.int_speed_figur1_togo) {
_root.int_speed_figur1 = _root.int_speed_figur1 + 2;
}
if (_root.int_speed_figur1 > _root.int_speed_figur1_togo) {
_root.int_speed_figur1 = _root.int_speed_figur1 - 2;
}
if (_root.int_speed_figur2 < _root.int_speed_figur2_togo) {
_root.int_speed_figur2 = _root.int_speed_figur2 + 2;
}
if (_root.int_speed_figur2 > _root.int_speed_figur2_togo) {
_root.int_speed_figur2 = _root.int_speed_figur2 - 2;
}
speicherzeit = getTimer();
speicherzaehler2 = _root.tastendruckzaehler2;
}
Symbol 1109 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1114 MovieClip Frame 1
stop();
Symbol 1115 Button
on (release, keyPress "<Enter>") {
trace("ENTER");
if ((mc_anzeigetafel.outputTextStart.text == _root.txt_weiter) && (int_keypressed == 0)) {
int_keypressed = 1;
trace("ENTER2");
if (mc_anzeigetafel._y == 0) {
trace("RESET");
fn_reset();
}
}
if ((mc_anzeigetafel.outputTextStart.text == _root.txt_start) && (int_keypressed == 0)) {
int_keypressed = 1;
trace("ENTER3");
if (mc_anzeigetafel._y == 0) {
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(mc_anzeigetafel, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
}
}
}
}
on (release, keyPress "<Space>") {
trace("SPACE");
if ((mc_anzeigetafel.outputTextStart.text == _root.txt_weiter) && (int_keypressed == 0)) {
int_keypressed = 1;
trace("SPACE2");
if (mc_anzeigetafel._y == 0) {
trace("RESET");
fn_reset();
}
}
if ((mc_anzeigetafel.outputTextStart.text == _root.txt_start) && (int_keypressed == 0)) {
int_keypressed = 1;
trace("SPACE3");
if (mc_anzeigetafel._y == 0) {
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(mc_anzeigetafel, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
}
}
}
}
Symbol 1116 MovieClip Frame 1
_root.int_id_disziplin = 7;
num_figur1X_setting = this.mc_figur1._x;
num_figur2X_setting = this.mc_figur2._x;
num_htgX_setting = this.mc_htg._x;
num_shtgY_setting = this.mc_htg._y;
num_bahnX_setting = this.mc_bahn._x;
num_bahnY_setting = this.mc_bahn._y;
mc_flagge.gotoAndStop(_root.int_country + 1);
mc_flagge.mc_abdecker._visible = false;
_root.int_attempt = 1;
_root.int_attempts_total = 1;
_root.int_timeout_showtopscore = 0;
this.mc_anzeigetafel.gotoAndStop(6);
_root.fn_reset_userdata();
this.mc_anzeigetafel.btn_start.onRelease = function () {
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(this._parent, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
} else {
this._parent._parent.fn_reset();
}
};
fn_reset = function () {
_root.fn_nextplayer();
int_fehlstart_figur1 = 0;
int_fehlstart_figur2 = 0;
int_fig1_active = 1;
int_fig2_active = 1;
savedzeit = 0;
fn_reset_fehlstart();
this.mc_speedanzeige1.mc_speedbalken.gotoAndStop(1);
this.mc_speedanzeige1.mc_speedbalken._xscale = 0;
this.mc_speedanzeige2.mc_speedbalken.gotoAndStop(1);
this.mc_speedanzeige2.mc_speedbalken._xscale = 0;
};
fn_reset_fehlstart = function () {
_root.int_speed_figur1 = 0;
_root.int_speed_figur2 = 0;
this.mc_anzeigetafel.mc_lampe1_1.gotoAndStop(1);
this.mc_anzeigetafel.mc_lampe1_2.gotoAndStop(1);
if (int_fehlstart_figur1 == 1) {
this.mc_anzeigetafel.mc_lampe1_1.gotoAndStop(3);
}
if (int_fehlstart_figur1 == 2) {
this.mc_anzeigetafel.mc_lampe1_1.gotoAndStop(3);
this.mc_anzeigetafel.mc_lampe1_2.gotoAndStop(3);
}
this.mc_anzeigetafel.mc_lampe2_1.gotoAndStop(1);
this.mc_anzeigetafel.mc_lampe2_2.gotoAndStop(1);
if (int_fehlstart_figur2 == 1) {
this.mc_anzeigetafel.mc_lampe2_1.gotoAndStop(3);
}
if (int_fehlstart_figur2 == 2) {
this.mc_anzeigetafel.mc_lampe2_1.gotoAndStop(3);
this.mc_anzeigetafel.mc_lampe2_2.gotoAndStop(3);
}
int_compispeedtogo = 18;
int_compispeed = 1;
compi_startverzoegerung = random(10);
int_keypressed = 0;
this.mc_pfeil1._visible = false;
this.mc_pfeil2._visible = false;
this.mc_pfeil1.gotoAndStop(2);
this.mc_pfeil3._visible = false;
this.mc_pfeil4._visible = false;
this.mc_pfeil3.gotoAndStop(2);
mc_blende.gotoAndPlay(1);
_root.tastenvar = 0;
_root.tastenaktiv = 1;
_root.tastendruckzaehler = 0;
_root.tastendruckzaehler2 = 0;
int_abstandfiguren = 0;
int_speed = 0;
_root.int_speedtogo = 0;
_root.int_speersenken = 0;
int_speersenker = 0.1;
num_speer_distanz = 0;
int_uebertritt = 0;
int_uebertritt_counter = 0;
_root.int_speerwerfer_rennen = 1;
int_spiellaeuft = 0;
int_zeitlaeuft = 0;
str_zeitanzeige1 = "0:00.000";
str_zeitanzeige2 = "0:00.000";
int_wartenbisparat = 60;
int_figur1imziel = 0;
int_figur2imziel = 0;
this.mc_figur1._x = 300;
this.mc_figur2._x = 300;
this.mc_figur1._x = num_figur1X_setting;
this.mc_figur2._x = num_figur2X_setting;
this.mc_htg._x = num_htgX_setting;
this.mc_htg._y = num_shtgY_setting;
this.mc_bahn._x = num_bahnX_setting;
this.mc_bahn._y = num_bahnY_setting;
this.mc_anzeigetafel.outputText1.text = _root["user" + _root.int_spieler_am_zug].str_username;
if (_root.int_computergegner == 0) {
this.mc_anzeigetafel.outputText2.text = _root["user" + _root.int_spieler_am_zug2].str_username;
} else {
trace("_root.int_computergegner: " + _root.int_computergegner);
this.mc_anzeigetafel.outputText2.text = "Computer";
}
str_player1name = this.mc_anzeigetafel.outputText1.text;
str_player2name = this.mc_anzeigetafel.outputText2.text;
this.mc_anzeigetafel.outputText3.text = "";
this.mc_anzeigetafel.outputText4.text = "";
this.mc_anzeigetafel.outputTextStart.text = _root.txt_start;
this.mc_anzeigetafel._y = 0;
mc_schattenspeerwerfer._x = mc_speerwerfer._x;
mc_schattenspeerwerfer._y = mc_speerwerfer._y;
this.mc_figur1.gotoAndStop(1);
this.mc_figur2.gotoAndStop(1);
_root.int_speed_figur1 = 0;
_root.int_speed_figur2 = 0;
this.mc_startlinie._x = 320;
this.mc_ziellinie._x = 5950;
trace("Anz. Fehlstarts: " + int_fehlstart_figur1);
if (int_fehlstart_figur1 >= 2) {
int_fig1_active = 0;
this.mc_figur1._visible = 0;
}
if (int_fehlstart_figur2 >= 2) {
int_fig2_active = 0;
this.mc_figur2._visible = 0;
}
mc_readygo._visible = 0;
mc_readygo._alpha = 0;
mc_readygo.gotoAndStop(1);
mc_readygo._xscale = (mc_readygo._yscale = 100);
};
fn_reset();
onEnterFrame = function () {
zwischenTime = new Date();
zwischenTime = int(zwischenTime.getTime());
_root.num_timepassed = int(zwischenTime) - int(_root.num_savedzeit);
_root.num_savedzeit = zwischenTime;
if (int_zeitlaeuft == 1) {
zeit = int(zwischenTime) - int(_root.startzeit);
if (zeit < savedzeit) {
zeit = 120000 /* 0x01D4C0 */;
}
savedzeit = zeit;
mins = Math.floor(zeit / 60000);
minstext = "" + mins;
seks = Math.floor((zeit - (mins * 60000)) / 1000);
if (seks < 10) {
sekstext = "0" + seks;
} else {
sekstext = "" + seks;
}
miliseks = Math.floor((zeit - (mins * 60000)) - (seks * 1000));
if (miliseks < 10) {
milisekstext = "00" + miliseks;
} else if (miliseks < 100) {
milisekstext = "0" + miliseks;
} else {
milisekstext = "" + miliseks;
}
if (int_figur1imziel == 0) {
if (int_fig1_active == 1) {
str_zeitanzeige1 = (((minstext + ":") + sekstext) + ".") + milisekstext;
} else {
str_zeitanzeige1 = _root.txt_uebertritt;
}
if (int_fig1_active == 1) {
_root.int_figur1_zeit = zeit;
} else {
_root.int_figur1_zeit = 0;
}
}
if (int_figur2imziel == 0) {
if (int_fig2_active == 1) {
str_zeitanzeige2 = (((minstext + ":") + sekstext) + ".") + milisekstext;
} else {
str_zeitanzeige2 = _root.txt_uebertritt;
}
if (_root.int_computergegner == 0) {
if (int_fig2_active == 1) {
_root.int_figur2_zeit = zeit;
} else {
_root.int_figur2_zeit = 0;
}
} else {
_root.int_figur2_zeit = 0;
}
}
}
if ((int_zeitlaeuft == 0) && (int_spiellaeuft == 3)) {
startTime = new Date();
_root.startzeit = int(startTime.getTime());
_root.num_savedzeit = _root.startzeit;
int_zeitlaeuft = 1;
this.mc_pfeil1._visible = true;
}
if (((int_zeitlaeuft == 1) && ((int_figur1imziel == 1) || (int_fig1_active == 0))) && ((int_figur2imziel == 1) || (int_fig2_active == 0))) {
int_zeitlaeuft = 2;
this.mc_anzeigetafel.outputText3.text = str_zeitanzeige1;
this.mc_anzeigetafel.outputText4.text = str_zeitanzeige2;
_root.fn_writescore(int_endzeit);
this.mc_anzeigetafel.outputTextStart.text = _root.txt_weiter;
int_keypressed = 0;
new mx.transitions.Tween(this.mc_anzeigetafel, "_y", Elastic.easeIn, -200, 0, 1, true);
}
if (int_spiellaeuft == 1) {
if ((mc_readygo._alpha < 100) && (int_wartenbisparat < 40)) {
this.mc_readygo.gotoAndStop(1);
this.mc_readygo._visible = 1;
this.mc_readygo._alpha = this.mc_readygo._alpha + 5;
}
int_wartenbisparat--;
if (int_wartenbisparat == 30) {
fn_playsound("snd_onyourmarks", 1);
}
if (int_wartenbisparat == 0) {
int_spiellaeuft = 2;
int_wartenbisstart = 50 + random(30);
fn_playsound("snd_getset", 1);
this.mc_figur1.gotoAndStop(2);
this.mc_figur2.gotoAndStop(2);
int_fehlstart1 = 0;
int_fehlstart2 = 0;
}
}
if (int_spiellaeuft == 2) {
this.mc_readygo.gotoAndStop(2);
if (mc_readygo._alpha < 100) {
this.mc_readygo._visible = 1;
this.mc_readygo._alpha = this.mc_readygo._alpha + 5;
}
mc_readygo._xscale = (mc_readygo._yscale = mc_readygo._yscale + 2);
int_wartenbisstart--;
if (int_wartenbisstart == 0) {
this.mc_startlinie.mc_starter.play();
int_spiellaeuft = 3;
}
if (((_root.int_speed_figur1 > 0) && (int_wartenbisstart > 0)) && (int_fig1_active == 1)) {
this.mc_figur1.play();
int_wartenbisstart = -1;
int_fehlstart1 = 1;
int_fehlstart_figur1++;
fn_playsound("snd_buzzer", 1);
}
if (((_root.int_speed_figur2 > 0) && (int_wartenbisstart > 0)) && (int_fig2_active == 1)) {
this.mc_figur2.play();
int_wartenbisstart = -1;
int_fehlstart2 = 1;
int_fehlstart_figur2++;
fn_playsound("snd_buzzer", 1);
}
if (int_fehlstart1 == 1) {
this.mc_figur1.play();
this.mc_figur1._x = this.mc_figur1._x + 10;
}
if (int_fehlstart2 == 1) {
this.mc_figur2.play();
this.mc_figur2._x = this.mc_figur2._x + 10;
}
if (int_wartenbisstart == -60) {
fn_reset_fehlstart();
}
}
if (int_spiellaeuft == 3) {
if (mc_readygo._alpha > 0) {
mc_readygo.gotoAndStop(3);
mc_readygo._xscale = (mc_readygo._yscale = mc_readygo._yscale + 5);
mc_readygo._alpha = mc_readygo._alpha - 10;
} else {
mc_readygo._visible = 0;
}
if (int_figur1imziel == 0) {
num_figurspeedsave = _root.int_speed_figur1;
num_figurspeed1 = _root.int_speed_figur1;
} else if (num_figurspeedsave > 0) {
num_figurspeedsave = num_figurspeedsave - 1;
if (num_figurspeedsave < 0) {
num_figurspeedsave = 0;
}
num_figurspeed1 = num_figurspeedsave;
}
if (int_figur2imziel == 0) {
if (_root.int_computergegner == 0) {
num_figurspeedsave2 = _root.int_speed_figur2;
num_figurspeed2 = _root.int_speed_figur2;
} else if (compi_startverzoegerung == 0) {
if (int_compispeed < int_compispeedtogo) {
int_compispeed = int_compispeed + 2;
}
if (int_compispeed > int_compispeedtogo) {
int_compispeed = int_compispeed - 2;
}
num_figurspeedsave2 = int_compispeed;
num_figurspeed2 = int_compispeed;
} else {
compi_startverzoegerung--;
num_figurspeedsave2 = 0;
num_figurspeed2 = 0;
}
} else if (num_figurspeedsave2 > 0) {
num_figurspeedsave2 = num_figurspeedsave2 - 1;
if (num_figurspeedsave2 < 0) {
num_figurspeedsave2 = 0;
}
num_figurspeed2 = num_figurspeedsave2;
}
if ((int_fig1_active == 1) && (int_fig2_active == 1)) {
int_speed = (num_figurspeed1 + num_figurspeed2) / 2;
}
if ((int_fig1_active == 1) && (int_fig2_active == 0)) {
int_speed = num_figurspeed1;
}
if ((int_fig1_active == 0) && (int_fig2_active == 1)) {
int_speed = num_figurspeed2;
}
this.mc_startlinie._x = this.mc_startlinie._x - int_speed;
this.mc_ziellinie._x = this.mc_ziellinie._x - int_speed;
if ((this.mc_ziellinie._x < this.mc_figur1._x) && (int_figur1imziel == 0)) {
int_figur1imziel = 1;
fn_playsound("snd_smallcrowdapplause", 1);
}
if ((this.mc_ziellinie._x < this.mc_figur2._x) && (int_figur2imziel == 0)) {
int_figur2imziel = 1;
fn_playsound("snd_smallcrowdapplause", 1);
}
this.mc_bahn._x = this.mc_bahn._x - int_speed;
this.mc_htg._x = this.mc_htg._x - (int_speed / 1.2);
this.mc_gebaeude._x = this.mc_gebaeude._x - (int_speed / 2);
if (_root.int_speersenken == 2) {
this.mc_htg._x = this.mc_htg._x - int_speed_winkelabhaengig;
this.mc_gebaeude._x = this.mc_gebaeude._x - (int_speed_winkelabhaengig / 2);
}
if (this.mc_htg._x < -600) {
this.mc_htg._x = this.mc_htg._x + 600;
}
if (this.mc_gebaeude._x < -600) {
this.mc_gebaeude._x = this.mc_gebaeude._x + 600;
}
if (this.mc_bahn._x < -600) {
this.mc_bahn._x = this.mc_bahn._x + 600;
}
if (num_figurspeed1 > 0) {
this.mc_figur1.play();
}
if (num_figurspeed2 > 0) {
this.mc_figur2.play();
}
int_prozente = 4 * num_figurspeed1;
if (int_prozente > 100) {
int_prozente = 100;
}
if (this.mc_speedanzeige1.mc_speedbalken._xscale > (int_prozente - 2)) {
this.mc_speedanzeige1.mc_speedbalken._xscale = this.mc_speedanzeige1.mc_speedbalken._xscale - 2;
}
if (this.mc_speedanzeige1.mc_speedbalken._xscale < (int_prozente + 2)) {
this.mc_speedanzeige1.mc_speedbalken._xscale = this.mc_speedanzeige1.mc_speedbalken._xscale + 2;
}
this.mc_speedanzeige1.mc_speedbalken.gotoAndStop(int(this.mc_speedanzeige1.mc_speedbalken._xscale));
int_prozente = 4 * num_figurspeed2;
if (int_prozente > 100) {
int_prozente = 100;
}
if (this.mc_speedanzeige2.mc_speedbalken._xscale > (int_prozente - 2)) {
this.mc_speedanzeige2.mc_speedbalken._xscale = this.mc_speedanzeige2.mc_speedbalken._xscale - 2;
}
if (this.mc_speedanzeige2.mc_speedbalken._xscale < (int_prozente + 2)) {
this.mc_speedanzeige2.mc_speedbalken._xscale = this.mc_speedanzeige2.mc_speedbalken._xscale + 2;
}
this.mc_speedanzeige2.mc_speedbalken.gotoAndStop(int(this.mc_speedanzeige2.mc_speedbalken._xscale));
if ((int_fig1_active == 1) && (int_fig2_active == 1)) {
int_abstandfiguren = int_abstandfiguren + (num_figurspeed1 - num_figurspeed2);
} else {
int_abstandfiguren = 0;
}
this.mc_figur1._x = 300 + (int_abstandfiguren / 2);
this.mc_figur2._x = 300 - (int_abstandfiguren / 2);
if (this.mc_figur1._x < -20) {
this.mc_pfeil1._visible = true;
} else {
this.mc_pfeil1._visible = false;
}
if (this.mc_figur2._x < -20) {
this.mc_pfeil2._visible = true;
} else {
this.mc_pfeil2._visible = false;
}
if (this.mc_figur1._x > 620) {
this.mc_pfeil3._visible = true;
} else {
this.mc_pfeil3._visible = false;
}
if (this.mc_figur2._x > 620) {
this.mc_pfeil4._visible = true;
} else {
this.mc_pfeil4._visible = false;
}
if (this.mc_figur2._x > 400) {
if (int_compispeedtogo >= 10) {
int_compispeedtogo--;
}
}
if (this.mc_figur2._x < 200) {
if (int_compispeedtogo < 20) {
int_compispeedtogo = int_compispeedtogo + 2;
}
}
}
};
Instance of Symbol 636 MovieClip "mc_anleitung" in Symbol 1116 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.int_id_disziplin);
}
onClipEvent (enterFrame) {
if (this._x <= 604) {
this.gotoAndStop(_root.int_id_disziplin);
if (this._parent.mc_anzeigetafel._y <= -21) {
this._x = this._x + 5;
}
}
}
Symbol 1162 MovieClip Frame 1
stop();
str_pos = "stehen";
Symbol 1162 MovieClip Frame 2
str_pos = "gehen";
play();
Symbol 1162 MovieClip Frame 10
gotoAndPlay ("gehen");
Symbol 1162 MovieClip Frame 11
str_pos = "zurueckgehen";
play();
Symbol 1162 MovieClip Frame 19
gotoAndPlay ("gehen");
Symbol 1162 MovieClip Frame 20
str_pos = "attacketief";
play();
Symbol 1162 MovieClip Frame 22
fn_playsound("snd_swoosh", 1);
if (this.int_id == 1) {
this._x = this._x + 15;
} else {
this._x = this._x - 15;
}
Symbol 1162 MovieClip Frame 23
if (this.int_id == 1) {
this._x = this._x + 15;
} else {
this._x = this._x - 15;
}
Symbol 1162 MovieClip Frame 24
if (this.int_id == 1) {
this._x = this._x + 15;
} else {
this._x = this._x - 15;
}
Symbol 1162 MovieClip Frame 30
if ((this._parent.mc_figur2._x - this._parent.mc_figur1._x) < _root.int_mindistanz) {
if (this.int_id == 1) {
this._x = this._x - 15;
} else {
this._x = this._x + 15;
}
}
Symbol 1162 MovieClip Frame 31
if ((this._parent.mc_figur2._x - this._parent.mc_figur1._x) < _root.int_mindistanz) {
if (this.int_id == 1) {
this._x = this._x - 15;
} else {
this._x = this._x + 15;
}
}
Symbol 1162 MovieClip Frame 32
if ((this._parent.mc_figur2._x - this._parent.mc_figur1._x) < _root.int_mindistanz) {
if (this.int_id == 1) {
this._x = this._x - 15;
} else {
this._x = this._x + 15;
}
}
Symbol 1162 MovieClip Frame 33
int_attacke = 0;
gotoAndStop ("stehen");
Symbol 1162 MovieClip Frame 34
str_pos = "attackehoch";
play();
Symbol 1162 MovieClip Frame 35
fn_playsound("snd_swoosh", 1);
if (this.int_id == 1) {
this._x = this._x + 15;
} else {
this._x = this._x - 15;
}
Symbol 1162 MovieClip Frame 36
if (this.int_id == 1) {
this._x = this._x + 15;
} else {
this._x = this._x - 15;
}
Symbol 1162 MovieClip Frame 37
if (this.int_id == 1) {
this._x = this._x + 15;
} else {
this._x = this._x - 15;
}
Symbol 1162 MovieClip Frame 42
if ((this._parent.mc_figur2._x - this._parent.mc_figur1._x) < _root.int_mindistanz) {
if (this.int_id == 1) {
this._x = this._x - 15;
} else {
this._x = this._x + 15;
}
}
Symbol 1162 MovieClip Frame 43
if ((this._parent.mc_figur2._x - this._parent.mc_figur1._x) < _root.int_mindistanz) {
if (this.int_id == 1) {
this._x = this._x - 15;
} else {
this._x = this._x + 15;
}
}
Symbol 1162 MovieClip Frame 44
if ((this._parent.mc_figur2._x - this._parent.mc_figur1._x) < _root.int_mindistanz) {
if (this.int_id == 1) {
this._x = this._x - 15;
} else {
this._x = this._x + 15;
}
}
Symbol 1162 MovieClip Frame 49
int_attacke = 0;
gotoAndStop ("stehen");
Symbol 1162 MovieClip Frame 50
str_pos = "abwehrhoch";
Symbol 1162 MovieClip Frame 52
str_pos = "abwehrtief";
Symbol 1162 MovieClip Frame 54
str_pos = "trauer";
Symbol 1162 MovieClip Frame 56
str_pos = "freude";
Symbol 1163 MovieClip Frame 1
_root.int_id_disziplin = 8;
_root.int_attempt = 1;
_root.int_attempts_total = 1;
_root.int_timeout_showtopscore = 0;
_root.int_mindistanz = 130;
_root.fn_reset_userdata();
this.mc_anzeigetafel.gotoAndStop(5);
this.mc_anzeigetafel.btn_start.onRelease = function () {
if (int_spiellaeuft == 0) {
new mx.transitions.Tween(this._parent, "_y", Elastic.easeIn, 0, -200, 1, true);
int_spiellaeuft = 1;
} else {
this._parent._parent.fn_reset();
}
};
int_keypressed = 0;
fn_reset = function () {
_root.fn_nextplayer();
int_spiellaeuft = 0;
mc_figur1.int_treffer = 0;
mc_figur2.int_treffer = 0;
mc_figur1._x = 100;
mc_figur2._x = 500;
mc_figur1.gotoAndStop("stehen");
mc_figur2.gotoAndStop("stehen");
mc_figur1.int_attacke = 0;
mc_figur2.int_attacke = 0;
mc_figur1.int_id = 1;
mc_figur2.int_id = 2;
int_uppressed1 = 0;
int_downpressed1 = 0;
int_leftpressed1 = 0;
int_rightpressed1 = 0;
int_uppressed2 = 0;
int_downpressed2 = 0;
int_leftpressed2 = 0;
int_rightpressed2 = 0;
int_wartenbisauswertung = 10;
int_wartenbiszurueckgehen = 30;
int_comp_angriff = 0;
int_comp_rueckzug = 0;
int_comp_staerke = 80;
int_comp_intervall = 20;
int_comp_intervall_counter = 0;
int_comp_attack = 15;
int_comp_attack_counter = 0;
int_comp_abwehr = 0;
int_dauerattacke = 0;
this.mc_anzeigetafel.outputText2.text = _root["user" + _root.int_spieler_am_zug].str_username;
if (_root.int_computergegner == 0) {
this.mc_anzeigetafel.outputText1.text = _root["user" + _root.int_spieler_am_zug2].str_username;
} else {
trace("_root.int_computergegner: " + _root.int_computergegner);
this.mc_anzeigetafel.outputText1.text = "Computer";
}
str_player1name = this.mc_anzeigetafel.outputText1.text;
str_player2name = this.mc_anzeigetafel.outputText2.text;
this.mc_anzeigetafel.outputText3.text = "";
this.mc_anzeigetafel.outputText4.text = "";
this.mc_anzeigetafel.outputTextStart.text = _root.txt_start;
this.mc_anzeigetafel._y = 0;
};
fn_reset();
trace("----------------------------------------------------");
onEnterFrame = function () {
if (int_spiellaeuft == 2) {
int_wartenbisauswertung_count++;
if (int_wartenbisauswertung_count == int_wartenbisauswertung) {
this["mc_figur" + int_winnerid].gotoAndStop("freude");
this["mc_figur" + int_looserid].gotoAndStop("trauer");
}
if (int_wartenbisauswertung_count > int_wartenbiszurueckgehen) {
int_figurenamplatz = 0;
if (this.mc_figur1._x > 100) {
if (this.mc_figur1.str_pos != "zurueckgehen") {
this.mc_figur1.gotoAndPlay("zurueckgehen");
}
this.mc_figur1._x = this.mc_figur1._x - 4;
} else {
this.mc_figur1._x = 100;
this.mc_figur1.gotoAndStop("stehen");
int_figurenamplatz++;
}
if (this.mc_figur2._x < 500) {
if (this.mc_figur2.str_pos != "zurueckgehen") {
this.mc_figur2.gotoAndPlay("zurueckgehen");
}
this.mc_figur2._x = this.mc_figur2._x + 4;
} else {
this.mc_figur2._x = 500;
this.mc_figur2.gotoAndStop("stehen");
int_figurenamplatz++;
}
if (int_figurenamplatz == 2) {
trace("Neuer Kampf");
l = 1;
while (l <= 5) {
this["mc_lampen" + int_winnerid]["mc_lampe" + l].gotoAndStop(1);
this["mc_lampen" + int_looserid]["mc_lampe" + l].gotoAndStop(1);
l++;
}
l = 1;
while (l <= this.mc_figur1.int_treffer) {
mc_lampen1["mc_lampe" + l].gotoAndStop(3);
l++;
}
l = 1;
while (l <= this.mc_figur2.int_treffer) {
mc_lampen2["mc_lampe" + l].gotoAndStop(3);
l++;
}
if ((this.mc_figur1.int_treffer < 5) && (this.mc_figur2.int_treffer < 5)) {
int_spiellaeuft = 1;
mc_figur1.int_attacke = 0;
mc_figur2.int_attacke = 0;
int_uppressed1 = 0;
int_downpressed1 = 0;
int_leftpressed1 = 0;
int_rightpressed1 = 0;
int_uppressed2 = 0;
int_downpressed2 = 0;
int_leftpressed2 = 0;
int_rightpressed2 = 0;
} else {
int_spiellaeuft = 99;
new mx.transitions.Tween(this.mc_anzeigetafel, "_y", Elastic.easeIn, -200, 0, 1, true);
this.mc_anzeigetafel.outputTextStart.text = _root.txt_weiter;
fn_playsound("snd_smallcrowdapplause", 1);
if (this.mc_figur1.int_treffer == 5) {
this.mc_figur1.gotoAndStop("freude");
this.mc_figur2.gotoAndStop("trauer");
_root.fn_writescore(2);
int_score_figur1 = 1000;
int_score_figur2 = 0;
this.mc_anzeigetafel.outputText3.text = "500 " + _root.txt_punkte;
this.mc_anzeigetafel.outputText4.text = "0 " + _root.txt_punkte;
} else {
this.mc_figur1.gotoAndStop("trauer");
this.mc_figur2.gotoAndStop("freude");
_root.fn_writescore(1);
int_score_figur1 = 0;
int_score_figur2 = 1000;
this.mc_anzeigetafel.outputText3.text = "0 " + _root.txt_punkte;
this.mc_anzeigetafel.outputText4.text = "500 " + _root.txt_punkte;
}
}
}
}
}
if (int_spiellaeuft == 1) {
num_posX_fig1 = this.mc_figur1._x;
num_posX_fig2 = this.mc_figur2._x;
if (_root.int_computergegner == 1) {
int_comp_intervall_counter++;
int_uppressed1 = 0;
int_downpressed1 = 0;
int_leftpressed1 = 0;
int_rightpressed1 = 0;
if (int_comp_intervall_counter >= int_comp_intervall) {
int_comp_intervall_counter = 0;
int_zufallshandlung = random(120);
int_schwellwert = (this.mc_figur1._x - 50) / 5;
if (int_zufallshandlung < int_schwellwert) {
int_comp_angriff = 0;
int_comp_rueckzug = 1;
}
if ((int_zufallshandlung > int_schwellwert) && (int_zufallshandlung < 100)) {
int_comp_angriff = 1;
int_comp_rueckzug = 0;
}
}
if ((this.mc_figur2.str_pos == "attackehoch") || (this.mc_figur2.str_pos == "attacketief")) {
int_dauerattacke++;
if ((int_comp_abwehr == 0) && ((this.mc_figur2._x - this.mc_figur1._x) < 200)) {
int_comp_staerke = int_comp_staerke - 5;
trace("Staerke:" + int_comp_staerke);
}
int_fehlerrand = random(100);
if (((int_fehlerrand < int_comp_staerke) || (int_comp_abwehr == 1)) || (int_dauerattacke > 15)) {
if (((this.mc_figur2._x - this.mc_figur1._x) < 200) && (this.mc_figur2.str_pos == "attackehoch")) {
int_uppressed1 = 1;
int_comp_abwehr = 1;
}
if (((this.mc_figur2._x - this.mc_figur1._x) < 200) && (this.mc_figur2.str_pos == "attacketief")) {
int_downpressed1 = 1;
int_comp_abwehr = 1;
}
}
if (int_dauerattacke > 30) {
if (((this.mc_figur2._currentframe == 31) || (this.mc_figur2._currentframe == 43)) && ((this.mc_figur2._x - this.mc_figur1._x) <= 130)) {
int_uppressed1 = 0;
int_downpressed1 = 1;
int_rightpressed1 = 1;
}
}
int_comp_attack_counter = 0;
} else {
int_dauerattacke = 0;
int_comp_abwehr = 0;
}
trace(int_dauerattacke);
if (int_comp_abwehr == 1) {
if (int_dauerattacke > 15) {
int_jetztattackieren = 0;
} else {
int_jetztattackieren = random(3);
}
} else if (int_dauerattacke > 15) {
int_jetztattackieren = 0;
} else {
int_jetztattackieren = 1;
}
if (int_jetztattackieren == 1) {
if ((this.mc_figur2._x - this.mc_figur1._x) < 180) {
int_comp_attack_counter++;
int_stich = random(int_comp_attack - int_comp_attack_counter);
if (int_stich == 0) {
int_zufallsstich = random(2);
if (int_zufallsstich == 1) {
int_rightpressed1 = 1;
int_uppressed1 = 1;
} else {
int_rightpressed1 = 1;
int_downpressed1 = 1;
}
}
}
if ((this.mc_figur2.str_pos == "abwehrhoch") || (this.mc_figur2.str_pos == "abwehrtief")) {
int_comp_attack_counter++;
if (int_comp_attack_counter > 15) {
if ((this.mc_figur2.str_pos == "abwehrhoch") && ((this.mc_figur2._x - this.mc_figur1._x) < 180)) {
int_zufallsstich = random(3);
if (int_zufallsstich == 1) {
int_rightpressed1 = 1;
int_uppressed1 = 1;
} else {
int_rightpressed1 = 1;
int_downpressed1 = 1;
}
}
if ((this.mc_figur2.str_pos == "abwehrtief") && ((this.mc_figur2._x - this.mc_figur1._x) < 180)) {
int_zufallsstich = random(3);
if (int_zufallsstich == 1) {
int_rightpressed1 = 1;
int_downpressed1 = 1;
} else {
int_rightpressed1 = 1;
int_uppressed1 = 1;
}
}
}
} else {
int_comp_attack_counter = 0;
}
}
if (((((this.mc_figur2._x - this.mc_figur1._x) > 130) && (int_comp_angriff == 1)) && (int_uppressed1 == 0)) && (int_downpressed1 == 0)) {
int_rightpressed1 = 1;
}
if ((((this.mc_figur1._x > 52) && (int_comp_rueckzug == 1)) && (int_uppressed1 == 0)) && (int_downpressed1 == 0)) {
int_leftpressed1 = 1;
}
}
if (this.mc_figur1._x < 50) {
trace("Out DURCH FIGUR 1");
int_winnerid = 2;
int_looserid = 1;
this["mc_figur" + int_winnerid].int_treffer++;
fn_playsound("snd_buzzer", 1);
l = 1;
while (l <= 5) {
this["mc_lampen" + int_winnerid]["mc_lampe" + l].gotoAndStop(3);
this["mc_lampen" + int_looserid]["mc_lampe" + l].gotoAndStop(0);
l++;
}
int_wartenbisauswertung_count = 0;
int_spiellaeuft = 2;
}
if (this.mc_figur2._x > 550) {
trace("Out DURCH FIGUR 2");
int_winnerid = 1;
int_looserid = 2;
this["mc_figur" + int_winnerid].int_treffer++;
fn_playsound("snd_buzzer", 1);
l = 1;
while (l <= 5) {
this["mc_lampen" + int_winnerid]["mc_lampe" + l].gotoAndStop(3);
this["mc_lampen" + int_looserid]["mc_lampe" + l].gotoAndStop(0);
l++;
}
int_wartenbisauswertung_count = 0;
int_spiellaeuft = 2;
}
spielfigurnr = 1;
while (spielfigurnr <= 2) {
figur_id = spielfigurnr;
if (figur_id == 2) {
figur_id_gegner = 1;
} else {
figur_id_gegner = 2;
}
if (this["mc_figur" + figur_id].mc_hitterstoss.hitTest(this["mc_figur" + figur_id_gegner].mc_hitterdown) || (this["mc_figur" + figur_id].mc_hitterstoss.hitTest(this["mc_figur" + figur_id_gegner].mc_hitterup))) {
trace("TREFFER DURCH FIGUR " + figur_id);
fn_playsound("snd_fechten", 1);
int_winnerid = figur_id;
int_looserid = figur_id_gegner;
this["mc_figur" + int_winnerid].int_treffer++;
fn_playsound("snd_smallcrowdapplause", 1);
fn_playsound("snd_buzzer", 1);
l = 1;
while (l <= 5) {
this["mc_lampen" + int_winnerid]["mc_lampe" + l].gotoAndStop(2);
this["mc_lampen" + int_looserid]["mc_lampe" + l].gotoAndStop(0);
l++;
}
int_wartenbisauswertung_count = 0;
int_spiellaeuft = 2;
}
if (this["mc_figur" + figur_id].int_attacke == 0) {
if (this["int_leftpressed" + figur_id] == 1) {
if ((this["int_uppressed" + figur_id] == 0) && (this["int_downpressed" + figur_id] == 0)) {
if (figur_id == 2) {
if (this["mc_figur" + figur_id].str_pos != "gehen") {
this["mc_figur" + figur_id].gotoAndPlay("gehen");
}
} else if (this["mc_figur" + figur_id].str_pos != "zurueckgehen") {
this["mc_figur" + figur_id].gotoAndPlay("zurueckgehen");
}
this["mc_figur" + figur_id]._x = this["mc_figur" + figur_id]._x - 2;
} else if (figur_id == 2) {
this["mc_figur" + figur_id].int_attacke = 1;
if (this["int_uppressed" + figur_id] == 1) {
this["mc_figur" + figur_id].gotoAndPlay("attackehoch");
} else {
this["mc_figur" + figur_id].gotoAndPlay("attacketief");
}
} else if (this["int_uppressed" + figur_id] == 1) {
this["mc_figur" + figur_id].gotoAndPlay("abwehrhoch");
} else {
this["mc_figur" + figur_id].gotoAndPlay("abwehrtief");
}
} else if (this["int_rightpressed" + figur_id] == 1) {
if ((this["int_uppressed" + figur_id] == 0) && (this["int_downpressed" + figur_id] == 0)) {
if (figur_id == 2) {
if (this["mc_figur" + figur_id].str_pos != "zurueckgehen") {
this["mc_figur" + figur_id].gotoAndPlay("zurueckgehen");
}
} else if (this["mc_figur" + figur_id].str_pos != "gehen") {
this["mc_figur" + figur_id].gotoAndPlay("gehen");
}
this["mc_figur" + figur_id]._x = this["mc_figur" + figur_id]._x + 2;
} else if (figur_id == 1) {
this["mc_figur" + figur_id].int_attacke = 1;
if (this["int_uppressed" + figur_id] == 1) {
this["mc_figur" + figur_id].gotoAndPlay("attackehoch");
} else {
this["mc_figur" + figur_id].gotoAndPlay("attacketief");
}
} else if (this["int_uppressed" + figur_id] == 1) {
this["mc_figur" + figur_id].gotoAndPlay("abwehrhoch");
} else {
this["mc_figur" + figur_id].gotoAndPlay("abwehrtief");
}
} else if (this["int_uppressed" + figur_id] == 1) {
if (this["mc_figur" + figur_id].str_pos != "abwehrhoch") {
this["mc_figur" + figur_id].gotoAndStop("abwehrhoch");
}
} else if (this["int_downpressed" + figur_id] == 1) {
if (this["mc_figur" + figur_id].str_pos != "abwehrtief") {
this["mc_figur" + figur_id].gotoAndStop("abwehrtief");
}
} else {
this["mc_figur" + figur_id].gotoAndPlay("stehen");
}
}
spielfigurnr++;
}
if ((this.mc_figur2._x - this.mc_figur1._x) < _root.int_mindistanz) {
this.mc_figur1._x = num_posX_fig1;
this.mc_figur2._x = num_posX_fig2;
}
}
};
var myListenerFechten = new Object();
myListenerFechten.onKeyDown = function () {
switch (Key.getCode()) {
case 37 :
int_leftpressed2 = 1;
break;
case 39 :
int_rightpressed2 = 1;
break;
case 38 :
int_uppressed2 = 1;
break;
case 40 :
int_downpressed2 = 1;
break;
case 32 :
break;
case 65 :
if (_root.int_computergegner == 0) {
int_leftpressed1 = 1;
}
break;
case 83 :
if (_root.int_computergegner == 0) {
int_rightpressed1 = 1;
}
break;
case 87 :
if (_root.int_computergegner == 0) {
int_uppressed1 = 1;
}
break;
case 89 :
if (_root.int_computergegner != 0) {
break;
}
int_downpressed1 = 1;
}
};
myListenerFechten.onKeyUp = function () {
int_keypressed = 0;
switch (Key.getCode()) {
case 37 :
int_leftpressed2 = 0;
break;
case 39 :
int_rightpressed2 = 0;
break;
case 38 :
int_uppressed2 = 0;
break;
case 40 :
int_downpressed2 = 0;
break;
case 65 :
if (_root.int_computergegner == 0) {
int_leftpressed1 = 0;
}
break;
case 83 :
if (_root.int_computergegner == 0) {
int_rightpressed1 = 0;
}
break;
case 87 :
if (_root.int_computergegner == 0) {
int_uppressed1 = 0;
}
break;
case 89 :
if (_root.int_computergegner != 0) {
break;
}
int_downpressed1 = 0;
}
};
Key.addListener(myListenerFechten);
Instance of Symbol 636 MovieClip "mc_anleitung" in Symbol 1163 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.int_id_disziplin);
}
onClipEvent (enterFrame) {
if (this._x <= 604) {
this.gotoAndStop(_root.int_id_disziplin);
if (this._parent.mc_anzeigetafel._y <= -21) {
this._x = this._x + 5;
}
}
}
Symbol 1164 Button
on (release, keyPress "<Enter>") {
trace("ENTER");
if (_root.arr_disziplinen.length > 0) {
if (_root.int_anzahldisziplinen_gespielt > 1) {
_root.str_gehezu = "zwischentotal";
_root.mc_blende.play();
} else {
_root.str_gehezu = "naechstedisziplin";
_root.mc_blende.play();
}
} else if (_root.int_training == 1) {
_root.user1.str_username = _root.usersave_name;
_root.user1.int_country = _root.usersave_country;
_root.str_gehezu = "titel";
_root.mc_blende.play();
} else {
_root.str_gehezu = "endauswertung";
_root.mc_blende.play();
}
}
on (release, keyPress "<Space>") {
trace("SPACE");
if (_root.arr_disziplinen.length > 0) {
if (_root.int_anzahldisziplinen_gespielt > 1) {
_root.str_gehezu = "zwischentotal";
_root.mc_blende.play();
} else {
_root.str_gehezu = "naechstedisziplin";
_root.mc_blende.play();
}
} else if (_root.int_training == 1) {
_root.user1.str_username = _root.usersave_name;
_root.user1.int_country = _root.usersave_country;
_root.str_gehezu = "titel";
_root.mc_blende.play();
} else {
_root.str_gehezu = "endauswertung";
_root.mc_blende.play();
}
}
Symbol 1171 MovieClip Frame 1
var resultate_array = new Array();
j = 1;
while (j <= _root.int_anzahlspieler) {
if (_root.int_id_disziplin == 1) {
this.outputTitel.text = _root.txt_speerwerfen;
}
if (_root.int_id_disziplin == 2) {
this.outputTitel.text = _root.txt_gewichtheben;
}
if (_root.int_id_disziplin == 3) {
this.outputTitel.text = _root.txt_kajak;
}
if (_root.int_id_disziplin == 4) {
this.outputTitel.text = _root.txt_turmspringen;
}
if (_root.int_id_disziplin == 5) {
this.outputTitel.text = _root.txt_tontaubenschiessen;
}
if (_root.int_id_disziplin == 6) {
this.outputTitel.text = _root.txt_springreiten;
}
if (_root.int_id_disziplin == 7) {
this.outputTitel.text = _root.txt_100meter;
}
if (_root.int_id_disziplin == 8) {
this.outputTitel.text = _root.txt_fechten;
}
if ((_root.int_abgebrochen == 1) || (_root["user" + j].topScore < 0)) {
_root["user" + j]["int_result" + _root.int_id_disziplin] = 0;
_root["user" + j]["int_score" + _root.int_id_disziplin] = 0;
} else {
if (_root.int_id_disziplin == 1) {
_root["user" + j]["int_result" + _root.int_id_disziplin] = _root["user" + j].topScore;
_root["user" + j]["int_score" + _root.int_id_disziplin] = Math.round((_root["user" + j].topScore / 95) * 1000);
trace((((("user" + j) + ".int_score") + _root.int_id_disziplin) + " = ") + _root["user" + j]["int_score" + _root.int_id_disziplin]);
}
if (_root.int_id_disziplin == 2) {
_root["user" + j]["int_result" + _root.int_id_disziplin] = _root["user" + j].topScore;
_root["user" + j]["int_score" + _root.int_id_disziplin] = Math.round((_root["user" + j].topScore / 600) * 1000);
trace((((("user" + j) + ".int_score") + _root.int_id_disziplin) + " = ") + _root["user" + j]["int_score" + _root.int_id_disziplin]);
}
if (_root.int_id_disziplin == 3) {
_root["user" + j]["int_result" + _root.int_id_disziplin] = _root["user" + j].topScore;
_root["user" + j]["int_score" + _root.int_id_disziplin] = Math.round(1000 - ((_root["user" + j].topScore - 20) * 10));
if (_root["user" + j]["int_score" + _root.int_id_disziplin] < 0) {
_root["user" + j]["int_score" + _root.int_id_disziplin] = 0;
}
trace((((("user" + j) + ".int_score") + _root.int_id_disziplin) + " = ") + _root["user" + j]["int_score" + _root.int_id_disziplin]);
}
if (_root.int_id_disziplin == 4) {
_root["user" + j]["int_result" + _root.int_id_disziplin] = _root["user" + j].topScore;
_root["user" + j]["int_score" + _root.int_id_disziplin] = Math.round((_root["user" + j].topScore / 40) * 1000);
trace((((("user" + j) + ".int_score") + _root.int_id_disziplin) + " = ") + _root["user" + j]["int_score" + _root.int_id_disziplin]);
}
if (_root.int_id_disziplin == 5) {
_root["user" + j]["int_result" + _root.int_id_disziplin] = _root["user" + j].topScore;
_root["user" + j]["int_score" + _root.int_id_disziplin] = Math.round((_root["user" + j].topScore / 20) * 1000);
trace((((("user" + j) + ".int_score") + _root.int_id_disziplin) + " = ") + _root["user" + j]["int_score" + _root.int_id_disziplin]);
}
if (_root.int_id_disziplin == 6) {
_root["user" + j]["int_result" + _root.int_id_disziplin] = _root["user" + j].topScore;
_root["user" + j]["int_score" + _root.int_id_disziplin] = Math.round(1000 - ((_root["user" + j].topScore - 14) * 20));
if (_root["user" + j]["int_score" + _root.int_id_disziplin] < 0) {
_root["user" + j]["int_score" + _root.int_id_disziplin] = 0;
}
trace((((("user" + j) + ".int_score") + _root.int_id_disziplin) + " = ") + _root["user" + j]["int_score" + _root.int_id_disziplin]);
}
if (_root.int_id_disziplin == 7) {
if (_root["user" + j].topScore == 0) {
_root["user" + j]["int_result" + _root.int_id_disziplin] = _root.txt_uebertritt;
_root["user" + j]["int_score" + _root.int_id_disziplin] = 0;
} else {
_root["user" + j]["int_result" + _root.int_id_disziplin] = _root["user" + j].topScore;
_root["user" + j]["int_score" + _root.int_id_disziplin] = Math.round(1000 - ((_root["user" + j].topScore - 9.7) * 200));
if (_root["user" + j]["int_score" + _root.int_id_disziplin] < 0) {
_root["user" + j]["int_score" + _root.int_id_disziplin] = 0;
}
}
trace((((("user" + j) + ".int_score") + _root.int_id_disziplin) + " = ") + _root["user" + j]["int_score" + _root.int_id_disziplin]);
}
if (_root.int_id_disziplin == 8) {
_root["user" + j]["int_result" + _root.int_id_disziplin] = _root["user" + j].topScore;
_root["user" + j]["int_score" + _root.int_id_disziplin] = _root["user" + j].topScore;
trace((((("user" + j) + ".int_score") + _root.int_id_disziplin) + " = ") + _root["user" + j]["int_score" + _root.int_id_disziplin]);
}
}
resultate_array.push({username:_root["user" + j].str_username, resultat:_root["user" + j].topScore, country:_root["user" + j].int_country, punkte:_root["user" + j]["int_score" + _root.int_id_disziplin]});
j++;
}
_root.int_abgebrochen = 0;
resultate_array.sortOn("punkte", Array.DESCENDING | Array.NUMERIC);
j = 0;
while (j < _root.int_anzahlspieler) {
if (j > 0) {
mc_spielerauswertung0.duplicateMovieClip("mc_spielerauswertung" + j, j);
trace((((resultate_array[j].username + " ") + resultate_array[j].resultat) + " ") + resultate_array[j].country);
}
this["mc_spielerauswertung" + j]._y = 130 + (j * 25);
this["mc_spielerauswertung" + j].outputText1.text = (j + 1) + ".";
this["mc_spielerauswertung" + j].outputText2.text = resultate_array[j].username;
if (_root.int_id_disziplin == 1) {
this["mc_spielerauswertung" + j].outputText3.text = resultate_array[j].resultat + _root.txt_abk_meter;
}
if (_root.int_id_disziplin == 2) {
this["mc_spielerauswertung" + j].outputText3.text = resultate_array[j].resultat + _root.txt_abk_kg;
}
if (((_root.int_id_disziplin == 3) || (_root.int_id_disziplin == 6)) || (_root.int_id_disziplin == 7)) {
this["mc_spielerauswertung" + j].outputText3.text = resultate_array[j].resultat + _root.txt_abk_sek;
}
if (((_root.int_id_disziplin == 4) || (_root.int_id_disziplin == 5)) || (_root.int_id_disziplin == 8)) {
this["mc_spielerauswertung" + j].outputText3.text = resultate_array[j].resultat;
}
this["mc_spielerauswertung" + j].outputText4.text = (resultate_array[j].punkte + " ") + _root.txt_punkte;
this.mc_button._y = (130 + (j * 30)) + 40;
j++;
}
trace("Flagge: " + int(resultate_array[0].country));
this.mc_flagge.gotoAndStop(int(resultate_array[0].country) + 1);
_root.int_playhymnen_nr = int(resultate_array[0].country);
this.mc_flagge.mc_abdecker._visible = false;
Instance of Symbol 202 MovieClip "mc_button" in Symbol 1171 MovieClip Frame 1
onClipEvent (load) {
this.str_buttontext = _root.txt_weiter;
fn_release_action = function () {
if (_root.arr_disziplinen.length > 0) {
if (_root.int_anzahldisziplinen_gespielt > 1) {
_root.str_gehezu = "zwischentotal";
_root.mc_blende.play();
} else {
_root.str_gehezu = "naechstedisziplin";
_root.mc_blende.play();
}
} else if (_root.int_training == 1) {
_root.user1.str_username = _root.usersave_name;
_root.user1.int_country = _root.usersave_country;
_root.str_gehezu = "titel";
_root.mc_blende.play();
} else {
_root.str_gehezu = "endauswertung";
_root.mc_blende.play();
}
};
}
Instance of Symbol 365 MovieClip "tonspur" in Symbol 1171 MovieClip Frame 1
onClipEvent (load) {
this.sound_file = "hymnen/1.mp3";
this.soundabspielen = 0;
warten = 5;
}
onClipEvent (enterFrame) {
warten--;
if (warten == 0) {
if (_root.int_soundon == 1) {
playsound(("hymnen/" + _root.int_playhymnen_nr) + ".mp3");
}
}
}
Symbol 1172 Button
on (release, keyPress "<Enter>") {
trace("ENTER");
if (_root.arr_disziplinen.length > 0) {
_root.str_gehezu = "naechstedisziplin";
_root.mc_blende.play();
} else {
_root.str_gehezu = "endauswertung";
_root.mc_blende.play();
}
}
on (release, keyPress "<Space>") {
trace("SPACE");
if (_root.arr_disziplinen.length > 0) {
_root.str_gehezu = "naechstedisziplin";
_root.mc_blende.play();
} else {
_root.str_gehezu = "endauswertung";
_root.mc_blende.play();
}
}
Symbol 1178 MovieClip Frame 1
this.outputTitel.text = _root.txt_zwischentotal;
var resultate_array = new Array();
j = 1;
while (j <= _root.int_anzahlspieler) {
_root["user" + j].int_totalscore = 0;
i = 1;
while (i <= 8) {
_root["user" + j].int_totalscore = _root["user" + j].int_totalscore + int(_root["user" + j]["int_score" + i]);
i++;
}
resultate_array.push({username:_root["user" + j].str_username, punkte:_root["user" + j].int_totalscore, country:_root["user" + j].int_country});
j++;
}
resultate_array.sortOn("punkte", Array.DESCENDING | Array.NUMERIC);
j = 0;
while (j < _root.int_anzahlspieler) {
if (j > 0) {
mc_spielerauswertung0.duplicateMovieClip("mc_spielerauswertung" + j, j);
trace((((resultate_array[j].username + " ") + resultate_array[j].punkte) + " ") + resultate_array[j].country);
}
this["mc_spielerauswertung" + j]._y = 130 + (j * 25);
this["mc_spielerauswertung" + j].outputText1.text = (j + 1) + ".";
this["mc_spielerauswertung" + j].outputText2.text = resultate_array[j].username;
this["mc_spielerauswertung" + j].outputText3.text = (resultate_array[j].punkte + " ") + _root.txt_punkte;
this.mc_button._y = (130 + (j * 30)) + 40;
j++;
}
trace("Flagge: " + int(resultate_array[0].country));
this.mc_flagge.gotoAndStop(int(resultate_array[0].country) + 1);
this.mc_flagge.mc_abdecker._visible = false;
Instance of Symbol 202 MovieClip "mc_button" in Symbol 1178 MovieClip Frame 1
onClipEvent (load) {
this.str_buttontext = _root.txt_weiter;
fn_release_action = function () {
if (_root.arr_disziplinen.length > 0) {
_root.str_gehezu = "naechstedisziplin";
_root.mc_blende.play();
} else {
_root.str_gehezu = "endauswertung";
_root.mc_blende.play();
}
};
}
Symbol 1190 Button
on (release, keyPress "<Enter>") {
trace("ENTER");
_root.str_gehezu = "titel";
_root.mc_blende.play();
}
on (release, keyPress "<Space>") {
trace("SPACE");
_root.str_gehezu = "titel";
_root.mc_blende.play();
}
Symbol 1192 MovieClip Frame 1
mc_mann.stop();
outputTextError.text = "";
mc_button._visible = false;
mc_button1._visible = false;
mc_button2._visible = false;
trace("-----------------------------------------------------");
trace("");
j = 1;
while (j <= _root.int_anzahlspieler) {
int_totalscore = 0;
i = 1;
while (i <= 8) {
int_totalscore = int_totalscore + _root["user" + j]["int_score" + i];
trace((((((((("-> " + _root["user" + j].str_username) + " - ") + _root["user" + j].int_country) + " - ") + _root["user" + j]["int_result" + i]) + " - ") + _root["user" + j]["int_score" + i]) + " ") + _root.txt_punkte);
i++;
}
trace((((("-> " + _root["user" + j].str_username) + " - ") + _root["user" + j].int_country) + " Total: ") + int_totalscore);
_root["user" + j].int_totalscore = int_totalscore;
j++;
}
trace("");
trace("-----------------------------------------------------");
var resultate_array = new Array();
j = 1;
while (j <= _root.int_anzahlspieler) {
_root["user" + j].int_totalscore = 0;
i = 1;
while (i <= 8) {
_root["user" + j].int_totalscore = _root["user" + j].int_totalscore + int(_root["user" + j]["int_score" + i]);
i++;
}
resultate_array.push({username:_root["user" + j].str_username, punkte:_root["user" + j].int_totalscore, country:_root["user" + j].int_country});
j++;
}
resultate_array.sortOn("punkte", Array.DESCENDING | Array.NUMERIC);
j = 0;
while (j < _root.int_anzahlspieler) {
if (j > 0) {
mc_spielerauswertung0.duplicateMovieClip("mc_spielerauswertung" + j, j);
trace((((resultate_array[j].username + " ") + resultate_array[j].punkte) + " ") + resultate_array[j].country);
}
this["mc_spielerauswertung" + j]._y = 130 + (j * 25);
this["mc_spielerauswertung" + j].outputText1.text = (j + 1) + ".";
this["mc_spielerauswertung" + j].outputText2.text = resultate_array[j].username;
this["mc_spielerauswertung" + j].outputText3.text = (resultate_array[j].punkte + " ") + _root.txt_punkte;
this.mc_button._y = (130 + (j * 30)) + 40;
j++;
}
trace("Flagge: " + int(resultate_array[0].country));
this.mc_flagge.gotoAndStop(int(resultate_array[0].country) + 1);
_root.int_playhymnen_nr = int(resultate_array[0].country);
this.mc_flagge.mc_abdecker._visible = false;
Instance of Symbol 365 MovieClip "tonspur" in Symbol 1192 MovieClip Frame 1
onClipEvent (load) {
this.sound_file = "hymnen/1.mp3";
this.soundabspielen = 0;
warten = 30;
}
onClipEvent (enterFrame) {
warten--;
if (warten == 0) {
if (_root.int_soundon == 1) {
playsound(("hymnen/" + _root.int_playhymnen_nr) + ".mp3");
}
}
}
Symbol 1192 MovieClip Frame 30
mc_mann.play();
Symbol 1192 MovieClip Frame 145
outputTextError.text = "";
mc_button._visible = false;
mc_button1._visible = false;
mc_button2._visible = false;
trace("-----------------------------------------------------");
trace("");
j = 1;
while (j <= _root.int_anzahlspieler) {
int_totalscore = 0;
i = 1;
while (i <= 8) {
int_totalscore = int_totalscore + _root["user" + j]["int_score" + i];
trace((((((((("-> " + _root["user" + j].str_username) + " - ") + _root["user" + j].int_country) + " - ") + _root["user" + j]["int_result" + i]) + " - ") + _root["user" + j]["int_score" + i]) + " ") + _root.txt_punkte);
i++;
}
trace((((("-> " + _root["user" + j].str_username) + " - ") + _root["user" + j].int_country) + " Total: ") + int_totalscore);
_root["user" + j].int_totalscore = int_totalscore;
j++;
}
trace("");
trace("-----------------------------------------------------");
fn_savedata = function () {
outputTextError.text = "";
mc_button._visible = false;
mc_button1._visible = false;
mc_button2._visible = false;
myData = new LoadVars();
myData.onLoad = function (success) {
if (success) {
mc_button._visible = true;
} else {
outputTextError.text = "Can't save data. Please check your internet connection and press 'Save'\nto try again or press 'Cancel' to discard the scores... ";
mc_button1._visible = true;
mc_button2._visible = true;
}
};
myData.nickname = _root.user1.str_username;
myData.country = _root.user1.int_country;
myData.str_lang = _root.str_lang;
i = 1;
while (i <= 8) {
myData[("disziplin" + i) + "_result"] = _root.user1["int_result" + i];
myData[("disziplin" + i) + "_points"] = _root.user1["int_score" + i];
i++;
}
myData.total_points = _root.user1.int_totalscore;
myData.challenge_id = "";
myData.challenge_status = "";
myData.challenge_timeout = int((((_root.user1.int_totalscore * 27965) - 29) - _root.user1.int_totalscore) * 2);
myData.ue = _root.ue2;
myData.sendAndLoad("http://80.74.149.208/chinagames/save.php", myData, "POST");
if (_root.int_anzahlspieler >= 2) {
myData2 = new LoadVars();
myData2.onLoad = function () {
};
myData2.nickname = _root.user2.str_username;
myData2.country = _root.user2.int_country;
myData2.str_lang = _root.str_lang;
i = 1;
while (i <= 8) {
myData2[("disziplin" + i) + "_result"] = _root.user2["int_result" + i];
myData2[("disziplin" + i) + "_points"] = _root.user2["int_score" + i];
i++;
}
myData2.total_points = _root.user2.int_totalscore;
myData2.challenge_id = "";
myData2.challenge_status = "";
myData2.challenge_timeout = int((((_root.user2.int_totalscore * 27965) - 29) - _root.user2.int_totalscore) * 2);
myData2.ue = _root.ue2;
myData2.sendAndLoad("http://80.74.149.208/chinagames/save.php", myData2, "POST");
}
if (_root.int_anzahlspieler >= 3) {
myData3 = new LoadVars();
myData3.onLoad = function () {
};
myData3.nickname = _root.user3.str_username;
myData3.country = _root.user3.int_country;
myData3.str_lang = _root.str_lang;
i = 1;
while (i <= 8) {
myData3[("disziplin" + i) + "_result"] = _root.user3["int_result" + i];
myData3[("disziplin" + i) + "_points"] = _root.user3["int_score" + i];
i++;
}
myData3.total_points = _root.user3.int_totalscore;
myData3.challenge_id = "";
myData3.challenge_status = "";
myData3.challenge_timeout = int((((_root.user3.int_totalscore * 27965) - 29) - _root.user3.int_totalscore) * 2);
myData3.ue = _root.ue2;
myData3.sendAndLoad("http://80.74.149.208/chinagames/save.php", myData3, "POST");
}
if (_root.int_anzahlspieler == 4) {
myData4 = new LoadVars();
myData4.onLoad = function () {
};
myData4.nickname = _root.user4.str_username;
myData4.country = _root.user4.int_country;
myData4.str_lang = _root.str_lang;
i = 1;
while (i <= 8) {
myData4[("disziplin" + i) + "_result"] = _root.user4["int_result" + i];
myData4[("disziplin" + i) + "_points"] = _root.user4["int_score" + i];
i++;
}
myData4.total_points = _root.user4.int_totalscore;
myData4.challenge_id = "";
myData4.challenge_status = "";
myData4.challenge_timeout = int((((_root.user4.int_totalscore * 27965) - 29) - _root.user4.int_totalscore) * 2);
myData4.ue = _root.ue2;
myData4.sendAndLoad("http://80.74.149.208/chinagames/save.php", myData4, "POST");
}
};
fn_savedata();
var resultate_array = new Array();
j = 1;
while (j <= _root.int_anzahlspieler) {
_root["user" + j].int_totalscore = 0;
i = 1;
while (i <= 8) {
_root["user" + j].int_totalscore = _root["user" + j].int_totalscore + int(_root["user" + j]["int_score" + i]);
i++;
}
resultate_array.push({username:_root["user" + j].str_username, punkte:_root["user" + j].int_totalscore, country:_root["user" + j].int_country});
j++;
}
resultate_array.sortOn("punkte", Array.DESCENDING | Array.NUMERIC);
j = 0;
while (j < _root.int_anzahlspieler) {
if (j > 0) {
mc_spielerauswertung0.duplicateMovieClip("mc_spielerauswertung" + j, j);
trace((((resultate_array[j].username + " ") + resultate_array[j].punkte) + " ") + resultate_array[j].country);
}
this["mc_spielerauswertung" + j]._y = 130 + (j * 25);
this["mc_spielerauswertung" + j].outputText1.text = (j + 1) + ".";
this["mc_spielerauswertung" + j].outputText2.text = resultate_array[j].username;
this["mc_spielerauswertung" + j].outputText3.text = (resultate_array[j].punkte + " ") + _root.txt_punkte;
this.mc_button._y = (130 + (j * 30)) + 40;
j++;
}
trace("Flagge: " + int(resultate_array[0].country));
this.mc_flagge.gotoAndStop(int(resultate_array[0].country) + 1);
_root.int_playhymnen_nr = int(resultate_array[0].country);
this.mc_flagge.mc_abdecker._visible = false;
stop();
Instance of Symbol 202 MovieClip "mc_button" in Symbol 1192 MovieClip Frame 145
onClipEvent (load) {
this.str_buttontext = _root.txt_weiter;
fn_release_action = function () {
_root.str_gehezu = "titel";
_root.mc_blende.play();
};
}
Instance of Symbol 202 MovieClip "mc_button1" in Symbol 1192 MovieClip Frame 145
onClipEvent (load) {
this.str_buttontext = _root.txt_btnsave;
fn_release_action = function () {
_root.mc_endauswertung.fn_savedata();
};
}
Instance of Symbol 202 MovieClip "mc_button2" in Symbol 1192 MovieClip Frame 145
onClipEvent (load) {
this.str_buttontext = _root.txt_btncancel;
fn_release_action = function () {
_root.str_gehezu = "titel";
_root.mc_blende.play();
};
}