Frame 2
if (this.getBytesLoaded() < this.getBytesTotal()) {
this.gotoAndPlay(this._currentframe - 1);
} else {
var cfg = new GameConfig();
cfg.setHost_IDE("http://www.vox.de/flash/gateway.php");
cfg.setHost_WWW("gateway.php");
cfg.setOfflineVersion(_level0.ssExeName != null);
cfg.initialize();
}
Frame 5
_global.MODEDRIVE = 1;
_global.MODEFLY = 2;
_global.calc = function () {
var _local1 = this;
_local1.gravity = 10;
_local1.maxV = 100;
_local1.minV = 0;
_local1.minAlpha = 30;
_local1.maxAlpha = 60;
_local1.x = (_local1.lastX = 0);
_local1.y = (_local1.lastY = 0);
_local1.v0 = 0;
_local1.t0 = 0;
_local1.x0 = 0;
_local1.alpha = 0;
_local1.v = (_local1.lastV = 0);
_local1.lastTime = (_local1.actualTime = 0);
_local1.mode = MODEDRIVE;
AsBroadcaster.initialize(_local1);
};
calc.prototype = new Object();
calc.prototype.reset = function () {
var _local1 = this;
_local1.x = (_local1.lastX = 0);
_local1.y = (_local1.lastY = 0);
_local1.v0 = 0;
_local1.t0 = 0;
_local1.x0 = 0;
_local1.alpha = 0;
_local1.v = (_local1.lastV = 0);
_local1.lastTime = (_local1.actualTime = getTimer() / 1000);
_local1.mode = MODEDRIVE;
};
calc.prototype.incVelocity = function (dv) {
var _local1 = this;
_local1.v = _local1.v + Number(dv);
_local1.v = Math.min(100, Math.max(10, _local1.v));
};
calc.prototype.calcValues = function () {
var _local1 = this;
_local1.actualTime = getTimer() / 1000;
_local1.lastX = _local1.x;
_local1.lastY = _local1.y;
switch (_local1.mode) {
case MODEDRIVE :
var _local2 = _local1.actualTime - _local1.lastTime;
_local1.dx = _local2 * _local1.v;
_local1.dy = 0;
_local1.x = _local1.x + _local1.dx;
_local1.y = 0;
break;
case MODEFLY :
_local2 = _local1.actualTime - _local1.t0;
_local1.x = _local1.x0 + ((_local1.v0 * _local2) * Math.cos(_local1.rad(_local1.alpha)));
_local1.y = (((-(_local1.gravity / 2)) * _local2) * _local2) + ((_local1.v0 * _local2) * Math.sin(_local1.rad(_local1.alpha)));
_local1.dx = _local1.x - _local1.lastX;
_local1.dy = _local1.y - _local1.lastY;
}
_local1.lastTime = _local1.actualTime;
};
calc.prototype.setMode = function (aMode, params) {
var _local1 = this;
var _local2 = params;
switch (aMode) {
case MODEFLY :
_local1.t0 = _local1.actualTime;
if (_local2.minVelocity != undefined) {
_local1.v = Math.max(_local2.minVelocity, _local1.v);
}
_local1.v0 = _local1.v;
_local1.x0 = _local1.x;
_local1.alpha = _local2.angle;
_local1.mode = MODEFLY;
_local1.flydistance = ((_local1.v0 * _local1.v0) * Math.sin(_local1.rad(_local1.alpha) * 2)) / _local1.gravity;
return;
default :
_local1.mode = MODEDRIVE;
_local1.lastTime = (_local1.actualTime = getTimer() / 1000);
if (_local2.velocity == undefined) {
break;
}
_local1.v = _local2.velocity;
}
};
calc.prototype.rad = function (angle) {
return(Number((angle / 180) * Math.PI));
};
calc.prototype.getX = function () {
return(this.x);
};
calc.prototype.getFlyX = function () {
return(this.x - this.x0);
};
calc.prototype.getFlyDistance = function () {
return(this.flydistance);
};
calc.prototype.getY = function () {
return(this.y);
};
calc.prototype.getDX = function () {
return(this.dx);
};
calc.prototype.getDY = function () {
return(this.dy);
};
calc.prototype.getV = function () {
return(this.v);
};
stop();
Symbol 390 MovieClip [__Packages.GameConfig] Frame 0
class GameConfig
{
var host_IDE, host_WWW, _isOffline;
function GameConfig () {
_root.debug.text = _root.debug.text + "GameConfig";
}
function setHost_IDE(host_IDE) {
this.host_IDE = host_IDE;
}
function setHost_WWW(host_WWW) {
this.host_WWW = host_WWW;
}
function setOfflineVersion(_isOffline) {
this._isOffline = _isOffline;
}
function initialize() {
var _local1 = _root;
var _local2 = this;
var _local3 = new CheatTracker("xx1");
var me = _local2;
_local3.onActivate = function () {
var _local1 = _root;
_local1.debug._y = 57;
_local1.debug.text = _local1.debug.text + "DEBUG:$Id: GameConfig.as,v 1.8 2004/06/21 18:07:47 larhei Exp $";
_local1.debug.text = _local1.debug.text + ("\nflash version: " + _global.System.capabilities.version);
_local1.debug.text = _local1.debug.text + ("\nusing gateway: " + GameConfig.gateway);
_local1.debug.text = _local1.debug.text + ("\nusing offlineScore: " + GameConfig.isOffline);
};
if (_local2._isOffline) {
gateway = null;
isOffline = true;
} else {
isOffline = false;
if (_url.indexOf("file") == 0) {
gateway = _local2.host_IDE;
} else {
gateway = _local2.host_WWW;
}
}
}
static function ivw() {
if (!isOffline) {
getURL ("javascript:IVW()");
}
}
static var gateway = null;
static var isOffline = null;
}
Symbol 391 MovieClip [__Packages.CheatTracker] Frame 0
class CheatTracker
{
var activ;
function CheatTracker (cheat) {
var _local1 = this;
_local1.cheat = cheat;
if (enabled && (cheat != null)) {
Key.addListener(_local1);
}
_local1.keyList = [];
_local1.activ = false;
}
function onKeyDown() {
var _local1 = this;
if (!enabled) {
} else {
_local1.keyList.push(chr(Key.getAscii()));
if (_local1.keyList.length == _local1.cheat.length) {
if (_local1.keyList.join("") == _local1.cheat) {
_local1.onActivate();
_local1.activ = true;
Key.removeListener(_local1);
} else {
_local1.keyList.splice(0, 1);
}
}
}
}
function isActiv() {
if (!enabled) {
return(false);
}
return(activ);
}
static var enabled = true;
}
Symbol 11 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 1
function setX(x) {
var _local1 = this;
_local1.x = x;
var _local2 = _local1.x - _local1.oldx;
_local1.move(_local2);
_local1.oldx = x;
}
function move(dx) {
var _local1 = this;
_local1.level1_a._x = _local1.level1_a._x - dx;
_local1.level1_b._x = (_local1.level1_a._x + _local1.level1_a._width) - 1;
checkPosition("level1_a", "level1_b");
_local1.level2_a._x = _local1.level2_a._x - (dx / 2);
_local1.level2_b._x = (_local1.level2_a._x + _local1.level2_a._width) - 1;
checkPosition("level2_a", "level2_b");
}
function checkPosition(mc1, mc2) {
var _local1 = this;
var _local2 = mc1;
var _local3 = mc2;
if (_local1[_local3]._x < 0) {
if ((_local1[_local3]._x + _local1[_local3]._width) < 0) {
var w = (_local1[_local2]._width + _local1[_local3]._width);
var x = _local1[_local2]._x;
var r = (x % w);
_local1[_local2]._x = r;
_local1[_local3]._x = (_local1[_local2]._x + _local1[_local2]._width) - 1;
}
if (_local1[_local3]._x < 0) {
var mc = _local1[_local2];
_local1[_local2] = _local1[_local3];
_local1[_local3] = mc;
_local1[_local3]._x = (_local1[_local2]._x + _local1[_local2]._width) - 1;
}
}
if (_local1[_local2]._x > 0) {
if (_local1[_local2]._x > _local1[_local2]._width) {
var w = _local1[_local2]._width;
var x = _local1[_local2]._x;
var r = (x % w);
_local1[_local2]._x = r;
_local1[_local3]._x = (_local1[_local2]._x + _local1[_local2]._width) - 1;
}
if (_local1[_local2]._x > 0) {
var mc = _local1[_local2];
_local1[_local2] = _local1[_local3];
_local1[_local3] = mc;
_local1[_local2]._x = (_local1[_local3]._x - _local1[_local2]._width) + 1;
}
}
}
function reset() {
this.init();
}
function init() {
var _local1 = this;
_local1.x = (_local1.oldx = 0);
duplicateMovieClip (_local1.mcBG_1, "mcBG_1_1", 20);
duplicateMovieClip (_local1.mcBG_1, "mcBG_1_2", 21);
_local1.mcBG_1._visible = 0;
_local1.level1_a = _local1.mcBG_1_1;
_local1.level1_b = _local1.mcBG_1_2;
_local1.level1_a._x = 0;
_local1.level1_b._x = (_local1.level1_a._x + _local1.level1_a._width) - 1;
duplicateMovieClip (_local1.mcBG_2, "mcBG_2_1", 10);
duplicateMovieClip (_local1.mcBG_2, "mcBG_2_2", 11);
_local1.mcBG_2._visible = 0;
_local1.level2_a = _local1.mcBG_2_1;
_local1.level2_b = _local1.mcBG_2_2;
_local1.level2_a._x = 0;
_local1.level2_b._x = (_local1.level2_a._x + _local1.level2_a._width) - 1;
}
init();
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 1
function setWidth(width) {
this.mcGrassGraphic._width = width;
}
stop();
Symbol 32 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 1
function setX(x) {
var _local1 = this;
_local1.x = x;
var _local2 = _local1.x - _local1.oldx;
_local1.move(_local2);
_local1.oldx = x;
_local1.mcWall._x = _local1.wallX - _local1.x;
_local1.mcGrass._x = _local1.mcWall._x;
_local1.mcStreet_1_1._visible = (_local1.mcStreet_1_2._visible = _local1.mcGrass._x > 0);
if ((_local1.mcWall._visible == 0) && (_local1.mcWall._x < 1000)) {
_local1.mcWall._visible = 1;
_local1.mcGrass._visible = 1;
}
}
function getX() {
return(this.x);
}
function move(dx) {
var _local1 = this;
_local1.level1_a._x = _local1.level1_a._x - dx;
_local1.level1_b._x = (_local1.level1_a._x + _local1.level1_a._width) - 3;
checkPosition("level1_a", "level1_b");
_local1.level2_a._x = _local1.level2_a._x - dx;
_local1.level2_b._x = (_local1.level2_a._x + _local1.level2_a._width) - 3;
checkPosition("level2_a", "level2_b");
}
function checkPosition(mc1, mc2) {
var _local1 = this;
var _local2 = mc1;
var _local3 = mc2;
if (_local1[_local3]._x < 0) {
if ((_local1[_local3]._x + _local1[_local3]._width) < 0) {
var w = (_local1[_local2]._width + _local1[_local3]._width);
var x = _local1[_local2]._x;
var r = (x % w);
_local1[_local2]._x = r;
_local1[_local3]._x = (_local1[_local2]._x + _local1[_local2]._width) - 3;
}
if (_local1[_local3]._x < 0) {
var mc = _local1[_local2];
_local1[_local2] = _local1[_local3];
_local1[_local3] = mc;
_local1[_local3]._x = (_local1[_local2]._x + _local1[_local2]._width) - 3;
}
}
if (_local1[_local2]._x > 0) {
if (_local1[_local2]._x > _local1[_local2]._width) {
var w = _local1[_local2]._width;
var x = _local1[_local2]._x;
var r = (x % w);
_local1[_local2]._x = r;
_local1[_local3]._x = (_local1[_local2]._x + _local1[_local2]._width) - 3;
}
if (_local1[_local2]._x > 0) {
var mc = _local1[_local2];
_local1[_local2] = _local1[_local3];
_local1[_local3] = mc;
_local1[_local2]._x = (_local1[_local3]._x - _local1[_local2]._width) + 3;
}
}
}
function reset() {
this.init();
}
function init() {
var _local1 = this;
_local1.x = (_local1.oldx = 0);
duplicateMovieClip (_local1.mcWall_1, "mcWall", 101);
_local1.mcWall_1._visible = 0;
_local1.mcWall._visible = 0;
_local1.mcWall._x = _local1.wallX;
var _local2 = _local1.mcWall.mcFlyArea.getBounds(_local1);
_local1.flyAreaX1 = _local2.xMin;
_local1.flyAreaX2 = _local2.xMax;
removeMovieClip(_local1.mcGrass);
duplicateMovieClip (_local1.mcGrass_1, "mcGrass", 100);
_local1.mcGrass_1._visible = 0;
_local1.mcGrass._visible = 1;
_local1.mcGrass._x = _local1.wallX;
_local1.mcGrass.setWidth(_local1.maxFlyWidth * _local1.speedscale);
_local1.level1x = 0;
duplicateMovieClip (_local1.mcTrees_1, "mcTrees_1_1", 10);
duplicateMovieClip (_local1.mcTrees_1, "mcTrees_1_2", 11);
_local1.mcTrees_1._visible = 0;
_local1.level1_a = _local1.mcTrees_1_1;
_local1.level1_b = _local1.mcTrees_1_2;
_local1.level1_a._x = 0;
_local1.level1_b._x = (_local1.level1_a._x + _local1.level1_a._width) - 3;
_local1.level2x = 0;
duplicateMovieClip (_local1.mcStreet_1, "mcStreet_1_1", 20);
duplicateMovieClip (_local1.mcStreet_1, "mcStreet_1_2", 21);
_local1.mcStreet_1._visible = 0;
_local1.level2_a = _local1.mcStreet_1_1;
_local1.level2_b = _local1.mcStreet_1_2;
_local1.level2_a._x = 0;
_local1.level2_b._x = (_local1.level2_a._x + _local1.level2_a._width) - 3;
}
function setupScenery(fHighscore) {
var _local1 = this;
var _local2 = fHighscore;
if (_local2) {
_local1._parent.generateHighscoreList(_local1.mcGrass, _local1.speedscale, _local2);
} else {
_local1._parent.generateHighscoreGravestones(_local1.mcGrass, _local1.speedscale, _local2);
}
}
wallX = this._parent.WALLX;
speedscale = this._parent.SPEEDFACTOR;
maxFlyWidth = this._parent.MAXTHROWINGRANGE;
init();
stop();
Symbol 45 MovieClip Frame 1
function cacheProtect() {
return((Math.round(Math.random() * 9999) + "-") + getTimer());
}
function prepareQuery(queryString) {
var _local1 = queryString;
var _local3 = this;
_local1 = (_local1 + "&cp=") + _local3.cacheProtect();
var crqstr = _local3.crypt.EncryptString(_local1, _local3.s);
var _local2 = crqstr.base64encode();
return(_local2);
}
function submitHighscore(nickname, realname, email, score, callobj, callfunc) {
var _local3 = this;
if (!GameConfig.isOffline) {
var submitScore = new LoadVars();
submitScore._ctrl_ = _local3;
submitScore.callobj = callobj;
submitScore.callfunc = callfunc;
submitScore.onLoad = function (fSuccess) {
var _local1 = this;
_local1.callobj[callfunc](_local1, fSuccess);
if (Number(_local1.count) > 0) {
_local1._ctrl_.generateHighscore(_local1, fSuccess);
}
};
var qstr = ((((((("&n=" + nickname) + "&r=") + realname) + "&e=") + email) + "&s=") + score);
var querystring = ("a=a" + qstr);
submitScore.load((_local3.url + "?q=") + _local3.prepareQuery(querystring));
} else {
var obj = {};
var lso = SharedObject.getLocal("sfugameHS", "/");
var _local2 = lso.data.hs;
var found = false;
var oldScore = null;
var oldIndex = null;
for (var i in _local2) {
var _local1 = _local2[i];
if (nickname == _local1.name) {
found = true;
oldScore = _local1.score;
oldIndex = i;
break;
}
}
if (found) {
obj.a = 1;
if (oldScore <= score) {
obj.scorewrote = true;
_local2[oldIndex].score = score;
} else {
obj.scorewrote = false;
}
} else {
obj.a = 2;
obj.scorewrote = true;
_local2.push({name:nickname, score:score});
}
var order = function (a, b) {
if (a.score > b.score) {
return(-1);
}
return(1);
};
_local2.sort(order);
lso.flush();
callobj[callfunc](obj, true);
_local3.loadHighscore();
}
}
function loadHighscore() {
if (!GameConfig.isOffline) {
var loadScore = new LoadVars();
loadScore._ctrl_ = this;
loadScore.onLoad = function (fSuccess) {
var _local1 = this;
_local1._ctrl_.generateHighscore(_local1, fSuccess);
};
var querystring = "a=g";
loadScore.load((this.url + "?q=") + this.prepareQuery(querystring));
} else {
var lso = SharedObject.getLocal("sfugameHS", "/");
var _local2 = lso.data;
if (_local2.hs == null) {
_local2.hs = [];
}
var _local3 = {};
_local3.g = "1";
var _local1 = 0;
while (_local1 < _local2.hs.length) {
_local3["n" + (_local1 + 1)] = _local2.hs[_local1].name;
_local3["s" + (_local1 + 1)] = _local2.hs[_local1].score;
_local1++;
}
_local3.count = _local2.hs.length;
generateHighscore(_local3, true);
}
}
function generateHighscore(dataMC, fSuccess) {
var _local2 = dataMC;
var arrScore = new Array();
if (fSuccess) {
var _local1 = 1;
while (_local1 <= _local2.count) {
var _local3 = {nick:_local2["n" + _local1], score:_local2["s" + _local1]};
arrScore.push(_local3);
_local1++;
}
}
this._parent.arrHighscores = arrScore;
this._parent.fHighscoreLoaded = true;
this._parent.fHighscoreLoadOK = _local2.g == "1";
}
String.prototype.charAt = function (index) {
return(substring(this, index + 1, 1));
};
String.prototype.concat = function () {
var _local2 = arguments;
var _local3 = this.toString();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + _local2[_local1];
_local1++;
}
return(_local3);
};
String.prototype.indexOf = function (sub, i) {
var _local1 = i;
if (_local1 == null) {
_local1 = 0;
}
var _local2 = sub.length;
var _local3 = (this.length - _local2) + 1;
while ((_local1 <= _local3) && ((substring(this, 1 + (_local1++), _local2)) != sub)) {
}
if (_local1 > _local3) {
return(-1);
}
return(_local1 - 1);
};
String.prototype.lastIndexOf = function (sub, i) {
var _local1 = i;
var _local2 = sub;
var _local3 = this;
size = _local2.length;
((_local1 == null) ? (_local1 = (_local3.length - size) + 1) : (_local1++));
if (_local2.length == 0) {
return(_local1 - 1);
}
while ((_local1 >= 0) && ((substring(_local3, _local1--, size)) != _local2)) {
}
if (_local1 != -1) {
return(_local1);
}
return(-1);
};
String.prototype.slice = function (s, e) {
return(substring(this, s + 1, e - s));
};
String.prototype.split = function (d) {
var _local3 = this;
if (d != null) {
var r = new Array();
var size = _local3.length;
var _local2 = 0;
var n = 0;
if (d != "") {
var _local1 = 0;
while (_local1 <= size) {
if ((substring(_local3, _local1 + 1, 1)) == d) {
r[n] = substring(_local3, _local2 + 1, _local1 - _local2);
_local2 = _local1 + 1;
n++;
}
_local1++;
}
if (_local2 != _local1) {
r[n] = substring(_local3, _local2 + 1, _local1 - _local2);
}
} else {
var _local1 = 0;
while (_local1 < size) {
r[_local1] = substring(_local3, _local1 + 1, 1);
_local1++;
}
}
} else {
r = new Array(_local3.toString());
}
return(r);
};
String.prototype.substr = function (s, l) {
var _local1 = l;
if (_local1 == null) {
_local1 = this.length - s;
}
return(substring(this, s + 1, _local1));
};
String.prototype.base64encode = function () {
var _local3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local1;
var dual;
var _local2 = 0;
var encOut = "";
while (this.length >= (_local2 + 3)) {
_local1 = (((this.charCodeAt(_local2++) & 255) << 16) | ((this.charCodeAt(_local2++) & 255) << 8)) | (this.charCodeAt(_local2++) & 255);
encOut = encOut + (((_local3.charAt((_local1 & 16515072) >> 18) + _local3.charAt((_local1 & 258048) >> 12)) + _local3.charAt((_local1 & 4032) >> 6)) + _local3.charAt(_local1 & 63));
}
if (((this.length - _local2) > 0) && ((this.length - _local2) < 3)) {
dual = Boolean((this.length - _local2) - 1);
_local1 = ((this.charCodeAt(_local2++) & 255) << 16) | (dual ? ((this.charCodeAt(_local2) & 255) << 8) : 0);
encOut = encOut + (((_local3.charAt((_local1 & 16515072) >> 18) + _local3.charAt((_local1 & 258048) >> 12)) + (dual ? (_local3.charAt((_local1 & 4032) >> 6)) : "=")) + "=");
}
return(encOut);
};
String.prototype.base64decode = function () {
var _local2 = this;
var _local3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var bits;
var decOut = "";
var _local1 = 0;
_local1 = 0;
while (_local1 < _local2.length) {
bits = ((((_local3.indexOf(_local2.charAt(_local1)) & 255) << 18) | ((_local3.indexOf(_local2.charAt(_local1 + 1)) & 255) << 12)) | ((_local3.indexOf(_local2.charAt(_local1 + 2)) & 255) << 6)) | (_local3.indexOf(_local2.charAt(_local1 + 3)) & 255);
decOut = decOut + String.fromCharCode((bits & 16711680) >> 16, (bits & 65280) >> 8, bits & 255);
_local1 = _local1 + 4;
}
if (_local2.charCodeAt(_local1 - 2) == 61) {
return(decOut.substring(0, decOut.length - 2));
}
if (_local2.charCodeAt(_local1 - 1) == 61) {
return(decOut.substring(0, decOut.length - 1));
}
return(decOut.substring(0, decOut.length));
};
String.prototype.formatNumber = function (value, dec) {
var _local2 = dec;
var u = String(value);
var _local1 = u.split(".");
((_local1[1] == undefined) ? ((_local1[1] = "")) : (_local1[1]));
((_local1[1].length < _local2) ? ((_local1[1] = _local1[1] + "000000".substring(0, _local2 - _local1[1].length))) : ((_local1[1] = _local1[1].substring(0, _local2))));
var _local3 = ((_local2 > 0) ? ((_local1[0] + ",") + _local1[1]) : (_local1[0]));
return(_local3);
};
Crypter = function () {
var _local1 = this;
var _local2;
_local1.alphabet = new Array("0@", "1#", "2$", "3%", "4^", "5&", "6*", "7=", "8-", "9+", "Aa", "Bb", "Cc", "Dd", "Ee", "Ff", "Gg", "Hh", "Ii", "Jj", "Kk", "Ll", "Mm", "Nn", "Oo", "Pp", "Qq", "Rr", "Ss", "Tt", "Uu", "Vv", "Ww", "Xx", "Yy", "Zz", "\u00F6\u00D6", "\u00FC\u00DC", "\u00E4\u00C4", "\u00DF~", " _", ":;");
_local1.alphabet1 = new Array();
_local1.alphabet2 = new Array();
_local1.alphlen = _local1.alphabet.length;
_local2 = 0;
while (_local2 < _local1.alphabet.length) {
_local1.alphabet1.push(_local1.alphabet[_local2].substring(0, 1));
_local1.alphabet2.push(_local1.alphabet[_local2].substring(1, 2));
_local2++;
}
};
Crypter.prototype = new Object();
Crypter.prototype.scramble = function (str) {
var methodcount = 1;
var method = (random(methodcount) + 1);
var sString = "";
var _local2 = "";
var _local3;
var _local1;
if (Number(method) == 1) {
_local1 = str.length - 1;
while (_local1 >= 0) {
_local3 = str.charAt(_local1);
_local2 = _local2 + _local3;
_local1--;
}
_local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local2.charAt(_local1);
sString = (sString + (random(8) + 1)) + _local3;
_local1++;
}
}
sString = sString + method;
return(sString);
};
Crypter.prototype.unscramble = function (str) {
var method = str.charAt(str.length - 1);
var aString = str.substr(0, str.length - 1);
var _local3 = "";
var rString = "";
var _local2 = "";
var dirt = "";
var _local1;
if (Number(method) == 1) {
_local1 = 0;
while (_local1 < aString.length) {
dirt = aString.charAt(_local1++);
_local2 = aString.charAt(_local1++);
_local3 = _local3 + _local2;
}
_local1 = _local3.length - 1;
while (_local1 >= 0) {
_local2 = _local3.charAt(_local1);
rString = rString + _local2;
_local1--;
}
}
return(rString);
};
Crypter.prototype.findshift = function (letter) {
var _local2 = this;
var _local3 = letter;
var _local1;
_local1 = 0;
while (_local1 < _local2.alphlen) {
if ((_local2.alphabet1[_local1] == _local3) || (_local2.alphabet2[_local1] == _local3)) {
if (_local2.alphabet1[_local1] == _local3) {
_local2.x = 0;
}
if (_local2.alphabet2[_local1] == _local3) {
_local2.x = 1;
}
return(_local1);
}
_local1++;
}
return(undefined);
};
Crypter.prototype.check = function (letter) {
var _local2 = this;
var _local3 = letter;
var _local1;
_local1 = 0;
while (_local1 < _local2.alphlen) {
if ((_local2.alphabet1[_local1] == _local3) || (_local2.alphabet2[_local1] == _local3)) {
return(true);
}
_local1++;
}
return(false);
};
Crypter.prototype.virgenere = function (coco, uinput, question) {
var _local1 = this;
var longer = (coco.length - 1);
var placement = 0;
var ref = 0;
var secondWrite = "";
var _local2 = "";
var thirdWrite = "";
var inval1 = coco;
var inval2 = uinput;
var inval3 = longer;
var sage = question;
var i2_len = inval2.length;
var shift;
var orig;
while (placement != i2_len) {
var _local3 = inval1.charAt(ref);
var c_place = inval2.charAt(placement);
if (_local1.check(c_place)) {
if (_local1.check(_local3)) {
if (sage == 0) {
shift = _local1.findshift(_local3);
}
if (sage == 1) {
shift = _local1.alphlen - _local1.findshift(_local3);
}
} else {
shift = 0;
}
orig = _local1.findshift(c_place);
_local2 = _local2 add _local1.alphabet[Number(orig + shift) % _local1.alphlen].charAt(_local1.x);
} else {
_local2 = _local2 add c_place;
}
secondWrite = inval2.substring(placement + 1, i2_len + 1);
thirdWrite = _local2 add secondWrite;
placement++;
if (ref == inval3) {
ref = 0;
} else {
ref++;
}
}
return(thirdWrite);
};
Crypter.prototype.EncryptString = function (str, passwd) {
var _local1 = str;
_local1 = this.scramble(_local1);
return(this.virgenere(passwd, _local1, 0));
};
Crypter.prototype.DecryptString = function (str, passwd) {
var _local1 = str;
_local1 = this.virgenere(passwd, _local1, 1);
return(this.unscramble(_local1));
};
s = "80c3d738";
crypt = new Crypter();
this.url = GameConfig.gateway;
Symbol 45 MovieClip Frame 2
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 3
stop();
Symbol 54 MovieClip Frame 7
stop();
Symbol 54 MovieClip Frame 15
stop();
Symbol 54 MovieClip Frame 28
stop();
Symbol 54 MovieClip Frame 40
stop();
Symbol 54 MovieClip Frame 53
stop();
Symbol 54 MovieClip Frame 64
stop();
Symbol 54 MovieClip Frame 76
stop();
Symbol 54 MovieClip Frame 86
stop();
Symbol 54 MovieClip Frame 100
stop();
Symbol 54 MovieClip Frame 113
stop();
Symbol 54 MovieClip Frame 136
_parent.startDriveSound();
stop();
Symbol 63 MovieClip [fsGravestone] Frame 1
stop();
Symbol 65 MovieClip [fsHelpFadeIn] Frame 50
stop();
Symbol 67 MovieClip [fsHelpFadeOut] Frame 71
stop();
Symbol 72 Button
on (release) {
mainMenu();
}
Symbol 76 Button
on (press) {
scrollUp();
}
on (release) {
stopScroll();
}
Symbol 77 Button
on (press) {
scrollDown();
}
on (release) {
stopScroll();
}
Symbol 78 MovieClip [fsHighscoreNavigation] Frame 1
function mainMenu() {
this._parent.HighscorePanOut();
}
function scrollUp() {
var _local1 = this;
_local1.createEmptyMovieClip("mcScrollHelper", 1);
_local1.mcScrollHelper.onEnterFrame = function () {
this._parent._parent.HighscoreScrollUp();
};
}
function scrollDown() {
var _local1 = this;
_local1.createEmptyMovieClip("mcScrollHelper", 1);
_local1.mcScrollHelper.onEnterFrame = function () {
this._parent._parent.HighscoreScrollDown();
};
}
function stopScroll() {
removeMovieClip(this.mcScrollHelper);
}
stop();
Symbol 80 MovieClip [fsHelpMainMenuPan] Frame 26
stop();
Symbol 88 Button
on (release) {
this._parent.startGame();
}
Symbol 93 Button
on (release) {
this._parent.showHelp();
}
Symbol 97 Button
on (release) {
this._parent.showHighscore();
}
Symbol 101 Button
on (release) {
gotoAndPlay ("about");
}
Symbol 107 Button
on (release) {
gotoAndPlay ("send2friend");
}
Symbol 112 Button
on (release) {
gotoAndPlay ("main");
}
Symbol 115 MovieClip Frame 1
stop();
Symbol 121 Button
on (rollOver) {
if (((sEmail_f.indexOf("@") >= 1) & (sEmail_f.lastIndexOf(".") > sEmail_f.indexOf("@"))) & (sEmail_f.lastIndexOf(".") < (sEmail_f.length - 2))) {
s_alert._visible = 0;
} else {
s_alert._visible = 1;
}
}
on (rollOut, dragOut) {
s_alert._visible = 0;
}
on (release) {
if (((sEmail_f.indexOf("@") >= 1) & (sEmail_f.lastIndexOf(".") > sEmail_f.indexOf("@"))) & (sEmail_f.lastIndexOf(".") < (sEmail_f.length - 2))) {
gotoAndPlay ("cont");
} else {
Selection.setFocus("sEmail_f");
}
}
Symbol 139 Button
on (release) {
gotoAndPlay ("send2friend");
}
Symbol 140 Button
on (rollOver) {
if (((rEmail_f.indexOf("@") >= 1) & (rEmail_f.lastIndexOf(".") > rEmail_f.indexOf("@"))) & (rEmail_f.lastIndexOf(".") < (rEmail_f.length - 2))) {
s_alert._visible = 0;
} else {
s_alert._visible = 1;
}
}
on (rollOut, dragOut) {
s_alert._visible = 0;
}
on (release) {
if (((rEmail_f.indexOf("@") >= 1) & (rEmail_f.lastIndexOf(".") > rEmail_f.indexOf("@"))) & (rEmail_f.lastIndexOf(".") < (rEmail_f.length - 2))) {
gotoAndPlay ("editMsg");
} else {
Selection.setFocus("rEmail_f");
}
}
Symbol 152 Button
on (release) {
gotoAndPlay ("send");
}
Symbol 160 Button
on (release) {
gotoAndPlay ("send2friend");
}
Symbol 162 Button
on (release) {
gotoAndPlay ("send2Friend");
}
Symbol 167 Button
on (release) {
gotoAndPlay ("send");
}
Symbol 169 MovieClip Frame 1
stop();
if (GameConfig.isOffline) {
tellAFriend_btn._visible = false;
impressum_btn._x = 200;
}
GameConfig.ivw();
Symbol 169 MovieClip Frame 8
stop();
GameConfig.ivw();
Instance of Symbol 131 MovieClip "s_alert" in Symbol 169 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 133 MovieClip in Symbol 169 MovieClip Frame 15
onClipEvent (load) {
myTabs = ["sName_f", "sEmail_f"];
ti = 0;
pressed = false;
Selection.setFocus("_parent." + myTabs[0]);
}
onClipEvent (keyDown) {
if (!pressed) {
if (Key.isDown(9)) {
if (ti == (myTabs.length - 1)) {
ti = 0;
} else {
ti++;
}
Selection.setFocus("_parent." + myTabs[ti]);
pressed = true;
}
}
}
onClipEvent (keyUp) {
pressed = false;
}
Symbol 169 MovieClip Frame 16
stop();
GameConfig.ivw();
Instance of Symbol 133 MovieClip in Symbol 169 MovieClip Frame 23
onClipEvent (load) {
myTabs = ["rName_f", "rEmail_f"];
ti = 0;
pressed = false;
Selection.setFocus("_parent." + myTabs[0]);
}
onClipEvent (keyDown) {
if (!pressed) {
if (Key.isDown(9)) {
if (ti == (myTabs.length - 1)) {
ti = 0;
} else {
ti++;
}
Selection.setFocus("_parent." + myTabs[ti]);
pressed = true;
}
}
}
onClipEvent (keyUp) {
pressed = false;
}
Symbol 169 MovieClip Frame 24
stop();
Instance of Symbol 133 MovieClip in Symbol 169 MovieClip Frame 32
onClipEvent (load) {
myTabs = ["sMsg_f"];
ti = 0;
pressed = false;
Selection.setFocus("_parent." + myTabs[0]);
}
onClipEvent (keyDown) {
if (!pressed) {
if (Key.isDown(9)) {
if (ti == (myTabs.length - 1)) {
ti = 0;
} else {
ti++;
}
Selection.setFocus("_parent." + myTabs[ti]);
pressed = true;
}
}
}
onClipEvent (keyUp) {
pressed = false;
}
Symbol 169 MovieClip Frame 33
stop();
Symbol 169 MovieClip Frame 40
sName = escape(sName_f);
sEmail = escape(sEmail_f);
rName = escape(rName_f);
rEmail = escape(rEmail_f);
sMsg = escape(sMsg_f);
ok = "";
t = getTimer();
loadVariables ("send2friend.php", this, "POST");
Symbol 169 MovieClip Frame 43
if (ok == "") {
if ((getTimer() - t) > 20000) {
gotoAndPlay ("error");
} else {
gotoAndPlay(_currentframe - 1);
}
} else if (ok == "0") {
gotoAndPlay ("error");
} else {
gotoAndPlay ("done");
}
Symbol 169 MovieClip Frame 47
stop();
Symbol 169 MovieClip Frame 54
stop();
Symbol 172 MovieClip Frame 1
stop();
Symbol 176 Button
on (press) {
this._parent.startDragging();
}
on (release) {
this._parent.stopDragging();
}
Symbol 177 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 1
function scrollText(value) {
var _local1 = this;
var _local2 = value;
if (_local2 == _local1.oldvalue) {
} else {
_local1.oldvalue = _local2;
_local1.mcText._y = (-(_local1.mcText._height - _local1.mcMask._height)) * (_local2 / 100);
}
}
function startDragging() {
var _local1 = this;
_local1.dragHeight = _local1.mcMask._height - _local1.mcDragBar._height;
_local1.mcDragHelper = _local1.createEmptyMovieClip("mcDragHelp", 1);
_local1.mcDragHelper.onEnterFrame = function () {
this._parent.updateDragValue();
};
_local1.mcDragBar.startDrag(false, _local1.mcDragBar._x, 0, _local1.mcDragBar._x, _local1.dragHeight);
}
function stopDragging() {
removeMovieClip(this.mcDragHelper);
this.mcDragBar.stopDrag();
}
function updateDragValue() {
var _local1 = this;
_local1.scrollText((_local1.mcDragBar._y / _local1.dragHeight) * 100);
}
stop();
this.oldvalue = 0;
Symbol 179 Button
on (release) {
this.reset();
}
Symbol 201 MovieClip Frame 14
stop();
Symbol 263 MovieClip Frame 1
function setState(strState, params) {
switch (strState) {
case "still" :
gotoAndPlay ("still");
return;
case "drive" :
gotoAndPlay ("drive");
return;
case "crash" :
gotoAndPlay ("crash");
return;
case "stop" :
gotoAndPlay ("stop");
return;
case "tooslow" :
gotoAndPlay ("tooslow");
return;
case "brake" :
gotoAndPlay ("brake");
return;
default :
gotoAndPlay ("still");
}
}
setState("still");
Symbol 263 MovieClip Frame 3
stop();
Symbol 263 MovieClip Frame 19
stop();
Symbol 263 MovieClip Frame 28
stop();
Symbol 263 MovieClip Frame 60
_parent.playSound("dropCoffin");
Symbol 263 MovieClip Frame 121
_parent.playSound("walk");
Symbol 263 MovieClip Frame 150
_parent.gotoAndPlay("stopMsg");
_parent.playSound("stop");
stop();
Symbol 263 MovieClip Frame 180
_parent.playSound("walk");
Symbol 263 MovieClip Frame 247
_parent.playSound("stop");
Symbol 263 MovieClip Frame 251
_parent.playSound("walk");
Symbol 263 MovieClip Frame 339
_parent.playSound("stop");
_parent.gotoAndPlay("stopMsg");
stop();
Symbol 263 MovieClip Frame 385
_parent.gotoAndPlay("slowMsg");
_parent.playSound("stop");
stop();
Symbol 268 MovieClip Frame 1
function setValue(value) {
var _local1 = value;
_local1 = Math.max(0, Math.min(100, _local1)) / 100;
this.mcArrow._rotation = 270 * _local1;
}
stop();
Symbol 277 Button
on (release) {
this.panToMainMenu();
}
Symbol 330 MovieClip Frame 1
function setState(strState) {
switch (strState) {
case "still" :
case "fly" :
gotoAndPlay(strState);
return;
default :
gotoAndPlay ("still");
}
}
function setY(aValue) {
this.mcCoffin._y = aValue;
}
function setRotation(aValue) {
this.mcCoffin._rotation = aValue;
}
setState("still");
Symbol 330 MovieClip Frame 3
stop();
Symbol 330 MovieClip Frame 7
stop();
Symbol 330 MovieClip Frame 10
myW = strW;
_parent.playSound("stop");
Symbol 330 MovieClip Frame 11
_parent.playSound("land");
Symbol 330 MovieClip Frame 16
_parent.playSound("walk");
Symbol 330 MovieClip Frame 85
_parent.playSound("stop");
Symbol 330 MovieClip Frame 98
_parent.playSound("bumm");
Symbol 330 MovieClip Frame 103
_parent.playSound("walk");
Symbol 330 MovieClip Frame 110
_parent.playSound("stop");
Symbol 330 MovieClip Frame 113
_parent.playSound("schipp");
Symbol 330 MovieClip Frame 117
_parent.playSound("schipp2");
Symbol 330 MovieClip Frame 121
_parent.playSound("schipp");
Symbol 330 MovieClip Frame 124
_parent.playSound("walk");
Symbol 330 MovieClip Frame 139
_parent.playSound("bumm");
Symbol 330 MovieClip Frame 201
_parent.playSound("stop");
Symbol 330 MovieClip Frame 205
this._parent.showScoreMessage();
stop();
Symbol 341 Button
on (release) {
cancel();
}
Symbol 346 Button
on (release) {
submit();
}
Symbol 369 Button
on (release) {
submit();
}
Symbol 375 Button
on (release) {
showInputForm();
}
Symbol 378 Button
on (release) {
showMainMenu();
}
Symbol 385 MovieClip Frame 1
function init() {
var _local1 = this;
_local1.loadSOValues();
_local1.score = _local1._parent.score;
_local1.strScore = _local1.score + " m";
showInputForm();
}
function showInputForm() {
gotoAndPlay ("form");
}
function cancel() {
this._parent.panToMainMenu();
}
function showMainMenu() {
this._parent.panToMainMenu();
}
function submit() {
var _local1 = this;
var _local2 = _local1.score * 100;
_local1.storeSOValues();
_local1._parent.mcLoader.submitHighscore(_local1.nickname, _local1.realname, _local1.email, _local2, _local1, "scoreSubmitted");
if (!GameConfig.isOffline) {
gotoAndPlay ("submit");
}
}
function scoreSubmitted(data, fSuccess) {
var _local1 = data;
var _local2 = this;
if (fSuccess) {
var _local3 = Number(_local1.a);
switch (_local3) {
case 0 :
gotoAndPlay ("r_exist");
break;
case 1 :
if (_local1.scorewrote) {
msg = ((("Score wurde aktualisiert. Mit " + _local2.score) + " m haben Sie Ihre beste Weite von ") + (_local1.lastscore / 100)) + " m verbessert.";
} else {
msg = ((("Score wurde nicht aktualisiert, da ihre beste Weite von " + (_local1.lastscore / 100)) + " m mit Ihrem aktuellen Wert von ") + _local2.score) + " m nicht verbessert wurde.";
}
gotoAndPlay ("r_update");
break;
case 2 :
gotoAndPlay ("r_add");
break;
default :
gotoAndPlay ("r_error");
}
} else {
gotoAndPlay ("netfailed");
}
}
function loadSOValues() {
var _local2 = this;
var _local1 = SharedObject.getLocal("sfugame", "/");
if (_local1.data.realname != undefined) {
_local2.realname = _local1.data.realname;
}
if (_local1.data.nickname != undefined) {
_local2.nickname = _local1.data.nickname;
}
if (_local1.data.email != undefined) {
_local2.email = _local1.data.email;
}
}
function storeSOValues() {
var _local2 = this;
var _local1 = SharedObject.getLocal("sfugame", "/");
_local1.data.realname = _local2.realname;
_local1.data.nickname = _local2.nickname;
_local1.data.email = _local2.email;
var _local3 = _local1.flush();
_local2.status = _local3;
}
init();
Instance of Symbol 133 MovieClip in Symbol 385 MovieClip Frame 1
onClipEvent (load) {
myTabs = ["nickname", "realname", "email"];
ti = 0;
pressed = false;
Selection.setFocus("_parent." + myTabs[0]);
}
onClipEvent (keyDown) {
if (!pressed) {
if (Key.isDown(9)) {
if (ti == (myTabs.length - 1)) {
ti = 0;
} else {
ti++;
}
Selection.setFocus("_parent." + myTabs[ti]);
pressed = true;
}
}
}
onClipEvent (keyUp) {
pressed = false;
}
Instance of Symbol 366 MovieClip "sendScore" in Symbol 385 MovieClip Frame 1
onClipEvent (load) {
if (GameConfig.isOffline) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 385 MovieClip Frame 2
stop();
Symbol 385 MovieClip Frame 6
stop();
Symbol 385 MovieClip Frame 10
stop();
Symbol 385 MovieClip Frame 15
stop();
Symbol 385 MovieClip Frame 21
stop();
Symbol 385 MovieClip Frame 26
stop();
Symbol 385 MovieClip Frame 32
stop();
Symbol 385 MovieClip Frame 37
stop();
Symbol 388 MovieClip Frame 1
function playSound(what) {
if (s) {
mySounds.gotoAndPlay(what);
}
}
function init() {
var _local1 = this;
_local1.sfuCalc = new calc();
_local1.fDriving = false;
var _local2 = {_ctrl_:_local1, onKeyDown:function () {
this._ctrl_.keyEvent(true);
}, onKeyUp:function () {
this._ctrl_.keyEvent(false);
}};
Key.addListener(_local2);
_local1.orgX = _local1._x;
_local1.orgY = _local1._y;
loadVariables ("week.php", _local1);
}
function switchQuality(fLow) {
_quality = (fLow ? "MEDIUM" : "HIGH");
}
function reset() {
var _local1 = this;
_local1.sfuCalc.reset();
_local1.mcBackground.reset();
_local1.mcScenery.reset();
_local1.fDriving = false;
_local1.fIncVelocity = false;
_local1.fBrakeCar = false;
gotoAndPlay ("intro");
}
function generateHighscoreList(mc, intXPosScale, fHighscore) {
var _local3 = this;
var x;
var y = 0;
_local3.lowestScore = 999999 /* 0x0F423F */;
var _local2 = 1;
while (_local2 < _local3.arrHighscores.length) {
var rec = _local3.arrHighscores[_local2 - 1];
intScore = rec.score / 100;
var sScore = "";
sScore = sScore.formatNumber(intScore, 2);
_local3.lowestScore = Math.min(intScore, _local3.lowestScore);
var level = Number((10 + _local3.arrHighscores.length) - _local2);
var _local1 = mc.attachMovie("fsGravestone", "mcGravestone_" + _local2, level, {nickname:rec.nick, score:sScore + "m", myNr:_local2});
_local1._y = y;
_local1._x = x;
_local1._rotation = (Math.random() * 10) - 5;
x = (_local1._x + _local1._width) + (_local1._width / 10);
var sx = (_local1._x + _local1._width);
_local3.maxHighscoreScrollX = Math.max(_local3.maxHighscoreScrollX, sx);
_local2++;
}
if (_local3.arrHighscores.length < MAXHIGHSCOREENTRIES) {
_local3.lowestScore = 0;
}
}
function generateHighscoreGravestones(mc, intXPosScale, fHighscore) {
var _local2 = this;
var _local3 = mc;
var x;
var y = 0;
_local2.lowestScore = 999999 /* 0x0F423F */;
_local2.lastScore = _local2.arrHighscores[_local2.arrHighscores.length - 1].score / 100;
var _local1 = 0;
while (_local1 < (_local2.lastScore - 20)) {
var level = Math.round(Number(_local1 + 1000));
var mcgs = _local3.attachMovie("fsGravestone", "mcGravestone_" + level, level, {nickname:"R.I.P.", score:"", myNr:""});
x = 40 + (_local1 * intXPosScale);
mcgs._x = x;
mcgs._rotation = (Math.random() * 10) - 5;
_local1 = _local1 + ((Math.random() * 20) + 2);
}
_local1 = _local2.arrHighscores.length;
while (_local1 > 0) {
var rec = _local2.arrHighscores[_local1 - 1];
intScore = rec.score / 100;
if ((_local1 == 1) || (Math.abs(lastScore - intScore) > 2)) {
var sScore = "";
sScore = sScore.formatNumber(intScore, 2);
_local2.lowestScore = Math.min(intScore, _local2.lowestScore);
var level = Number((10 + _local2.arrHighscores.length) - _local1);
var mcgs = _local3.attachMovie("fsGravestone", "mcGravestone_" + _local1, level, {nickname:rec.nick, score:sScore + "m", myNr:_local1});
var myy = ((random(200) * 2) + 1);
x = 40 + (intScore * intXPosScale);
mcgs.myy = myy / 40;
mcgs._y = y;
mcgs._x = x;
mcgs._rotation = (Math.random() * 10) - 5;
lastScore = intScore;
}
_local1--;
}
for (_local1 in _local3) {
if (_local1.toString().indexOf("_") != -1) {
_local3[_local1]._y = -5 + _local3[_local1].myy;
_local3[_local1].swapDepths(_local3[_local1].myy * 100);
}
}
if (_local2.arrHighscores.length < MAXHIGHSCOREENTRIES) {
_local2.lowestScore = 0;
}
}
function showHelp() {
gotoAndPlay ("help");
}
function showHighscore() {
gotoAndPlay ("highscore");
}
function highscorePanIn() {
var _local1 = this;
_local1.mcBackground.reset();
_local1.mcScenery.reset();
_local1.mcScenery.setupScenery(true);
_local1.panX1 = 0;
_local1.panX2 = WALLX - 100;
_local1.zoomY1 = 0;
_local1.zoomY2 = -160;
_local1.zoomX1 = 0;
_local1.zoomX2 = -70;
_local1.zoomZ1 = 100;
_local1.zoomZ2 = 230;
_local1.mcHelpHighscore = _local1.attachMovie("fsHelpFadeIn", "mcHelpHighscore", LEVEL_HELPHIGHSCOREFADE);
_local1.mcHelpHighscore._visible = 0;
_local1.mcHelpHighscore.fFadeIn = true;
_local1.mcHelpHighscore.onEnterFrame = function () {
var _local1 = this;
_local1._parent.highscorePanStep(_local1.mcValuePan._x, _local1.mcValueZoom._x);
};
_local1.highscoreOrgX = _local1.panX2;
_local1.highscoreScrollX = 0;
}
function highscorePanOut() {
var _local1 = this;
_local1.panX1 = _local1.highscoreOrgX + _local1.highScoreScrollX;
_local1.panX2 = 0;
_local1.zoomY1 = -160;
_local1.zoomY2 = 0;
_local1.zoomX1 = -70;
_local1.zoomX2 = 0;
_local1.zoomZ1 = 230;
_local1.zoomZ2 = 100;
_local1.mcHelpHighscore = _local1.attachMovie("fsHelpFadeOut", "mcHelpHighscore", LEVEL_HELPHIGHSCOREFADE);
_local1.mcHelpHighscore._visible = 0;
_local1.mcHelpHighscore.fFadeIn = false;
_local1.mcHelpHighscore.onEnterFrame = function () {
var _local1 = this;
_local1._parent.highscorePanStep(_local1.mcValuePan._x, _local1.mcValueZoom._x);
};
removeMovieClip(_local1.mcHighscoreNavigation);
}
function highscorePanStep(valuePan, valueZoom) {
var _local1 = this;
var _local3 = valueZoom;
var _local2;
var y;
var z;
var fCreateNavigation;
fCreateNavigation = false;
if ((_local3 >= 100) && (valuePan >= 100)) {
fCreateNavigation = _local1.mcHelpHighscore.fFadeIn;
if (!_local1.mcHelpHighscore.fFadeIn) {
showMainMenu();
}
removeMovieClip(_local1.mcHelpHighscore);
}
_local2 = _local1.panX1;
if (valuePan >= 100) {
_local2 = _local1.panX2;
} else if (valuePan > 0) {
_local2 = _local1.panX1 + ((_local1.panX2 - _local1.panX1) * (valuePan / 100));
}
_local1.mcBackground.setX(_local2 * SPEEDFACTORQUOTIENT);
_local1.mcScenery.setX(_local2);
_local2 = _local1.zoomX1;
y = _local1.zoomY1;
z = _local1.zoomZ1;
if (_local3 >= 100) {
_local2 = _local1.zoomX2;
y = _local1.zoomY2;
z = _local1.zoomZ2;
} else if (_local3 > 0) {
_local2 = _local1.zoomX1 + ((_local1.zoomX2 - _local1.zoomX1) * (_local3 / 100));
y = _local1.zoomY1 + ((_local1.zoomY2 - _local1.zoomY1) * (_local3 / 100));
z = _local1.zoomZ1 + ((_local1.zoomZ2 - _local1.zoomZ1) * (_local3 / 100));
}
_local1._yscale = (_local1._xscale = z);
_local1._x = _local1.orgX + ((_local2 * _local1._xscale) / 100);
_local1._y = _local1.orgY + ((y * _local1._yscale) / 100);
if (fCreateNavigation) {
_local1.mcHighscoreNavigation = _local1.attachMovie("fsHighscoreNavigation", "mcHighscoreNavigation", LEVEL_HIGHSCORENAVIGATION);
var intScaleDown = (100 / _local1._xscale);
_local1.mcHighscoreNavigation._xscale = intScaleDown * 100;
_local1.mcHighscoreNavigation._yscale = intScaleDown * 100;
_local1.mcHighscoreNavigation._x = -_local2;
_local1.mcHighscoreNavigation._y = (-y) + (268 * intScaleDown);
}
}
function highscoreScrollUp() {
var _local1 = this;
_local1.highscoreScrollX = _local1.highscoreScrollX + 10;
if ((_local1.highScoreScrollX + 150) > _local1.maxHighscoreScrollX) {
_local1.highScoreScrollX = Math.max(0, _local1.maxHighscoreScrollX - 150);
}
var _local2 = _local1.highscoreOrgX + _local1.highScoreScrollX;
_local1.mcBackground.setX(_local2 * SPEEDFACTORQUOTIENT);
_local1.mcScenery.setX(_local2);
}
function highscoreScrollDown() {
var _local1 = this;
_local1.highscoreScrollX = Math.max(0, _local1.highscoreScrollX - 10);
var _local2 = _local1.highscoreOrgX + _local1.highScoreScrollX;
_local1.mcBackground.setX(_local2 * SPEEDFACTORQUOTIENT);
_local1.mcScenery.setX(_local2);
}
function panToMainMenu() {
var _local1 = this;
_local1.panX1 = _local1.mcScenery.getX();
_local1.panX2 = 0;
_local1.zoomY1 = -160;
_local1.zoomY2 = 0;
_local1.zoomX1 = -70;
_local1.zoomX2 = 0;
_local1.zoomZ1 = 230;
_local1.zoomZ2 = 100;
_local1.mcHelpMainMenuPan = _local1.attachMovie("fsHelpMainMenuPan", "mcHelpMainMenuPan", LEVEL_HELPMAINMENUPAN);
_local1.mcHelpMainMenuPan._visible = 0;
_local1.mcHelpMainMenuPan.onEnterFrame = function () {
this._parent.MainMenuPanStep(this.mcValuePan._x);
};
gotoAndPlay ("panMainMenu");
}
function MainMenuPanStep(valuePan) {
var _local1 = this;
var _local3 = valuePan;
var _local2;
var y;
if (_local3 >= 100) {
showMainMenu();
removeMovieClip(_local1.mcHelpMainMenuPan);
}
_local2 = _local1.panX1;
if (_local3 >= 100) {
_local2 = _local1.panX2;
} else if (_local3 > 0) {
_local2 = _local1.panX1 + ((_local1.panX2 - _local1.panX1) * (_local3 / 100));
}
_local1.mcBackground.setX(_local2 * SPEEDFACTORQUOTIENT);
_local1.mcScenery.setX(_local2);
}
function showMainMenu() {
reset();
gotoAndPlay ("intro");
}
function startGame() {
this.mcScenery.setupScenery(false);
gotoAndPlay ("drive");
}
function startDriveSound() {
if (s) {
myM1.ms.start(0, 10000);
myM2.ms.start(0, 10000);
}
}
function startDriving() {
var _local1 = this;
if (s) {
playSound("startDrive");
}
_local1.switchQuality(true);
_local1.fDriving = true;
_local1.minDriveX = _local1.mcScenery.flyAreaX1;
_local1.maxDriveX = _local1.mcScenery.flyAreaX2;
_local1.sfuCalc.setMode(MODEDRIVE, {velocity:10});
_local1.carOrgX = _local1.mcCar._x;
_local1.carOffsetX = 0;
_local1.mcCar.setState("drive");
}
function driveStep() {
var _local1 = this;
if (_local1.fBrakeCar) {
_local1.brakeCar();
}
if (_local1.fIncVelocity) {
_local1.sfuCalc.incVelocity(1.1);
_local1.fIncVelocity = false;
} else {
_local1.sfuCalc.incVelocity(-0.05);
}
_local1.sfuCalc.calcValues();
var _local3 = _local1.sfuCalc.getX();
_local1.realX = _local3 * _local1.SPEEDFACTOR;
var dx = _local1.sfuCalc.getDX();
var _local2 = _local1.sfuCalc.getV();
_local1.carOffsetX = 100 * (_local2 / 100);
myM1.ms.setVolume((100 - _local2) / 2);
myM2.ms.setVolume(_local2);
_local1.mcCar._x = _local1.carOrgX - _local1.carOffsetX;
if ((_local1.realX + _local1.mcCar._x) > _local1.maxDriveX) {
_local1.crashCar();
}
_local1.mcSpeedMeter.setValue(_local2);
_local1.mcCar.x = _local1.realX;
_local1.mcCar.v = _local2;
_local1.mcBackground.setX(_local1.realX * _local1.SPEEDFACTORQUOTIENT);
_local1.mcScenery.setX(_local1.realX);
_local1.ov = _local2;
}
function startFlying() {
var _local1 = this;
playSound("fly");
var angle = _local1.throwAngle;
_local1.angleStart = -6;
_local1.angleEnd = 38;
_local1.sfuCalc.setMode(MODEFLY, {angle:_local1.throwAngle});
var _local3 = _local1.mcCoffin._y + _local1.mcCoffin._height;
_local1.yEnd = _local1.mcCoffin._y;
_local1.mcCoffin.setRotation(_local1.angleStart);
_local1.mcCoffin._y = _local3 - _local1.mcCoffin._height;
_local1.yStart = _local1.mcCoffin._y - 50;
var _local2 = Math.round(_local1.sfuCalc.getFlyDistance() * 100);
_local2 = _local2 / 100;
_local1.score = (_local1.throwRange = _local2);
_local1.mcCoffin.myW = _local1.throwRange;
_local1.throwRealRange = (_local1.throwRange * _local1.SPEEDFACTOR) + (_local1.WALLX - _local1.carBrakeX);
}
function flyStep() {
var _local1 = this;
_local1.sfuCalc.calcValues();
var x = _local1.sfuCalc.getX();
_local1.realX = x * _local1.SPEEDFACTOR;
var y = _local1.sfuCalc.getY();
var dx = _local1.sfuCalc.getDX();
var dy = _local1.sfuCalc.getDY();
var fx = _local1.sfuCalc.getFlyX();
var _local2 = fx * _local1.SPEEDFACTOR;
var _local3 = _local2 / _local1.throwRealRange;
var corrAngle = (_local1.angleStart + ((_local1.angleEnd - _local1.angleStart) * _local3));
var corrY = (_local1.yStart + ((_local1.yEnd - _local1.yStart) * _local3));
var sceneX = (_local1.realX - (_local1.carOffsetX * _local3));
_local1.mcCoffin.x = _local2;
_local1.mcCoffin.y = y;
_local1.mcCoffin.w = _local1.throwRange;
_local1.mcCoffin.setY(-y);
_local1.mcCoffin.setRotation(corrAngle);
_local1.mcCoffin._y = corrY;
_local1.mcCar._x = _local1.mcCar._x - (dx * _local1.SPEEDFACTOR);
_local1.mcBackground.setX(sceneX * _local1.SPEEDFACTORQUOTIENT);
_local1.mcScenery.setX(sceneX);
if (_local2 >= _local1.throwRealRange) {
_local1.coffinCrash();
}
}
function brakeCar() {
var _local1 = this;
myM1.ms.stop();
myM2.ms.stop();
playSound("brake");
_local1.fDriving = false;
var _local2 = _local1.realX + _local1.mcCar._x;
_local1.carBrakeX = _local2;
var v = _local1.sfuCalc.getV();
if (_local2 < _local1.minDriveX) {
_local1.switchQuality(false);
gotoAndPlay ("stopcar");
_local1.mcCar.setState("stop");
} else if (v < 40) {
_local1.switchQuality(false);
gotoAndPlay ("stopcar");
_local1.mcCar.setState("tooslow");
} else {
_local1.switchQuality(true);
var width = (_local1.maxDriveX - _local1.minDriveX);
var _local3 = _local2 - _local1.minDriveX;
var percent = (_local3 / width);
_local1.throwAngle = 5 + (20 * (percent * (1 + (0.01 * _local1.week))));
gotoAndPlay ("brake");
_local1.mcCar.setState("brake", {rotation:_local1.throwAngle});
}
}
function crashCar() {
var _local1 = this;
_local1.switchQuality(false);
myM1.ms.stop();
myM2.ms.stop();
playSound("crash");
_local1.mcCar._x = (_local1.WALLX - _local1.realX) - 83;
gotoAndPlay ("crashcar");
}
function fly() {
gotoAndPlay ("fly");
}
function coffinCrash() {
this.switchQuality(false);
gotoAndPlay ("crash");
mcCoffin.gotoAndPlay("crash");
}
function showScoreMessage() {
var _local1 = this;
_local1.lowestScore = _local1.arrHighscores[_local1.arrHighscores.length - 1].score / 100;
if (_local1.score <= _local1.lowestScore) {
gotoAndPlay ("noScore");
} else {
gotoAndPlay ("submitScore");
}
}
function keyEvent(fDown) {
var _local2 = this;
if (fIncVelocity || (fBrakeCar)) {
} else {
var _local1 = Key.getCode();
if (((_local1 == 39) && (!fDown)) && (_local2.fDriving)) {
_local2.fIncVelocity = true;
}
if ((_local1 == 32) && (_local2.fDriving)) {
_local2.fBrakeCar = true;
}
}
}
if (sixfeet == undefined) {
s = true;
} else {
s = sixfeet.ui.ApplicationContext.getInstance().getPreferences().getBoolean("soundEnabled");
}
SPEEDFACTOR = 10;
SPEEDFACTORBG = 8;
SPEEDFACTORQUOTIENT = SPEEDFACTORBG / SPEEDFACTOR;
WALLX = SPEEDFACTOR * 700;
MAXTHROWINGRANGE = 800;
MAXHIGHSCOREENTRIES = 100;
LEVEL_HELPHIGHSCOREFADE = 1000;
LEVEL_HELPMAINMENUPAN = 1000;
LEVEL_HIGHSCORENAVIGATION = 1001;
Symbol 388 MovieClip Frame 2
init();
Symbol 388 MovieClip Frame 5
this.mcLoader.loadHighscore();
Symbol 388 MovieClip Frame 8
if (this.fHighscoreLoaded) {
if (this.fHighscoreLoadOK) {
gotoAndPlay ("intro");
} else {
gotoAndPlay ("error");
}
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 388 MovieClip Frame 12
stop();
Symbol 388 MovieClip Frame 17
stop();
GameConfig.ivw();
Symbol 388 MovieClip Frame 22
highscorePanIn();
GameConfig.ivw();
Symbol 388 MovieClip Frame 23
stop();
Symbol 388 MovieClip Frame 30
stop();
Instance of Symbol 30 MovieClip "mcHelper" in Symbol 388 MovieClip Frame 39
onClipEvent (load) {
this._parent.startDriving();
}
onClipEvent (enterFrame) {
this._parent.driveStep();
}
Instance of Symbol 30 MovieClip "mcKeyboard" in Symbol 388 MovieClip Frame 39
onClipEvent (keyDown) {
}
onClipEvent (keyUp) {
}
Symbol 388 MovieClip Frame 40
stop();
Instance of Symbol 30 MovieClip "myM1" in Symbol 388 MovieClip Frame 40
onClipEvent (load) {
ms = new Sound(this);
ms.attachSound("m1");
ms.setVolume(0);
}
Instance of Symbol 30 MovieClip "myM2" in Symbol 388 MovieClip Frame 40
onClipEvent (load) {
ms = new Sound(this);
ms.attachSound("m2");
ms.setVolume(0);
}
Symbol 388 MovieClip Frame 45
fly();
stop();
Symbol 388 MovieClip Frame 52
stop();
Symbol 388 MovieClip Frame 57
stop();
Symbol 388 MovieClip Frame 63
stop();
Symbol 388 MovieClip Frame 70
this.mcCar.setState("crash");
stop();
Instance of Symbol 30 MovieClip "mcHelper" in Symbol 388 MovieClip Frame 78
onClipEvent (load) {
this._parent.startFlying();
}
onClipEvent (enterFrame) {
this._parent.flyStep();
}
Symbol 388 MovieClip Frame 79
stop();
Symbol 388 MovieClip Frame 85
stop();
Symbol 388 MovieClip Frame 90
stop();
Symbol 388 MovieClip Frame 99
stop();
Symbol 388 MovieClip Frame 113
stop();