Instance of Symbol 46 MovieClip in Frame 1
//component parameters
onClipEvent (initialize) {
xin_motion_val = "Down";
xin_alphatype_val = "Yes";
xout_motion_val = "Down";
xout_alphatype_val = "Yes";
perc_req_val = 100;
show_perc_val = "Yes";
slow_factor_val = 0.2;
init_action_val = "_root.stop();";
play_action_val = "_root.play();";
}
Frame 2
stop();
Frame 3
Frame 4
stop();
Instance of Symbol 84 MovieClip "restart" in Frame 4
onClipEvent (enterFrame) {
if (this._alpha >= 100) {
this.btimer2.text = _root.UNI_ROOT.btime_txt;
trace(_root.UNI_ROOT.btime_txt);
}
}
Instance of Symbol 89 MovieClip "UNI_ROOT" in Frame 4
onClipEvent (load) {
STARTx = this._x;
STARTy = _root.wheel._y;
STARTy_dude = _root.dude._y;
jumping = 0;
jump_vel = 0;
charge_time = 16;
max_charge = -22;
jump_charge = max_charge / charge_time;
gravity = 1.8;
rot_limit = 90;
max_difficulty = 7.5;
difficulty_init = 0;
difficulty = difficulty_init;
tightness_init = 100;
tightness = tightness_init;
tightness_max = 30;
difficulty_buffer = 120;
tightness_add = (tightness_max - tightness) / difficulty_buffer;
diff_add = (max_difficulty - difficulty) / difficulty_buffer;
accn = 0;
arms_factor = -0.75;
bs_max = 14;
bs_min = 11;
min_timeout = -700;
max_timeout = -1500;
circ = _root.wheel._height * 3.14159;
wheel_r = _root.wheel._width / 2;
ball_r = _root.ball._width / 2;
elasticity = -0.075;
this._y = -50;
fadein_speed = 6;
fadeout_speed = 10;
time_init = new Date();
_root.restart._visible = false;
_root.restart._alpha = 0;
best_ms = 0;
best_sub = 0;
indicator_fade = 10;
indicator_fade_in = 5;
_root.ball_indicator._alpha = 0;
reset_ball();
cheat = false;
}
onClipEvent (enterFrame) {
if (_root._currentframe == 5) {
_root.btime_submit.text = btime_txt;
} else {
nowx = _root._xmouse;
if (_root.wheel._y == STARTy) {
accn = this._x - nowx;
}
distance = this._x - STARTx;
time_now = new Date();
diff_ms = time_now.getTime() - time_init.getTime();
if (diff_ms > best_ms) {
best_ms = diff_ms;
}
mins = Math.floor(diff_ms / 60000);
secs = Math.floor(diff_ms / 1000) % 60;
msecs = Math.floor(diff_ms / 100) % 10;
bmins = Math.floor(best_ms / 60000);
bsecs = Math.floor(best_ms / 1000) % 60;
bmsecs = Math.floor(best_ms / 100) % 10;
if (mins < 10) {
mp = "0";
} else {
mp = "";
}
if (secs < 10) {
sp = "0";
} else {
sp = "";
}
if (bmins < 10) {
bmp = "0";
} else {
bmp = "";
}
if (bsecs < 10) {
bsp = "0";
} else {
bsp = "";
}
time_txt = mp.concat(mins.toString(), ":", sp, secs.toString(), ":", msecs.toString());
btime_txt = bmp.concat(bmins.toString(), ":", bsp, bsecs.toString(), ":", bmsecs.toString());
wheel_rot = 360 * (distance / circ);
wheel_rot_rad = ((wheel_rot / 360) * 2) * 3.141593;
if (difficulty < max_difficulty) {
difficulty = difficulty + diff_add;
tightness = tightness + tightness_add;
}
guy_rot = _root.dude._rotation;
guy_rot_rad = ((guy_rot / 360) * 2) * 3.141593;
rotation_fall_add = difficulty * Math.sin(guy_rot_rad);
guy_rot = guy_rot + (accn / tightness);
guy_rot = guy_rot + rotation_fall_add;
if (cold < minimum_distance) {
hit = 1;
} else {
hit = 0;
}
if (((guy_rot > rot_limit) || (guy_rot < (-rot_limit))) || (hit == 1)) {
guy_rot = rot_limit;
this._y = -60;
time_init = new Date();
reset_ball();
}
if (this._y == -50) {
if (_root.wheel._y < Math.floor(STARTy)) {
if ((STARTy - _root.wheel._y) <= jump_vel) {
_root.wheel._y = STARTy;
_root.dude._y = STARTy_dude;
_root.SHADOW._alpha = 100;
jump_vel = 0;
jumping = 0;
} else {
_root.SHADOW._alpha = 100 - ((STARTy - _root.wheel._y) / 2.2);
_root.wheel._y = _root.wheel._y + jump_vel;
_root.dude._y = _root.dude._y + jump_vel;
jump_vel = jump_vel + gravity;
}
} else {
_root.dude._rotation = guy_rot;
_root.dude.right_arm._rotation = (guy_rot * arms_factor) * 0.7;
_root.dude.left_arm._rotation = guy_rot * arms_factor;
}
this._x = this._x + (accn * elasticity);
_root.wheel._x = this._x;
_root.SHADOW._x = this._x;
_root.dude._x = this._x;
_root.wheel._rotation = wheel_rot;
if (_root.restart._alpha > 0) {
_root.restart._alpha = _root.restart._alpha - fadeout_speed;
} else {
_root.restart._visible = false;
}
_root.timer.text = time_txt;
_root.btimer.text = btime_txt;
_root.restart.btimer2.text = btime_txt;
} else if (_root.restart._alpha < 120) {
_root.restart._visible = true;
_root.dude.play();
_root.restart._alpha = _root.restart._alpha + fadein_speed;
difficulty = difficulty_init;
tightness = tightness_init;
jump_vel = 0;
} else {
time_init = new Date();
}
}
}
Instance of Symbol 168 MovieClip "dude" in Frame 4
/* no clip actions */
Frame 5
function setListe() {
prev_mc._visible = 0;
prev_mc._visible = 1;
prev_mc.ladeDaten();
prev_mc.ladeDaten();
}
function setSpieler() {
var _local1 = this;
fvorname = vorname_txt.text;
fnachname = nachname_txt.text;
fpunkte = punkte_txt.text;
ficon = stern_mc._currentframe;
loadVariables (x + new Date().getTime(), _local1, "POST");
status_txt.text = "Lade Daten!";
_local1.onData = function () {
if (eintrag) {
delete eintrag;
} else {
this.gotoAndPlay(7);
status_txt.text = "Fehler !";
delete eintrag;
}
};
}
function nextIcon() {
stern_mc.nextFrame();
}
function prevIcon() {
if (stern_mc._currentframe > 2) {
stern_mc.prevFrame();
}
}
mein_xml = new XML();
mein_xml.ignoreWhite = true;
status_txt.text = "Lade Eintr\u00E4ge!";
mein_xml.load("http://www.htfgames.com/highscore/shark/ausgabe.php?" + new Date().getTime());
loadVariables ("http://www.htfgames.com/highscore/shark/ausgabe.php?", "", "POST");
loadVariables ("http://www.htfgames.com/highscore/login/login.php?", "", "POST");
mein_xml.onLoad = function (signal) {
if (signal) {
status_txt.text = "";
setListe();
}
};
schreiben_btn.onRelease = function () {
prev_mc._visible = 0;
prev_mc._visible = 1;
gotoAndPlay (7);
vorname_txt.restrict = "A-Za-z\u00F6\u00E4\u00FC\u00D6\u00C4\u00DC\u00DF";
nachname_txt.restrict = "A-Za-z\u00F6\u00E4\u00FC\u00D6\u00C4\u00DC\u00DF";
punkte_txt.restrict = "0-5";
};
prev_mc._visible = 0;
prev_btn.onRelease = function () {
prev_mc._visible = !prev_mc._visible;
prev_mc._visible = !prev_mc._visible;
};
stop();
loadMovieNum ("http://www.htfgames.com/games/shark/werb/werb2.swf", 10);
stop();
Instance of Symbol 198 MovieClip "login" in Frame 5
onClipEvent (enterFrame) {
if (_root.logid == 1) {
_root.login.gotoAndStop(2);
} else {
_root.login.gotoAndStop(1);
}
}
Frame 6
stop();
Frame 7
function setListe() {
prev_mc._visible = 0;
high_mc._visible = 1;
prev_mc.ladeDaten();
high_mc.ladeDaten();
}
mein_xml = new XML();
mein_xml.ignoreWhite = true;
status_txt.text = "Lade Eintr\u00E4ge!";
mein_xml.load("http://www.htfgames.com/highscore/shark/ausgabe.php?" + new Date().getTime());
mein_xml.onLoad = function (signal) {
if (signal) {
status_txt.text = "";
setListe();
}
};
stop();
Frame 8
stop();
Symbol 8 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 2
stop();
Instance of Symbol 9 MovieClip in Symbol 23 MovieClip Frame 2
onClipEvent (enterFrame) {
zAuge = random(50);
if (zAuge == 30) {
l.play();
r.play();
}
}
Symbol 23 MovieClip Frame 3
stop();
Symbol 23 MovieClip Frame 4
stop();
Symbol 23 MovieClip Frame 5
stop();
Symbol 23 MovieClip Frame 6
stop();
Symbol 23 MovieClip Frame 7
stop();
Symbol 23 MovieClip Frame 8
stop();
Symbol 23 MovieClip Frame 9
stop();
Symbol 23 MovieClip Frame 10
stop();
Symbol 23 MovieClip Frame 11
stop();
Symbol 23 MovieClip Frame 12
stop();
Symbol 23 MovieClip Frame 13
stop();
Symbol 23 MovieClip Frame 14
stop();
Symbol 46 MovieClip Frame 1
stop();
Instance of Symbol 45 MovieClip "swfloader" in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
function strip_spaces(str) {
var _local2 = str;
var _local3 = new String("");
var _local1 = 0;
while (_local1 < _local2.length) {
if ((_local2.charAt(_local1) != " ") && (_local2.charAt(_local1) != ";")) {
_local3 = _local3 + _local2.charAt(_local1);
}
_local1++;
}
return(_local3);
}
function simple_script(action, timeline) {
action = strip_spaces(action);
if ((action.length > 0) && ((action.indexOf(")") != -1) && (action.indexOf("(") != -1))) {
var _local3 = action.split(".");
var timeline_action = _local3.pop();
var first_paren = timeline_action.indexOf("(");
var second_paren = timeline_action.indexOf(")");
var timeline_function = timeline_action.substr(0, first_paren);
var function_parameter = timeline_action.substr(first_paren + 1, second_paren - (first_paren + 1));
var _local2 = timeline;
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = _local2[_local3[_local1]];
_local1++;
}
if (function_parameter.indexOf("\"") != -1) {
function_parameter = function_parameter.substr(1, function_parameter.length - 2);
}
_local2[timeline_function](function_parameter);
}
}
function execute_action() {
var _local1 = _parent;
unloaded = true;
_local1._visible = false;
simple_script(_local1.play_action_val, _local1);
}
_parent.anim.gotoAndStop(1);
simple_script(_parent.init_action_val, _parent);
var done = false;
var unloaded = false;
var orig_x = _parent._x;
var orig_y = _parent._y;
var dist_x = (_parent._x + ((_parent._width * 2) / 3));
var dist_y = (_parent._y + ((_parent._height * 2) / 3));
var orig_a = _parent._alpha;
var accel_jump = 0.75;
var slow_factor = _parent.slow_factor_val;
var speed_factor = (1 + (slow_factor / (1 - slow_factor)));
var ready = false;
var perc_fadeout = 0;
_parent.perc._x = _parent.anim._x - (_parent.perc._width / 2);
_parent.perc._y = _parent.anim._y - (_parent.perc._height / 2);
if (slow_factor < 1) {
switch (_parent.xin_motion_val) {
case "Up" :
_parent._y = orig_y + (dist_y * 2);
break;
case "Down" :
_parent._y = orig_y - (dist_y * 2);
break;
case "Left" :
_parent._x = orig_x + (dist_x * 2);
break;
case "Right" :
_parent._x = orig_x - (dist_x * 2);
break;
case "Toward" :
_parent._xscale = (_parent._yscale = 1);
break;
case "None" :
_parent._alpha = 0;
}
} else {
ready = true;
}
}
onClipEvent (enterFrame) {
if (unloaded) {
return(undefined);
}
if (!ready) {
switch (_parent.xin_motion_val) {
case "Toward" :
_parent._xscale = _parent._xscale + ((100 - _parent._xscale) * slow_factor);
_parent._yscale = _parent._xscale;
if (_parent.xin_alphatype_val == "Yes") {
_parent._alpha = Math.round((orig_a / 100) * Math.max(0, Math.min(_parent._xscale, 100)));
}
if (Math.abs(100 - _parent._xscale) < 0.5) {
_parent._xscale = (_parent._yscale = 100);
_parent._alpha = orig_a;
ready = true;
}
break;
default :
_parent._x = _parent._x + ((orig_x - _parent._x) * slow_factor);
_parent._y = _parent._y + ((orig_y - _parent._y) * slow_factor);
if (_parent.xin_alphatype_val == "Yes") {
if (_parent.xin_motion_val == "None") {
_parent._alpha = _parent._alpha + ((orig_a - _parent._alpha) * slow_factor);
} else if (Math.abs(orig_x - _parent._x) > Math.abs(orig_y - _parent._y)) {
_parent._alpha = 100 - Math.round(((orig_a / 100) * (Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x)) * 100);
} else {
_parent._alpha = 100 - Math.round(((orig_a / 100) * (Math.min(dist_y, Math.abs(_parent._y - orig_y)) / dist_y)) * 100);
}
}
if (!(((_parent.xin_motion_val == "None") && (Math.abs(_parent._alpha - orig_a) <= 1)) || (((_parent.xin_motion_val != "None") && (Math.abs(_parent._y - orig_y) < 0.5)) && (Math.abs(_parent._x - orig_x) < 0.5)))) {
break;
}
_parent._x = orig_x;
_parent._y = orig_y;
_parent._alpha = orig_a;
ready = true;
}
} else if (!done) {
var rl = _root.getBytesLoaded();
var rt = (_root.getBytesTotal() * (_parent.perc_req_val / 100));
if ((rl > 10) && (rt > 10)) {
rl = Math.min(rl, rt);
var new_frame = (_parent.anim._currentframe + Math.ceil(((_parent.anim._totalframes * (rl / rt)) - _parent.anim._currentframe) / 4));
new_frame = Math.max(1, new_frame);
if (_parent.show_perc_val == "Yes") {
_parent.perc.text = Math.round(((new_frame - 1) / (_parent.anim._totalframes - 1)) * 100) + " %";
}
if (new_frame != _parent.anim._currentframe) {
_parent.anim.gotoAndStop(new_frame);
}
if ((_parent.anim._totalframes == _parent.anim._currentframe) && (rl >= rt)) {
done = true;
}
}
} else if (slow_factor < 1) {
switch (_parent.xout_motion_val) {
case "Up" :
if (_parent._y >= orig_y) {
_parent._y = orig_y - accel_jump;
}
_parent._y = orig_y - (Math.abs(_parent._y - orig_y) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_y, Math.abs(_parent._y - orig_y)) / dist_y) * 100);
if (_parent._y < (orig_y - (dist_y * 2))) {
execute_action();
}
break;
case "Right" :
if (_parent._x <= orig_x) {
_parent._x = orig_x + accel_jump;
}
_parent._x = orig_x + (Math.abs(_parent._x - orig_x) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x) * 100);
if (_parent._x > (orig_x + (dist_x * 2))) {
execute_action();
}
break;
case "Left" :
if (_parent._x >= orig_x) {
_parent._x = orig_x - accel_jump;
}
_parent._x = orig_x - (Math.abs(_parent._x - orig_x) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x) * 100);
if (_parent._x < (orig_x - (dist_x * 2))) {
execute_action();
}
break;
case "Away" :
if ((_parent._xscale >= 100) || (_parent._yscale >= 100)) {
_parent._xscale = (_parent._yscale = 100 - accel_jump);
}
_parent._xscale = (_parent._yscale = Math.max(0.5, 100 - ((100 - _parent._yscale) * speed_factor)));
perc_fadeout = 100 - Math.round(Math.max(0, Math.min(_parent._xscale, 100)));
if (_parent._xscale < 1) {
execute_action();
}
break;
default :
perc_fadeout = perc_fadeout + ((100 - perc_fadeout) * slow_factor);
if (Math.abs(perc_fadeout - 100) > 1) {
break;
}
execute_action();
}
if (!(_parent.xout_alphatype_val === "Yes")) {
} else {
_parent._alpha = (orig_a / 100) * (100 - perc_fadeout);
}
} else {
execute_action();
}
}
Symbol 75 Button
on (press) {
gotoAndStop (4);
}
Symbol 80 Button
on (release) {
unloadMovieNum (10);
stopAllSounds();
_root.UNI_ROOT._y = -50;
x = _root._xmouse;
_root.UNI_ROOT._x = x;
_root.wheel._x = x;
_root.SHADOW._x = x;
_root.dude._x = x - 5;
_root.dude.gotoAndStop(1);
_root.dude._rotation = -0.5;
_root.jump_charge.gotoAndStop(1);
}
Symbol 81 Button
on (release) {
stopAllSounds();
_root.dude.gotoAndStop(1);
unloadMovieNum (10);
_root.gotoAndStop(5);
}
Symbol 84 MovieClip Frame 1
loadMovieNum ("http://www.htfgames.com/games/shark/werb/werb1.swf", 10);
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 2
_root.dude._rotation = -0.5;
Symbol 168 MovieClip Frame 100
stop();
Symbol 186 Button
on (release) {
setSpieler();
senden_btn._visible = false;
}
Symbol 191 Button
on (release) {
getURL ("javascript:winOpen('http://www.htfgames.com/member/member.php', 770, 600 ); void(0);");
}
Symbol 197 Button
on (release) {
_root.gotoAndPlay(7);
stopAllSounds();
}
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
stop();
Symbol 204 MovieClip Frame 1
function ladeDaten() {
news_xml = _parent.mein_xml.firstChild.childNodes;
initNavigation();
setListe();
}
function setListe() {
var _local1 = this;
i = aktAnzeige;
while (i < maxAnzeige) {
nName = "newsclip" + j;
attachMovie("newsclip", nName, j++);
if (news_xml[i] != undefined) {
_local1[nName]._x = 15;
_local1[nName]._y = ((_local1[nName]._height * j) * 1.2) - 15;
_local1[nName].nr_txt.text = i + 1;
_local1[nName].name_txt.text = news_xml[i].attributes.vorname;
_local1[nName].ver_txt.text = news_xml[i].attributes.nachname;
_local1[nName].punkte_txt.text = news_xml[i].firstChild;
_local1[nName].stern_mc.gotoAndStop(news_xml[i].attributes.icon);
_local1[nName].useHandCursor = false;
} else {
_local1[nName].removeMovieClip();
}
i++;
}
if (anzahl <= (aktAnzeige + max)) {
anzeige_txt.text = ((aktAnzeige + 1) + " / ") + anzahl;
} else if (anzahl != 0) {
anzeige_txt.text = ((aktAnzeige + 1) + " / ") + (aktAnzeige + max);
}
if (anzahl == 0) {
anzeige_txt.text = "0 / 0";
}
gesamt_txt.text = "Gesamt: " + anzahl;
}
function initNavigation() {
j = 0;
anzahl = news_xml.length;
max = 5;
maxAnzeige = 5;
aktAnzeige = 0;
}
butVor.onRelease = function () {
if (aktAnzeige < (anzahl - max)) {
j = 0;
aktAnzeige = aktAnzeige + max;
maxAnzeige = maxAnzeige + max;
setListe();
}
};
butZuruck.onRelease = function () {
if (aktAnzeige > 1) {
j = 0;
aktAnzeige = aktAnzeige - max;
maxAnzeige = maxAnzeige - max;
setListe();
}
};
Symbol 207 MovieClip Frame 23
stop();
Symbol 208 Button
on (release) {
unloadMovieNum (10);
_root.gotoAndPlay(3);
}