Frame 2
function setDisableSound() {
emptySound = new Sound();
emptySound.setVolume(100);
soundIsOff = false;
}
function disableSound() {
if (soundIsOff) {
emptySound.setVolume(100);
soundIsOff = false;
} else {
emptySound.setVolume(0);
soundIsOff = true;
}
}
function observeSWF() {
var loaderSWF = new Object();
loaderSWF.onLoadProgress = function (loaderObj) {
loaderAnim_mc.progress_txt.text = Math.floor(loaderObj.getPercent()) + "%";
loaderAnim_mc.gotoAndStop(Math.floor(loaderObj.getPercent()));
};
loaderSWF.onLoadComplete = function (success, loaderObj) {
mainLoader_lc.removeListener(loaderSWF);
getPathToServer();
setPaths();
isSharedObjExist();
};
mainLoader_lc = new com.qlod.LoaderClass();
mainLoader_lc.setMinSteps(3);
mainLoader_lc.addListener(loaderSWF);
mainLoader_lc.observe(this);
}
function isSharedObjExist() {
var _local1 = _global;
_local1.user_so = SharedObject.getLocal("user");
if (_local1.user_so.data.nickName != null) {
trace("cookieExist");
user.loginStatus = "cookieExist";
user.pData.nickName = _local1.user_so.data.nickName;
user.pData.eMail = _local1.user_so.data.eMail;
user.pData.fileLanguage = _local1.user_so.data.fileLanguage;
autoLogin();
} else {
trace("kein cookie vorhanden");
user.loginStatus = "noCookie";
user.pData.nickName = "userUnknown";
user.pData.passWord = "passUnknown";
}
user.pData.fileLanguage = "ger";
_local1.user_so.data.fileLanguage = user.pData.fileLanguage;
gotoAndPlay ("contentIsLoaded");
}
function getPathToServer() {
if (environment == "online") {
_global.pathToServer = "";
} else {
_global.pathToServer = "http://217.160.104.124/bahlsende/content/pickup/game_adam_eve/";
}
trace("pathToServer: " + pathToServer);
}
function autoLogin() {
var _local1 = this;
var _local3 = new LoadVars();
_local3.onLoad = function (success) {
var _local1 = this;
if (success) {
trace("response from loginUser: " + _local1.response);
_local1.response = Number(_local1.response);
switch (_local1.response) {
case 4 :
user.pData.oldScore = _local1.score;
user.pData.rankPos = _local1.rankPos;
user.pData.country = _local1.country;
user.loginStatus = "loggedIn";
trace("auto-login success");
userTracking("trackLogin");
break;
default :
trace("auto-login failed");
}
} else {
trace("auto-login failed");
}
};
var _local2 = new LoadVars();
_local2.nickName = user.pData.nickName;
_local2.eMail = user.pData.eMail;
var loginURL = "http://217.160.104.124/bahlsende/content/pickup/game_adam_eve/php/login_check.php";
_local2.sendAndLoad(loginURL, _local3, "POST");
}
function getStartScreen() {
this.gotoAndPlay("startScreen");
}
function setMainNavi() {
var _local1 = this;
var buttons = ["mainHighScore", "mainGame", "mainRecommend", "mainLogin", "mainInstruction", "mainPrices", "mainSupport"];
var buttonAmount = buttons.length;
var _local3 = 0;
while (_local3 < buttonAmount) {
var _local2 = buttons[_local3];
_local1.navigation_mc[_local2 + "_btn"].setAsBtn();
_local1.navigation_mc[_local2 + "_btn"].contentID = _local2.slice(4, _local2.length).toLowerCase();
_local1.navigation_mc[_local2 + "_btn"].onRelease = function () {
var _local1 = this;
if (_local1._name == "mainGame_btn") {
_local1._parent.onRelease = function () {
};
_local1._parent.enabled = false;
}
_local1._parent[selectedNaviButton].gotoAndPlay("onRollOut");
_local1._parent[selectedNaviButton].enabled = true;
_local1.gotoAndPlay("onRelease");
_local1.enabled = false;
selectedNaviButton = _local1._name;
activeContent = _local1.contentID;
trace("activeContent: " + activeContent);
if (!introIsPlayed) {
introIsPlayed = true;
_local1._parent._parent.startScreen_mc.gotoAndPlay("out");
} else {
trace("lastContent: " + lastContent);
_local1._parent._parent[lastContent + "_mc"].gotoAndPlay("out");
}
lastContent = _local1.contentID;
if (_local1._name != "mainLogin_btn") {
user.pData.sendScoreAfterLogin = false;
}
};
_local3++;
}
}
function setInstruction(startPage, maxPage) {
var _local1 = this;
var _local2 = startPage;
function gotoPage(pageID) {
var _local1 = pageID;
trace(_local1);
switch (_local1) {
case 1 :
instruction_mc.backward_btn.gotoAndPlay("deactivate");
instruction_mc.backward_btn.enabled = false;
break;
case 2 :
instruction_mc.backward_btn.gotoAndPlay("onRollOut");
instruction_mc.backward_btn.enabled = true;
break;
case 3 :
instruction_mc.forward_btn.gotoAndPlay("onRollOut");
instruction_mc.forward_btn.enabled = true;
break;
case 4 :
instruction_mc.forward_btn.gotoAndPlay("deactivate");
instruction_mc.forward_btn.enabled = false;
}
instruction_mc.gotoAndPlay("page" + _local1);
}
var maxPage = maxPage;
var page = _local2;
_local1.instruction_mc.backward_btn.setAsBtn();
_local1.instruction_mc.forward_btn.setAsBtn();
_local1.instruction_mc.backward_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
if (page > 1) {
page--;
gotoPage(page);
}
};
_local1.instruction_mc.forward_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
if (page < 4) {
page++;
gotoPage(page);
}
};
gotoPage(_local2);
}
function setPaths() {
_global.paths = new Object();
_global.paths = {root:this};
}
function setChangeLanguage() {
var _local2 = this;
var _local3 = _global;
for (i in _local2.nav_flags_mc) {
trace(i);
_local2.nav_flags_mc[i].onRelease = function () {
var _local1 = this._name.split("_");
trace(_local1[1]);
_global.user_so.data.fileLanguage = _local1[1];
getURL ("http://clients.wmteam.de/uniroyal/funcup/index.php?fileLanguage=" + _local1[1], "_self");
};
}
}
if (typeof(_global.com) != "object") {
_global.com = new Object();
}
if (typeof(com.qlod) != "object") {
com.qlod = new Object();
}
o = (com.qlod.LoaderClass = function (piTimeoutMs, piIntervalMs, piMinSteps) {
var _local1 = this;
trace("LoaderClass " + arguments);
if (arguments[0] == "NO_INIT") {
} else {
_local1.iIntervalId = -1;
_local1.iTimeoutIntervalId = -1;
_local1.iBytesLoaded = 0;
_local1.iBytesTotal = 1;
_local1.iTimeoutMs = 0;
_local1.bTimeoutEnabled = true;
_local1.iIntervalMs = 0;
_local1.iStartTimeMs = 0;
_local1.iMinSteps = 1;
_local1.iCurrentStep = 1;
_local1.aQueue = [];
_local1.setTimeoutMs(piTimeoutMs);
_local1.setIntervalMs(piIntervalMs);
_local1.setMinSteps(piMinSteps);
if (DefaultBroadcaster != undefined) {
DefaultBroadcaster.initialize(_local1);
} else if (ASBroadcaster == undefined) {
} else {
ASBroadcaster.initialize(_local1);
}
}
});
o.DEFAULT_TIMEOUT_MS = 10000;
o.DEFAULT_INTERVAL_MS = 100;
o.DEFAULT_MIN_STEPS = 1;
o = o.prototype;
o.load = function (pLoc, psUrl, poListener) {
return(this.enqueue.apply(this, [true].concat(arguments)));
};
o.observe = function (pLoc, psUrl, poListener) {
return(this.enqueue.apply(this, [false].concat(arguments)));
};
o.clear = function () {
this.aQueue.length = 0;
this.removeCurrent();
};
o.removeCurrent = function () {
var _local1 = this;
if (_local1.isLoading()) {
var _local2 = _local1.targetToLoc();
if (_local1.checkLocation(_local2)) {
_local2.unloadMovie();
}
_local1.endTimeout();
_local1.endLoading();
}
};
o.remove = function (pId) {
var _local2 = this;
var _local3 = pId;
if (_local2.oCurrentItem.iId == _local3) {
_local2.removeCurrent();
return(true);
}
var _local1 = 0;
while (_local1 < _local2.aQueue.length) {
if (_local2.aQueue[_local1].iId == _local3) {
_local2.aQueue.splice(_local1, 1);
return(true);
}
_local1++;
}
return(false);
};
o.getTimeoutMs = function () {
return(this.iTimeoutMs);
};
o.setTimeoutMs = function (piMilliseconds) {
var _local1 = this;
_local1.iTimeoutMs = _local1.checkIntGreaterZero(piMilliseconds, _local1.constructor.DEFAULT_TIMEOUT_MS);
if (_local1.iTimeoutIntervalId != -1) {
_local1.startTimeout();
}
return(_local1.iTimeoutMs);
};
o.disableTimeout = function () {
this.endTimeout();
this.bTimeoutEnabled = 0;
};
o.enableTimeout = function () {
this.bTimeoutEnabled = 1;
this.startTimeout();
};
o.getIntervalMs = function () {
return(this.iIntervalMs);
};
o.setIntervalMs = function (piMilliseconds) {
var _local1 = this;
_local1.iIntervalMs = _local1.checkIntGreaterZero(piMilliseconds, _local1.constructor.DEFAULT_INTERVAL_MS);
if (_local1.isLoading()) {
clearInterval(_local1.iIntervalId);
_local1.iIntervalId = -1;
_local1.startInterval();
}
return(_local1.iIntervalMs);
};
o.getMinSteps = function () {
return(this.iMinSteps);
};
o.setMinSteps = function (piMinSteps) {
var _local1 = this;
return((_local1.iMinSteps = _local1.checkIntGreaterZero(piMinSteps, _local1.constructor.DEFAULT_MIN_STEPS)));
};
o.isLoading = function () {
return(this.iIntervalId != -1);
};
o.getBytesLoaded = function () {
var _local1 = this;
var _local2 = Math.min(_local1.iBytesLoaded, Math.floor((_local1.iBytesTotal * _local1.iCurrentStep) / _local1.iMinSteps));
if (!isNaN(_local2)) {
return(_local2);
}
return(0);
};
o.getBytesTotal = function () {
return(this.iBytesTotal);
};
o.getKBLoaded = function () {
return(this.getBytesLoaded() >> 10);
};
o.getKBTotal = function () {
return(this.getBytesTotal() >> 10);
};
o.getPercent = function () {
return(Math.round((this.getBytesLoaded() * 100) / this.iBytesTotal));
};
o.getDuration = function () {
return(getTimer() - this.iStartTimeMs);
};
o.getSpeed = function () {
return(Math.floor((this.getBytesLoaded() * 1000) / this.getDuration()));
};
o.getEstimatedTotalTime = function () {
return(Math.floor(this.getBytesTotal() / this.getSpeed()));
};
o.getTarget = function () {
return(this.oCurrentItem.target);
};
o.getTargetObj = function () {
return(((typeof(this.oCurrentItem.target) == "object") ? (this.oCurrentItem.target) : (eval (this.oCurrentItem.target))));
};
o.getUrl = function () {
return(this.oCurrentItem.sUrl);
};
o.broadcastOnQueueStart = function () {
this.broadcastMessage("onQueueStart", this);
};
o.broadcastOnQueueStop = function () {
this.broadcastMessage("onQueueStop", this);
};
o.broadcastOnLoadStart = function () {
this.broadcastMessage("onLoadStart", this);
};
o.broadcastOnLoadComplete = function (pbResult) {
this.broadcastMessage("onLoadComplete", pbResult, this);
};
o.broadcastOnLoadTimeout = function () {
this.broadcastMessage("onLoadTimeout", this);
};
o.broadcastOnLoadProgress = function () {
this.broadcastMessage("onLoadProgress", this);
};
o._load = function () {
this.startTimeout();
this.oCurrentItem.load();
};
o._observe = function () {
var _local1 = this;
_local1.iBytesTotal = 1;
_local1.iBytesLoaded = 0;
_local1.iCurrentStep = 1;
_local1.iStartTimeMs = getTimer();
_local1.funcWaitUntil = null;
_local1.oCurrentItem.addListenerTo(_local1);
_local1.broadcastOnLoadStart();
_local1.broadcastOnLoadProgress();
if (_local1.oCurrentItem.bDoLoad) {
_local1._load();
}
};
o.enqueue = function (doLoad, pLoc, psUrl, poListener) {
var _local1 = this;
var sUrl = _local1.checkUrl(psUrl, pLoc);
var _local3 = _local1.locToTarget(pLoc);
if (_local3 == null) {
if (doLoad) {
trace(("*** Warning: com.qlod.LoaderClass.load: Invalid location parameter: " + pLoc) + " ***");
} else {
trace(("*** Warning: com.qlod.LoaderClass.load: Invalid location parameter: " + pLoc) + " ***");
}
}
var additionalArguments = arguments.slice(4);
var _local2 = ++_local1.iId;
_local1.aQueue.push(new com.qlod.LoaderItemClass(_local3, sUrl, doLoad, additionalArguments, _local2, poListener));
if (!_local1.isLoading()) {
_local1.startLoading();
}
return(_local2);
};
o.checkUrl = function (psUrl, pLoc) {
if (typeof(psUrl) == "string") {
return(psUrl);
}
if (typeof(pLoc._url) == "string") {
return(pLoc._url);
}
return("");
};
o.isQueueEmpty = function () {
return(this.aQueue.length == 0);
};
o.loadNext = function () {
var _local1 = this;
_local1.oCurrentItem = _local1.aQueue.shift();
_local1._observe();
};
o.startLoading = function () {
var _local1 = this;
_local1.broadcastOnQueueStart();
_local1.startInterval();
_local1.loadNext();
};
o.stopLoading = function () {
this.endInterval();
this.endTimeout();
};
o.startTimeout = function () {
var _local1 = this;
if (_local1.iTimeoutIntervalId != -1) {
clearInterval(_local1.iTimeoutIntervalId);
}
if (_local1.bTimeoutEnabled) {
_local1.iTimeoutIntervalId = setInterval(_local1, "onTimeout", _local1.iTimeoutMs);
}
};
o.endTimeout = function () {
var _local1 = this;
if (_local1.iTimeoutIntervalId != -1) {
clearInterval(_local1.iTimeoutIntervalId);
_local1.iTimeoutIntervalId = -1;
}
};
o.onTimeout = function () {
var _local1 = this;
_local1.endTimeout();
_local1.broadcastOnLoadTimeout();
_local1.endLoading(false);
};
o.locToTarget = function (loc) {
var _local1 = loc;
var _local2 = this;
if (_local2.locIsNumber(_local1)) {
return("_level" + _local1);
}
if (_local2.locIsPath(_local1)) {
return(_local1);
}
if (_local2.locIsLevel(_local1)) {
return(_local1);
}
if (_local2.locIsMovieClip(_local1)) {
return(targetPath(_local1));
}
if (_local2.locIsLoadableObject(_local1)) {
return(_local1);
}
if ((_local1 instanceof String) && (_local1.length > 0)) {
return(_local1);
}
return(null);
};
o.targetToLoc = function () {
return(this.oCurrentItem.targetToLoc());
};
o.locIsNumber = function (loc) {
return(typeof(loc) == "number");
};
o.locIsPath = function (loc) {
return(((typeof(loc) == "string") && (typeof(eval (loc)) == "movieclip")) && ((eval (loc) != _level0) || (loc == "_level0")));
};
o.locIsLevel = function (loc) {
return((loc.indexOf("_level") == 0) && (!isNaN(loc.substring(6))));
};
o.locIsMovieClip = function (loc) {
return(typeof(loc) == "movieclip");
};
o.locIsLoadableObject = function (loc) {
return((typeof(loc.getBytesTotal) == "function") && (typeof(loc.getBytesLoaded) == "function"));
};
o.startInterval = function () {
var _local1 = this;
if (_local1.iIntervalId != -1) {
_local1.endInterval();
}
_local1.iIntervalId = setInterval(_local1, "onInterval", _local1.iIntervalMs);
};
o.endInterval = function () {
var _local1 = this;
if (_local1.iIntervalId != -1) {
clearInterval(_local1.iIntervalId);
_local1.iIntervalId = -1;
}
};
o.onInterval = function () {
var _local1 = this;
var _local2 = _local1.targetToLoc();
if (!_local1.checkLocation(_local2)) {
} else if (!_local1.checkBytesTotal(_local2)) {
} else if (!_local1.checkBytesLoaded(_local2)) {
} else {
_local1.endTimeout();
_local1.broadcastOnLoadProgress();
_local1.checkComplete(_local2);
_local1.iCurrentStep++;
}
};
o.checkLocation = function (poCurrentLoc) {
if (poCurrentLoc == undefined) {
this.broadcastOnLoadProgress();
return(false);
}
return(true);
};
o.checkBytesTotal = function (poCurrentLoc) {
var _local1 = poCurrentLoc.getBytesTotal();
if (_local1 < 4) {
this.broadcastOnLoadProgress();
return(false);
}
this.iBytesTotal = _local1;
return(true);
};
o.checkBytesLoaded = function (poCurrentLoc) {
var _local1 = poCurrentLoc.getBytesLoaded();
if (_local1 < 1) {
this.broadcastOnLoadProgress();
return(false);
}
this.iBytesLoaded = _local1;
return(true);
};
o.checkComplete = function (poCurrentLoc) {
var _local1 = this;
if ((((_local1.iBytesTotal > 10) && ((_local1.iBytesTotal - _local1.iBytesLoaded) < 10)) && (_local1.iCurrentStep >= _local1.iMinSteps)) && ((_local1.funcWaitUntil == null) || (_local1.funcWaitUntil(poCurrentLoc)))) {
_local1.endLoading(true);
return(true);
}
return(false);
};
o.waitUntilPropertiesAreInitialized = function (pMc) {
var _local1 = pMc;
return((((_local1._width != undefined) && (_local1._height != undefined)) && (_local1._visible != undefined)) && (_local1._url != undefined));
};
o.endCurrentLoading = function (pbResult) {
var _local1 = this;
_local1.broadcastOnLoadComplete(pbResult);
_local1.oCurrentItem.removeListenerFrom(_local1);
};
o.endLoading = function (pbResult) {
var _local1 = this;
_local1.endCurrentLoading(pbResult);
if (_local1.isQueueEmpty()) {
_local1.endInterval();
_local1.broadcastOnQueueStop();
} else {
_local1.loadNext();
}
};
o.checkIntGreaterZero = function (piValue, piDefaultValue) {
var _local1 = piValue;
if (((_local1 == undefined) || (isNaN(_local1))) || (_local1 <= 0)) {
return(piDefaultValue);
}
return(_local1);
};
delete o;
o = (com.qlod.LoaderItemClass = function (target, sUrl, doLoad, aArgs, id, oListener) {
var _local1 = this;
_local1.target = target;
_local1.sUrl = sUrl;
_local1.bDoLoad = doLoad;
_local1.aArgs = aArgs;
_local1.iId = id;
_local1.oListener = oListener;
});
o = o.prototype;
o.load = function () {
var _local1 = this;
var _local2 = _local1.target;
if (typeof(_local2.load) == "function") {
_local2.load.apply(_local2, [_local1.sUrl].concat(_local1.aArgs));
} else if (typeof(_local2.loadSound) == "function") {
_local2.loadSound.apply(_local2, [_local1.sUrl].concat(_local1.aArgs));
} else {
_local1.funcWaitUntil = _local1.waitUntilPropertiesAreInitialized;
if (_local1.aArgs[0].toUpperCase() == "POST") {
loadMovie (_local1.sUrl, _local2, "POST");
} else if (_local1.aArgs[0].toUpperCase() == "GET") {
loadMovie (_local1.sUrl, _local2, "GET");
} else {
loadMovie (_local1.sUrl, _local2);
}
}
};
o.targetToLoc = function () {
return(((typeof(this.target) == "string") ? (eval (this.target)) : (this.target)));
};
o.addListenerTo = function (broadcaster) {
if (this.oListener != undefined) {
broadcaster.addListener(this.oListener);
}
};
o.removeListenerFrom = function (broadcaster) {
if (this.oListener != undefined) {
broadcaster.removeListener(this.oListener);
}
};
delete o;
Stage.showMenu = false;
MovieClip.prototype.setAsBtn = function (searchString, align) {
var _local1 = this;
_local1.onRollOver = function () {
var _local1 = this;
_local1.isRollOut = false;
_local1.isOnRelease = false;
_local1.gotoAndPlay("onRollOver");
};
_local1.onRollOut = function () {
this.gotoAndPlay("onRollOut");
};
_local1.onPress = function () {
this.gotoAndPlay("onPress");
};
_local1.onRelease = function () {
this.isOnRelease = true;
};
_local1.onReleaseOutside = function () {
this.gotoAndPlay("onRollOut");
this.isOnRelease = false;
};
if (align != undefined) {
_local1.label_mc.label_txt.getText(searchString, true, align, false);
} else {
_local1.label_mc.label_txt.getText(searchString, true, false, false);
}
};
MovieClip.prototype.setAsNaviBtn = function (contentName, searchString) {
var _local1 = this;
_local1.onRollOver = function () {
var _local1 = this;
_local1.isRollOut = false;
_local1.isOnRelease = false;
_local1.gotoAndPlay("onRollOver");
trace(_local1._name);
};
_local1.onRollOut = function () {
var _local1 = this;
if (_local1.setRollOut) {
_local1.gotoAndPlay("onRollOut");
_local1.setRollOut = false;
}
_local1.isRollOut = true;
};
_local1.onPress = function () {
this.gotoAndPlay("onPress");
};
_local1.onRelease = function () {
this.gotoAndPlay("onRelease");
};
_local1.onReleaseOutside = function () {
this.gotoAndPlay("onRollOut");
};
_local1.label_mc.label_txt.getText(contentName, searchString, undefined, true);
};
MovieClip.prototype.extendTxtField = function (input, alphaMax, alphaMin, maxVarChars, getServerData) {
var _local1 = this;
var _local2 = _global;
_local1.input = input;
_local1._alphaMin = alphaMin;
_local1._alphaMax = alphaMax;
_local1.initText = input;
_local1.maxVarChars = maxVarChars;
_local1.input_txt.maxChars = _local1.maxVarChars;
_local1.bg_mc._alpha = _local1._alphaMin;
var fieldName = _local1._name.split("_");
if ((_local2.user_so.data[fieldName[0]] == null) || (getServerData == true)) {
_local1.input_txt.text = _local1.input;
_local2._global.user_so.data[fieldName[0]] = null;
} else {
_local1.input_txt.text = _local2.user_so.data[fieldName[0]];
user.pData[fieldName[0]] = _local2.user_so.data[fieldName[0]];
}
_local1.input_txt.onSetFocus = function () {
var _local1 = this;
if ((_local1._parent._name == "passWord_mc") || (_local1._parent._name == "passWordRepeat_mc")) {
_local1.password = true;
}
if (_local1.text == _local1._parent.initText) {
_local1.text = "";
} else {
_global.user_so.data[fieldName[0]] = _local1.text;
user.pData[fieldName[0]] = _local1.text;
}
_local1._parent.bg_mc.tween("_alpha", _local1._parent._alphaMax, 1.5, "easeoutcirc", 0);
};
_local1.input_txt.onKillFocus = function () {
var _local1 = this;
if (_local1.text == "") {
_local1.text = _local1._parent.initText;
} else {
_local1._parent.bg_mc.alphaTo(0, 0.8);
}
var _local2 = _local1._parent._name.split("_");
_global.user_so.data[_local2[0]] = _local1.text;
user.pData[_local2[0]] = _local1.text;
_global.user_so.flush();
_local1._parent.bg_mc.tween("_alpha", _local1._parent._alphaMin, 1.5, "easeoutcirc", 0);
};
};
TextField.prototype.resetTxtField = function (resetValue) {
this.text = resetValue;
};
setDisableSound();
soundListener = new Object();
soundListener.onKeyDown = function () {
if (Key.getCode() == 83) {
disableSound();
}
};
Key.addListener(soundListener);
MovieClip.prototype.tween = (TextField.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = this;
if (timeSeconds < 0.001) {
timeSeconds = 2;
}
if ((animType == undefined) || (animType == "")) {
animType = "easeOutExpo";
}
if (delay == undefined) {
delay = 0;
}
if (typeof(prop) == "string") {
var properties = [prop];
var oldProperties = [_local3[prop]];
var newProperties = [propDest];
} else {
var properties = [];
var oldProperties = [];
var newProperties = [];
for (var i in prop) {
oldProperties.push(_local3[prop[i]]);
}
for (var i in prop) {
properties.push(prop[i]);
}
for (var i in propDest) {
newProperties.push(propDest[i]);
}
}
var $_callback_assigned = false;
if (_root.__tweenController__ == undefined) {
var tweenHolder = _root.createEmptyMovieClip("__tweenController__", 123432);
tweenHolder.$_tweenPropList = new Array();
tweenHolder.onEnterFrame = function () {
var _local3 = this;
var tTime = getTimer();
var _local2 = 0;
while (_local2 < _local3.$_tweenPropList.length) {
var _local1 = _local3.$_tweenPropList[_local2];
if ((_local1._timeStart + (_local1._delay * 1000)) <= tTime) {
if ((_local1._timeDest + (_local1._delay * 1000)) <= tTime) {
_local1._targ[_local1._prop] = _local1._propDest;
_local3.$_tweenPropList.splice(_local2, 1);
_local2--;
_local1._targ.$_tweenCount--;
if (_local1._targ.$_tweenCount == 0) {
delete _local1._targ.$_tweenCount;
}
if (_local1._callback != undefined) {
if (_global.backwardCallbackTweening) {
var childMC = _local1._targ.createEmptyMovieClip("__child__", 122344);
_local1._callback.apply(childMC, null);
childMC.removeMovieClip();
} else {
_local1._callback.apply(_local1._targ, null);
}
}
if (_local3.$_tweenPropList.length == 0) {
_local3.removeMovieClip();
}
} else {
if (_local1._propStart == undefined) {
_local1._propStart = _local1._targ[_local1._prop];
}
_local1._targ[_local1._prop] = _global.findTweenValue(_local1._propStart, _local1._propDest, _local1._timeStart, tTime - (_local1._delay * 1000), _local1._timeDest, _local1._animType, _local1._extra1, _local1._extra2);
if ((typeof(_local1._targ) != "movieclip") && (_local1._prop == "__special_text_r__")) {
_local1._targ.textColor = ((_local1._targ.__special_text_r__ << 16) + (_local1._targ.__special_text_g__ << 8)) + _local1._targ.__special_text_b__;
}
}
}
_local2++;
}
};
}
var tweenPropList = _root.__tweenController__.$_tweenPropList;
var tTime = getTimer();
for (var i in oldProperties) {
if ((newProperties[i] != undefined) && (!_local3.$_isTweenLocked)) {
if (_local3.$_tweenCount > 0) {
var _local2 = 0;
while (_local2 < tweenPropList.length) {
if ((tweenPropList[_local2]._targ == _local3) && (tweenPropList[_local2]._prop == properties[i])) {
if ((tTime + (delay * 1000)) < tweenPropList[_local2]._timeDest) {
tweenPropList.splice(_local2, 1);
_local2--;
_local3.$_tweenCount--;
}
}
_local2++;
}
}
tweenPropList.push({_prop:properties[i], _targ:_local3, _propStart:undefined, _propDest:newProperties[i], _timeStart:tTime, _timeDest:tTime + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _delay:delay, _callback:($_callback_assigned ? undefined : (callback))});
_local3.$_tweenCount = ((_local3.$_tweenCount > 0) ? (_local3.$_tweenCount + 1) : 1);
$_callback_assigned = true;
}
}
ASSetPropFlags(_local3, "$_tweenCount", 1, 0);
});
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
MovieClip.prototype.lockTween = (TextField.prototype.lockTween = function () {
this.$_isTweenLocked = true;
ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
});
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = function () {
delete this.$_isTweenLocked;
});
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = (TextField.prototype.getTweens = function () {
return(this.$_tweenCount);
});
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = (TextField.prototype.isTweening = function () {
return(((this.$_tweenCount > 0) ? true : false));
});
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
MovieClip.prototype.stopTween = (TextField.prototype.stopTween = function (props) {
var _local2 = this;
var _local3 = props;
var _local1 = _root.__tweenController__.$_tweenPropList;
switch (typeof(_local3)) {
case "string" :
_local3 = [_local3];
case "object" :
for (var i in _local3) {
for (var pti in _local1) {
if ((_local1[pti]._targ == _local2) && (_local1[pti]._prop == _local3[i])) {
_local1.splice(pti, 1);
}
}
}
_local2.$_tweenCount = 0;
for (var pti in _local1) {
if (_local1[pti]._targ == _local2) {
_local2.$_tweenCount++;
}
}
if (_local2.$_tweenCount == 0) {
delete _local2.$_tweenCount;
}
break;
default :
for (var pti in _local1) {
if (_local1[pti]._targ == _local2) {
_local1.splice(pti, 1);
}
}
delete _local2.$_tweenCount;
}
if (_local1.length == 0) {
_root.__tweenController__.removeMovieClip();
_local2.__tweenController_ADVhelper__.removeMovieClip();
}
});
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween("_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween("_rotation", propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0);
ASSetPropFlags(TextField.prototype, "rotateTo", 1, 0);
MovieClip.prototype.scaleTo = (TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween(["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween("scroll", propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "scrollTo", 1, 0);
MovieClip.prototype.slideTo = (TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween(["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "slideTo", 1, 0);
MovieClip.prototype.colorTo = (TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local1 = this;
var _local2 = propDest_color >> 16;
var new_g = ((propDest_color & 65280) >> 8);
var _local3 = propDest_color & 255;
if (typeof(_local1) == "movieclip") {
_local1.colorTransformTo(0, _local2, 0, new_g, 0, _local3, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} else {
_local1.__special_text_r__ = _local1.textColor >> 16;
_local1.__special_text_g__ = (_local1.textColor & 65280) >> 8;
_local1.__special_text_b__ = _local1.textColor & 255;
_local1.tween(["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local2, new_g, _local3], timeSeconds, animType, delay, callback, extra1, extra2);
}
});
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function (propDest_ra, propDest_rb, propDest_ga, propDest_gb, propDest_ba, propDest_bb, propDest_aa, propDest_ab, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local1 = this;
var $_clrTmp = new Color(_local1);
var _local3 = $_clrTmp.getTransform();
_local1.$_ADVsetter_ra = ((propDest_ra == undefined) ? undefined : (_local3.ra));
_local1.$_ADVsetter_rb = ((propDest_rb == undefined) ? undefined : (_local3.rb));
_local1.$_ADVsetter_ga = ((propDest_ga == undefined) ? undefined : (_local3.ga));
_local1.$_ADVsetter_gb = ((propDest_gb == undefined) ? undefined : (_local3.gb));
_local1.$_ADVsetter_ba = ((propDest_ba == undefined) ? undefined : (_local3.ba));
_local1.$_ADVsetter_bb = ((propDest_bb == undefined) ? undefined : (_local3.bb));
_local1.$_ADVsetter_aa = ((propDest_aa == undefined) ? undefined : (_local3.aa));
_local1.$_ADVsetter_ab = ((propDest_ab == undefined) ? undefined : (_local3.ab));
_local1.$_new_ra = propDest_ra;
_local1.$_new_rb = propDest_rb;
_local1.$_new_ga = propDest_ga;
_local1.$_new_gb = propDest_gb;
_local1.$_new_ba = propDest_ba;
_local1.$_new_bb = propDest_bb;
_local1.$_new_aa = propDest_aa;
_local1.$_new_ab = propDest_ab;
_local1.tween(["$_ADVsetter_ra", "$_ADVsetter_rb", "$_ADVsetter_ga", "$_ADVsetter_gb", "$_ADVsetter_ba", "$_ADVsetter_bb", "$_ADVsetter_aa", "$_ADVsetter_ab"], [_local1.$_new_ra, _local1.$_new_rb, _local1.$_new_ga, _local1.$_new_gb, _local1.$_new_ba, _local1.$_new_bb, _local1.$_new_aa, _local1.$_new_ab], timeSeconds, animType, delay, callback, extra1, extra2);
_local1.__tweenController_ADVhelper__.removeMovieClip();
_local1.createEmptyMovieClip("__tweenController_ADVhelper__", 123434);
_local1.__tweenController_ADVhelper__.onEnterFrame = function () {
var _local1 = this;
var _local3 = new Color(_local1._parent);
var _local2 = {};
if (_local1._parent.$_ADVsetter_ra != undefined) {
_local2.ra = _local1._parent.$_ADVsetter_ra;
}
if (_local1._parent.$_ADVsetter_rb != undefined) {
_local2.rb = _local1._parent.$_ADVsetter_rb;
}
if (_local1._parent.$_ADVsetter_ga != undefined) {
_local2.ga = _local1._parent.$_ADVsetter_ga;
}
if (_local1._parent.$_ADVsetter_gb != undefined) {
_local2.gb = _local1._parent.$_ADVsetter_gb;
}
if (_local1._parent.$_ADVsetter_ba != undefined) {
_local2.ba = _local1._parent.$_ADVsetter_ba;
}
if (_local1._parent.$_ADVsetter_bb != undefined) {
_local2.bb = _local1._parent.$_ADVsetter_bb;
}
if (_local1._parent.$_ADVsetter_aa != undefined) {
_local2.aa = _local1._parent.$_ADVsetter_aa;
}
if (_local1._parent.$_ADVsetter_ab != undefined) {
_local2.ab = _local1._parent.$_ADVsetter_ab;
}
_local3.setTransform(_local2);
if (_local1.$_toDelete) {
delete _local1._parent.$_ADVsetter_ra;
delete _local1._parent.$_ADVsetter_rb;
delete _local1._parent.$_ADVsetter_ga;
delete _local1._parent.$_ADVsetter_gb;
delete _local1._parent.$_ADVsetter_ba;
delete _local1._parent.$_ADVsetter_bb;
delete _local1._parent.$_ADVsetter_aa;
delete _local1._parent.$_ADVsetter_ab;
delete _local1._parent.$_new_ra;
delete _local1._parent.$_new_rb;
delete _local1._parent.$_new_ga;
delete _local1._parent.$_new_gb;
delete _local1._parent.$_new_ba;
delete _local1._parent.$_new_bb;
delete _local1._parent.$_new_aa;
delete _local1._parent.$_new_ab;
_local1.removeMovieClip();
}
if (((((((((_local1._parent.$_ADVsetter_ra == _local1._parent.$_new_ra) || (_local1._parent.$_new_ra == undefined)) && ((_local1._parent.$_ADVsetter_rb == _local1._parent.$_new_rb) || (_local1._parent.$_new_rb == undefined))) && ((_local1._parent.$_ADVsetter_ga == _local1._parent.$_new_ga) || (_local1._parent.$_new_ga == undefined))) && ((_local1._parent.$_ADVsetter_gb == _local1._parent.$_new_gb) || (_local1._parent.$_new_gb == undefined))) && ((_local1._parent.$_ADVsetter_ba == _local1._parent.$_new_ba) || (_local1._parent.$_new_ba == undefined))) && ((_local1._parent.$_ADVsetter_bb == _local1._parent.$_new_bb) || (_local1._parent.$_new_bb == undefined))) && ((_local1._parent.$_ADVsetter_aa == _local1._parent.$_new_aa) || (_local1._parent.$_new_aa == undefined))) && ((_local1._parent.$_ADVsetter_ab == _local1._parent.$_new_ab) || (_local1._parent.$_new_ab == undefined))) {
_local1.$_toDelete = true;
}
};
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) {
var _local1 = _timeNow - _timeStart;
var _local3 = _propStart;
var _local2 = _propDest - _propStart;
var d = (_timeDest - _timeStart);
var a = _extra1;
var p = _extra2;
var s = _extra1;
switch (_animType.toLowerCase()) {
case "linear" :
return(((_local2 * _local1) / d) + _local3);
case "easeinquad" :
_local1 = _local1 / d;
return(((_local2 * _local1) * _local1) + _local3);
case "easeoutquad" :
_local1 = _local1 / d;
return((((-_local2) * _local1) * (_local1 - 2)) + _local3);
case "easeinoutquad" :
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((_local2 / 2) * _local1) * _local1) + _local3);
}
_local1--;
return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local3);
case "easeincubic" :
_local1 = _local1 / d;
return((((_local2 * _local1) * _local1) * _local1) + _local3);
case "easeoutcubic" :
_local1 = (_local1 / d) - 1;
return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local3);
case "easeinoutcubic" :
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local3);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local3);
case "easeinquart" :
_local1 = _local1 / d;
return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local3);
case "easeoutquart" :
_local1 = (_local1 / d) - 1;
return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local3);
case "easeinoutquart" :
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local3);
}
_local1 = _local1 - 2;
return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local3);
case "easeinquint" :
_local1 = _local1 / d;
return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local3);
case "easeoutquint" :
_local1 = (_local1 / d) - 1;
return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local3);
case "easeinoutquint" :
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local3);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local3);
case "easeinsine" :
return((((-_local2) * Math.cos((_local1 / d) * (Math.PI/2))) + _local2) + _local3);
case "easeoutsine" :
return((_local2 * Math.sin((_local1 / d) * (Math.PI/2))) + _local3);
case "easeinoutsine" :
return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / d) - 1)) + _local3);
case "easeinexpo" :
return(((_local1 == 0) ? (_local3) : ((_local2 * Math.pow(2, 10 * ((_local1 / d) - 1))) + _local3)));
case "easeoutexpo" :
return(((_local1 == d) ? (_local3 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / d)) + 1)) + _local3)));
case "easeinoutexpo" :
if (_local1 == 0) {
return(_local3);
}
if (_local1 == d) {
return(_local3 + _local2);
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local3);
}
_local1--;
return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local3);
case "easeincirc" :
_local1 = _local1 / d;
return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local3);
case "easeoutcirc" :
_local1 = (_local1 / d) - 1;
return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local3);
case "easeinoutcirc" :
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local3);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local3);
case "easeinelastic" :
if (_local1 == 0) {
return(_local3);
}
_local1 = _local1 / d;
if (_local1 == 1) {
return(_local3 + _local2);
}
if (!p) {
p = d * 0.3;
}
if (a < Math.abs(_local2)) {
a = _local2;
var s = (p / 4);
} else {
var s = ((p / (Math.PI*2)) * Math.asin(_local2 / a));
}
_local1 = _local1 - 1;
return((-((a * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / p))) + _local3);
case "easeoutelastic" :
if (_local1 == 0) {
return(_local3);
}
_local1 = _local1 / d;
if (_local1 == 1) {
return(_local3 + _local2);
}
if (!p) {
p = d * 0.3;
}
if (a < Math.abs(_local2)) {
a = _local2;
var s = (p / 4);
} else {
var s = ((p / (Math.PI*2)) * Math.asin(_local2 / a));
}
return((((a * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / p)) + _local2) + _local3);
case "easeinoutelastic" :
if (_local1 == 0) {
return(_local3);
}
_local1 = _local1 / (d / 2);
if (_local1 == 2) {
return(_local3 + _local2);
}
if (!p) {
p = d * 0.45;
}
if (a < Math.abs(_local2)) {
a = _local2;
var s = (p / 4);
} else {
var s = ((p / (Math.PI*2)) * Math.asin(_local2 / a));
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((a * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / p))) + _local3);
}
_local1 = _local1 - 1;
return(((((a * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / p)) * 0.5) + _local2) + _local3);
case "easeinback" :
if (s == undefined) {
s = 1.70158;
}
_local1 = _local1 / d;
return((((_local2 * _local1) * _local1) * (((s + 1) * _local1) - s)) + _local3);
case "easeoutback" :
if (s == undefined) {
s = 1.70158;
}
_local1 = (_local1 / d) - 1;
return((_local2 * (((_local1 * _local1) * (((s + 1) * _local1) + s)) + 1)) + _local3);
case "easeinoutback" :
if (s == undefined) {
s = 1.70158;
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((_local2 / 2) * ((_local1 * _local1) * (((((s = s * 1.525)) + 1) * _local1) - s))) + _local3);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((_local1 * _local1) * (((((s = s * 1.525)) + 1) * _local1) + s)) + 2)) + _local3);
case "easeinbounce" :
return((_local2 - findTweenValue(0, _local2, 0, d - _local1, d, "easeOutBounce")) + _local3);
case "easeoutbounce" :
_local1 = _local1 / d;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local3);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local3);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local3);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local3);
case "easeinoutbounce" :
if (_local1 < (d / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, d, "easeInBounce") * 0.5) + _local3);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - d, d, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local3);
}
return(undefined);
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
_global.userTracking = function (trackSection) {
var _local1 = this;
trace("aufruf track userData");
response_lv = new LoadVars();
response_lv.onLoad = function (success) {
var _local1 = this;
if (success) {
trace((_local1.response + " ") + _local1.test);
_local1.response = Number(_local1.response);
switch (_local1.response) {
case 0 :
trace("user-verhalten konnte nicht getrackt werden");
break;
case 1 :
trace("user-verhalten wurde getrackt");
}
} else {
trace("user-verhalten konnte nicht getrackt werden");
}
};
send_lv = new LoadVars();
trace(trackSection);
send_lv.trackSection = trackSection;
send_lv.fileLanguage = user.pData.fileLanguage;
user_so = SharedObject.getLocal("user");
if (user_so.data.nickName != undefined) {
send_lv.nickName = user_so.data.nickName;
trace("nimm name aus cookie: " + user_so.data.nickName);
} else {
send_lv.nickName = "";
}
trace("userName: " + send_lv.nickName);
send_lv.sendAndLoad("http://www.bahlsen.de/content/pickup/game_adam_eve/php/track_user.php", response_lv);
};
_global.user = new Object();
user.pData = new Object();
user.pData = {nickName:null, eMail:null, yearOfBirth:null, country:null, carBrand:null, agb:null, oldScore:null, newScore:null, newsletter:null, sendScoreAfterLogin:null, fileLanguage:null};
user.stats = new Object();
user.loginStatus = null;
this.setChangeLanguage();
MovieClip.prototype.setUIComponentStyle = function () {
globalStyleFormat.textFont = "standard 07_55";
globalStyleFormat.embedFonts = true;
globalStyleFormat.textSize = "8";
globalStyleFormat.textColor = "0xFFFFFF";
globalStyleFormat.textSelected = "0x03376B";
globalStyleFormat.textIndent = "2";
globalStyleFormat.fadeRate = 500;
borderColor = "0xFF0000";
globalStyleFormat.check = "0x3F3C55";
globalStyleFormat.focusRectOuter = "0xFF3000";
searchFormat.darkshadow = 0;
globalStyleFormat.foregroundDisabled = 16738047 /* 0xFF66FF */;
globalStyleFormat.radioDot = 4144213 /* 0x3F3C55 */;
globalStyleFormat.scrollTrack = 10066329 /* 0x999999 */;
globalStyleFormat.selectionDisabled = 13382604 /* 0xCC33CC */;
globalStyleFormat.shadow = 13408716 /* 0xCC99CC */;
globalStyleFormat.darkshadow = 10066329 /* 0x999999 */;
globalStyleFormat.shadow = 13421772 /* 0xCCCCCC */;
globalStyleFormat.highlight = 13421772 /* 0xCCCCCC */;
globalStyleFormat.highlight3D = 16777215 /* 0xFFFFFF */;
globalStyleFormat.face = 13421772 /* 0xCCCCCC */;
globalStyleFormat.arrow = 3355392 /* 0x333300 */;
globalStyleFormat.background = 16777215 /* 0xFFFFFF */;
globalStyleFormat.selection = 10066329 /* 0x999999 */;
globalStyleFormat.textColor = 0;
globalStyleFormat.textSelected = 0;
globalStyleFormat.applyChanges();
};
this.setUIComponentStyle();
this.observeSWF();
Frame 3
stop();
Frame 10
this.getStartScreen();
Instance of Symbol 140 MovieClip [FComboBoxSymbol] in Frame 10
//component parameters
onClipEvent (initialize) {
editable = false;
rowCount = 8;
changeHandler = "";
}
Instance of Symbol 131 MovieClip [FScrollBarSymbol] in Frame 10
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 127 MovieClip [FCheckBoxSymbol] "agb_cb" in Frame 10
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = false;
labelPlacement = "right";
changeHandler = "getAgb";
}
Frame 11
stop();
Frame 25
stop();
Frame 36
stop();
Frame 46
stop();
Frame 56
stop();
Frame 66
stop();
Frame 76
stop();
Frame 86
stop();
Frame 95
stop();
Frame 103
Frame 104
stop();
Symbol 11 MovieClip [hearts_anim] Frame 62
stop();
Symbol 15 MovieClip [pickup_logo_anim] Frame 32
this.removeMovieClip();
stop();
Symbol 22 MovieClip Frame 1
var component = _parent._parent;
Symbol 25 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 27 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 27 MovieClip Frame 2
stop();
Symbol 28 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 30 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 32 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 33 MovieClip [fcb_states] Frame 1
stop();
Symbol 33 MovieClip [fcb_states] Frame 2
stop();
Symbol 33 MovieClip [fcb_states] Frame 3
stop();
Symbol 33 MovieClip [fcb_states] Frame 4
stop();
Symbol 33 MovieClip [fcb_states] Frame 5
stop();
Symbol 33 MovieClip [fcb_states] Frame 6
stop();
Symbol 36 MovieClip [FLabelSymbol] Frame 1
#initclip 4
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 39 MovieClip [FLabelSymbol] Frame 1
#initclip 1
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 42 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 42 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 42 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 43 MovieClip [FUIComponentSymbol] Frame 1
#initclip 2
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 56 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 66 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 75 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 76 MovieClip [UpArrow] Frame 1
stop();
Symbol 76 MovieClip [UpArrow] Frame 2
stop();
Symbol 76 MovieClip [UpArrow] Frame 3
stop();
Symbol 82 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 89 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 94 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 95 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 103 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 111 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 119 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 120 MovieClip [DownArrow] Frame 1
stop();
Symbol 120 MovieClip [DownArrow] Frame 2
stop();
Symbol 120 MovieClip [DownArrow] Frame 3
stop();
Symbol 124 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 124 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 127 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 5
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1, {_x:-10, _y:10});
_local1.attachMovie("fcb_states", "fcb_states_mc", 2);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
_local1.setChangeHandler(_local1.changeHandler);
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
if (_local1.initialValue == undefined) {
_local1.setCheckState(false);
} else {
_local1.setCheckState(_local1.initialValue);
}
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.ROLE_SYSTEM_CHECKBUTTON = 44;
_local1.STATE_SYSTEM_CHECKED = 16;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
var _local1 = this;
var _local3 = pos;
_local1.setLabel(_local1.getLabel());
_local1.txtFormat(_local3);
var halfLabelH = (_local1.fLabel_mc._height / 2);
var halfFrameH = (_local1.fcb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var checkWidth = _local1.fcb_states_mc._width;
var frame = _local1.fcb_states_mc;
var label = _local1.fLabel_mc;
var _local2 = 0;
if (frame._width > _local1.width) {
_local2 = 0;
} else {
_local2 = _local1.width - frame._width;
}
_local1.fLabel_mc.setSize(_local2);
if ((_local3 == "right") || (_local3 == undefined)) {
_local1.labelPlacement = "right";
_local1.fcb_states_mc._x = 0;
_local1.fLabel_mc._x = checkWidth;
_local1.txtFormat("left");
} else if (_local3 == "left") {
_local1.labelPlacement = "left";
_local1.fLabel_mc._x = 0;
_local1.fcb_states_mc._x = _local1.width - checkWidth;
_local1.txtFormat("right");
}
_local1.fLabel_mc._y = vertCenter;
_local1.fcb_hitArea_mc._y = vertCenter - 10;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = pos)) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 0)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 0)) : undefined);
if (_local1.flabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.flabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var _local2 = this;
var _local1 = _local2.fcb_hitArea_mc;
_local2.hitArea = _local1;
if (_local2.fcb_states_mc._width > w) {
_local1._width = _local2.fcb_states_mc._width;
} else {
_local1._width = w;
}
_local1._visible = false;
if (arguments.length > 1) {
_local1._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.setLabelPlacement(_local1.labelPlacement);
if (_local1.fcb_states_mc._height < _local1.flabel_mc.labelField._height) {
super.setSize(w, _local1.flabel_mc.labelField._height);
}
_local1.setHitArea(_local1.width, _local1.height);
_local1.setLabelPlacement(_local1.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1._width + 6, _local1._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
var _local2 = this;
_local2.pressFocus();
_root.focusRect.removeMovieClip();
var _local1 = _local2.fcb_states_mc;
if (_local2.getValue()) {
_local1.gotoAndStop("checkedPress");
} else {
_local1.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fcb_states_mc.gotoAndStop("up");
_local1.setValue(!_local1.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedEnabled");
} else {
_local1.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedEnabled");
} else {
_local1.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedPress");
} else {
_local1.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
var _local1 = this;
var _local2 = checkedValue;
if (_local2 || (_local2 == undefined)) {
_local1.setCheckState(_local2);
} else if (_local2 == false) {
_local1.setCheckState(_local2);
}
_local1.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var _local1 = this;
var _local3 = checkedValue;
var _local2 = _local1.fcb_states_mc;
if (_local1.enable) {
_local1.flabel_mc.setEnabled(true);
if (_local3 || (_local3 == undefined)) {
_local2.gotoAndStop("checkedEnabled");
_local1.enabled = true;
_local1.checked = true;
} else {
_local2.gotoAndStop("up");
_local1.enabled = true;
_local1.checked = false;
}
} else {
_local1.flabel_mc.setEnabled(false);
if (_local3 || (_local3 == undefined)) {
_local2.gotoAndStop("checkedDisabled");
_local1.enabled = false;
_local1.checked = true;
} else {
_local2.gotoAndStop("uncheckedDisabled");
_local1.enabled = false;
_local1.checked = false;
_local1.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if ((enable == true) || (enable == undefined)) {
_local1.enable = true;
Super.setEnabled(true);
} else {
_local1.enable = false;
Super.setEnabled(false);
}
_local1.setCheckState(_local1.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FCheckBoxClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FCheckBoxClass.prototype.setTextColor = function (color) {
this.fLabel_mc.labelField.textColor = color;
};
FCheckBoxClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if (((Key.getCode() == 32) && (_local1.pressOnce == undefined)) && (_local1.enabled == true)) {
_local1.setValue(!_local1.getValue());
_local1.pressOnce = true;
}
};
FCheckBoxClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.pressOnce = undefined;
}
};
FCheckBoxClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_CHECKBUTTON);
};
FCheckBoxClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FCheckBoxClass.prototype.get_accState = function (childId) {
if (this.master.getValue()) {
return(this.master.STATE_SYSTEM_CHECKED);
}
return(0);
};
FCheckBoxClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getValue()) {
return("UnCheck");
}
return("Check");
};
FCheckBoxClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 130 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 131 MovieClip [FScrollBarSymbol] Frame 1
#initclip 7
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 132 MovieClip [DataProviderSymbol] Frame 1
#initclip 3
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
var _local1 = this;
_local1.items = new Array();
_local1.uniqueID = 0;
_local1.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local1 = {event:"updateAll"};
viewRef.modelChanged(_local1);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
var _local1 = index;
var _local2 = this;
var _local3 = value;
if (_local1 < _local2.getLength()) {
_local2.items.splice(_local1, 0, "tmp");
}
_local2.items[_local1] = new Object();
if (typeof(_local3) == "object") {
_local2.items[_local1] = _local3;
} else {
_local2.items[_local1].label = _local3;
}
_local2.items[_local1].__ID__ = _local2.uniqueID++;
var eventObj = {event:"addRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(eventObj);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var _local1 = index;
var _local2 = this;
var tmpItm = _local2.items[_local1];
_local2.items.splice(_local1, 1);
var _local3 = {event:"deleteRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(_local3);
return(tmpItm);
};
DataProviderClass.prototype.removeAll = function () {
var _local1 = this;
_local1.items = new Array();
_local1.updateViews({event:"deleteRows", firstRow:0, lastRow:_local1.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
var _local3 = _local2.getItemID(_local1);
if (typeof(itemObj) == "object") {
_local2.items[_local1] = itemObj;
} else {
_local2.items[_local1].label = itemObj;
}
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews({event:"updateRows", firstRow:_local1, lastRow:_local1});
}
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
var _local1 = this;
_local1.items.sortOn(fieldName);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = this;
var _local3 = eventObj;
var _local1 = 0;
while (_local1 < _local2.views.length) {
_local2.views[_local1].modelChanged(_local3);
_local1++;
}
};
#endinitclip
Symbol 133 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 9
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
var _local1 = this;
if (_local1._name != "itemAsset") {
_local1.highlighted = false;
_local1.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
var _local1 = this;
var _local2 = selected;
_local1.displayContent(itmObj, _local2);
if ((_local1.highlighted != _local2) || ((_local1.controller.focused != _local1.oldFocus) && (_local2))) {
_local1.setHighlighted(_local2);
}
_local1.oldFocus = _local1.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var _local1 = this;
var _local3 = width;
var _local2 = -16384;
_local1.width = _local3;
_local1.layoutContent(_local3);
_local1.attachMovie("FHighlightSymbol", "highlight_mc", _local2);
_local1.highlight_mc._x = 0.5;
_local1.highlight_mc._width = _local3 - 0.5;
_local1.highlight_mc._height = height;
_local1.highlight_mc.controller = _local1;
_local1.highlight_mc._alpha = 0;
_local1.highlight_mc.trackAsMenu = true;
_local1.highlight_mc.onPress = function () {
var _local1 = this;
if (_local1.controller.enable) {
_local1.controller.controller.clickHandler(_local1.controller.itemNum);
}
};
_local1.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
_local1.highlight_mc.useHandCursor = false;
_local1.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
_local1.enable = _local2;
_local1.fLabel_mc.setEnabled(_local2);
_local1.highlight_mc.gotoAndStop((_local2 ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
var _local1 = this;
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:_local1.controller});
_local1.fLabel_mc._x = 2;
_local1.fLabel_mc._y = 0;
_local1.fLabel_mc.setSize(width - 2);
_local1.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var _local2 = itmObj;
var _local1 = "";
if (_local2.label != undefined) {
_local1 = _local2.label;
} else if (typeof(_local2) == "object") {
for (var _local3 in _local2) {
if (_local3 != "__ID__") {
_local1 = (_local2[_local3] + ", ") + _local1;
}
}
_local1 = _local1.substring(0, _local1.length - 2);
} else {
_local1 = _local2;
}
if (this.fLabel_mc.labelField.text != _local1) {
this.fLabel_mc.setLabel(_local1);
}
var clr = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (clr == undefined) {
clr = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(clr);
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
var _local1 = this;
var _local2 = flag;
fade = _local1.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!_local2)) {
_local1.highlight_mc._alpha = (_local2 ? 100 : 0);
delete _local1.onEnterFrame;
} else {
_local1.fadeN = fade;
_local1.fadeX = 1;
_local1.highLight_mc._alpha = 20;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.highLight_mc._alpha = (60 * Math.sqrt((_local1.fadeX++) / _local1.fadeN)) + 40;
if (_local1.fadeX > _local1.fadeN) {
delete _local1.onEnterFrame;
}
};
}
_local1.highlighted = _local2;
};
#endinitclip
Symbol 134 MovieClip [FSelectableListSymbol] Frame 1
#initclip 6
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
var _local1 = this;
super.init();
_local1.enable = true;
_local1.selected = new Array();
_local1.topDisplayed = (_local1.numDisplayed = 0);
_local1.lastSelected = 0;
_local1.tabChildren = false;
if (_local1._name != undefined) {
_local1.dataProvider = new DataProviderClass();
_local1.dataProvider.addView(_local1);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
if ((index < 0) || (!this.enable)) {
return(undefined);
}
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
if (!this.enable) {
return(undefined);
}
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
var _local1 = this;
_local1.selectHolder = _local1.getSelectedIndex();
var _local2 = _local1.getItemAt(index);
_local1.dataProvider.removeItemAt(index);
return(_local2);
};
FSelectableListClass.prototype.removeAll = function () {
this.dataProvider.removeAll();
};
FSelectableListClass.prototype.replaceItemAt = function (index, newLabel, newData) {
this.dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
};
FSelectableListClass.prototype.sortItemsBy = function (fieldName, order) {
var _local1 = this;
_local1.lastSelID = _local1.dataProvider.getItemID(_local1.lastSelected);
_local1.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
var _local2 = this;
for (var _local3 in _local2.selected) {
var _local1 = _local2.selected[_local3].sIndex;
if (_local1 != undefined) {
return(_local1);
}
}
return(undefined);
};
FSelectableListClass.prototype.getSelectedItem = function () {
return(this.getItemAt(this.getSelectedIndex()));
};
FSelectableListClass.prototype.getItemAt = function (index) {
return(this.dataProvider.getItemAt(index));
};
FSelectableListClass.prototype.getEnabled = function () {
return(this.enable);
};
FSelectableListClass.prototype.getValue = function () {
var _local1 = this.getSelectedItem();
if (_local1.data != undefined) {
return(_local1.data);
}
return(_local1.label);
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
var _local1 = this;
var _local2 = index;
if (((_local2 >= 0) && (_local2 < _local1.getLength())) && (_local1.enable)) {
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.lastSelected = _local2;
_local1.invalidate("updateControl");
if (flag != false) {
_local1.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
var _local2 = obj;
this.setScrollPosition(0);
this.clearSelected();
if (_local2 instanceof Array) {
this.dataProvider = new DataProviderClass();
var _local1 = 0;
while (_local1 < _local2.length) {
var _local3 = ((typeof(_local2[_local1]) == "string") ? ({label:_local2[_local1]}) : (_local2[_local1]));
this.dataProvider.addItem(_local3);
_local1++;
}
} else {
this.dataProvider = _local2;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
var _local1 = this;
_local1.tmpPos = _local1.getScrollPosition();
_local1.itemSymbol = linkID;
_local1.invalidate("setSize");
_local1.setScrollPosition(_local1.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
var _local2 = this;
_local2.cleanUI();
super.setEnabled(enabledFlag);
_local2.enable = enabledFlag;
_local2.boundingBox_mc.gotoAndStop((_local2.enable ? "enabled" : "disabled"));
var _local3 = Math.min(_local2.numDisplayed, _local2.getLength());
var _local1 = 0;
while (_local1 < _local3) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].setEnabled(_local2.enable);
_local1++;
}
if (_local2.enable) {
_local2.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].drawItem(_local2.getItemAt(_local2.topDisplayed + _local1), _local2.isSelected(_local2.topDisplayed + _local1));
_local1++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
var _local1 = this;
super.setSize(w, h);
_local1.boundingBox_mc._xscale = (_local1.boundingBox_mc._yscale = 100);
_local1.boundingBox_mc._xscale = (_local1.width * 100) / _local1.boundingBox_mc._width;
_local1.boundingBox_mc._yscale = (_local1.height * 100) / _local1.boundingBox_mc._height;
var _local2 = 0;
while (_local2 < _local1.numDisplayed) {
_local1.container_mc.attachMovie(_local1.itemSymbol, ("fListItem" + _local2) + "_mc", 10 + _local2, {controller:_local1, itemNum:_local2});
var _local3 = _local1.container_mc[("fListItem" + _local2) + "_mc"];
var offset = ((_local1.scrollOffset == undefined) ? 0 : (_local1.scrollOffset));
_local3.setSize(_local1.width - offset, _local1.itmHgt);
_local3._y = (_local1.itmHgt - 2) * _local2;
_local2++;
}
_local1.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var _local1 = this;
var firstRow = eventObj.firstRow;
var lastRow = eventObj.lastRow;
var event = eventObj.event;
if (event == "addRows") {
for (var _local2 in _local1.selected) {
if ((_local1.selected[_local2].sIndex != undefined) && (_local1.selected[_local2].sIndex >= firstRow)) {
_local1.selected[_local2].sIndex = _local1.selected[_local2].sIndex + ((lastRow - firstRow) + 1);
_local1.setSelectedIndex(_local1.selected[_local2].sIndex, false);
}
}
} else if (event == "deleteRows") {
if (firstRow == lastRow) {
var index = firstRow;
if (_local1.selectHolder == index) {
_local1.selectionDeleted = true;
}
if (((_local1.topDisplayed + _local1.numDisplayed) >= _local1.getLength()) && (_local1.topDisplayed > 0)) {
_local1.topDisplayed--;
if (_local1.selectionDeleted && ((index - 1) >= 0)) {
_local1.setSelectedIndex(index - 1, false);
}
} else if (_local1.selectionDeleted) {
var len = _local1.getLength();
if (((index == (len - 1)) && (len > 1)) || (index > (len / 2))) {
_local1.setSelectedIndex(index - 1, false);
} else {
_local1.setSelectedIndex(index, false);
}
}
for (var _local2 in _local1.selected) {
if (_local1.selected[_local2].sIndex > firstRow) {
_local1.selected[_local2].sIndex--;
}
}
} else {
_local1.clearSelected();
_local1.topDisplayed = 0;
}
} else if (event == "sort") {
var len = _local1.getLength();
var _local2 = 0;
while (_local2 < len) {
if (_local1.isSelected(_local2)) {
var _local3 = _local1.dataProvider.getItemID(_local2);
if (_local3 == _local1.lastSelID) {
_local1.lastSelected = _local2;
}
_local1.selected[String(_local3)].sIndex = _local2;
}
_local2++;
}
}
_local1.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
var _local1 = this;
_local1.attachMovie(_local1.itemSymbol, "tmpItem_mc", 0, {controller:_local1});
_local1.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
_local1.itmHgt = _local1.tmpItem_mc._height;
_local1.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
var _local1 = this;
var _local2 = index;
if (selectedFlag && (!_local1.isSelected(_local2))) {
_local1.selected[String(_local1.dataProvider.getItemID(_local2))] = {sIndex:_local2};
} else if (!selectedFlag) {
delete _local1.selected[String(_local1.dataProvider.getItemID(_local2))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
var _local1 = this;
for (var _local3 in _local1.selected) {
var _local2 = _local1.selected[_local3].sIndex;
if (((_local2 != undefined) && (_local1.topDisplayed <= _local2)) && (_local2 < (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.container_mc[("fListItem" + (_local2 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local2), false);
}
}
delete _local1.selected;
_local1.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var _local1 = this;
var _local2 = _local1.topDisplayed + itemNum;
if (_local1.getItemAt(_local2 == undefined)) {
_local1.changeFlag = false;
} else {
_local1.changeFlag = true;
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local2), _local1.isSelected(_local2));
}
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var _local1 = this;
var _local3 = _local1.getSelectedIndex();
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(_local1.getLength() - 1, _local2);
if (_local2 == _local3) {
} else {
if ((_local3 < _local1.topDisplayed) || (_local3 >= (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.setScrollPosition(_local3);
}
if ((_local2 >= (_local1.topDisplayed + _local1.numDisplayed)) || (_local2 < _local1.topDisplayed)) {
_local1.setScrollPosition(_local1.topDisplayed + incr);
}
_local1.selectionHandler(_local2 - _local1.topDisplayed);
}
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
_local1.focusRect.removeMovieClip();
if (!_local1.focused) {
_local1.pressFocus();
}
_local1.selectionHandler(itmNum);
_local1.onMouseUp = _local1.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
var _local1 = this;
if (_local1.changeFlag) {
_local1.executeCallBack();
}
_local1.changeFlag = false;
_local1.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
var _local2 = this;
super.myOnSetFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("enabled");
_local1++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
var _local2 = this;
super.myOnKillFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("unfocused");
_local1++;
}
};
#endinitclip
Instance of Symbol 132 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 134 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 133 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 134 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 135 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 8
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
var _local1 = pos;
var _local2 = this;
if (_local2.enable) {
_local1 = Math.min(_local1, _local2.getLength() - _local2.numDisplayed);
_local1 = Math.max(_local1, 0);
_local2.scrollBar_mc.setScrollPosition(_local1);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
var _local1 = this;
_local1.permaScrollBar = !flag;
_local1.setSize(_local1.width, _local1.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = _local1.getScrollPosition();
super.setSize(w, h);
if (_local1.scrollBar_mc != undefined) {
_local1.removed = true;
}
_local1.scrollBar_mc = undefined;
_local1.initScrollBar();
_local1.setScrollPosition(_local2);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
var _local1 = this;
if ((!_local1.permaScrollBar) && (_local1.getLength() <= _local1.numDisplayed)) {
if (_local1.removed) {
_local1.scrollBar_mc.removeMovieClip();
_local1.scrollBar_mc = undefined;
_local1.scrollOffset = undefined;
_local1.invalidate("setSize");
}
} else {
if (_local1.scrollBar_mc == undefined) {
_local1.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:_local1.styleTable});
_local1.scrollBar_mc = _local1.container_mc.scrollBar_mc;
_local1.scrollBar_mc.setChangeHandler("scrollHandler", _local1);
_local1.scrollBar_mc.setSize(_local1.height);
_local1.scrollBar_mc._x = _local1.width - _local1.scrollBar_mc._width;
_local1.scrollBar_mc._y = 0;
_local1.scrollBar_mc.setLargeScroll(_local1.numDisplayed - 1);
_local1.scrollOffset = _local1.scrollBar_mc._width;
_local1.invalidate("setSize");
}
_local1.scrollBar_mc.setScrollProperties(_local1.numDisplayed, 0, _local1.getLength() - _local1.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var _local2 = this;
var _local1 = scrollBar.getScrollPosition();
_local2.topDisplayed = _local1;
if (_local2.lastPosition != _local1) {
_local2.updateControl();
}
_local2.lastPosition = _local1;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
super.clickHandler(itmNum);
if ((_local1.dragScrolling == undefined) && (_local1.scrollBar_mc != undefined)) {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
var _local1 = this;
clearInterval(_local1.dragScrolling);
if (_local1.container_mc._ymouse < 0) {
_local1.setScrollPosition(_local1.getScrollPosition() - 1);
_local1.selectionHandler(0);
_local1.scrollInterval = Math.max(25, (-23.8 * (-_local1.container_mc._ymouse)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else if (_local1.container_mc._ymouse > ((_local1.itmHgt - 2) * _local1.numDisplayed)) {
_local1.setScrollPosition(_local1.getScrollPosition() + 1);
_local1.selectionHandler(_local1.numDisplayed - 1);
_local1.scrollInterval = Math.max(25, (-23.8 * Math.abs((_local1.container_mc._ymouse - ((_local1.itmHgt - 2) * _local1.numDisplayed)) - 2)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
var _local2 = this;
if (_local2.focused) {
_local2.keyCodes = new Array(40, 38, 34, 33, 36, 35);
_local2.keyIncrs = new Array(1, -1, _local2.numDisplayed - 1, -(_local2.numDisplayed - 1), -_local2.getLength(), _local2.getLength());
var _local1 = 0;
while (_local1 < _local2.keyCodes.length) {
if (Key.isDown(_local2.keyCodes[_local1])) {
_local2.moveSelBy(_local2.keyIncrs[_local1]);
return;
}
_local1++;
}
_local2.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var _local1 = Key.getAscii();
if ((_local1 >= 33) && (_local1 <= 126)) {
this.findString(String.fromCharCode(_local1));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
} else {
var _local3 = this.getSelectedIndex();
var jump = 0;
var _local1 = _local3 + 1;
while (_local1 != _local3) {
var _local2 = this.getItemAt(_local1).label.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
var jump = (_local1 - _local3);
break;
}
if (_local1 >= (this.getLength() - 1)) {
_local1 = -1;
}
_local1++;
}
if (jump != 0) {
this.moveSelBy(jump);
}
}
};
#endinitclip
Instance of Symbol 131 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 135 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 134 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 135 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 136 MovieClip [FComboBoxItemSymbol] Frame 1
#initclip 11
function FComboBoxItemClass() {
this.init();
}
FComboBoxItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FComboBoxItemSymbol", FComboBoxItemClass);
FComboBoxItemClass.prototype.setSize = function (w, h) {
var _local1 = this;
super.setSize(w, h);
_local1.highlight_mc.onRollOver = function () {
this.controller.controller.selectionHandler(this.controller.itemNum);
};
};
#endinitclip
Symbol 137 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 137 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 140 MovieClip [FComboBoxSymbol] Frame 1
#initclip 10
function FComboBoxClass() {
var _local1 = this;
_global._popUpLevel = ((_global._popUpLevel == undefined) ? 20000 : (_global._popUpLevel + 1));
_local1.superHolder = _root.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
var _local3 = _local1.superHolder.createEmptyMovieClip("testCont", 20000);
var testBox = _local3.attachMovie("FBoundingBoxSymbol", "boundingBox_btn", 0);
if (testBox._name == undefined) {
_local1.superHolder.removeMovieClip();
_local1.superHolder = _local1._parent.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
} else {
_local3.removeMovieClip();
}
if (_local1.rowCount == undefined) {
_local1.rowCount = 8;
_local1.editable = false;
}
_local1.itemSymbol = "FComboBoxItemSymbol";
_local1.init();
_local1.permaScrollBar = false;
_local1.proxyBox_mc.gotoAndStop(1);
_local1.width = _local1._width;
_local1.height = (_local1.proxyBox_mc._height * _local1._yscale) / 100;
var _local2 = 0;
while (_local2 < _local1.labels.length) {
_local1.addItem(_local1.labels[_local2], _local1.data[_local2]);
_local2++;
}
_local1.lastSelected = 0;
_local1.selectItem(0);
_local1._xscale = (_local1._yscale = 100);
_local1.opened = false;
_local1.setSize(_local1.width);
_local1.highlightTop(false);
if (_local1.changeHandler.length > 0) {
_local1.setChangeHandler(_local1.changeHandler);
}
_local1.onUnload = function () {
this.superHolder.removeMovieClip();
};
_local1.setSelectedIndex(0, false);
_local1.value = "";
_local1.focusEnabled = true;
_local1.changeFlag = false;
}
FComboBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FComboBoxSymbol", FComboBoxClass);
FComboBoxClass.prototype.modelChanged = function (eventObj) {
var _local1 = this;
super.modelChanged(eventObj);
var _local2 = eventObj.event;
if ((_local2 == "addRows") || (_local2 == "deleteRows")) {
var diff = ((eventObj.lastRow - eventObj.firstRow) + 1);
var mode = ((_local2 == "addRows") ? 1 : -1);
var _local3 = _local1.getLength();
var lenBefore = (_local3 - (mode * diff));
if ((_local1.rowCount > lenBefore) || (_local1.rowCount > _local3)) {
_local1.invalidate("setSize");
}
if (_local1.getSelectedIndex() == undefined) {
_local1.setSelectedIndex(0, false);
}
} else if (_local2 == "updateAll") {
_local1.invalidate("setSize");
}
};
FComboBoxClass.prototype.removeAll = function () {
var _local1 = this;
if (!_local1.enable) {
} else {
super.removeAll();
if (_local1.editable) {
_local1.value = "";
}
_local1.invalidate("setSize");
}
};
FComboBoxClass.prototype.setSize = function (w) {
var _local1 = this;
var _local2 = w;
if ((((_local2 == undefined) || (typeof(_local2) != "number")) || (_local2 <= 0)) || (!_local1.enable)) {
} else {
_local1.proxyBox_mc._width = _local2;
_local1.container_mc.removeMovieClip();
_local1.measureItmHgt();
_local1.container_mc = _local1.superHolder.createEmptyMovieClip("container", 3);
_local1.container_mc.tabChildren = false;
_local1.setPopUpLocation(_local1.container_mc);
_local1.container_mc.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
_local1.boundingBox_mc = _local1.container_mc.boundingBox_mc;
_local1.boundingBox_mc.component = _local1;
_local1.registerSkinElement(_local1.boundingBox_mc.boundingBox, "background");
_local1.proxyBox_mc._height = _local1.itmHgt;
_local1.numDisplayed = Math.min(_local1.rowCount, _local1.getLength());
if (_local1.numDisplayed < 3) {
_local1.numDisplayed = Math.min(3, _local1.getLength());
}
_local1.height = (_local1.numDisplayed * (_local1.itmHgt - 2)) + 2;
super.setSize(_local2, _local1.height);
_local1.attachMovie("DownArrow", "downArrow", 10);
_local1.downArrow._y = 0;
_local1.downArrow._width = _local1.itmHgt;
_local1.downArrow._height = _local1.itmHgt;
_local1.downArrow._x = _local1.proxyBox_mc._width - _local1.downArrow._width;
_local1.setEditable(_local1.editable);
_local1.container_mc._visible = _local1.opened;
_local1.highlightTop(false);
_local1.fader = _local1.superHolder.attachMovie("FBoundingBoxSymbol", "faderX", 4);
_local1.registerSkinElement(_local1.fader.boundingBox, "background");
_local1.fader._width = _local1.width;
_local1.fader._height = _local1.height;
_local1.fader._visible = false;
}
};
FComboBoxClass.prototype.setDataProvider = function (dp) {
super.setDataProvider(dp);
this.invalidate("setSize");
this.setSelectedIndex(0);
};
FComboBoxClass.prototype.getValue = function () {
if (this.editable) {
return(this.fLabel_mc.getLabel());
}
return(super.getValue());
};
FComboBoxClass.prototype.getRowCount = function () {
return(this.rowCount);
};
FComboBoxClass.prototype.setRowCount = function (count) {
var _local1 = this;
var _local3 = count;
_local1.rowCount = ((_local1.getLength() > _local3) ? (Math.max(_local3, 3)) : (_local3));
_local1.setSize(_local1.width);
var _local2 = _local1.getLength();
if ((_local2 - _local1.getScrollPosition()) < _local1.rowCount) {
_local1.setScrollPosition(_local2 - Math.min(_local1.rowCount, _local2));
_local1.invalidate("updateControl");
}
};
FComboBoxClass.prototype.setEditable = function (editableFlag) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.editable = editableFlag;
if (!_local1.editable) {
_local1.onPress = _local1.pressHandler;
_local1.useHandCursor = false;
_local1.trackAsMenu = true;
_local1.attachMovie("FComboBoxItemSymbol", "fLabel_mc", 5, {controller:_local1, itemNum:-1});
_local1.fLabel_mc.onRollOver = undefined;
_local1.fLabel_mc.setSize((_local1.width - _local1.itmHgt) + 1, _local1.itmHgt);
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
_local1.highlightTop(false);
} else {
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 5);
_local1.fLabel_txt = _local1.fLabel_mc.labelField;
_local1.fLabel_txt.type = "input";
_local1.fLabel_txt._x = 4;
_local1.fLabel_txt.onSetFocus = _local1.onLabelFocus;
_local1.fLabel_mc.setSize((_local1.width - _local1.itmHgt) - 3);
delete _local1.onPress;
_local1.fLabel_txt.onKillFocus = function () {
this._parent._parent.myOnKillFocus();
};
_local1.fLabel_mc.setLabel(_local1.value);
_local1.fLabel_txt.onChanged = function () {
this._parent._parent.findInputText();
};
_local1.downArrow.onPress = _local1.buttonPressHandler;
_local1.downArrow.useHandCursor = false;
_local1.downArrow.trackAsMenu = true;
}
}
};
FComboBoxClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
_local2 = (((_local2 == undefined) || (typeof(_local2) != "boolean")) ? true : (_local2));
super.setEnabled(_local2);
_local1.registerSkinElement(_local1.boundingBox_mc.boundingBox, "background");
_local1.proxyBox_mc.gotoAndStop((_local1.enable ? "enabled" : "disabled"));
_local1.downArrow.gotoAndStop((_local1.enable ? 1 : 3));
if (_local1.editable) {
_local1.fLabel_txt.type = (_local2 ? "input" : "dynamic");
_local1.fLabel_txt.selectable = _local2;
} else if (_local2) {
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
_local1.setSelectedIndex(_local1.getSelectedIndex(), false);
}
_local1.fLabel_mc.setEnabled(_local1.enable);
_local1.fLabel_txt.onSetFocus = (_local2 ? (_local1.onLabelFocus) : undefined);
};
FComboBoxClass.prototype.setSelectedIndex = function (index, flag) {
var _local1 = this;
super.setSelectedIndex(index, flag);
if (!_local1.editable) {
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
} else {
_local1.value = ((flag != undefined) ? "" : (_local1.getSelectedItem().label));
_local1.fLabel_mc.setLabel(_local1.value);
}
_local1.invalidate("updateControl");
};
FComboBoxClass.prototype.setValue = function (value) {
var _local1 = this;
if (_local1.editable) {
_local1.fLabel_mc.setLabel(value);
_local1.value = value;
}
};
FComboBoxClass.prototype.pressHandler = function () {
var _local1 = this;
_local1.focusRect.removeMovieClip();
if (_local1.enable) {
if (!_local1.opened) {
_local1.onMouseUp = _local1.releaseHandler;
} else {
_local1.onMouseUp = undefined;
}
_local1.changeFlag = false;
if (!_local1.focused) {
_local1.pressFocus();
_local1.clickFilter = (_local1.editable ? false : true);
}
if (!_local1.clickFilter) {
_local1.openOrClose(!_local1.opened);
} else {
_local1.clickFilter = false;
}
}
};
FComboBoxClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
if (!_local1.focused) {
if (_local1.editable) {
_local1.fLabel_txt.onKillFocus = undefined;
}
_local1.pressFocus();
}
super.clickHandler(itmNum);
_local1.selectionHandler(itmNum);
_local1.onMouseUp = _local1.releaseHandler;
};
FComboBoxClass.prototype.highlightTop = function (flag) {
var _local1 = this;
if (!_local1.editable) {
_local1.fLabel_mc.drawItem(_local1.topLabel, flag);
}
};
FComboBoxClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
this.fLabel_mc.highlight_mc.gotoAndStop("enabled");
this.highlightTop(true);
};
FComboBoxClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1._height + 4);
};
FComboBoxClass.prototype.myOnKillFocus = function () {
var _local1 = this;
if (Selection.getFocus().indexOf("labelField") != -1) {
} else {
super.myOnKillFocus();
delete _local1.fLabel_txt.onKeyDown;
_local1.openOrClose(false);
_local1.highlightTop(false);
}
};
FComboBoxClass.prototype.setPopUpLocation = function (mcRef) {
var _local1 = this;
var _local3 = mcRef;
_local3._x = _local1._x;
var _local2 = {x:_local1._x, y:_local1._y + _local1.proxyBox_mc._height};
_local1._parent.localToGlobal(_local2);
_local3._parent.globalToLocal(_local2);
_local3._x = _local2.x;
_local3._y = _local2.y;
if ((_local1.height + _local3._y) >= Stage.height) {
_local1.upward = true;
_local3._y = (_local2.y - _local1.height) - _local1.proxyBox_mc._height;
} else {
_local1.upward = false;
}
};
FComboBoxClass.prototype.openOrClose = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.getLength() == 0) {
} else {
_local1.setPopUpLocation(_local1.container_mc);
if ((_local1.lastSelected != -1) && ((_local1.lastSelected < _local1.topDisplayed) || (_local1.lastSelected > (_local1.topDisplayed + _local1.numDisplayed)))) {
super.moveSelBy(_local1.lastSelected - _local1.getSelectedIndex());
}
if (!_local2) {
(_local1.downArrow.gotoAndStop(1));// not popped
} else {
(_local1.downArrow.gotoAndStop(2));// not popped
}
if (_local2 == _local1.opened) {
} else {
_local1.highlightTop(!_local2);
_local1.fadeRate = _local1.styleTable.popUpFade.value;
if (((!_local2) || (_local1.fadeRate == undefined)) || (_local1.fadeRate == 0)) {
_local1.opened = (_local1.container_mc._visible = _local2);
} else {
_local1.setPopUpLocation(_local1.fader);
_local1.time = 0;
_local1.const = 85 / Math.sqrt(_local1.fadeRate);
_local1.fader._alpha = 85;
_local1.container_mc._visible = (_local1.fader._visible = true);
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.fader._alpha = 100 - ((_local1.const * Math.sqrt(++_local1.time)) + 15);
if (_local1.time >= _local1.fadeRate) {
_local1.fader._visible = false;
delete _local1.onEnterFrame;
_local1.opened = true;
}
};
}
}
}
};
FComboBoxClass.prototype.fireChange = function () {
var _local1 = this;
_local1.lastSelected = _local1.getSelectedIndex();
if (!_local1.editable) {
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, true);
} else {
_local1.value = _local1.getSelectedItem().label;
_local1.fLabel_mc.setLabel(_local1.value);
}
_local1.executeCallback();
};
FComboBoxClass.prototype.releaseHandler = function () {
var _local1 = this;
var _local2 = _root;
var _local3 = _local1.boundingBox_mc.hitTest(_local2._xmouse, _local2._ymouse);
if (_local1.changeFlag) {
if (_local3) {
_local1.fireChange();
}
_local1.openOrClose(!_local1.opened);
} else if (_local3) {
_local1.openOrClose(false);
} else {
_local1.onMouseDown = function () {
var _local1 = this;
var _local2 = _root;
if ((!_local1.boundingBox_mc.hitTest(_local2._xmouse, _local2._ymouse)) && (!_local1.hitTest(_local2._xmouse, _local2._ymouse))) {
_local1.onMouseDown = undefined;
_local1.openOrClose(false);
}
};
}
_local1.changeFlag = false;
_local1.onMouseUp = undefined;
clearInterval(_local1.dragScrolling);
_local1.dragScrolling = undefined;
};
FComboBoxClass.prototype.moveSelBy = function (itemNum) {
var _local1 = this;
if (itemNum != 0) {
super.moveSelBy(itemNum);
if (_local1.editable) {
_local1.setValue(_local1.getSelectedItem().label);
}
if (!_local1.opened) {
if (_local1.changeFlag && (!_local1.isSelected(_local1.lastSelected))) {
_local1.fireChange();
}
}
}
};
FComboBoxClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if (!_local1.focused) {
} else {
if (_local1.editable && (Key.isDown(13))) {
_local1.setValue(_local1.fLabel_mc.getLabel());
_local1.executeCallback();
_local1.openOrClose(false);
} else if ((Key.isDown(13) || (Key.isDown(32) && (!_local1.editable))) && (_local1.opened)) {
if (_local1.getSelectedIndex() != _local1.lastSelected) {
_local1.fireChange();
}
_local1.openOrClose(false);
_local1.fLabel_txt.hscroll = 0;
}
super.myOnKeyDown();
}
};
FComboBoxClass.prototype.findInputText = function () {
if (!this.editable) {
super.findInputText();
}
};
FComboBoxClass.prototype.onLabelFocus = function () {
var _local1 = this;
_local1._parent._parent.tabFocused = false;
_local1._parent._parent.focused = true;
_local1.onKeyDown = function () {
this._parent._parent.myOnKeyDown();
};
Key.addListener(_local1);
};
FComboBoxClass.prototype.buttonPressHandler = function () {
this._parent.pressHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 135 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 140 MovieClip [FComboBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 151 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 2
if (this._parent.introIsPlayed) {
this.gotoAndPlay("jump");
}
Symbol 158 MovieClip Frame 17
stop();
Symbol 166 MovieClip Frame 2
this._parent.introIsPlayed = false;
Symbol 166 MovieClip Frame 17
stop();
Symbol 166 MovieClip Frame 36
this._parent.gotoAndPlay(this._parent.activeContent);
Symbol 166 MovieClip Frame 37
stop();
Symbol 174 MovieClip Frame 2
stop();
Symbol 174 MovieClip Frame 12
stop();
Symbol 174 MovieClip Frame 22
stop();
Symbol 174 MovieClip Frame 26
stop();
Symbol 174 MovieClip Frame 44
stop();
Symbol 174 MovieClip Frame 54
stop();
Symbol 177 MovieClip Frame 2
stop();
Symbol 177 MovieClip Frame 12
stop();
Symbol 177 MovieClip Frame 22
stop();
Symbol 177 MovieClip Frame 26
stop();
Symbol 177 MovieClip Frame 44
stop();
Symbol 177 MovieClip Frame 54
stop();
Symbol 180 MovieClip Frame 2
stop();
Symbol 180 MovieClip Frame 12
stop();
Symbol 180 MovieClip Frame 22
stop();
Symbol 180 MovieClip Frame 26
stop();
Symbol 180 MovieClip Frame 44
stop();
Symbol 180 MovieClip Frame 54
stop();
Symbol 183 MovieClip Frame 2
stop();
Symbol 183 MovieClip Frame 12
stop();
Symbol 183 MovieClip Frame 22
stop();
Symbol 183 MovieClip Frame 26
stop();
Symbol 183 MovieClip Frame 44
stop();
Symbol 183 MovieClip Frame 54
stop();
Symbol 186 MovieClip Frame 2
stop();
Symbol 186 MovieClip Frame 12
stop();
Symbol 186 MovieClip Frame 22
stop();
Symbol 186 MovieClip Frame 26
stop();
Symbol 186 MovieClip Frame 44
stop();
Symbol 186 MovieClip Frame 54
stop();
Symbol 189 MovieClip Frame 2
stop();
Symbol 189 MovieClip Frame 12
stop();
Symbol 189 MovieClip Frame 22
stop();
Symbol 189 MovieClip Frame 26
stop();
Symbol 189 MovieClip Frame 44
stop();
Symbol 189 MovieClip Frame 54
stop();
Symbol 190 MovieClip Frame 22
this.mainRecommendBtn_mc.setAsBtn("mainRecommendBtn");
this.mainHighScoreBtn_mc.setAsBtn("mainHighScoreBtn", "center");
this.mainSupportBtn_mc.setAsBtn("mainSupportBtn");
this.mainLoginBtn_mc.setAsBtn("mainLoginBtn");
this.mainGameBtn_mc.setAsBtn("mainGameBtn", "center");
this.mainInstructionBtn_mc.setAsBtn("mainInstructionBtn");
this.mainPricesBtn_mc.setAsBtn("mainPricesBtn");
Symbol 190 MovieClip Frame 25
stop();
this._parent.setMainNavi();
Symbol 190 MovieClip Frame 35
stop();
Symbol 199 MovieClip Frame 2
stop();
Symbol 199 MovieClip Frame 12
stop();
Symbol 199 MovieClip Frame 22
stop();
Symbol 199 MovieClip Frame 26
stop();
Symbol 199 MovieClip Frame 44
stop();
Symbol 199 MovieClip Frame 54
stop();
Symbol 202 MovieClip Frame 2
stop();
Symbol 202 MovieClip Frame 12
stop();
Symbol 202 MovieClip Frame 22
stop();
Symbol 202 MovieClip Frame 26
stop();
Symbol 202 MovieClip Frame 44
stop();
Symbol 202 MovieClip Frame 54
stop();
Symbol 221 MovieClip Frame 2
stop();
Symbol 221 MovieClip Frame 12
stop();
Symbol 221 MovieClip Frame 22
stop();
Symbol 221 MovieClip Frame 26
stop();
Symbol 221 MovieClip Frame 44
stop();
Symbol 221 MovieClip Frame 54
stop();
Symbol 222 MovieClip Frame 2
stop();
Symbol 222 MovieClip Frame 12
stop();
Symbol 222 MovieClip Frame 22
stop();
Symbol 222 MovieClip Frame 26
stop();
Symbol 222 MovieClip Frame 44
stop();
Symbol 222 MovieClip Frame 54
stop();
Symbol 244 MovieClip Frame 2
stop();
Symbol 244 MovieClip Frame 16
stop();
Symbol 244 MovieClip Frame 40
stop();
Symbol 244 MovieClip Frame 55
stop();
Symbol 246 MovieClip Frame 1
this.initComp = true;
Instance of Symbol 127 MovieClip [FCheckBoxSymbol] "newsletter_cb" in Symbol 246 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = false;
labelPlacement = "right";
changeHandler = "getNewsletter";
}
Instance of Symbol 127 MovieClip [FCheckBoxSymbol] "agb_cb" in Symbol 246 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = false;
labelPlacement = "right";
changeHandler = "getAgb";
}
Symbol 253 MovieClip Frame 1
function setLoginNavi(withGotoAndPlay) {
var _local1 = this;
if (user.loginStatus == "loggedIn") {
showloginSuccess();
} else {
trace("setLoginNavi: " + user.pData.sendScoreAfterLogin);
if (withGotoAndPlay == "withGotoAndPlay") {
_local1.gotoAndPlay("login_userInput");
}
_local1.login_mc.nickName_mc.extendTxtField(paths.root.xmlObj.textInput.childNodes[0].nodeValue, 80, 100, 15);
_local1.login_mc.eMail_mc.extendTxtField(paths.root.xmlObj.textInput.childNodes[0].nodeValue, 80, 100, 40);
_local1.login_mc.nickName_mc.input_txt.tabIndex = 1;
_local1.login_mc.eMail_mc.input_txt.tabIndex = 2;
_local1.login_mc.login_btn.setAsBtn();
_local1.login_mc.login_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
var _local1 = ["nickName", "eMail"];
validInput(this._parent._name, _local1);
};
_local1.login_mc.register_btn.setAsBtn();
_local1.login_mc.register_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
setRegisterForm();
};
}
}
function setRegisterForm() {
var _local1 = this;
_local1.gotoAndPlay("register_userInput");
_local1.register_mc.initComp = false;
_local1.register_mc.onEnterFrame = function () {
var _local1 = this;
if (_local1.initComp) {
delete _local1.onEnterFrame;
_local1.nickName_mc.extendTxtField("hier eintragen", 80, 100, 15);
_local1.eMail_mc.extendTxtField("hier eintragen", 80, 100, 40);
_local1.yearOfBirth_mc.extendTxtField("19xx", 80, 100, 4);
_local1.yearOfBirth_mc.input_txt.restrict = "0-9";
_local1.nickName_mc.input_txt.tabIndex = 1;
_local1.eMail_mc.input_txt.tabIndex = 2;
_local1.yearOfBirth_mc.input_txt.tabIndex = 3;
_local1.country_cb.removeAll();
_local1.country_cb.addItem(paths.root.xmlObj.pleaseChoose.childNodes[0].nodeValue);
var _local3 = paths.root.xmlObj.countryList.childNodes.length;
var _local2 = 0;
while (_local2 < _local3) {
_local1.country_cb.addItem(paths.root.xmlObj.countryList.childNodes[_local2].childNodes[0].nodeValue, paths.root.xmlObj.countryList.childNodes[_local2].attributes.id);
_local2++;
}
_local1.carBrand_cb.removeAll();
_local1.carBrand_cb.addItem(paths.root.xmlObj.pleaseChoose.childNodes[0].nodeValue);
var carBrandAmout = paths.root.xmlObj.carBrandList.childNodes.length;
_local2 = 0;
while (_local2 < carBrandAmout) {
_local1.carBrand_cb.addItem(paths.root.xmlObj.carBrandList.childNodes[_local2].childNodes[0].nodeValue, paths.root.xmlObj.carBrandList.childNodes[_local2].childNodes[0].nodeValue);
_local2++;
}
_local1.getCarBrand = function (component) {
var _local1 = component;
trace("carType_new -> comp: " + _local1.getSelectedItem().data);
user.pData.carBrand = _local1.getSelectedItem().data;
user.pData.carBrandIndex = _local1.getSelectedIndex();
};
_local1.getCountry = function (component) {
var _local1 = component;
trace("country -> comp: " + _local1.getSelectedItem().data);
user.pData.country = _local1.getSelectedItem().data;
user.pData.countryIndex = _local1.getSelectedIndex();
};
_local1.getAgb = function (component) {
trace("agb -> comp: " + component.getValue());
user.pData.agb = component.getValue();
};
_local1.getNewsletter = function (component) {
trace("newsletter -> comp: " + component.getValue());
user.pData.newsletter = component.getValue();
};
if (user.pData.carBrandIndex != undefined) {
_local1.carBrand_cb.setSelectedIndex(user.pData.carBrandIndex);
}
if (user.pData.countryIndex != undefined) {
_local1.country_cb.setSelectedIndex(user.pData.countryIndex);
}
if (user.pData.agb) {
_local1.agb_cb.setValue(user.pData.agb);
}
if (user.pData.newsletter) {
_local1.newsletter_cb.setValue(user.pData.newsletter);
}
var registerValidFields = ["nickName", "eMail", "newsletter", "yearOfBirth", "agb"];
_local1.agb_btn.setAsBtn("participationBtn");
_local1.agb_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
var _local1 = "javascript:launchwin('agb.htm' , 'popup_agb' , 'height=450,width=400,left=0,top=0,status=yes,resizable=no, scrollbars=yes')";
getURL (_local1);
};
_local1.send_btn.setAsBtn("sendBtn", "center");
_local1.send_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
validInput(this._parent._name, registerValidFields);
};
}
};
}
function validInput(mc, validFields) {
var _local1 = this;
var _local2 = mc;
_local1[_local2].paramAmount = validFields.length;
_local1[_local2].inCorrectFields = new Array();
_local1[_local2].correctFields = 0;
_local1[_local2].fields = new Object();
var _local3 = 0;
while (_local3 < _local1[_local2].paramAmount) {
_local1[_local2][validFields[_local3]] = _local1[_local2][validFields[_local3] + "_mc"].input_txt.text;
_local1[_local2][validFields[_local3] + "Init"] = _local1[_local2][validFields[_local3] + "_mc"].initText;
if ((((((validFields[_local3] != "eMail") && (validFields[_local3] != "carBrand")) && (validFields[_local3] != "country")) && (validFields[_local3] != "agb")) && (validFields[_local3] != "newsletter")) && (validFields[_local3] != "yearOfBirth")) {
if (((_local1[_local2][validFields[_local3]] != _local1[_local2][validFields[_local3] + "Init"]) && (_local1[_local2][validFields[_local3]] != "")) && (_local1[_local2][validFields[_local3]].length > 2)) {
_local1[_local2].correctFields++;
_local1[_local2].fields[validFields[_local3]] = _local1[_local2][validFields[_local3]];
} else {
_local1[_local2].errorField = validFields[_local3] + "_mc";
_local1[_local2].inCorrectFields.push(_local1[_local2].errorField);
}
}
_local3++;
}
if (((((_local1[_local2].eMail != _local1[_local2].eMailInit) && (_local1[_local2].eMail != "")) && (_local1[_local2].eMail.indexOf("@") != -1)) && (_local1[_local2].eMail.indexOf(".") != -1)) && (_local1[_local2].eMail.length > 7)) {
_local1[_local2].correctFields++;
_local1[_local2].fields.eMail = _local1[_local2].eMail;
} else {
_local1[_local2].inCorrectFields.push("eMail_mc");
}
if (_local2 == "register_mc") {
if (user.pData.agb == true) {
_local1[_local2].correctFields++;
_local1[_local2].fields.agb = 1;
} else {
_local1[_local2].inCorrectFields.push("agb_mc");
_local1[_local2].fields.agb = 0;
}
if (user.pData.newsletter) {
_local1[_local2].fields.newsletter = 1;
} else {
_local1[_local2].fields.newsletter = 0;
}
if (_local1[_local2].yearOfBirth == "19xx") {
_local1[_local2].yearOfBirth = 1899;
}
if ((_local1[_local2].yearOfBirth < 1900) || (_local1[_local2].yearOfBirth > 2005)) {
_local1[_local2].inCorrectFields.push("yearOfBirth_mc");
} else {
_local1[_local2].fields.yearOfBirth = _local1[_local2].yearOfBirth;
_local1[_local2].correctFields++;
}
trace("this[mc].yearOfBirth: " + _local1[_local2].yearOfBirth);
}
trace((_local1[_local2].correctFields + " : ") + _local1[_local2].paramAmount);
if (_local2 == "register_mc") {
if (_local1[_local2].correctFields == (_local1[_local2].paramAmount - 1)) {
trace("registerUser");
registerUser(_local1[_local2].fields);
} else {
trace("showRegisterError");
_local1.clipName = _local1[_local2]._name;
getValidationError(_local1[_local2].inCorrectFields, _local1.clipName, "register_error");
}
} else if (_local2 == "login_mc") {
if (_local1[_local2].correctFields == _local1[_local2].paramAmount) {
trace("loginUser");
loginUser(_local1[_local2].fields);
} else {
trace("showLoginError");
_local1.clipName = _local1[_local2]._name;
getValidationError(_local1[_local2].inCorrectFields, _local1.clipName, "login_error");
}
}
}
function getValidationError(errors, mc, frame) {
var _local2 = this;
_local2.gotoAndPlay(frame);
errorAmount = errors.length;
errors = errors;
_local2.userError_mc.ok_btn.setAsBtn("okBtn", "center");
_local2.userError_mc.ok_btn.onRelease = function () {
trace(mc);
if (mc == "register_mc") {
setRegisterForm();
} else if (mc == "login_mc") {
setLoginNavi("withGotoAndPlay");
}
var _local1 = 0;
while (_local1 < errorAmount) {
trace("->> ERROR_MC: " + errors[_local1]);
if (mc == "register_mc") {
register_mc[errors[_local1]].error_mc.alphaTo(100, 1, undefined, 0.5);
} else if (mc == "login_mc") {
login_mc[errors[_local1]].error_mc.alphaTo(100, 1, undefined, 0.5);
}
_local1++;
}
};
}
function registerUser(inputs) {
var _local2 = inputs;
var _local3 = this;
_local3.gotoAndPlay("register_send");
var response_lv = new LoadVars();
response_lv.onLoad = function (success) {
var _local1 = this;
if (success) {
trace("response: " + _local1.response);
_local1.response = Number(_local1.response);
switch (_local1.response) {
case 0 :
var _local2 = "Die Verbindung zum Server konnte nicht hergestellt werden.<BR><BR>Bitte \u00FCberpr\u00FCfe deine Internet-Verbindung.";
showRegisterError(_local2, true);
break;
case 1 :
_local2 = "Der Name ist leider schon vergeben. Bitte gib einen anderen Namen an.";
showRegisterError(_local2, "nickName_mc");
break;
case 2 :
_local2 = "Es gibt schon einen Account mit dieser E-Mail-Adresse. Bitte melde dich mit diesem Account an oder gib eine andere E-Mail-Adresse an.";
showRegisterError(_local2, "eMail_mc");
break;
case 3 :
showRegisterSuccess();
}
} else {
showRegisterError();
}
};
var _local1 = new LoadVars();
for (i in _local2) {
_local1[i] = _local2[i];
trace((("send: " + i) + " : ") + _local1[i]);
}
trace("user.pData.nickName: " + user.pData.nickName);
_local1.fileLanguage = user.pData.fileLanguage;
var registerURL = (pathToServer + "php/register_check.php");
_local1.sendAndLoad(registerURL, response_lv, "POST");
}
function loginUser(inputs) {
var _local2 = inputs;
var _local3 = this;
_local3.gotoAndPlay("login_send");
var response_lv = new LoadVars();
response_lv.onLoad = function (success) {
var _local1 = this;
if (success) {
trace("response from loginUser: " + typeof(_local1.response));
_local1.response = Number(_local1.response);
trace("response from loginUser: " + _local1.response);
switch (_local1.response) {
case 0 :
var _local2 = "Die Verbindung zum Server konnte nicht hergestellt werden.<BR><BR>Bitte \u00FCberpr\u00FCfe deine Internet-Verbindung.";
showloginError(_local2);
break;
case 1 :
_local2 = "Dieser Account ist nicht vorhanden. Bitte \u00FCberpr\u00FCfe deine Eingaben.";
showloginError(_local2, "nickName_mc");
break;
case 2 :
_local2 = "Dieser Account ist nicht vorhanden. Bitte \u00FCberpr\u00FCfe deine Eingaben.";
showloginError(_local2, "eMail_mc");
break;
case 3 :
_local2 = "Dieser Account ist nicht vorhanden. Bitte \u00FCberpr\u00FCfe deine Eingaben.";
showloginError(_local2, "nickName_mc");
break;
case 4 :
user.pData.oldScore = _local1.score;
user.pData.rankPos = _local1.rankPos;
user.pData.country = _local1.country;
trace("user.pData.score: " + user.pData.score);
trace("user.pData.rankPos: " + user.pData.rankPos);
trace("user.pData.country: " + user.pData.country);
userTracking("trackLogin");
showloginSuccess();
}
} else {
var _local2 = "serverError";
showloginError(_local2);
}
};
var _local1 = new LoadVars();
for (i in _local2) {
_local1[i] = _local2[i];
trace("user.pData.nickName: " + user.pData.nickName);
trace("user.pData.eMail: " + user.pData.eMail);
trace((("send: " + i) + " : ") + _local1[i]);
}
var loginURL = (pathToServer + "php/login_check.php");
_local1.sendAndLoad(loginURL, response_lv, "POST");
}
function showRegisterError(message, error) {
var _local1 = this;
_local1.gotoAndPlay("server_error");
_local1.serverError_mc.serverError_txt.text = message;
_local1.serverError_mc.ok_btn.setAsBtn("okBtn", "center");
_local1.serverError_mc.ok_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
setRegisterForm();
register_mc[error].error_mc.alphaTo(100, 1, undefined, 0.5);
};
}
function showRegisterSuccess() {
var _local1 = this;
_local1.gotoAndPlay("register_success");
user.loginStatus = "loggedIn";
if (user.pData.sendScoreAfterLogin != true) {
user.pData.newScore = 0;
}
user.pData.oldScore = 0;
_local1.registerSuccess_mc.ok_btn.setAsBtn("okBtn", "center");
_local1.registerSuccess_mc.ok_btn.onRelease = function () {
var _local1 = this;
_local1.gotoAndPlay("onRelease");
user.pData.country = null;
user.pData.countryIndex = null;
user.pData.carBrand = null;
user.pData.carBrandIndex = null;
user.pData.agb = null;
user.pData.newsletter = null;
user_so.data.yearOfBirth = null;
if (user.pData.sendScoreAfterLogin == true) {
afterRegistrationSuccess = false;
_local1._parent._parent._parent.navigation_mc.mainLogin_btn.enabled = true;
_local1._parent._parent._parent.navigation_mc.mainLogin_btn.gotoAndPlay("onRollOut");
_local1._parent._parent._parent.gotoAndPlay("finish");
} else {
afterRegistrationSuccess = true;
_local1._parent._parent.gotoAndPlay("out");
}
};
}
function showloginError(message, error) {
var _local1 = this;
_local1.gotoAndPlay("server_error");
_local1.serverError_mc.serverError_txt.text = message;
_local1.serverError_mc.ok_btn.setAsBtn("okBtn", "center");
_local1.serverError_mc.ok_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
setLoginNavi("withGotoAndPlay");
login_mc[error].error_mc.alphaTo(100, 1, undefined, 0.5);
};
}
function showloginSuccess() {
var _local1 = this;
_local1.gotoAndPlay("login_success");
trace("showloginSuccess + user.pData.sendScoreAfterLogin: " + user.pData.sendScoreAfterLogin);
user.loginStatus = "loggedIn";
if (user.pData.sendScoreAfterLogin != true) {
user.pData.newScore = 0;
}
user.pData.oldScore = 0;
_local1.loginSuccess_mc.ok_btn.setAsBtn("okBtn", "center");
_local1.loginSuccess_mc.login_btn.setAsBtn("loginBtn", "center");
_local1.loginSuccess_mc.ok_btn.onRelease = function () {
var _local1 = this;
_local1.gotoAndPlay("onRelease");
_local1._parent._parent._parent.introIsPlayed = true;
if (user.pData.sendScoreAfterLogin == true) {
afterRegistrationSuccess = false;
_local1._parent._parent._parent.navigation_mc.mainLogin_btn.enabled = true;
_local1._parent._parent._parent.navigation_mc.mainLogin_btn.gotoAndPlay("onRollOut");
_local1._parent._parent._parent.gotoAndPlay("finish");
trace("take if");
} else {
trace("take else");
afterRegistrationSuccess = true;
_local1._parent._parent.gotoAndPlay("out");
}
};
_local1.loginSuccess_mc.login_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
user_so.data.nickName = null;
user.pData.nickName = null;
user_so.data.eMail = null;
user.pData.eMail = null;
user_so.data.yearOfBirth = null;
user.loginStatus = "notLoggedIn";
setLoginNavi("withGotoAndPlay");
};
}
Symbol 253 MovieClip Frame 19
this.setLoginNavi(false);
Symbol 253 MovieClip Frame 20
stop();
Symbol 253 MovieClip Frame 32
stop();
Symbol 253 MovieClip Frame 40
this.loginSuccess_mc.successSignOn_mc.successSignOn_txt.text = this.loginSuccess_mc.successSignOn_mc.successSignOn_txt.text + (": " + user.pData.nickName);
Symbol 253 MovieClip Frame 41
stop();
Symbol 253 MovieClip Frame 52
stop();
Symbol 253 MovieClip Frame 62
stop();
Symbol 253 MovieClip Frame 76
stop();
Symbol 253 MovieClip Frame 87
stop();
Symbol 253 MovieClip Frame 100
stop();
Symbol 253 MovieClip Frame 111
stop();
Symbol 253 MovieClip Frame 127
trace("reach out login-frame");
if (afterRegistrationSuccess) {
trace("gotoAndPlay startScreen");
afterRegistrationSuccess = false;
this._parent.navigation_mc.mainLogin_btn.gotoAndPlay("onRollOut");
this._parent.navigation_mc.mainLogin_btn.enabled = true;
this._parent.selectedNaviButton = null;
this._parent.gotoAndPlay("startScreen");
} else {
trace("NOT gotoAndPlay startScreen");
this._parent.gotoAndPlay(this._parent.activeContent);
}
Symbol 258 MovieClip Frame 2
stop();
Symbol 258 MovieClip Frame 12
stop();
Symbol 258 MovieClip Frame 22
stop();
Symbol 258 MovieClip Frame 26
stop();
Symbol 258 MovieClip Frame 44
stop();
Symbol 258 MovieClip Frame 54
stop();
Symbol 259 MovieClip Frame 2
stop();
Symbol 259 MovieClip Frame 12
stop();
Symbol 259 MovieClip Frame 22
stop();
Symbol 259 MovieClip Frame 26
stop();
Symbol 259 MovieClip Frame 44
stop();
Symbol 259 MovieClip Frame 54
stop();
Symbol 303 MovieClip Frame 3
stop();
Symbol 303 MovieClip Frame 11
stop();
Symbol 325 MovieClip Frame 16
this._parent.setInstruction(1, 4);
Symbol 325 MovieClip Frame 25
stop();
Symbol 325 MovieClip Frame 32
stop();
Symbol 325 MovieClip Frame 39
stop();
Symbol 325 MovieClip Frame 46
stop();
Symbol 325 MovieClip Frame 62
stop();
this._parent.gotoAndPlay(this._parent.activeContent);
Symbol 344 MovieClip Frame 2
stop();
Symbol 344 MovieClip Frame 11
stop();
Symbol 344 MovieClip Frame 21
stop();
Symbol 351 MovieClip Frame 2
stop();
Symbol 351 MovieClip Frame 12
stop();
Symbol 351 MovieClip Frame 22
stop();
Symbol 351 MovieClip Frame 26
stop();
Symbol 351 MovieClip Frame 44
stop();
Symbol 351 MovieClip Frame 54
stop();
Symbol 352 MovieClip Frame 2
stop();
Symbol 355 MovieClip Frame 1
function getHighScoreTable() {
loaderXMLListener_obj = new Object();
loaderXMLListener_obj.onLoadStart = function (loaderObj) {
gotoAndPlay ("load");
paths.root.navigation_mc.onRelease = function () {
};
paths.root.navigation_mc.enabled = false;
};
loaderXMLListener_obj.onLoadProgress = function (loaderObj) {
};
loaderXMLListener_obj.onLoadComplete = function (success, loaderObj) {
delete paths.root.navigation_mc.onRelease;
paths.root.navigation_mc.enabled = true;
if (success) {
trace(loaderObj.getTarget());
loaderObj.getTarget().showHighScore();
} else {
showHighScoreError();
}
};
highScore_xml = new XML();
xmlLoader = new com.qlod.LoaderClass();
xmlLoader.setMinSteps(3);
pageNum = 0;
var _local1 = (((((((pathToServer + "php/score_list.php?nickName=") + user.pData.nickName) + "&pageNum=") + pageNum) + "&fileLanguage=") + user.pData.fileLanguage) + "&cacheKiller=") + new Date().getTime();
xmlLoader.load(highScore_xml, _local1, loaderXMLListener_obj);
}
function initSwitchHighScorePages(pageNum, pageAmount) {
var _local1 = this;
_local1.highScoreSuccess_mc.forward_btn.gotoAndPlay("deactivate");
_local1.highScoreSuccess_mc.backward_btn.gotoAndPlay("deactivate");
if (pageNum < pageAmount) {
_local1.highScoreSuccess_mc.forward_btn._alpha = 100;
_local1.highScoreSuccess_mc.forward_btn.enabled = true;
_local1.highScoreSuccess_mc.forward_btn.setAsBtn();
_local1.highScoreSuccess_mc.forward_btn.gotoAndPlay("onRollOut");
_local1.highScoreSuccess_mc.forward_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
var _local1 = (((((((pathToServer + "php/score_list.php?nickName=") + user.pData.nickName) + "&pageNum=") + pageNum) + "&fileLanguage=") + user.pData.fileLanguage) + "&cacheKiller=") + new Date().getTime();
xmlLoader.load(highScore_xml, _local1, loaderXMLListener_obj);
};
}
trace(pageNum);
if (pageNum > 1) {
_local1.highScoreSuccess_mc.backward_btn._alpha = 100;
_local1.highScoreSuccess_mc.backward_btn.enabled = true;
_local1.highScoreSuccess_mc.backward_btn.setAsBtn();
_local1.highScoreSuccess_mc.backward_btn.gotoAndPlay("onRollOut");
_local1.highScoreSuccess_mc.backward_btn.onRelease = (_local1.highScoreSuccess_mc.backward_btn.onReleaseOutside = function () {
this.gotoAndPlay("onRelease");
pageNum = pageNum - 2;
var _local1 = (((((((pathToServer + "php/score_list.php?nickName=") + user.pData.nickName) + "&pageNum=") + pageNum) + "&fileLanguage=") + user.pData.fileLanguage) + "&cacheKiller=") + new Date().getTime();
xmlLoader.load(highScore_xml, _local1, loaderXMLListener_obj);
});
}
}
function initJumpToOwnPos() {
var _local1 = this;
trace((("initJumpToOwnPos" + _local1.highScoreSuccess_mc.jumpToOwnRank_mc.rank_btn.actualSite) + " : ") + _local1.highScoreSuccess_mc.jumpToOwnRank_mc.rank_btn.pageFocus);
if ((_local1.highScoreSuccess_mc.jumpToOwnRank_mc.rank_btn.actualSite - 1) != _local1.highScoreSuccess_mc.jumpToOwnRank_mc.rank_btn.pageFocus) {
trace("set JumpToOwnRank");
_local1.highScoreSuccess_mc.jumpToOwnRank_mc.rank_btn.enabled = true;
_local1.highScoreSuccess_mc.jumpToOwnRank_mc.rank_btn.gotoAndPlay("onRollOut");
_local1.highScoreSuccess_mc.jumpToOwnRank_mc.rank_btn.setAsBtn();
_local1.highScoreSuccess_mc.jumpToOwnRank_mc.rank_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
var _local1 = (((((((pathToServer + "php/score_list.php?nickName=") + user.pData.nickName) + "&pageNum=") + this.pageFocus) + "&fileLanguage=") + user.pData.fileLanguage) + "&cacheKiller=") + new Date().getTime();
xmlLoader.load(highScore_xml, _local1, loaderXMLListener_obj);
};
} else {
trace("dis JumpToOwnRank");
_local1.highScoreSuccess_mc.jumpToOwnRank_mc.rank_btn.gotoAndPlay("deactivate");
_local1.highScoreSuccess_mc.jumpToOwnRank_mc.rank_btn.enabled = false;
}
}
function showHighScoreError() {
var _local1 = this;
_local1.gotoAndPlay("error");
_local1.highScoreError_mc.back_btn.setAsBtn("okBtn", "center");
_local1.highScoreError_mc.back_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
this.refRoot.gotoAndPlay("load");
};
}
var dummyEntry = {scoresPerPage:10, rank:0, score:"0", nickName:"-----"};
XML.prototype.ignoreWhite = true;
XML.prototype.showHighScore = function () {
var _local1 = this;
isSuccess = false;
gotoAndPlay ("success");
highScoreSuccess_mc.jumpToOwnRank_mc._visible = false;
onEnterFrame = function () {
var _local1 = this;
if (isSuccess == true) {
delete onEnterFrame;
_local1.scoresPerPage = dummyEntry.scoresPerPage;
var _local2 = 0;
while (_local2 < _local1.scoresPerPage) {
_local1.rank = dummyEntry.rank;
_local1.score = dummyEntry.score;
_local1.nickName = dummyEntry.nickName;
_local1.country = dummyEntry.country;
_local1.clipNum = _local2 + 1;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].rank_txt.text = _local1.rank;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].score_txt.text = _local1.score;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].nickName_txt.text = _local1.nickName;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].country_txt.text = _local1.country;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].rankShadow_txt.text = _local1.rank;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].scoreShadow_txt.text = _local1.score;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].nickNameShadow_txt.text = _local1.nickName;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].countryShadow_txt.text = _local1.country;
_local2++;
}
_local1.entryAmount = highScore_xml.childNodes[0].childNodes.length;
_local2 = 0;
while (_local2 < _local1.entryAmount) {
_local1.rank = highScore_xml.childNodes[0].childNodes[_local2].attributes.id;
_local1.score = highScore_xml.childNodes[0].childNodes[_local2].attributes.score;
_local1.country = highScore_xml.childNodes[0].childNodes[_local2].attributes.country;
_local1.nickName = highScore_xml.childNodes[0].childNodes[_local2].childNodes[0].childNodes[0].nodeValue;
_local1.clipNum = _local2 + 1;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].bg_mc._alpha = 100;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].gotoAndStop(1);
_local1.newRank = Number(_local1.rank);
if (_local1.newRank == _local1.lastRank) {
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].gotoAndPlay("sameRank");
}
_local1.lastRank = Number(_local1.rank);
if (_local1.nickName.toLowerCase() == user.pData.nickName.toLowerCase()) {
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].gotoAndStop("ownRank");
}
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].rank_txt.text = _local1.rank;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].nickName_txt.text = _local1.nickName;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].country_txt.text = _local1.country;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].score_txt.text = _local1.score;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].rankShadow_txt.text = _local1.rank;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].nickNameShadow_txt.text = _local1.nickName;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].countryShadow_txt.text = _local1.country;
highScoreSuccess_mc[("rank" + _local1.clipNum) + "_mc"].scoreShadow_txt.text = _local1.score;
_local2++;
}
_local1.pageNum = Number(highScore_xml.childNodes[0].attributes.siteNum);
_local1.pageAmount = Number(highScore_xml.childNodes[0].attributes.siteAmount);
_local1.totalEntries = Number(highScore_xml.childNodes[0].attributes.totalEntries);
_local1.rankFocus = Number(highScore_xml.childNodes[0].attributes.rankFocus);
_local1.pageFocus = Number(highScore_xml.childNodes[0].attributes.pageFocus);
if (!isNaN(_local1.rankFocus)) {
highScoreSuccess_mc.jumpToOwnRank_mc._visible = true;
highScoreSuccess_mc.jumpToOwnRank_mc.rankFocus_txt.text = _local1.rankFocus;
highScoreSuccess_mc.jumpToOwnRank_mc.rankFocusShadow_txt.text = _local1.rankFocus;
highScoreSuccess_mc.jumpToOwnRank_mc.rank_btn.actualSite = _local1.pageNum;
highScoreSuccess_mc.jumpToOwnRank_mc.rank_btn.pageFocus = _local1.pageFocus;
}
trace((("rankFOCUS: " + _local1.rankFocus) + " ") + typeof(_local1.rankFocus));
highScoreSuccess_mc.site_txt.text = ((("Seite: " + _local1.pageNum) + " ") + "von ") + _local1.pageAmount;
highScoreSuccess_mc.totalEntries_txt.text = _local1.totalEntries + " Eintr\u00E4ge";
initJumpToOwnPos();
initSwitchHighScorePages(_local1.pageNum, _local1.pageAmount);
}
};
};
Symbol 355 MovieClip Frame 21
stop();
this.getHighScoreTable();
Symbol 355 MovieClip Frame 24
stop();
Symbol 355 MovieClip Frame 31
isSuccess = true;
Symbol 355 MovieClip Frame 32
stop();
Symbol 355 MovieClip Frame 42
stop();
Symbol 355 MovieClip Frame 58
this._parent.gotoAndPlay(this._parent.activeContent);
Symbol 360 MovieClip Frame 16
stop();
Symbol 360 MovieClip Frame 33
this._parent.gotoAndPlay(this._parent.activeContent);
Symbol 382 MovieClip Frame 1
function setRecommend() {
var _local1 = this;
user_so = SharedObject.getLocal("user");
var validFields = ["nickName", "eMail", "friend1Name", "friend1EMail"];
for (i in _local1.recommend_mc) {
trace(i);
_local1.recommend_mc[i].extendTxtField("hier eintragen", user_so, 100, 35);
}
_local1.recommend_mc.send_btn.setAsBtn();
_local1.recommend_mc.send_btn.onRelease = function () {
var _local3 = this;
_local3.gotoAndPlay("onRelease");
trace("press");
var _local2 = ["friend2EMail", "friend3EMail"];
var friendAmount_num = _local2.length;
var addInputChecks = new Array();
var _local1 = 0;
while (_local1 < friendAmount_num) {
trace("INPUT_________: " + _local3._parent[_local2[_local1] + "_mc"].input_txt.text);
if (_local3._parent[_local2[_local1] + "_mc"].input_txt.text != "hier eintragen") {
addInputChecks.push(_local2[_local1]);
}
_local1++;
}
recommendValidInput(_local3._parent._name, validFields, addInputChecks);
};
_local1.recommend_mc.nickName_mc.input_txt.tabIndex = 1;
_local1.recommend_mc.eMail_mc.input_txt.tabIndex = 2;
_local1.recommend_mc.friend1Name_mc.input_txt.tabIndex = 3;
_local1.recommend_mc.friend1EMail_mc.input_txt.tabIndex = 4;
_local1.recommend_mc.friend2Name_mc.input_txt.tabIndex = 5;
_local1.recommend_mc.friend2EMail_mc.input_txt.tabIndex = 6;
_local1.recommend_mc.friend3Name_mc.input_txt.tabIndex = 7;
_local1.recommend_mc.friend3EMail_mc.input_txt.tabIndex = 8;
}
function recommendValidInput(mc, validFields, extraChecks) {
var _local1 = this;
var _local2 = mc;
var _local3 = validFields;
_local1[_local2].inCorrectFields = new Array();
_local1[_local2].correctFields = 0;
_local1[_local2].fields = new Object();
_local1[_local2].extraChecksAmount_num = extraChecks.length;
_local1[_local2].extraChecks = extraChecks;
_local1[_local2].checkFieldAmount = 4 + (_local1[_local2].extraChecksAmount_num * 2);
trace("extraChecks: " + extraChecks);
var i = 0;
while (i < _local1[_local2].extraChecksAmount_num) {
_local3.push(_local1[_local2].extraChecks[i]);
if (_local1[_local2].extraChecks[i] == "friend2EMail") {
_local3.push("friend2Name");
} else {
_local3.push("friend3Name");
}
i++;
}
_local1[_local2].paramAmount = _local3.length;
trace(_local1[_local2].paramAmount + " <-- felder zu checken");
var i = 0;
while (i < _local1[_local2].paramAmount) {
_local1[_local2][_local3[i]] = _local1[_local2][_local3[i] + "_mc"].input_txt.text;
_local1[_local2][_local3[i] + "Init"] = _local1[_local2][_local3[i] + "_mc"].initText;
if ((((_local3[i] != "eMail") && (_local3[i] != "friend1EMail")) && (_local3[i] != "friend2EMail")) && (_local3[i] != "friend3EMail")) {
if ((_local1[_local2][_local3[i]] != _local1[_local2][_local3[i] + "Init"]) && (_local1[_local2][_local3[i]] != "")) {
_local1[_local2].correctFields++;
_local1[_local2].fields[_local3[i]] = _local1[_local2][_local3[i]];
} else {
_local1[_local2].errorField = _local3[i] + "_mc";
_local1[_local2].inCorrectFields.push(_local1[_local2].errorField);
}
}
i++;
}
if (((((_local1[_local2].eMail != _local1[_local2].eMailInit) && (_local1[_local2].eMail != "")) && (_local1[_local2].eMail.indexOf("@") != -1)) && (_local1[_local2].eMail.indexOf(".") != -1)) && (_local1[_local2].eMail.length > 7)) {
_local1[_local2].correctFields++;
_local1[_local2].fields.eMail = _local1[_local2].eMail;
} else {
_local1[_local2].inCorrectFields.push("eMail_mc");
}
if (((((_local1[_local2].friend1EMail != _local1[_local2].friend1EMailInit) && (_local1[_local2].friend1EMail != "")) && (_local1[_local2].friend1EMail.indexOf("@") != -1)) && (_local1[_local2].friend1EMail.indexOf(".") != -1)) && (_local1[_local2].friend1EMail.length > 7)) {
_local1[_local2].correctFields++;
_local1[_local2].fields.friend1EMail = _local1[_local2].friend1EMail;
} else {
_local1[_local2].inCorrectFields.push("friend1EMail_mc");
}
var i = 0;
while (i < _local1[_local2].extraChecksAmount_num) {
if (((((_local1[_local2][_local1[_local2].extraChecks[i]] != _local1[_local2][_local1[_local2].extraChecks[i] + "Init"]) && (_local1[_local2][_local1[_local2].extraChecks[i]] != "")) && (_local1[_local2][_local1[_local2].extraChecks[i]].indexOf("@") != -1)) && (_local1[_local2][_local1[_local2].extraChecks[i]].indexOf(".") != -1)) && (_local1[_local2][_local1[_local2].extraChecks[i]].length > 7)) {
_local1[_local2].correctFields++;
_local1[_local2].fields[_local1[_local2].extraChecks[i]] = _local1[_local2][_local1[_local2].extraChecks[i]];
} else {
var field = (_local1[_local2].extraChecks[i] + "_mc");
_local1[_local2].inCorrectFields.push(field);
}
i++;
}
trace("checkFieldAmount: " + _local1[_local2].checkFieldAmount);
if (_local1[_local2].correctFields == _local1[_local2].checkFieldAmount) {
sendRecommendation(submitUrl, _local1[_local2].fields, score);
} else {
_local1.clipName = _local1[_local2]._name;
getUserError(_local1[_local2].inCorrectFields, _local1.clipName);
}
}
function getUserError(errors) {
var _local2 = this;
_local2.gotoAndPlay("userError");
errorAmount = errors.length;
errors = errors;
_local2.userError_mc.ok_btn.setAsBtn();
_local2.userError_mc.ok_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
this._parent._parent.gotoAndPlay("userInput");
var _local1 = 0;
while (_local1 < errorAmount) {
trace("FEHLER IN FOLGENDEN FELDERN: " + errors[_local1]);
recommend_mc[errors[_local1]].error_mc.alphaTo(100, 1, undefined, 0.5);
_local1++;
}
};
}
function sendRecommendation(submitURL, inputs, score) {
var _local1 = inputs;
var _local2 = this;
_local2.gotoAndPlay("send");
response_lv = new LoadVars();
response_lv.onLoad = function (success) {
var _local1 = this;
if (success) {
trace("response: " + _local1.response);
_local1.response = Number(_local1.response);
switch (_local1.response) {
case 0 :
getServerError();
break;
case 1 :
userTracking("track_recommend");
getSuccess();
break;
default :
getServerError();
}
} else {
getServerError("kein connect zum script");
}
};
send_lv = new LoadVars();
for (i in _local1) {
send_lv[i] = _local1[i];
trace((("->> send: " + i) + " ") + send_lv[i]);
}
send_lv.fileLanguage = user.pData.fileLanguage;
var _local3 = pathToServer + "php/recommend.php";
send_lv.sendAndLoad(_local3, response_lv);
}
function getServerError() {
var _local1 = this;
_local1.gotoAndPlay("serverError");
_local1.serverError_mc.ok_btn.setAsBtn();
_local1.serverError_mc.ok_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
this._parent._parent.gotoAndPlay("userInput");
};
}
function getSuccess() {
var _local1 = this;
userTracking("track_recommend");
_local1.gotoAndPlay("success");
_local1.success_mc.ok_btn.setAsBtn("okBtn", "center");
_local1.success_mc.ok_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
this._parent._parent.gotoAndPlay("userInput");
user_so.data.friend1Name = null;
user_so.data.friend1EMail = null;
user_so.data.friend2Name = null;
user_so.data.friend2EMail = null;
user_so.data.friend3Name = null;
user_so.data.friend3EMail = null;
};
}
Symbol 382 MovieClip Frame 16
this.setRecommend();
Symbol 382 MovieClip Frame 17
stop();
Symbol 382 MovieClip Frame 25
Symbol 382 MovieClip Frame 26
stop();
Symbol 382 MovieClip Frame 33
this.success_mc.success_txt.getText("success", false, "center");
Symbol 382 MovieClip Frame 34
stop();
Symbol 382 MovieClip Frame 41
this.userError_mc.userError_txt.getText("userError", false, "center");
Symbol 382 MovieClip Frame 42
stop();
Symbol 382 MovieClip Frame 49
this.serverError_mc.serverError_txt.getText("serverError", false, true);
this.okBtn_mc.setAsBtn("okBtn");
Symbol 382 MovieClip Frame 50
stop();
Symbol 382 MovieClip Frame 67
this._parent.gotoAndPlay(this._parent.activeContent);
Symbol 400 MovieClip Frame 1
function setSupport() {
var _local1 = this;
_local1.gotoAndPlay("userInput");
_local1.support_mc.nickName_mc.extendTxtField("hier eintragen", 80, 100, 15);
_local1.support_mc.eMail_mc.extendTxtField("hier eintragen", 80, 100, 40);
_local1.support_mc.message_mc.extendTxtField("hier eintragen", 80, 100, 300);
_local1.support_mc.send_Btn.setAsBtn();
_local1.support_mc.send_Btn.onRelease = function () {
this.gotoAndPlay("onRelease");
var _local1 = ["nickName", "eMail", "message"];
validSupport(this._parent._name, _local1);
};
_local1.support_mc.nickName_mc.input_txt.tabIndex = 1;
_local1.support_mc.eMail_mc.input_txt.tabIndex = 2;
_local1.support_mc.message_mc.input_txt.tabIndex = 3;
}
function validSupport(mc, validFields) {
var _local1 = this;
var _local2 = mc;
_local1[_local2].paramAmount = validFields.length;
_local1[_local2].inCorrectFields = new Array();
_local1[_local2].correctFields = 0;
_local1[_local2].fields = new Object();
_local1[_local2].paramAmount = validFields.length;
trace((_local1[_local2].paramAmount + " <-- felder zu checken ") + validFields);
var _local3 = 0;
while (_local3 < _local1[_local2].paramAmount) {
_local1[_local2][validFields[_local3]] = _local1[_local2][validFields[_local3] + "_mc"].input_txt.text;
_local1[_local2][validFields[_local3] + "Init"] = _local1[_local2][validFields[_local3] + "_mc"].initText;
if (validFields[_local3] != "eMail") {
if ((_local1[_local2][validFields[_local3]] != _local1[_local2][validFields[_local3] + "Init"]) && (_local1[_local2][validFields[_local3]] != "")) {
_local1[_local2].correctFields++;
_local1[_local2].fields[validFields[_local3]] = _local1[_local2][validFields[_local3]];
} else {
_local1[_local2].errorField = validFields[_local3] + "_mc";
_local1[_local2].inCorrectFields.push(_local1[_local2].errorField);
}
}
_local3++;
}
if (((((_local1[_local2].eMail != _local1[_local2].eMailInit) && (_local1[_local2].eMail != "")) && (_local1[_local2].eMail.indexOf("@") != -1)) && (_local1[_local2].eMail.indexOf(".") != -1)) && (_local1[_local2].eMail.length > 7)) {
_local1[_local2].correctFields++;
_local1[_local2].fields.eMail = _local1[_local2].eMail;
} else {
_local1[_local2].inCorrectFields.push("eMail_mc");
}
trace("checkFieldAmount: " + _local1[_local2].paramAmount);
if (_local1[_local2].correctFields == _local1[_local2].paramAmount) {
trace("sendSupportMail");
submitSupport(_local1[_local2].fields);
} else {
trace("showErrorSupportMail");
_local1.clipName = _local1[_local2]._name;
trace(_local1[_local2].inCorrectFields);
showUserError(_local1[_local2].inCorrectFields, _local1.clipName);
}
}
function showUserError(errors, mc) {
var _local2 = this;
_local2.gotoAndPlay("user_error");
errorAmount = errors.length;
errors = errors;
trace(targetPath(_local2));
_local2.userError_mc.ok_Btn.setAsBtn();
_local2.userError_mc.ok_Btn.onRelease = function () {
this.gotoAndPlay("onRelease");
setSupport();
var _local1 = 0;
while (_local1 < errorAmount) {
trace("FEHLER IN FOLGENDEN FELDERN: " + errors[_local1]);
support_mc[errors[_local1]].error_mc.alphaTo(100, 1, undefined, 0.5);
_local1++;
}
};
}
function submitSupport(inputs) {
var _local2 = inputs;
var _local3 = this;
_local3.gotoAndPlay("send");
var response_lv = new LoadVars();
response_lv.onLoad = function (success) {
var _local1 = this;
if (success) {
trace("response: " + _local1.response);
_local1.response = Number(_local1.response);
switch (_local1.response) {
case 0 :
showServerError();
break;
case 1 :
userTracking("trackRecommend");
showSuccess();
}
} else {
showServerError("kein connect zum script");
}
};
var _local1 = new LoadVars();
for (i in _local2) {
_local1[i] = _local2[i];
trace((("->> send: " + i) + " ") + _local1[i]);
}
var submitURL = (pathToServer + "php/send_script.php");
_local1.sendAndLoad(submitURL, response_lv);
}
function showServerError() {
var _local1 = this;
_local1.gotoAndPlay("server_error");
_local1.serverError_mc.ok_Btn.setAsBtn("okBtn", "center");
_local1.serverError_mc.ok_Btn.onRelease = function () {
this.gotoAndPlay("onRelease");
setSupport();
};
}
function showSuccess() {
var _local1 = this;
_local1.gotoAndPlay("success");
user_so.data.message = null;
_local1.success_mc.ok_Btn.setAsBtn("okBtn", "center");
_local1.success_mc.ok_Btn.onRelease = function () {
var _local1 = this;
_local1.gotoAndPlay("onRelease");
user_so.data.message = null;
setSupport();
_local1._parent.nickName_mc.extendTxtField("hier eintragen", 80, 100, 15);
_local1._parent.eMail_mc.extendTxtField("hier eintragen", 80, 100, 40);
_local1._parent.message_mc.extendTxtField("hier eintragen", 80, 100, 300);
};
}
Symbol 400 MovieClip Frame 15
this.setSupport();
Symbol 400 MovieClip Frame 17
this.support_mc.intro_txt.getText("supportIntro", false, false);
this.support_mc.name_txt.getText("name", false, false);
this.support_mc.email_txt.getText("email", false, false);
this.support_mc.message_txt.getText("message", false, false);
Symbol 400 MovieClip Frame 18
stop();
Symbol 400 MovieClip Frame 26
this.send_mc.send_txt.getText("send", false, "center");
Symbol 400 MovieClip Frame 27
stop();
Symbol 400 MovieClip Frame 33
this.success_mc.success_txt.getText("success", false, "center");
Symbol 400 MovieClip Frame 34
stop();
this.gotoAndPlay("highScore_load");
Symbol 400 MovieClip Frame 41
this.userError_mc.userError_txt.getText("userError", false, "center");
Symbol 400 MovieClip Frame 42
stop();
Symbol 400 MovieClip Frame 50
this.serverError_mc.serverError_txt.getText("serverError", false, false);
Symbol 400 MovieClip Frame 51
stop();
Symbol 400 MovieClip Frame 68
this._parent.gotoAndPlay(this._parent.activeContent);
Symbol 405 MovieClip Frame 2
stop();
Symbol 405 MovieClip Frame 12
stop();
Symbol 405 MovieClip Frame 22
stop();
Symbol 405 MovieClip Frame 26
stop();
Symbol 405 MovieClip Frame 44
stop();
Symbol 405 MovieClip Frame 54
stop();
Symbol 412 MovieClip Frame 11
stop();
Symbol 412 MovieClip Frame 19
stop();
Symbol 412 MovieClip Frame 27
stop();
Symbol 418 MovieClip Frame 1
function checkLoginStatus() {
var _local1 = this;
trace("user.loginStatus: " + user.loginStatus);
if (user.loginStatus != "loggedIn") {
_local1.gotoAndPlay("notLoggedIn");
trace(("this._parent.endScreenMessage: " + _local1._parent.endScreenMessage) + targetPath(_local1));
_local1.finishTxt_mc.gotoAndPlay(_local1._parent.endScreenMessage);
_local1.loginFinish_mc.login_btn.setAsBtn("loginBtn", "center");
_local1.loginFinish_mc.cancel_btn.setAsBtn("cancelBtn", "center");
user.pData.sendScoreAfterLogin = true;
trace("checkLoginStatus: " + user.pData.sendScoreAfterLogin);
_local1.loginFinish_mc.login_btn.onRelease = function () {
var _local1 = this;
trace("login_btn");
_local1.gotoAndPlay("onRelease");
delete _local1._parent._parent._parent.navigation_mc.onRelease;
_local1._parent._parent._parent.navigation_mc.enabled = true;
_local1._parent._parent._parent.lastContent = "finish";
_local1._parent._parent._parent.navigation_mc.mainLogin_btn.onRelease();
trace("login: " + user.pData.sendScoreAfterLogin);
};
_local1.loginFinish_mc.cancel_btn.onRelease = function () {
var _local1 = this;
trace("cancel_btn: " + targetPath(_local1));
_local1.gotoAndPlay("onRelease");
_local1._parent._parent._parent.navigation_mc.mainGame_btn.gotoAndPlay("onRollOut");
_local1._parent._parent._parent.navigation_mc.mainGame_btn.enabled = true;
_local1._parent._parent._parent.selectedNaviButton = null;
_local1._parent._parent._parent.activeContent = "contentIsLoaded";
_local1._parent._parent._parent.carsOut = false;
_local1._parent._parent.gotoAndPlay("out");
};
} else {
user.pData.sendScoreAfterLogin = false;
trace("user.pData.newScore: " + user.pData.newScore);
trace("user.pData.oldScore: " + user.pData.oldScore);
if (user.pData.newScore > user.pData.oldScore) {
setScore();
} else if (user.pData.newScore <= user.pData.oldScore) {
getNoNewScore();
}
}
}
function setScore() {
var _local2 = this;
_local2.gotoAndPlay("send");
var _local3 = new LoadVars();
_local3.onLoad = function (success) {
var _local1 = this;
if (success) {
trace(_local1);
trace("response: " + _local1.response);
trace("rankPos: " + _local1.rankPos);
_local1.response = Number(_local1.response);
switch (_local1.response) {
case 0 :
getError();
break;
case 5 :
user.pData.oldScore = user.pData.newScore;
trace("user.pData.newScore: " + user.pData.newScore);
trace("user.pData.oldScore: " + user.pData.oldScore);
user.pData.newScore = 0;
trace("user.pData.newScore: " + user.pData.newScore);
getSuccess();
break;
case 6 :
getNoNewScore();
}
} else {
getError();
}
};
var _local1 = new LoadVars();
_local1.nickName = user.pData.nickName;
_local1.score = user.pData.newScore;
_local1.country = user.pData.country;
trace((("send: nickName: " + _local1.nickName) + " score: ") + _local1.score);
var submitScoreURL = (pathToServer + "php/score_check.php");
_local1.sendAndLoad(submitScoreURL, _local3, "POST");
}
function getNoNewScore() {
var _local1 = this;
_local1.gotoAndPlay("notImproved");
trace(("this._parent.endScreenMessage: " + _local1._parent.endScreenMessage) + targetPath(_local1));
_local1.finishTxt_mc.gotoAndPlay(_local1._parent.endScreenMessage);
_local1.notImproved_mc.again_btn.setAsBtn("againBtn", "center");
_local1.notImproved_mc.again_btn.onRelease = function () {
var _local1 = this;
_local1.gotoAndPlay("onRelease");
_local1._parent._parent._parent.lastContent = "finish";
_local1._parent._parent._parent.navigation_mc.mainGame_btn.onRelease();
};
_local1.notImproved_mc.ok_btn.setAsBtn("okBtn", "center");
_local1.notImproved_mc.ok_btn.onRelease = function () {
var _local1 = this;
_local1.gotoAndPlay("onRelease");
_local1._parent._parent._parent.lastContent = "finish";
_local1._parent._parent._parent.navigation_mc.mainHighScore_btn.onRelease();
};
}
function getSuccess() {
var _local1 = this;
_local1.gotoAndPlay("improved");
trace(("this._parent.endScreenMessage: " + _local1._parent.endScreenMessage) + targetPath(_local1));
_local1.finishTxt_mc.gotoAndPlay(_local1._parent.endScreenMessage);
_local1.improved_mc.ok_btn.setAsBtn("okBtn", "center");
_local1.improved_mc.ok_btn.onRelease = function () {
var _local1 = this;
_local1.gotoAndPlay("onRelease");
_local1._parent._parent._parent.lastContent = "finish";
_local1._parent._parent._parent.navigation_mc.mainHighScore_btn.onRelease();
};
}
this._parent.lastContent = "finish";
Symbol 418 MovieClip Frame 13
this.checkLoginStatus();
Symbol 418 MovieClip Frame 14
stop();
Symbol 418 MovieClip Frame 16
stop();
Symbol 418 MovieClip Frame 28
stop();
Symbol 418 MovieClip Frame 37
stop();
Symbol 418 MovieClip Frame 48
stop();
Symbol 418 MovieClip Frame 56
stop();
Symbol 418 MovieClip Frame 73
trace("play finish: " + this._parent.activeContent);
this._parent.navigation_mc[("main" + this._parent.activeContent) + "_btn"].gotoAndPlay("onRelease");
this._parent.navigation_mc[("main" + this._parent.activeContent) + "_btn"].enabled = false;
this._parent.gotoAndPlay(this._parent.activeContent);
Symbol 418 MovieClip Frame 74
stop();
Symbol 424 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 427 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 430 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 433 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 436 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 439 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 442 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 444 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 446 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 465 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 468 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 471 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 474 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 477 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 480 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 483 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 486 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 489 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 492 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 495 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 498 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 501 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 504 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 507 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 510 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 513 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 532 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "exit";
this.exitChar = _parent._parent.exitChar;
if (myColumn <= 6) {
this.dir = "R";
} else {
this.dir = "L";
}
jumpTo = (this.exitChar + "Stand") + this.dir;
gotoAndPlay(jumpTo);
this.exit = function () {
jumpTo = (this.exitChar + "Exit") + this.dir;
gotoAndPlay(jumpTo);
};
Symbol 532 MovieClip Frame 3
stop();
Symbol 532 MovieClip Frame 12
stop();
Symbol 532 MovieClip Frame 21
stop();
Symbol 532 MovieClip Frame 29
stop();
Symbol 532 MovieClip Frame 37
stop();
Symbol 532 MovieClip Frame 47
stop();
Symbol 532 MovieClip Frame 57
stop();
Symbol 532 MovieClip Frame 66
stop();
Symbol 550 MovieClip Frame 1
this.pInit = function () {
var _local1 = this;
var _local2 = _parent;
myColumn = Math.floor(_local1._x / _local2._parent.tileWidth);
myRow = Math.floor(_local1._y / _local2._parent.tileHeight);
_local1._name = (("pickup" + myColumn) + "x") + myRow;
_local1._x = myColumn * _local2._parent.tileWidth;
_local1._y = myRow * _local2._parent.tileHeight;
myDepth = (10000 + (myRow * 15)) + myColumn;
_local1.swapDepths(myDepth);
tileName = (("tile" + myColumn) + "x") + myRow;
_local2[tileName].tileType = "pickup";
};
this.pInit();
this.setPMode = function (newMode, dir) {
var _local1 = _parent;
var _local2 = this;
if (newMode == "pickup") {
tileName = (("tile" + myColumn) + "x") + myRow;
_local1[tileName].tileType = "ground";
_local1.attachMovie("pickup_logo_anim", "pickup_logo_anim", 65001);
_local1.pickup_logo_anim._x = _local2._x;
_local1.pickup_logo_anim._y = _local2._y;
_local2.gotoAndPlay("clear");
myRoot.levelScoreUpdate(myRoot.pickupScore);
}
};
Symbol 550 MovieClip Frame 11
stop();
Symbol 550 MovieClip Frame 20
stop();
Symbol 554 MovieClip Frame 1
this.pInit = function () {
var _local1 = this;
var _local2 = _parent;
myColumn = Math.floor(_local1._x / _local2._parent.tileWidth);
myRow = Math.floor(_local1._y / _local2._parent.tileHeight);
_local1._name = (("pickup" + myColumn) + "x") + myRow;
_local1._x = myColumn * _local2._parent.tileWidth;
_local1._y = myRow * _local2._parent.tileHeight;
myDepth = (10000 + (myRow * 15)) + myColumn;
_local1.swapDepths(myDepth);
tileName = (("tile" + myColumn) + "x") + myRow;
_local2[tileName].tileType = "pickup";
};
this.pInit();
this.setPMode = function (newMode, dir) {
var _local1 = _parent;
var _local2 = this;
if (newMode == "pickup") {
tileName = (("tile" + myColumn) + "x") + myRow;
_local1[tileName].tileType = "ground";
_local1.attachMovie("pickup_logo_anim", "pickup_logo_anim", 65001);
_local1.pickup_logo_anim._x = _local2._x;
_local1.pickup_logo_anim._y = _local2._y;
_local2.gotoAndPlay("clear");
myRoot.levelScoreUpdate(myRoot.pickupScore);
}
};
Symbol 554 MovieClip Frame 11
stop();
Symbol 554 MovieClip Frame 20
stop();
Symbol 598 MovieClip Frame 10
stop();
Symbol 611 MovieClip Frame 24
stop();
Symbol 629 MovieClip Frame 60
stop();
Symbol 688 MovieClip Frame 24
stop();
Symbol 694 MovieClip Frame 60
stop();
Symbol 695 MovieClip Frame 1
this._name = "player_mc";
this.pInit = function () {
var _local1 = this;
var _local2 = _parent;
_local1.pChar = _local2._parent.pChar;
_local1.pRunSpeed = 3;
_local1.pJumpSpeed = 4;
_local1.tileWidth = _local2._parent.tileWidth;
_local1.tileHeight = _local2._parent.tileHeight;
_local1._x = (_local1.getColumn() * tileWidth) + (tileWidth / 2);
_local1._y = (_local1.getRow() * tileHeight) + (tileHeight / 2);
_local1.pXaim = _local1._x;
_local1.pYaim = _local1._y;
_local1.pRunToAim = false;
_local1.pushTime = 12;
_local1.exitTime = 60;
_local1.deadTime = 60;
_local1.swapDepths(65000);
myRoot.levelInit();
};
var k_up = 38;
var k_down = 40;
var k_left = 37;
var k_right = 39;
this.checkKeys = function () {
var _local1 = 0;
if (Key.isDown(k_up)) {
_local1 = _local1 + 1;
}
if (Key.isDown(k_down)) {
_local1 = _local1 + 2;
}
if (Key.isDown(k_left)) {
_local1 = _local1 + 4;
}
if (Key.isDown(k_right)) {
_local1 = _local1 + 8;
}
return(_local1);
};
this.getColumn = function () {
return(Math.floor(this._x / this.tileWidth));
};
this.getRow = function () {
return(Math.floor(this._y / this.tileHeight));
};
this.pColl = function (columnOffset, rowOffset) {
column = this.getColumn() + columnOffset;
row = this.getRow() + rowOffset;
tileName = (("tile" + column) + "x") + row;
return(_parent[tileName].tileType);
};
this.getStoneName = function (columnOffset, rowOffset) {
column = this.getColumn() + columnOffset;
row = this.getRow() + rowOffset;
tileName = (("stone" + column) + "x") + row;
return(tileName);
};
this.getCubeName = function (columnOffset, rowOffset) {
column = this.getColumn() + columnOffset;
row = this.getRow() + rowOffset;
tileName = (("cube" + column) + "x") + row;
return(tileName);
};
this.checkEnemy = function () {
column = this.getColumn();
row = this.getRow();
tileName = (("tile" + column) + "x") + row;
return(_parent[tileName].enemy);
};
this.checkPickup = function () {
column = this.getColumn();
row = this.getRow();
tileName = (("tile" + column) + "x") + row;
if (_parent[tileName].tileType == "pickup") {
pickupName = (("pickup" + column) + "x") + row;
_parent[pickupName].setPMode("pickup");
}
};
this.setRunValues = function (dir) {
var _local1 = this;
var _local2 = dir;
if (_local2 == "U") {
_local1.pYspeed = _local1.pRunSpeed * -1;
_local1.pYaim = _local1._y - _local1.tileWidth;
} else if (_local2 == "D") {
_local1.pYspeed = _local1.pRunSpeed;
_local1.pYaim = _local1._y + _local1.tileWidth;
} else if (_local2 == "L") {
_local1.pXspeed = _local1.pRunSpeed * -1;
_local1.pXaim = _local1._x - _local1.tileWidth;
} else if (_local2 == "R") {
_local1.pXspeed = _local1.pRunSpeed;
_local1.pXaim = _local1._x + _local1.tileWidth;
}
_local1.pRunToAim = true;
jumpTo = (_local1.pChar + "Run") + _local2;
gotoAndPlay(jumpTo);
};
this.setJumpValues = function (dir) {
var _local1 = this;
var _local2 = dir;
if (_local2 == "U") {
_local1.pYspeed = _local1.pJumpSpeed * -1;
_local1.pYaim = _local1._y - (_local1.tileWidth * 2);
} else if (_local2 == "D") {
_local1.pYspeed = _local1.pJumpSpeed;
_local1.pYaim = _local1._y + (_local1.tileWidth * 2);
} else if (_local2 == "L") {
_local1.pXspeed = _local1.pJumpSpeed * -1;
_local1.pXaim = _local1._x - (_local1.tileWidth * 2);
} else if (_local2 == "R") {
_local1.pXspeed = _local1.pJumpSpeed;
_local1.pXaim = _local1._x + (_local1.tileWidth * 2);
}
_local1.pJumpToAim = true;
jumpTo = _local1.pChar + "Jump";
gotoAndPlay(jumpTo);
};
this.setPMode = function (newMode, dir) {
var _local1 = this;
var _local2 = _parent;
if (newMode == "stand") {
_local1.pMode = function () {
var _local1 = this;
if (_local1.checkEnemy() != "none") {
_local1.setPMode("dead");
} else {
var _local2 = _local1.checkKeys();
if ((_local2 & 3) == 3) {
gotoAndPlay(_local1.pChar + "StandR");
} else if ((_local2 & 12) == 12) {
gotoAndPlay(_local1.pChar + "StandR");
} else if ((_local2 & 1) && (_local1.pColl(0, -1) == "ground")) {
_local1.setPMode("run", "U");
} else if ((_local2 & 2) && (_local1.pColl(0, 1) == "ground")) {
_local1.setPMode("run", "D");
} else if ((_local2 & 4) && (_local1.pColl(-1, 0) == "ground")) {
_local1.setPMode("run", "L");
} else if ((_local2 & 8) && (_local1.pColl(1, 0) == "ground")) {
_local1.setPMode("run", "R");
} else if ((_local2 & 1) && (_local1.pColl(0, -1) == "stone")) {
_local1.setPMode("pushStone", "U");
} else if ((_local2 & 2) && (_local1.pColl(0, 1) == "stone")) {
_local1.setPMode("pushStone", "D");
} else if ((_local2 & 4) && (_local1.pColl(-1, 0) == "stone")) {
_local1.setPMode("pushStone", "L");
} else if ((_local2 & 8) && (_local1.pColl(1, 0) == "stone")) {
_local1.setPMode("pushStone", "R");
} else if ((_local2 & 1) && (_local1.pColl(0, -1) == "cube")) {
_local1.setPMode("pushCube", "U");
} else if ((_local2 & 2) && (_local1.pColl(0, 1) == "cube")) {
_local1.setPMode("pushCube", "D");
} else if ((_local2 & 4) && (_local1.pColl(-1, 0) == "cube")) {
_local1.setPMode("pushCube", "L");
} else if ((_local2 & 8) && (_local1.pColl(1, 0) == "cube")) {
_local1.setPMode("pushCube", "R");
} else if ((_local2 & 1) && (_local1.pColl(0, -1) == "pickup")) {
_local1.setPMode("run", "U");
} else if ((_local2 & 2) && (_local1.pColl(0, 1) == "pickup")) {
_local1.setPMode("run", "D");
} else if ((_local2 & 4) && (_local1.pColl(-1, 0) == "pickup")) {
_local1.setPMode("run", "L");
} else if ((_local2 & 8) && (_local1.pColl(1, 0) == "pickup")) {
_local1.setPMode("run", "R");
} else if ((_local2 & 1) && (_local1.pColl(0, -1) == "jump")) {
_local1.setPMode("jump", "U");
} else if ((_local2 & 2) && (_local1.pColl(0, 1) == "jump")) {
_local1.setPMode("jump", "D");
} else if ((_local2 & 4) && (_local1.pColl(-1, 0) == "jump")) {
_local1.setPMode("jump", "L");
} else if ((_local2 & 8) && (_local1.pColl(1, 0) == "jump")) {
_local1.setPMode("jump", "R");
} else if ((_local2 & 1) && (_local1.pColl(0, -1) == "exit")) {
_local1.setPMode("exit", "R");
} else if ((_local2 & 2) && (_local1.pColl(0, 1) == "exit")) {
_local1.setPMode("exit", "R");
} else if ((_local2 & 4) && (_local1.pColl(-1, 0) == "exit")) {
_local1.setPMode("exit", "L");
} else if ((_local2 & 8) && (_local1.pColl(1, 0) == "exit")) {
_local1.setPMode("exit", "R");
} else {
if (dir == "L") {
jumpTo = _local1.pChar + "StandL";
} else {
jumpTo = _local1.pChar + "StandR";
}
gotoAndPlay(jumpTo);
}
}
};
} else if (newMode == "run") {
_local1.setRunValues(dir);
_local1.pMode = function () {
var _local1 = this;
if (_local1.checkEnemy() != "none") {
_local1.setPMode("dead");
} else if (pRunToAim == true) {
_local1._x = _local1._x + pXspeed;
_local1._y = _local1._y + pYspeed;
distX = _local1._x - _local1.pXaim;
distY = _local1._y - _local1.pYaim;
if (distX != 0) {
if (distX < 0) {
distX = distX * -1;
}
if (distX <= _local1.pRunSpeed) {
_local1.pRunToAim = false;
}
} else if (distY != 0) {
if (distY < 0) {
distY = distY * -1;
}
if (distY <= _local1.pRunSpeed) {
_local1.pRunToAim = false;
}
}
} else if (pRunToAim == false) {
_local1.checkPickup();
_local1.pXspeed = 0;
_local1.pYspeed = 0;
_local1._x = _local1.pXaim;
_local1._y = _local1.pYaim;
var _local2 = _local1.checkKeys();
if ((_local2 & 3) == 3) {
_local1.setPMode("stand", dir);
} else if ((_local2 & 12) == 12) {
_local1.setPMode("stand", dir);
} else if ((_local2 & 1) && (_local1.pColl(0, -1) == "ground")) {
_local1.setRunValues("U");
} else if ((_local2 & 2) && (_local1.pColl(0, 1) == "ground")) {
_local1.setRunValues("D");
} else if ((_local2 & 4) && (_local1.pColl(-1, 0) == "ground")) {
_local1.setRunValues("L");
} else if ((_local2 & 8) && (_local1.pColl(1, 0) == "ground")) {
_local1.setRunValues("R");
} else {
_local1.setPMode("stand", dir);
}
}
};
} else if (newMode == "pushStone") {
var _local3 = _local1.checkKeys();
if ((_local3 & 3) == 3) {
_local1.setPMode("stand", dir);
} else if ((_local3 & 12) == 12) {
_local1.setPMode("stand", dir);
} else if ((_local3 & 1) && (_local1.pColl(0, -1) == "stone")) {
stoneName = _local1.getStoneName(0, -1);
_local2[stoneName].setSMode("roll", "U");
jumpTo = (_local1.pChar + "Push") + dir;
gotoAndPlay(jumpTo);
} else if ((_local3 & 2) && (_local1.pColl(0, 1) == "stone")) {
stoneName = _local1.getStoneName(0, 1);
_local2[stoneName].setSMode("roll", "D");
jumpTo = (_local1.pChar + "Push") + dir;
gotoAndPlay(jumpTo);
} else if ((_local3 & 4) && (_local1.pColl(-1, 0) == "stone")) {
stoneName = _local1.getStoneName(-1, 0);
_local2[stoneName].setSMode("roll", "L");
jumpTo = (_local1.pChar + "Push") + dir;
gotoAndPlay(jumpTo);
} else if ((_local3 & 8) && (_local1.pColl(1, 0) == "stone")) {
stoneName = _local1.getStoneName(1, 0);
_local2[stoneName].setSMode("roll", "R");
jumpTo = (_local1.pChar + "Push") + dir;
gotoAndPlay(jumpTo);
}
_local1.pushCount = pushTime;
_local1.pMode = function () {
var _local1 = this;
if (_local1.pushCount <= 0) {
gotoAndPlay(_local1.pChar + "StandR");
_local1.setPMode("stand", dir);
} else {
_local1.pushCount--;
}
};
} else if (newMode == "pushCube") {
var _local3 = _local1.checkKeys();
if ((_local3 & 3) == 3) {
_local1.setPMode("stand", dir);
} else if ((_local3 & 12) == 12) {
_local1.setPMode("stand", dir);
} else if ((_local3 & 1) && (_local1.pColl(0, -1) == "cube")) {
cubeName = _local1.getCubeName(0, -1);
_local2[cubeName].setSMode("flip", "U");
jumpTo = (_local1.pChar + "Push") + dir;
gotoAndPlay(jumpTo);
} else if ((_local3 & 2) && (_local1.pColl(0, 1) == "cube")) {
cubeName = _local1.getCubeName(0, 1);
_local2[cubeName].setSMode("flip", "D");
jumpTo = (_local1.pChar + "Push") + dir;
gotoAndPlay(jumpTo);
} else if ((_local3 & 4) && (_local1.pColl(-1, 0) == "cube")) {
cubeName = _local1.getCubeName(-1, 0);
_local2[cubeName].setSMode("flip", "L");
jumpTo = (_local1.pChar + "Push") + dir;
gotoAndPlay(jumpTo);
} else if ((_local3 & 8) && (_local1.pColl(1, 0) == "cube")) {
cubeName = _local1.getCubeName(1, 0);
_local2[cubeName].setSMode("flip", "R");
jumpTo = (_local1.pChar + "Push") + dir;
gotoAndPlay(jumpTo);
}
_local1.pushCount = pushTime;
_local1.pMode = function () {
var _local1 = this;
if (_local1.pushCount <= 0) {
gotoAndPlay(_local1.pChar + "StandR");
_local1.setPMode("stand", dir);
} else {
_local1.pushCount--;
}
};
} else if (newMode == "jump") {
_local1.setRunValues(dir);
_local1.pMode = function () {
var _local1 = this;
if (pRunToAim == true) {
_local1._x = _local1._x + pXspeed;
_local1._y = _local1._y + pYspeed;
distX = _local1._x - _local1.pXaim;
distY = _local1._y - _local1.pYaim;
if (distX != 0) {
if (distX < 0) {
distX = distX * -1;
}
if (distX <= _local1.pRunSpeed) {
_local1.pXspeed = 0;
_local1._x = _local1.pXaim;
_local1.pRunToAim = false;
_local1.pStartJump = true;
}
} else if (distY != 0) {
if (distY < 0) {
distY = distY * -1;
}
if (distY <= _local1.pRunSpeed) {
_local1.pYspeed = 0;
_local1._y = _local1.pYaim;
_local1.pRunToAim = false;
_local1.pStartJump = true;
}
}
} else if (_local1.pStartJump == true) {
column = _local1.getColumn() + columnOffset;
row = _local1.getRow() + rowOffset;
tileName = (("tile" + column) + "x") + row;
_parent[tileName].gotoAndPlay("jump");
jumpTo = _local1.pChar + "Jump";
gotoAndPlay(jumpTo);
_local1.pStartJump = false;
_local1.setJumpValues(dir);
} else if (_local1.pJumpToAim == true) {
_local1._x = _local1._x + pXspeed;
_local1._y = _local1._y + pYspeed;
distX = _local1._x - _local1.pXaim;
distY = _local1._y - _local1.pYaim;
if (distX != 0) {
if (distX < 0) {
distX = distX * -1;
}
if (distX <= _local1.pJumpSpeed) {
_local1.pXspeed = 0;
_local1._x = _local1.pXaim;
_local1.pJumpToAim = false;
}
} else if (distY != 0) {
if (distY < 0) {
distY = distY * -1;
}
if (distY <= _local1.pJumpSpeed) {
_local1.pYspeed = 0;
_local1._y = _local1.pYaim;
_local1.pJumpToAim = false;
}
}
} else if (_local1.pColl(0, 0) == "jump") {
trace("jump again");
_local1.pStartJump = true;
} else if (_local1.pColl(0, 0) != "ground") {
_local1.setPMode("dead");
} else {
_local1.setPMode("stand");
}
};
} else if (newMode == "exit") {
myRoot.stopTimer();
jumpTo = (_local1.pChar + "Exit") + dir;
gotoAndPlay(jumpTo);
if (dir == "L") {
column = _local1.getColumn() - 1;
} else if (dir == "R") {
column = _local1.getColumn() + 1;
}
row = _local1.getRow();
exitName = (("tile" + column) + "x") + row;
_local2[exitName].exit();
_local2.attachMovie("hearts_anim", "hearts_anim", 65002);
if (dir == "L") {
_local2.hearts_anim._x = _local1._x - (tileWidth / 2);
} else {
_local2.hearts_anim._x = _local1._x + (tileWidth / 2);
}
_local2.hearts_anim._y = _local1._y;
_local1.exitCount = exitTime;
_local1.pMode = function () {
var _local1 = this;
if (_local1.exitCount <= 0) {
_parent._parent.exitLevel();
delete _local1.onEnterFrame;
} else {
_local1.exitCount--;
}
};
} else if (newMode == "dead") {
myRoot.stopTimer();
jumpTo = _local1.pChar + "Dead";
gotoAndPlay(jumpTo);
_local1.deadCount = deadTime;
_local1.pMode = function () {
var _local1 = this;
if (_local1.deadCount <= 0) {
delete _local1.onEnterFrame;
myRoot.pDead();
} else {
_local1.deadCount--;
}
};
}
};
this.pInit();
this.setPMode("stand");
this.onEnterFrame = function () {
this.pMode();
};
Symbol 695 MovieClip Frame 3
stop();
Symbol 695 MovieClip Frame 13
stop();
Symbol 695 MovieClip Frame 23
stop();
Symbol 695 MovieClip Frame 32
stop();
Symbol 695 MovieClip Frame 41
stop();
Symbol 695 MovieClip Frame 50
stop();
Symbol 695 MovieClip Frame 59
stop();
Symbol 695 MovieClip Frame 68
stop();
Symbol 695 MovieClip Frame 77
stop();
Symbol 695 MovieClip Frame 86
stop();
Symbol 695 MovieClip Frame 95
stop();
Symbol 695 MovieClip Frame 103
stop();
Symbol 695 MovieClip Frame 113
stop();
Symbol 695 MovieClip Frame 121
stop();
Symbol 695 MovieClip Frame 143
stop();
Symbol 695 MovieClip Frame 153
stop();
Symbol 695 MovieClip Frame 163
stop();
Symbol 695 MovieClip Frame 172
stop();
Symbol 695 MovieClip Frame 181
stop();
Symbol 695 MovieClip Frame 190
stop();
Symbol 695 MovieClip Frame 199
stop();
Symbol 695 MovieClip Frame 208
stop();
Symbol 695 MovieClip Frame 217
stop();
Symbol 695 MovieClip Frame 226
stop();
Symbol 695 MovieClip Frame 235
stop();
Symbol 695 MovieClip Frame 243
stop();
Symbol 695 MovieClip Frame 253
stop();
Symbol 695 MovieClip Frame 261
stop();
Symbol 698 MovieClip Frame 11
stop();
Symbol 701 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 704 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 707 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 718 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "pit";
this.enemy = "none";
Symbol 718 MovieClip Frame 2
stop();
Symbol 718 MovieClip Frame 14
this.tileType = "ground";
Symbol 718 MovieClip Frame 21
stop();
Symbol 739 MovieClip Frame 13
stop();
Symbol 740 MovieClip Frame 1
this.sInit = function () {
var _local1 = this;
var _local2 = _parent;
myColumn = Math.floor(_local1._x / _local2._parent.tileWidth);
myRow = Math.floor(_local1._y / _local2._parent.tileHeight);
_local1._name = (("stone" + myColumn) + "x") + myRow;
_local1._x = myColumn * _local2._parent.tileWidth;
_local1._y = myRow * _local2._parent.tileHeight;
myDepth = (10000 + (myRow * 15)) + myColumn;
_local1.swapDepths(myDepth);
tileName = (("tile" + myColumn) + "x") + myRow;
_local2[tileName].tileType = "stone";
_local1.rollSpeed = 5;
_local1.sRollToAim = false;
_local1.sXaim = _local1._x;
_local1.sYaim = _local1._y;
_local1.sXspeed = 0;
_local1.sYspeed = 0;
_local1.stoneXcoll = 0;
_local1.stoneYcoll = 0;
_local1.tileWidth = _local2._parent.tileWidth;
};
this.sInit();
this.sColl = function (columnOffset, rowOffset) {
var _local1 = _parent;
column = Math.floor(this._x / _local1._parent.tileWidth) + columnOffset;
row = Math.floor(this._y / _local1._parent.tileHeight) + rowOffset;
tileName = (("tile" + column) + "x") + row;
return(_local1[tileName].tileType);
};
this.getTileName = function (columnOffset, rowOffset) {
column = Math.floor(this._x / _parent._parent.tileWidth) + columnOffset;
row = Math.floor(this._y / _parent._parent.tileHeight) + rowOffset;
tileName = (("tile" + column) + "x") + row;
return(tileName);
};
this.checkEnemy = function () {
var _local1 = _parent;
column = Math.floor(this._x / _local1._parent.tileWidth) + columnOffset;
row = Math.floor(this._y / _local1._parent.tileHeight) + rowOffset;
tileName = (("tile" + column) + "x") + row;
return(_local1[tileName].enemy);
};
this.setSMode = function (newMode, dir) {
var _local1 = this;
var _local2 = newMode;
var _local3 = _parent;
if (_local2 == "roll") {
trace("stone: " + _local2);
tileName = (("tile" + myColumn) + "x") + myRow;
_local3[tileName].tileType = "ground";
jumpTo = "roll" + dir;
_local1.gotoAndPlay(jumpTo);
_local1.onEnterFrame = function () {
var _local1 = this;
if (_local1.checkEnemy() != "none") {
enemyName = _local1.checkEnemy();
_parent[enemyName].setSnakeMode("dead");
}
if (_local1.sRollToAim == false) {
if (dir == "U") {
_local1.typeOfTile = _local1.sColl(0, -1);
_local1.sYspeed = rollSpeed * -1;
_local1.sYaim = _local1._y - _local1.tileWidth;
} else if (dir == "D") {
_local1.typeOfTile = _local1.sColl(0, 1);
_local1.sYspeed = rollSpeed;
_local1.sYaim = _local1._y + _local1.tileWidth;
} else if (dir == "L") {
_local1.typeOfTile = _local1.sColl(-1, 0);
_local1.sXspeed = rollSpeed * -1;
_local1.sXaim = _local1._x - _local1.tileWidth;
} else if (dir == "R") {
_local1.typeOfTile = _local1.sColl(1, 0);
_local1.sXspeed = rollSpeed;
_local1.sXaim = _local1._x + _local1.tileWidth;
}
if (_local1.typeOfTile == "ground") {
_local1.sRollToAim = true;
} else if (_local1.typeOfTile == "pit") {
_local1.setSMode("pit");
} else {
_local1.setSMode("stop");
}
} else if (_local1.sRollToAim == true) {
_local1._x = _local1._x + sXspeed;
_local1._y = _local1._y + sYspeed;
if ((_local1._y == _local1.sYaim) && (_local1._x == _local1.sXaim)) {
sXspeed = 0;
sYspeed = 0;
sRollToAim = false;
}
}
};
} else if (_local2 == "pit") {
trace("stone: " + _local2);
_local1.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x + sXspeed;
_local1._y = _local1._y + sYspeed;
if ((_local1._y == _local1.sYaim) && (_local1._x == _local1.sXaim)) {
tileName = _local1.getTileName(0, 0);
_parent[tileName].gotoAndPlay("close");
_local1.gotoAndPlay("clear");
_local1._name = _local1._name + "inactive";
delete _local1.onEnterFrame;
}
};
} else if (_local2 == "stop") {
trace("stone: " + _local2);
_local1.gotoAndPlay("stop");
_local1.sInit();
delete _local1.onEnterFrame;
}
};
Symbol 740 MovieClip Frame 2
stop();
Symbol 740 MovieClip Frame 8
stop();
Symbol 740 MovieClip Frame 13
stop();
Symbol 740 MovieClip Frame 18
stop();
Symbol 740 MovieClip Frame 23
stop();
Symbol 740 MovieClip Frame 28
stop();
Symbol 740 MovieClip Frame 33
stop();
Symbol 759 MovieClip Frame 8
stop();
Symbol 760 MovieClip Frame 1
this.sInit = function () {
var _local1 = this;
var _local2 = _parent;
myColumn = Math.floor(_local1._x / _local2._parent.tileWidth);
myRow = Math.floor(_local1._y / _local2._parent.tileHeight);
_local1._name = (("cube" + myColumn) + "x") + myRow;
_local1._x = myColumn * _local2._parent.tileWidth;
_local1._y = myRow * _local2._parent.tileHeight;
myDepth = (10000 + (myRow * 15)) + myColumn;
_local1.swapDepths(myDepth);
_local1.sRollToAim = false;
_local1.sXaim = _local1._x;
_local1.sYaim = _local1._y;
_local1.sXspeed = 0;
_local1.sYspeed = 0;
};
this.rollSpeed = 5;
this.tileWidth = _parent._parent.tileWidth;
this.sInit();
this.getTileName = function (columnOffset, rowOffset) {
column = Math.floor(this._x / _parent._parent.tileWidth) + columnOffset;
row = Math.floor(this._y / _parent._parent.tileHeight) + rowOffset;
tileName = (("tile" + column) + "x") + row;
return(tileName);
};
this.sColl = function (columnOffset, rowOffset) {
tileName = getTileName(columnOffset, rowOffset);
return(_parent[tileName].tileType);
};
this.checkEnemy = function (columnOffset, rowOffset) {
tileName = getTileName(columnOffset, rowOffset);
return(_parent[tileName].enemy);
};
this.setSMode = function (newMode, dir) {
var _local1 = this;
var _local2 = _parent;
if (newMode == "flip") {
oldTileName = _local1.getTileName();
jumpTo = "roll" + dir;
_local1.gotoAndPlay(jumpTo);
if (dir == "U") {
_local1.typeOfTile = _local1.sColl(0, -1);
_local1.sYspeed = rollSpeed * -1;
_local1.sYaim = _local1._y - _local1.tileWidth;
} else if (dir == "D") {
_local1.typeOfTile = _local1.sColl(0, 1);
_local1.sYspeed = rollSpeed;
_local1.sYaim = _local1._y + _local1.tileWidth;
} else if (dir == "L") {
_local1.typeOfTile = _local1.sColl(-1, 0);
_local1.sXspeed = rollSpeed * -1;
_local1.sXaim = _local1._x - _local1.tileWidth;
} else if (dir == "R") {
_local1.typeOfTile = _local1.sColl(1, 0);
_local1.sXspeed = rollSpeed;
_local1.sXaim = _local1._x + _local1.tileWidth;
}
if (_local1.typeOfTile == "ground") {
_local1.onEnterFrame = function () {
var _local1 = this;
var _local2 = _parent;
if (dir == "U") {
_local1.enemy = _local1.checkEnemy(0, 0);
} else if (dir == "D") {
_local1.enemy = _local1.checkEnemy(0, 1);
} else if (dir == "L") {
_local1.enemy = _local1.checkEnemy(0, 0);
} else if (dir == "R") {
_local1.enemy = _local1.checkEnemy(1, 0);
}
if (_local1.enemy != "none") {
_local2[_local1.enemy].setSnakeMode("dead");
}
_local1._x = _local1._x + sXspeed;
_local1._y = _local1._y + sYspeed;
if ((_local1._y == _local1.sYaim) && (_local1._x == _local1.sXaim)) {
_local1.setSMode("stop");
_local2[oldTileName].tileType = "ground";
tileName = _local1.getTileName();
_local2[tileName].tileType = "cube";
}
};
} else {
_local1.setSMode("stop");
}
} else if (newMode == "stop") {
_local1.gotoAndPlay("stop");
_local1.sInit();
delete _local1.onEnterFrame;
}
};
tileName = this.getTileName();
_parent[tileName].tileType = "cube";
Symbol 760 MovieClip Frame 2
stop();
Symbol 760 MovieClip Frame 8
stop();
Symbol 760 MovieClip Frame 13
stop();
Symbol 760 MovieClip Frame 18
stop();
Symbol 760 MovieClip Frame 23
stop();
Symbol 760 MovieClip Frame 28
stop();
Symbol 760 MovieClip Frame 33
stop();
Symbol 764 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "block";
Symbol 768 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "ground";
this.enemy = "none";
Symbol 780 MovieClip Frame 1
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 780 MovieClip Frame 5
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 780 MovieClip Frame 9
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 780 MovieClip Frame 13
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 780 MovieClip Frame 17
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 780 MovieClip Frame 21
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 790 MovieClip Frame 1
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 790 MovieClip Frame 5
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 790 MovieClip Frame 9
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 790 MovieClip Frame 13
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 790 MovieClip Frame 17
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 790 MovieClip Frame 21
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 802 MovieClip Frame 1
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 802 MovieClip Frame 5
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 802 MovieClip Frame 9
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 802 MovieClip Frame 13
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 802 MovieClip Frame 17
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 802 MovieClip Frame 21
this._parent._x = this._parent._x + this._parent.snakeXspeed;
this._parent._y = this._parent._y + this._parent.snakeYspeed;
Symbol 808 MovieClip Frame 5
stop();
Symbol 809 MovieClip Frame 2
this.snakeInit = function () {
var _local1 = this;
var _local2 = _parent;
_local1.myColumn = Math.floor(_local1._x / _local2._parent.tileWidth);
_local1.myRow = Math.floor(_local1._y / _local2._parent.tileHeight);
_local1._name = (("snake" + myColumn) + "x") + myRow;
_local1._x = myColumn * _local2._parent.tileWidth;
_local1._y = myRow * _local2._parent.tileHeight;
_local1.snakeSpeed = 10;
_local1.snakeToAim = false;
_local1.snakeXaim = _local1._x;
_local1.snakeYaim = _local1._y;
_local1.snakeXspeed = 0;
_local1.snakeYspeed = 0;
_local1.tileWidth = _local2._parent.tileWidth;
tileName = (("tile" + _local1.myColumn) + "x") + _local1.myRow;
_local2[tileName].enemy = _local1._name;
_local1.tileReset = false;
};
this.snakeInit();
this.sColl = function (columnOffset, rowOffset) {
var _local1 = _parent;
column = Math.floor(this._x / _local1._parent.tileWidth) + columnOffset;
row = Math.floor(this._y / _local1._parent.tileHeight) + rowOffset;
tileName = (("tile" + column) + "x") + row;
return(_local1[tileName].tileType);
};
this.setEnemy = function (dir) {
var _local1 = this;
var _local2 = _parent;
var _local3 = dir;
if ((_local3 == "L") || (_local3 == "R")) {
enemyX = _local1._x + 25;
enemyY = _local1._y;
} else if ((_local3 == "U") || (_local3 == "D")) {
enemyX = _local1._x;
enemyY = _local1._y + 25;
}
column = Math.floor(enemyX / _local2._parent.tileWidth);
row = Math.floor(enemyY / _local2._parent.tileHeight);
if ((column != _local1.myColumn) || (row != _local1.myRow)) {
_local1.oldColumn = _local1.myColumn;
_local1.oldRow = _local1.myRow;
_local1.myColumn = column;
_local1.myRow = row;
_local1.tileReset = true;
_local1.tileResetCount = 5;
tileName = (("tile" + column) + "x") + row;
_local2[tileName].enemy = _local1._name;
}
if (_local1.tileReset == true) {
_local1.tileResetCount--;
if (_local1.tileResetCount == 0) {
tileName = (("tile" + _local1.oldColumn) + "x") + _local1.oldRow;
_local2[tileName].enemy = "none";
_local1.tileReset = false;
}
}
};
this.setSnakeMode = function (newMode, dir) {
var _local1 = this;
var _local2 = _parent;
var _local3 = newMode;
if (_local3 == "snake") {
jumpTo = "snake" + dir;
_local1.gotoAndPlay(jumpTo);
_local1.onEnterFrame = function () {
var _local1 = this;
if (_local1.snakeToAim == false) {
if (dir == "U") {
_local1.typeOfTile = _local1.sColl(0, -1);
_local1.snakeYspeed = snakeSpeed * -1;
_local1.snakeYaim = _local1._y - _local1.tileWidth;
} else if (dir == "D") {
_local1.typeOfTile = _local1.sColl(0, 1);
_local1.snakeYspeed = snakeSpeed;
_local1.snakeYaim = _local1._y + _local1.tileWidth;
} else if (dir == "L") {
_local1.typeOfTile = _local1.sColl(-1, 0);
_local1.snakeXspeed = snakeSpeed * -1;
_local1.snakeXaim = _local1._x - _local1.tileWidth;
} else if (dir == "R") {
_local1.typeOfTile = _local1.sColl(1, 0);
_local1.snakeXspeed = snakeSpeed;
_local1.snakeXaim = _local1._x + _local1.tileWidth;
}
if (_local1.typeOfTile == "ground") {
_local1.snakeToAim = true;
} else {
snakeXspeed = 0;
snakeYspeed = 0;
_local1.setSnakeMode("changeDir");
}
} else if (_local1.snakeToAim == true) {
_local1.setEnemy(dir);
if ((_local1._y == _local1.snakeYaim) && (_local1._x == _local1.snakeXaim)) {
snakeXspeed = 0;
snakeYspeed = 0;
snakeToAim = false;
}
}
};
} else if (_local3 == "changeDir") {
snakeDirs = new Array();
if (_local1.sColl(0, -1) == "ground") {
snakeDirs.push("U");
}
if (_local1.sColl(0, 1) == "ground") {
snakeDirs.push("D");
}
if (_local1.sColl(-1, 0) == "ground") {
snakeDirs.push("L");
}
if (_local1.sColl(1, 0) == "ground") {
snakeDirs.push("R");
}
if (snakeDirs.length == 0) {
trace("trapped");
_local1.snakeInit();
_local1.setSnakeMode("stop");
} else {
randomDir = Math.floor(Math.random() * snakeDirs.length);
_local1.snakeDir = snakeDirs[randomDir];
_local1.snakeInit();
_local1.setSnakeMode("snake", _local1.snakeDir);
}
} else if (_local3 == "stop") {
_local1.gotoAndPlay("stop");
_local1.snakeInit();
_local1.setEnemy();
_local1.onEnterFrame = function () {
var _local1 = this;
snakeDirs = new Array();
if (_local1.sColl(0, -1) == "ground") {
snakeDirs.push("U");
}
if (_local1.sColl(0, 1) == "ground") {
snakeDirs.push("D");
}
if (_local1.sColl(-1, 0) == "ground") {
snakeDirs.push("L");
}
if (_local1.sColl(1, 0) == "ground") {
snakeDirs.push("R");
}
if (snakeDirs.length > 0) {
randomDir = Math.floor(Math.random() * snakeDirs.length);
_local1.snakeDir = snakeDirs[randomDir];
_local1.setSnakeMode("snake", _local1.snakeDir);
}
};
} else if (_local3 == "dead") {
myRoot.levelScoreUpdate(myRoot.snakeScore);
_local1.gotoAndPlay("dead");
column = Math.floor(_local1._x / _local2._parent.tileWidth);
row = Math.floor(_local1._y / _local2._parent.tileHeight);
tileName = (("tile" + _local1.myColumn) + "x") + _local1.myRow;
_local2[tileName].enemy = "none";
tileName = (("tile" + _local1.oldColumn) + "x") + _local1.oldRow;
_local2[tileName].enemy = "none";
delete _local1.onEnterFrame;
}
};
this.setSnakeMode("stop");
Symbol 809 MovieClip Frame 4
stop();
Symbol 809 MovieClip Frame 9
stop();
Symbol 809 MovieClip Frame 16
stop();
Symbol 809 MovieClip Frame 23
stop();
Symbol 809 MovieClip Frame 30
stop();
Symbol 809 MovieClip Frame 37
stop();
Symbol 813 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "pit";
this.enemy = "none";
Symbol 813 MovieClip Frame 2
stop();
Symbol 813 MovieClip Frame 14
this.tileType = "ground";
Symbol 813 MovieClip Frame 21
stop();
Symbol 823 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "jump";
this.enemy = "none";
Symbol 823 MovieClip Frame 2
stop();
Symbol 826 MovieClip Frame 1
myColumn = Math.floor(this._x / _parent._parent.tileWidth);
myRow = Math.floor(this._y / _parent._parent.tileHeight);
this._name = (("tile" + myColumn) + "x") + myRow;
this._x = myColumn * _parent._parent.tileWidth;
this._y = myRow * _parent._parent.tileHeight;
this.tileType = "jump";
this.enemy = "none";
Symbol 826 MovieClip Frame 2
stop();
Symbol 846 MovieClip Frame 2
stop();
Symbol 846 MovieClip Frame 12
stop();
Symbol 846 MovieClip Frame 22
stop();
Symbol 846 MovieClip Frame 26
stop();
Symbol 846 MovieClip Frame 44
stop();
Symbol 846 MovieClip Frame 54
stop();
Symbol 848 MovieClip Frame 1
function choosePlayer() {
var _local1 = this;
var _local2 = _global;
trace(_local1.choosePlayer_mc.chooseAdam_btn);
_local1.chooseAdam_btn.setAsBtn("okBtn", "center");
_local1.chooseEve_btn.setAsBtn("okBtn", "center");
_local1.chooseAdam_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "adam";
_local1.exitChar = "eva";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
_local1.chooseEve_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "eva";
_local1.exitChar = "adam";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
}
function jumpToLevelBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
myRoot.jumpToLevel();
};
}
function gameEndBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
user.pData.newScore = myRoot.getScore();
trace("schkor: " + user.pData.newScore);
this._parent._parent._parent.gotoAndPlay("finish");
};
}
Symbol 848 MovieClip Frame 25
this.jumpToLevelBtn();
stop();
Symbol 853 MovieClip Frame 1
function choosePlayer() {
var _local1 = this;
var _local2 = _global;
trace(_local1.choosePlayer_mc.chooseAdam_btn);
_local1.chooseAdam_btn.setAsBtn("okBtn", "center");
_local1.chooseEve_btn.setAsBtn("okBtn", "center");
_local1.chooseAdam_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "adam";
_local1.exitChar = "eva";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
_local1.chooseEve_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "eva";
_local1.exitChar = "adam";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
}
function jumpToLevelBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
myRoot.jumpToLevel();
};
}
function gameEndBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
user.pData.newScore = myRoot.getScore();
trace("schkor: " + user.pData.newScore);
this._parent._parent._parent.gotoAndPlay("finish");
};
}
Symbol 853 MovieClip Frame 25
this.jumpToLevelBtn();
stop();
Symbol 858 MovieClip Frame 1
function choosePlayer() {
var _local1 = this;
var _local2 = _global;
trace(_local1.choosePlayer_mc.chooseAdam_btn);
_local1.chooseAdam_btn.setAsBtn("okBtn", "center");
_local1.chooseEve_btn.setAsBtn("okBtn", "center");
_local1.chooseAdam_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "adam";
_local1.exitChar = "eva";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
_local1.chooseEve_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "eva";
_local1.exitChar = "adam";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
}
function jumpToLevelBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
myRoot.jumpToLevel();
};
}
function gameEndBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
user.pData.newScore = myRoot.getScore();
trace("schkor: " + user.pData.newScore);
this._parent._parent._parent.gotoAndPlay("finish");
};
}
Symbol 858 MovieClip Frame 25
this.jumpToLevelBtn();
stop();
Symbol 861 MovieClip Frame 1
function choosePlayer() {
var _local1 = this;
var _local2 = _global;
trace(_local1.choosePlayer_mc.chooseAdam_btn);
_local1.chooseAdam_btn.setAsBtn("okBtn", "center");
_local1.chooseEve_btn.setAsBtn("okBtn", "center");
_local1.chooseAdam_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "adam";
_local1.exitChar = "eva";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
_local1.chooseEve_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "eva";
_local1.exitChar = "adam";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
}
function jumpToLevelBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
myRoot.jumpToLevel();
};
}
function gameEndBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
user.pData.newScore = myRoot.getScore();
trace("schkor: " + user.pData.newScore);
this._parent._parent._parent.gotoAndPlay("finish");
};
}
Symbol 861 MovieClip Frame 25
this.gameEndBtn();
stop();
Symbol 862 MovieClip Frame 1
function choosePlayer() {
var _local1 = this;
var _local2 = _global;
trace(_local1.choosePlayer_mc.chooseAdam_btn);
_local1.chooseAdam_btn.setAsBtn("okBtn", "center");
_local1.chooseEve_btn.setAsBtn("okBtn", "center");
_local1.chooseAdam_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "adam";
_local1.exitChar = "eva";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
_local1.chooseEve_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "eva";
_local1.exitChar = "adam";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
}
function jumpToLevelBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
myRoot.jumpToLevel();
};
}
function gameEndBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
user.pData.newScore = myRoot.getScore();
trace("schkor: " + user.pData.newScore);
this._parent._parent._parent.gotoAndPlay("finish");
};
}
Symbol 862 MovieClip Frame 25
this.gameEndBtn();
stop();
Symbol 865 MovieClip Frame 1
function choosePlayer() {
var _local1 = this;
var _local2 = _global;
trace(_local1.choosePlayer_mc.chooseAdam_btn);
_local1.chooseAdam_btn.setAsBtn("okBtn", "center");
_local1.chooseEve_btn.setAsBtn("okBtn", "center");
_local1.chooseAdam_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "adam";
_local1.exitChar = "eva";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
_local1.chooseEve_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "eva";
_local1.exitChar = "adam";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
}
function jumpToLevelBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
myRoot.jumpToLevel();
};
}
function gameEndBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
user.pData.newScore = myRoot.getScore();
trace("schkor: " + user.pData.newScore);
this._parent._parent._parent.gotoAndPlay("finish");
};
}
Symbol 865 MovieClip Frame 16
this.gameEndBtn();
stop();
Symbol 879 MovieClip Frame 1
function choosePlayer() {
var _local1 = this;
var _local2 = _global;
trace(_local1.choosePlayer_mc.chooseAdam_btn);
_local1.chooseAdam_btn.setAsBtn("okBtn", "center");
_local1.chooseEve_btn.setAsBtn("okBtn", "center");
_local1.chooseAdam_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "adam";
_local1.exitChar = "eva";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
_local1.chooseEve_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "eva";
_local1.exitChar = "adam";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
}
function jumpToLevelBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
myRoot.jumpToLevel();
};
}
function gameEndBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
user.pData.newScore = myRoot.getScore();
trace("schkor: " + user.pData.newScore);
this._parent._parent._parent.gotoAndPlay("finish");
};
}
Symbol 879 MovieClip Frame 25
this.jumpToLevelBtn();
this.levelText = myRoot.levelText;
this.pOldScore = myRoot.pOldScore;
this.levelScore = myRoot.levelScore;
this.exitScore = myRoot.exitScore;
this.timeBonus = myRoot.timeBonus;
this.pScore = myRoot.pScore;
stop();
Symbol 888 MovieClip Frame 2
stop();
Symbol 888 MovieClip Frame 12
stop();
Symbol 888 MovieClip Frame 22
stop();
Symbol 888 MovieClip Frame 26
stop();
Symbol 888 MovieClip Frame 44
stop();
Symbol 888 MovieClip Frame 54
stop();
Symbol 892 MovieClip Frame 2
stop();
Symbol 892 MovieClip Frame 12
stop();
Symbol 892 MovieClip Frame 22
stop();
Symbol 892 MovieClip Frame 26
stop();
Symbol 892 MovieClip Frame 44
stop();
Symbol 892 MovieClip Frame 54
stop();
Symbol 895 MovieClip Frame 1
function choosePlayer() {
var _local1 = this;
var _local2 = _global;
trace(_local1.choosePlayer_mc.chooseAdam_btn);
_local1.chooseAdam_btn.setAsBtn("okBtn", "center");
_local1.chooseEve_btn.setAsBtn("okBtn", "center");
_local1.chooseAdam_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "adam";
_local1.exitChar = "eva";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
_local1.chooseEve_btn.onRelease = function () {
var _local1 = _global;
this.gotoAndPlay("onRelease");
_local1.pChar = "eva";
_local1.exitChar = "adam";
_parent.gotoAndPlay("game");
trace("player= " + _local1.pChar);
};
}
function jumpToLevelBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
myRoot.jumpToLevel();
};
}
function gameEndBtn() {
var _local1 = this;
_local1.ahead_btn.setAsBtn("okBtn", "center");
_local1.ahead_btn.onRelease = function () {
this.gotoAndPlay("onRelease");
user.pData.newScore = myRoot.getScore();
trace("schkor: " + user.pData.newScore);
this._parent._parent._parent.gotoAndPlay("finish");
};
}
Symbol 895 MovieClip Frame 16
this.choosePlayer();
stop();
Symbol 896 MovieClip Frame 1
gotoAndPlay ("start");
Symbol 896 MovieClip Frame 5
function dummyButtons() {
var _local1 = this;
i = 1;
while (i <= levelMax) {
_local1.dummyName = "dummyBut_" + i;
_local1.dummyDepth = i + 1000;
_local1.interface_mc.attachMovie("level_btn", _local1.dummyName, _local1.dummyDepth);
_local1.interface_mc[_local1.dummyName]._x = (i * 22) - 22;
_local1.interface_mc[_local1.dummyName]._y = 555;
_local1.interface_mc[_local1.dummyName].myLevel = i;
_local1.interface_mc[_local1.dummyName].myLabel.text = i;
_local1.interface_mc[_local1.dummyName].onPress = function () {
if (levelNum != this.myLevel) {
levelNum = this.myLevel;
jumpToLevel();
}
};
i++;
}
}
Stage.scaleMode = "noScale";
this._xscale = 100;
this._yscale = 100;
_global.myRoot = this;
var tileWidth = 50;
var tileHeight = 50;
var gameWidth = 700;
var gameHeight = 550;
var levelNum = 1;
var levelMax = 25;
myRoot.pScore = 0;
myRoot.pOldScore = 0;
myRoot.levelScore = 0;
myRoot.timeBonus = 0;
myRoot.pLives = 5;
myRoot.levelTimeMax = 241;
pChar = _global.pChar;
exitChar = _global.exitChar;
myRoot.secScore = 5;
myRoot.snakeScore = 25;
myRoot.pickupScore = 50;
myRoot.exitScore = 100;
myRoot.levelInit = function () {
_quality = "LOW";
myRoot.levelScoreUpdate("reset");
myRoot.pScoreUpdate(0);
myRoot.pLiveUpdate(0);
myRoot.startTimer();
this.interface_mc.interface_lives_head_mc.gotoAndPlay(pChar);
this.interface_mc.again_btn.onPress = function () {
if (myRoot.pLives == 0) {
gotoAndPlay ("nolives");
} else {
myRoot.pLiveUpdate(-1);
gotoAndPlay ("restart");
}
};
};
myRoot.pLiveUpdate = function (val) {
myRoot.pLives = myRoot.pLives + val;
interface_mc.pLivesTxt.text = pLives;
interface_mc.pLivesTxtS.text = pLives;
};
myRoot.pScoreUpdate = function (val) {
myRoot.pScore = myRoot.pScore + val;
interface_mc.pScoreTxt.text = myRoot.pScore;
interface_mc.pScoreTxtS.text = myRoot.pScore;
};
myRoot.levelScoreUpdate = function (val) {
if (val == "reset") {
myRoot.levelScore = 0;
} else {
myRoot.levelScore = myRoot.levelScore + val;
}
interface_mc.levelScoreTxt.text = myRoot.levelScore;
};
myRoot.getScore = function () {
return(myRoot.pScore);
};
myRoot.startTimer = function () {
var _local2 = this;
_local2.startTime = getTimer();
_local2.levelTime = myRoot.levelTimeMax * 1000;
_local2.displayTime = "0:00";
_local2.timer = 0;
_local2.onLevelEnd = false;
myRoot.timerStatus = "running";
_local2.interface_mc.onEnterFrame = function () {
var _local3 = myRoot.levelTime - (getTimer() - myRoot.startTime);
if (_local3 <= 0) {
if (myRoot.pLives == 0) {
gotoAndPlay ("timeoutnolives");
} else {
myRoot.pLiveUpdate(-1);
gotoAndPlay ("timeout");
}
} else if (myRoot.timerStatus == "stopped") {
var _local1 = Math.floor(_local3 / 1000);
myRoot.timeBonus = _local1 * myRoot.secScore;
delete this.onEnterFrame;
} else {
var _local1 = Math.floor(_local3 / 1000);
myRoot.sec = _local1;
var _local2 = _local1 % 60;
if (_local2 < 10) {
_local2 = "0" + _local2;
}
var minutes = (Math.floor(_local1 / 60) % 10);
myRoot.timer = (minutes + ":") + _local2;
if (myRoot.timer != myRoot.displayTime) {
myRoot.displayTime = myRoot.timer;
}
if (_local1 != oldSec) {
myRoot.updateTimer();
}
var oldSec = _local1;
}
};
};
myRoot.updateTimer = function () {
interface_mc.timeTxt.text = myRoot.displayTime;
interface_mc.timeTxtS.text = myRoot.displayTime;
};
myRoot.stopTimer = function () {
myRoot.timerStatus = "stopped";
};
myRoot.jumpToLevel = function () {
userTracking("level_" + levelNum);
if (levelNum > levelMax) {
gotoAndPlay ("nolevels");
} else {
levelName = ("level_" + levelNum) + "_mc";
levelFrame = levelNum + 10;
gotoAndPlay(levelFrame);
interface_mc.levelTxt.text = levelNum;
interface_mc.levelTxtS.text = levelNum;
}
};
jumpToLevel();
myRoot.exitLevel = function () {
levelText = ("Du hast Level " + levelNum) + " geschafft!";
levelNum++;
gotoAndPlay ("endlevel");
myRoot.pOldScore = myRoot.pScore;
myRoot.pScore = myRoot.pScore + ((myRoot.levelScore + myRoot.exitScore) + myRoot.timeBonus);
};
myRoot.pDead = function () {
if (myRoot.pLives == 0) {
gotoAndPlay ("nolives");
} else {
myRoot.pLiveUpdate(-1);
gotoAndPlay ("dead");
}
};
Symbol 896 MovieClip Frame 6
stop();
Symbol 896 MovieClip Frame 11
stop();
Symbol 896 MovieClip Frame 12
stop();
Symbol 896 MovieClip Frame 13
stop();
Symbol 896 MovieClip Frame 14
stop();
Symbol 896 MovieClip Frame 15
stop();
Symbol 896 MovieClip Frame 16
stop();
Symbol 896 MovieClip Frame 17
stop();
Symbol 896 MovieClip Frame 18
stop();
Symbol 896 MovieClip Frame 19
stop();
Symbol 896 MovieClip Frame 20
stop();
Symbol 896 MovieClip Frame 21
stop();
Symbol 896 MovieClip Frame 22
stop();
Symbol 896 MovieClip Frame 23
stop();
Symbol 896 MovieClip Frame 24
stop();
Symbol 896 MovieClip Frame 25
stop();
Symbol 896 MovieClip Frame 26
stop();
Symbol 896 MovieClip Frame 27
stop();
Symbol 896 MovieClip Frame 28
stop();
Symbol 896 MovieClip Frame 29
stop();
Symbol 896 MovieClip Frame 30
stop();
Symbol 896 MovieClip Frame 31
stop();
Symbol 896 MovieClip Frame 32
stop();
Symbol 896 MovieClip Frame 33
stop();
Symbol 896 MovieClip Frame 34
stop();
Symbol 896 MovieClip Frame 35
stop();
Symbol 896 MovieClip Frame 36
Symbol 896 MovieClip Frame 50
_quality = "BEST";
Symbol 896 MovieClip Frame 51
stop();
Symbol 896 MovieClip Frame 57
_quality = "BEST";
Symbol 896 MovieClip Frame 58
stop();
Symbol 896 MovieClip Frame 62
_quality = "BEST";
Symbol 896 MovieClip Frame 63
stop();
Symbol 896 MovieClip Frame 69
_quality = "BEST";
Symbol 896 MovieClip Frame 70
stop();
Symbol 896 MovieClip Frame 80
_quality = "BEST";
Symbol 896 MovieClip Frame 81
stop();
Symbol 896 MovieClip Frame 87
_quality = "BEST";
Symbol 896 MovieClip Frame 88
stop();
Symbol 896 MovieClip Frame 94
_quality = "BEST";
Symbol 896 MovieClip Frame 95
stop();
Symbol 896 MovieClip Frame 102
Symbol 896 MovieClip Frame 103
stop();
Symbol 896 MovieClip Frame 107
_quality = "BEST";
Symbol 896 MovieClip Frame 108
stop();