Frame 1
function addInfStr(str) {
var _local2 = _level0.enc_mc.dcs(infStr);
_local2 = _local2 + str;
infStr = _level0.enc_mc.ecs(_local2);
}
function mouseInGame() {
if ((((_xmouse > 0) && (_xmouse < stagewidth)) && (_ymouse > 0)) && (_ymouse < stageheight)) {
return(true);
}
return(false);
}
function sendReadyForStart() {
_level0.gameReadyForStart(this);
}
function doStart() {
gotoAndPlay ("restart");
}
function doRestart() {
infStr = _level0.enc_mc.ecs(_level0.memory.games.openGame + ":");
gotoAndPlay ("restart");
}
function sR(p) {
_level0[funk](p, _level0.enc_mc.dcs(infStr));
}
username = _level0.akt_username;
username = username.toUpperCase();
infStr = _level0.enc_mc.ecs(_level0.memory.games.openGame + ":");
funk = _level0.funk;
stagewidth = 640;
stageheight = 400;
Instance of Symbol 18 MovieClip "ysound" in Frame 1
onClipEvent (load) {
_visible = false;
gameover = new Sound(s1);
gameover.attachSound("gameover");
ju1 = new Sound(s2);
ju1.attachSound("ju1");
ju2 = new Sound(s3);
ju2.attachSound("ju2");
ju3 = new Sound(s4);
ju3.attachSound("ju3");
letsfly1 = new Sound(s5);
letsfly1.attachSound("letsfly1");
letsfly2 = new Sound(s6);
letsfly2.attachSound("letsfly2");
letsfly3 = new Sound(s7);
letsfly3.attachSound("letsfly3");
treff = new Sound(s8);
treff.attachSound("treff");
steck = new Sound(s9);
steck.attachSound("steck");
wheel = new Sound(s10);
wheel.attachSound("wheel");
great = new Sound(s11);
great.attachSound("great");
ohoh = new Sound(s12);
ohoh.attachSound("ohoh");
lach = new Sound(s13);
lach.attachSound("lach");
yeah = new Sound(s14);
yeah.attachSound("yeah");
}
Frame 2
function playsnd(wot, vol) {
if (_root.snd) {
_root.ysound[wot].setVolume(vol);
_root.ysound[wot].start();
}
}
snd = true;
username = _level0.akt_username;
Frame 4
tbytes = getBytesTotal();
lbytes = getBytesLoaded();
percent = int((lbytes / tbytes) * 100);
Instance of Symbol 20 MovieClip in Frame 4
onClipEvent (enterFrame) {
_xscale = _parent.percent;
}
Frame 5
if (percent < 100) {
gotoAndPlay(_currentframe - 1);
}
Frame 6
sendReadyForStart();
stop();
Frame 8
_quality = "BEST";
stop();
Symbol 14 MovieClip [RelaxArcade] Frame 1
essai = 0;
_global.EncryptString = function (gsubmit) {
var _local3 = _global.prepascorekey;
var _local4 = "";
i = 0;
j = 0;
while (i < gsubmit.length) {
if (j >= _local3.length) {
j = 0;
}
char = Number(_local3.substr(j, 1)) ^ gsubmit.charCodeAt(i);
_local4 = _local4 + String.fromCharCode(char);
i++;
j++;
}
return(_local4);
};
_global.RelaxArcadeSubmit = function (score, RA_var) {
_global.totcptframe = _global.cptframe;
_global.gametime = getTimer() - _global.timedeb;
gscore = Number(score);
gname = RA_var;
flashgametime = int(getTimer() / 1000);
gframerate = Math.round((_global.totcptframe * 1000) / _global.gametime);
gnbparties = _global.gnbparties;
gscorefake = gscore + Number(_global.prepascorekey);
submit = (((((((((gname + ";") + gframerate) + ";") + flashgametime) + ";") + gscore) + ";") + gnbparties) + ";") + gscorefake;
sendscore = new LoadVars();
sendscore.gsubmitscore = EncryptString(submit);
sendscore.send("arcade_score.php?act=Arcade&do=newscore", "_self", "POST");
};
_global.prepascorekey = 0;
_global.gnbparties = 1;
var arcsend = new LoadVars();
arcsend.action = "arcade";
arcsend.scoreprep = "prepascore";
var arcrecept = new LoadVars();
arcrecept.onLoad = function (success) {
if (success && (arcrecept.raOK == 1)) {
_global.prepascorekey = arcrecept.myscorekey;
} else {
essai++;
if (essai <= 20) {
arcsend.sendAndLoad("arcade_score.php", arcrecept, "POST");
} else {
trace("Erreur : impossible de charger la cl\u00E9 !");
}
}
};
checkLoading = function () {
if (_parent._framesloaded >= _parent._totalframes) {
arcsend.sendAndLoad("arcade_score.php", arcrecept, "POST");
delete this.onEnterFrame;
}
};
this.onEnterFrame = function () {
checkLoading();
};
_global.cptframe = 0;
_global.timedeb = getTimer();
this.mc_cptframe.removeMovieClip();
this.mc_cptframe = this.createEmptyMovieClip("mc_cptframe", this.getNextHighestDepth());
this.mc_cptframe.onEnterFrame = function () {
_global.cptframe = _global.cptframe + 1;
};
Symbol 14 MovieClip [RelaxArcade] Frame 3
stop();
Symbol 37 Button
on (release) {
gotoAndPlay (8);
}
Instance of Symbol 47 MovieClip "indi" in Symbol 48 MovieClip Frame 1
onClipEvent (load) {
function getPos() {
point = new Object();
point.x = _x;
point.y = _y;
localToGlobal(point);
_parent._parent.catcher._x = point.x - _root._x;
_parent._parent.catcher._y = point.y - _root._y;
updateAfterEvent();
}
_visible = false;
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 6
_parent.stab.aktiv = true;
Symbol 82 MovieClip Frame 10
haengt = true;
act = "anfangsani";
Symbol 82 MovieClip Frame 11
stop();
Symbol 82 MovieClip Frame 22
gotoAndStop ("leer");
Symbol 155 MovieClip Frame 51
if ((_parent.dummycounter == 0) or (_parent.dummycounter == 4)) {
rflysound = random(3) + 1;
_root.playsnd("letsfly" + rflysound, 40);
}
Symbol 155 MovieClip Frame 62
_parent.yetti.aktiv = true;
Symbol 155 MovieClip Frame 63
stop();
Symbol 155 MovieClip Frame 84
gotoAndPlay ("fliegt");
Symbol 160 MovieClip Frame 18
gotoAndPlay (2);
Symbol 172 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 15
stop();
this.unloadMovie();
Symbol 188 Button
on (release) {
if (_global.gnbparties == undefined) {
_global.gnbparties = 1;
}
scoreRA = Number(_level0.world.s * 100);
RelaxArcadeSubmit(scoreRA, "YetiSportSwingnPingRA");
}
Symbol 190 MovieClip Frame 1
function addScE(po) {
var _local2 = _level0.enc_mc.dc(_root.scE);
_local2 = _local2 + po;
_root.scE = _level0.enc_mc.ec(_local2);
}
username_txt.text = _parent.username;
dummycounter = 0;
s = 0;
_root.scE = _level0.enc_mc.ec(0);
last = 0;
best = 0;
tryAnz.gotoAndStop(dummycounter + 1);
stop();
Instance of Symbol 48 MovieClip "stabschatten" in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
_x = (_parent.stab._x + 5);
_y = (_parent.stab._y + 10);
_rotation = _parent.stab._rotation;
}
onClipEvent (enterFrame) {
_x = (_parent.stab._x + 5);
_y = (_parent.stab._y + 10);
_rotation = _parent.stab._rotation;
}
Instance of Symbol 82 MovieClip "yetti" in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
aktiv = false;
haengt = false;
act = "";
_rotation = 0;
}
onClipEvent (enterFrame) {
if (aktiv) {
if (act == "beginn") {
gotoAndPlay ("beginn");
act = "anfangsani";
}
if (haengt) {
if (act == "leer") {
this.gotoAndStop("leer");
} else if (act == "mit") {
this.gotoAndStop("wurf");
}
_x = _parent.catcher._x;
_y = _parent.catcher._y;
if (_x < _parent.stab._x) {
_rotation = (((_parent.stab._rotation * (180 - Math.abs(_parent.stab._rotation))) / 150) + (275 - _y));
} else {
_rotation = (((_parent.stab._rotation * (180 + _parent.stab._rotation)) / 150) - (275 - _y));
}
xspeed = _x - oldx;
yspeed = _y - oldy;
rspeed = _rotation - oldr;
oldx = _x;
oldy = _y;
oldr = _rotation;
if (act == "anfangsani") {
_rotation = 0;
}
}
}
}
Instance of Symbol 155 MovieClip "pingu" in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
function resetPingu() {
_x = startx;
_y = starty;
act = "wartet";
_visible = true;
xspeed = 0;
yspeed = 0;
_rotation = 0;
rspeed = 0;
this.gotoAndPlay(1);
}
aktiv = true;
startx = _parent.schwenk._x - 70;
starty = _y;
resetPingu();
}
onClipEvent (enterFrame) {
if (aktiv) {
if (act == "wartet") {
if (_currentframe < 51) {
_x = (_x + 1);
_y = (_y - 1);
}
if ((this.hitTest(_parent.yetti) and (this._currentframe > 55)) and (_parent.yetti.rspeed > 0)) {
act = "haengt";
_root.playsnd("treff", 40);
_parent.yetti.act = "mit";
_visible = false;
}
} else if (act == "fliegt") {
this.gotoAndPlay("fliegt");
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = ((yspeed * -4) + 90);
yspeed = yspeed + 0.5;
rspeed = rspeed * 0.99;
if ((_x < 35) or (_y > 385)) {
_root.playsnd("steck", 40);
if (_x < 35) {
_x = ((35 + random(10)) - 5);
}
act = "steckt";
_parent.dummycounter = _parent.dummycounter + 1;
_parent.tryAnz.gotoAndStop(_parent.dummycounter + 1);
_parent.dummypingu.duplicateMovieClip("dummypingu" + _parent.dummycounter, 300 + _parent.dummycounter);
_parent["dummypingu" + _parent.dummycounter]._x = _x;
_parent["dummypingu" + _parent.dummycounter]._y = _y;
_parent["dummypingu" + _parent.dummycounter]._rotation = _rotation;
_parent["dummypingu" + _parent.dummycounter].schp._rotation = (-_rotation) + 90;
_parent["dummypingu" + _parent.dummycounter].swapDepths(3000 - _x);
pwert = 100 - (Math.abs(175 - _y) / 1.4);
if (pwert <= 0) {
pwert = 0;
_root.playsnd("ohoh", 40);
} else if (pwert > 95) {
_root.playsnd("great", 40);
} else if (pwert > 85) {
_root.playsnd("yeah", 40);
} else if (pwert > 75) {
_root.playsnd("lach", 40);
}
pwert = Math.round(pwert * 100) / 100;
_parent.s = _parent.s + pwert;
_parent.addScE(pwert);
_root.addInfStr(pwert.toString() + ":");
_parent.last = pwert;
if (pwert > _parent.best) {
_parent.best = pwert;
}
if (_parent.dummycounter == 10) {
var infTimerEnd = getTimer();
var tim = Math.round((infTimerEnd - _parent.infTimerStart) / 1000);
_root.addInfStr((("time_" + tim) + "s#") + _parent.s);
_root.sR(_level0.enc_mc.dc(_root.scE));
this._visible = false;
this.aktiv = false;
} else {
resetPingu();
}
}
}
}
}
onClipEvent (mouseDown) {
if (_root.mouseInGame()) {
if (act == "haengt") {
soundrandom = random(3) + 1;
_root.playsnd("ju" + soundrandom, 40);
_rotation = _parent.yetti._rotation;
rspeed = _parent.yetti.rspeed * 1.8;
_x = _parent.yetti._x;
_y = _parent.yetti._y;
xspeed = _parent.yetti.xspeed + (_parent.yetti.yspeed / 2);
yspeed = _parent.yetti.yspeed + (_parent.yetti.xspeed / 8);
act = "fliegt";
_parent.yetti.act = "wurf";
_parent.yetti.gotoAndPlay("wurf");
_visible = true;
_level0.gameIvw("game");
}
}
}
Instance of Symbol 48 MovieClip "stab" in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
aktiv = false;
startschwenkx = _parent.schwenk._x;
_x = _parent.schwenk._x;
_y = _parent.schwenk._y;
_rotation = -130;
rspeed = 0;
oldschwenkx = _parent.schwenk._x;
}
onClipEvent (enterFrame) {
if (_root.snd and (sndplayin != true)) {
_root.ysound.wheel.start(0, 9999);
sndplayin = true;
}
if (_root.snd) {
_root.ysound.wheel.setVolume(Math.abs(rspeed * 10));
}
if (aktiv) {
distx = _parent.schwenk._x - _x;
_x = _parent.schwenk._x;
if (_rotation < 0) {
rspeed = rspeed + 0.3;
} else {
rspeed = rspeed - 0.3;
}
if (_parent.yetti.act != "anfangsani") {
_parent.schwenk._x = _parent.schwenk._x + ((_parent._xmouse - _parent.schwenk._x) / 20);
}
if (_parent.schwenk._x < (startschwenkx - 40)) {
_parent.schwenk._x = startschwenkx - 40;
} else if (_parent.schwenk._x > (startschwenkx + 40)) {
_parent.schwenk._x = startschwenkx + 40;
}
_x = _parent.schwenk._x;
schspeed = oldschwenkx - _parent.schwenk._x;
if ((rspeed * schspeed) > 0) {
rspeed = rspeed + (schspeed / 50);
}
if (Math.abs(rspeed) > 5) {
rspeed = rspeed * 0.995;
}
_rotation = (_rotation + rspeed);
oldx = _x;
oldschwenkx = _parent.schwenk._x;
indi.getPos();
}
}
Instance of Symbol 178 MovieClip "tut" in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
function checkIntro() {
jetzt = getTimer();
if ((jetzt - starttime) > 2500) {
gotoAndPlay (2);
clearInterval(inter);
_parent.yetti.act = "beginn";
_parent.infTimerStart = getTimer();
}
}
starttime = getTimer();
inter = setInterval(checkIntro, 500);
}
Instance of Symbol 189 MovieClip "anzz" in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(20000);
}
Symbol 196 Button
on (release) {
gotoAndPlay (8);
}