Instance of Symbol 17 MovieClip "loadermc" in Frame 1
onClipEvent (load) {
aktiv = false;
i = 1;
while (i <= 5) {
this["l" + i]._xscale = 0;
i++;
}
ok1 = false;
ok2 = false;
ok3 = false;
ok4 = false;
ok5 = false;
curr = 1;
}
onClipEvent (enterFrame) {
if (aktiv) {
this["l" + curr]._xscale = (_parent.galaxy["loader" + curr].getBytesLoaded() / _parent.galaxy["loader" + curr].getBytesTotal()) * 100;
if ((this["l" + curr]._xscale == 100) and (_parent.galaxy["loader" + curr].getBytesLoaded() > 1000)) {
this["ok" + curr] = true;
_parent.galaxy["loader" + curr]._visible = false;
curr++;
if (curr < 6) {
newloadstring = ("arcade/gamedata/yetitourYL/yetisports" + curr) + "tourYL.swf";
_parent.galaxy["loader" + curr].loadMovie(newloadstring);
} else {
aktiv = false;
}
}
}
}
Frame 1
Stage.showMenu = false;
vipok = "";
getURL ("javascript:doGoCode()");
_root.vipok = vipok;
msg = "Loading...";
titel1 = "PINGU THROW";
titel2 = "ORCA SLAP";
titel3 = "SEAL BOUNCE";
titel4 = "ALBATROS OVERLOAD";
titel5 = "FLAMINGO DRIVE";
bigmsg = "LOADING";
_quality = "BEST";
withLoginPass = false;
Instance of Symbol 23 MovieClip in Frame 2
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Frame 3
if (getBytesLoaded() < getBytesTotal()) {
gotoAndPlay(_currentframe - 1);
} else {
msg = "";
}
Frame 4
bigmsg = "LANGUAGE";
username = "";
_root.localLang = "";
_root.localName = "";
z = new Object();
hilXml = new XML();
hilXml.ignoreWhite = true;
hilXml.onLoad = function (success) {
if (success) {
cnodes = this.firstChild.childNodes;
i = 0;
while (i < cnodes.length) {
if (cnodes[i].nodeName == "localLanguage") {
_root.localLang = cnodes[i].attributes.lang;
_root.localName = cnodes[i].attributes.langname;
}
i++;
}
if (_root.localLang == "") {
_root.localLang = "en";
_root.localName = "ENGLISH";
}
z.znamehere = true;
}
};
hilXml.getLanguage = function () {
cnodes = this.firstChild.childNodes;
i = 0;
while (i < cnodes.length) {
z[cnodes[i].nodeName] = cnodes[i].attributes[_root.useLang];
i++;
}
z.zgeladen = true;
};
hilXml.load("arcade/gamedata/yetitourYL/ytour_langYL.xml");
Frame 6
if (z.znamehere == true) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Frame 7
stop();
Instance of Symbol 23 MovieClip in Frame 8
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Frame 9
if (z.zgeladen == true) {
bigmsg = "LOGIN";
} else {
gotoAndPlay(_currentframe - 1);
}
Frame 10
scoreholder.loadMovie(z.zsc);
Instance of Symbol 37 MovieClip "p" in Frame 10
onClipEvent (load) {
_visible = false;
}
Frame 11
if (withLoginPass) {
} else {
passField._visible = false;
passtitel._visible = false;
}
Selection.setFocus("username");
stop();
Frame 13
if (withLoginPass) {
if ((username.length > 0) and (passw.length > 0)) {
username = username.toUpperCase();
passw = passw.toUpperCase();
p.geladen = "";
p.ok = "";
p.user = username;
p.pass = passw;
p.loadVariables("sec/checkpass.php", "POST");
play();
} else {
gotoAndStop ("login");
}
} else if (username.length > 0) {
username = username.toUpperCase();
if (username.length > 14) {
username = username.substr(0, 14);
}
gotoAndPlay ("start");
} else {
gotoAndStop ("login");
}
Instance of Symbol 23 MovieClip in Frame 14
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Frame 15
if (p.geladen == "") {
gotoAndPlay(_currentframe - 1);
} else if (p.ok.toString() == "1") {
gotoAndPlay ("start");
} else {
gotoAndStop ("login");
msg = p.FLASH_output;
}
Frame 17
gotoAndStop ("login");
Frame 20
function newgame() {
aktuell = 1;
this.pw.cs = "";
i = 1;
while (i <= 5) {
this.pw["p" + i] = 0;
this.pw["haken" + i].gotoAndStop(1);
this["sc" + i] = 0;
i++;
}
this.pw.pt = 0;
msg = z.zwelcome;
showAktuell();
}
function showAktuell() {
if (aktuell > 1) {
this.pw["p" + (aktuell - 1)] = Math.round((parseFloat(this["sc" + (aktuell - 1)]) * scorekey[aktuell - 1]) * 100) / 100;
_root.msg = (((((((((((username + ", ") + this["sc" + (aktuell - 1)]) + " ") + _root.z.zpointsatpart) + " ") + (aktuell - 1)) + ".") + _root.z.ztournamentvalue) + " ") + this.pw["p" + (aktuell - 1)]) + " ") + _root.z.zpoints;
this.pw["haken" + (aktuell - 1)].gotoAndStop(2);
this.pw.cs = this.pw.cs + (this.pw["p" + (aktuell - 1)].toString() + ",");
}
this.pw.pt = 0;
i = 1;
while (i <= 5) {
this.pw.pt = this.pw.pt + this.pw["p" + i];
i++;
}
i = 1;
while (i <= 5) {
_root.galaxy["loader" + i]._visible = false;
i++;
}
if (aktuell < 6) {
zwitext = (z["zpart" + aktuell] + " - ") + this["titel" + aktuell];
helptext = z["zhelp" + aktuell];
zwibutton._visible = true;
bigmsg = this["titel" + aktuell];
} else if (aktuell == 6) {
bigmsg = "FINISHED";
this.pw.cs = this.pw.cs + (";" + prepare(this.pw.cs));
scoreholder.gotoAndPlay(2);
}
}
function prepare(st) {
var _local2 = 0;
var _local3 = st.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2 = _local2 + st.charCodeAt(_local1);
_local1++;
}
var _local5 = 100 - (_local2 % 100);
if (_local5 == 100) {
_local5 = 0;
}
var _local6 = _local5.toString();
if (_local5 < 10) {
_local6 = "0" + _local6;
}
var _local7 = _local2.toString() + _local6;
return(_local7);
}
this.pw.cs = "";
scorekey = new Array();
scorekey[1] = 0.62;
scorekey[2] = 0.95;
scorekey[3] = 0.44;
scorekey[4] = 0.19;
scorekey[5] = 0.15;
i = 1;
while (i <= 5) {
this.pw["p" + i] = 0;
this.pw["haken" + i].gotoAndStop(1);
this["sc" + i] = 0;
i++;
}
this.pw.pt = 0;
snd = true;
galaxy.loader1.loadMovie("arcade/gamedata/yetitourYL/yetisports1tourYL.swf");
loadermc.aktiv = true;
zwibutton._visible = false;
msg = z.zwelcome;
Instance of Symbol 23 MovieClip in Frame 20
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Frame 22
if (!loadermc.ok1) {
gotoAndPlay(_currentframe - 1);
} else {
zwibutton._visible = true;
aktuell = 1;
showAktuell();
}
Frame 30
stop();
Instance of Symbol 73 MovieClip in Frame 30
onClipEvent (load) {
_visible = false;
}
onClipEvent (keyUp) {
if (Key.getCode() == 66) {
if (this._visible == false) {
if (_root.snd) {
_root.wassnd = true;
_root.snd = false;
i = 1;
while (i <= 5) {
_parent.galaxy["loader" + i].snd = false;
i++;
}
_root.boss = true;
stopAllSounds();
}
this._visible = true;
} else {
if (_root.wassnd) {
_root.wassnd = false;
_root.snd = true;
i = 1;
while (i <= 5) {
_parent.galaxy["loader" + i].snd = true;
i++;
}
_root.boss = false;
}
this._visible = false;
}
} else if (Key.getCode() == 83) {
if (_root.snd) {
_root.snd = false;
i = 1;
while (i <= 5) {
_parent.galaxy["loader" + i].snd = false;
i++;
}
stopAllSounds();
} else {
_root.snd = true;
i = 1;
while (i <= 5) {
_parent.galaxy["loader" + i].snd = true;
i++;
}
}
}
}
Symbol 6 Button
on (release) {
getURL ("http://www.e-medien.com", "_blank");
}
Instance of Symbol 22 MovieClip in Symbol 23 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 10);
}
Symbol 31 Button
on (release) {
_root.useLang = "en";
hilXml.getLanguage();
play();
}
Symbol 32 Button
on (release) {
_root.useLang = _root.localLang;
hilXml.getLanguage();
play();
}
Symbol 45 Button
on (release, keyPress "<Enter>") {
play();
}
Symbol 47 Button
on (release) {
if (_root.loadermc["ok" + _root.aktuell] == true) {
_root.galaxy["loader" + _root.aktuell]._visible = true;
_root.galaxy["loader" + _root.aktuell].play();
_root.zwitext = "";
_root.helptext = "";
this._visible = false;
} else {
_root.zwitext = ("Loading ... " + _root.galaxy["loader" + _root.aktuell].getBytesLoaded()) + " please wait";
if (_root.galaxy["loader" + _root.aktuell].getBytesLoaded() <= 10) {
_root.zwitext = "Reloading ....";
_root.loadermc.curr = _root.aktuell - 1;
_root.loadermc.aktiv = true;
}
}
}
Symbol 66 MovieClip Frame 1
stop();