Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
server = {SendFriend:"http://www.pixer.org/excit/excit_mail.php", SendFame:"http://www.pixer.org/excit/schreiben.php", ReadFame:"http://www.pixer.org/excit/ausgabe2.php", MisPage:"http://www.misag.com"};
if (SendFriend != undefined) {
server.SendFriend = SendFriend;
}
if (SendFame != undefined) {
server.SendFriend = SendFame;
}
if (ReadFame != undefined) {
server.SendFriend = ReadFame;
}
if (MisPage != undefined) {
server.SendFriend = MisPage;
}
__com_mochibot__("e4ed5563", this, 10301, true);
var MochiAd = {getVersion:function () {
return("2.1");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showTimedAd:function (options) {
MochiAd.showInterLevelAd(options);
}, showPreloaderAd:function (options) {
MochiAd.showPreGameAd(options);
}, _allowDomains:function (server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}, _loadCommunicator:function (options) {
var _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = MochiAd.getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
MochiAd._allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb_arg) {
var cb = parseInt(cb_arg);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
return(_local3);
}, _:null};
MochiAd.showPreGameAd({id:"7795426074ba2f91", res:"780x542", background:14672351, color:2386607, outline:5394786, no_bg:true});
Frame 48
stop();
Instance of Symbol 21 MovieClip "welcomeblurb" in Frame 48
onClipEvent (load) {
this.blurb = new String();
this.blurb = this.welcometext;
var blurblen = this.welcometext.length;
this.welcometext = "";
this.t = 0;
}
onClipEvent (enterFrame) {
this.t = this.t + 3;
this.welcometext = substring(this.blurb, 1, this.t);
if (this.t >= this.blurblen) {
_root.play();
}
}
Frame 52
keyListener = new Object();
keyListener.onKeyDown = function () {
nameenterer.t = 0;
if (Key.isDown(13) and (_root.playerName.length > 0)) {
play();
}
};
Key.addListener(keyListener);
Selection.setFocus("_root.namefeld");
stop();
Instance of Symbol 26 MovieClip "nameenterer" in Frame 52
onClipEvent (load) {
this.t = 0;
}
onClipEvent (enterFrame) {
this.t = this.t + 1;
if (this.t >= 500) {
if (_root.playerName.length <= 0) {
_root.playerName = "no name entered";
}
_root.play();
}
}
Frame 53
Key.removeListener(keyListener);
Instance of Symbol 21 MovieClip "welcomeblurb" in Frame 53
onClipEvent (load) {
this.blurb = new String();
this.blurb = this.welcometext;
var blurblen = this.welcometext.length;
this.t = 0;
}
onClipEvent (enterFrame) {
if (this.t < this.blurblen) {
this.t = this.t + 10;
this.welcometext = substring(this.blurb, 1, this.blurblen - this.t);
} else {
this._alpha = 0;
}
}
Frame 69
stop();
Instance of Symbol 77 MovieClip "help" in Frame 69
onClipEvent (load) {
this.dx = (this._x = 100);
}
onClipEvent (enterFrame) {
if (this.dx != this._x) {
d = this.dx - this._x;
d = d / 4;
this._x = this._x + d;
if (Math.abs(this.dx - this._x) < 1) {
this._x = this.dx;
}
}
}
Instance of Symbol 92 MovieClip "bt1" in Frame 69
onClipEvent (load) {
this.dx = this._x;
}
onClipEvent (enterFrame) {
if (this.dx != this._x) {
d = this.dx - this._x;
d = d / 3;
this._x = this._x + d;
if (Math.abs(this.dx - this._x) < 1) {
this._x = this.dx;
}
}
}
Instance of Symbol 106 MovieClip "bt2" in Frame 69
onClipEvent (load) {
this.dx = this._x;
}
onClipEvent (enterFrame) {
if (this.dx != this._x) {
d = this.dx - this._x;
d = d / 4;
this._x = this._x + d;
if (Math.abs(this.dx - this._x) < 1) {
this._x = this.dx;
}
}
}
Instance of Symbol 120 MovieClip "bt3" in Frame 69
onClipEvent (load) {
this.dx = this._x;
}
onClipEvent (enterFrame) {
if (this.dx != this._x) {
d = this.dx - this._x;
d = d / 5;
this._x = this._x + d;
if (Math.abs(this.dx - this._x) < 1) {
this._x = this.dx;
}
}
}
Frame 244
stop();
gotoAndPlay (255);
Frame 255
var SoundBump = "sndBump12";
var SoundBumpN = 12;
var SoundMis = "sndPickupMisV2_2";
var SoundMisN = 2;
var SoundKey = "sndPickupKeyV2_8";
var SoundKeyN = 8;
var SoundBeam = "sndBeamV2_10";
var SoundBeamN = 10;
var SoundDoor = "sndDoor2";
var SoundDoorN = 2;
var SoundSpeedup = "sndSpeedup6";
var SoundSpeedupN = 6;
var SoundSpeedloop = "sndSpeedloop2";
var SoundSpeedloopN = 2;
var SoundExplode = "sndExplode1";
var SoundExplodeN = 1;
var SoundMove = "sndMove4";
var SoundMoveN = 4;
var SoundOneway = "sndOneway1";
var SoundOnewayN = 1;
var SoundDeflect = "sndDeflect6";
var SoundDeflectN = 6;
sndExcit = new Sound(this);
sndExcit.attachSound("excit.wav");
sndExplode1 = new Sound(this);
sndExplode1.attachSound("explode1.wav");
sndGameOver1 = new Sound(this);
sndGameOver1.attachSound("gameover1.wav");
sndMove4 = new Sound(this);
sndMove4.attachSound("move4.wav");
sndOneway1 = new Sound(this);
sndOneway1.attachSound("oneway1.wav");
sndBump12 = new Sound(this);
sndBump12.attachSound("bump12.wav");
sndDeflect6 = new Sound(this);
sndDeflect6.attachSound("deflect6.wav");
sndBeamV2_10 = new Sound(this);
sndBeamV2_10.attachSound("v2_beam10.wav");
sndDoor2 = new Sound(this);
sndDoor2.attachSound("door2.wav");
sndPickupMisV2_1 = new Sound(this);
sndPickupMisV2_1.attachSound("v2_pickupMIS1.wav");
sndPickupMisV2_2 = new Sound(this);
sndPickupMisV2_2.attachSound("v2_pickupMIS2.wav");
sndPickupKeyV2_8 = new Sound(this);
sndPickupKeyV2_8.attachSound("v2_pickupKey8.wav");
sndSpeedup6 = new Sound(this);
sndSpeedup6.attachSound("speedup6.wav");
sndSpeedloop2 = new Sound(_root.looper);
sndSpeedloop2.attachSound("speedloop2.wav");
sndBeam_w_d = new Sound(this);
sndBeam_w_d.attachSound("Beam_w_d.wav");
sndBeam_w_j = new Sound(this);
sndBeam_w_j.attachSound("Beam_w_j.wav");
sndDoor_open_k_d = new Sound(this);
sndDoor_open_k_d.attachSound("Door-open_k_d.wav");
sndDoor_open_k_j = new Sound(this);
sndDoor_open_k_j.attachSound("Door-open_k_j.wav");
sndMove_w_d = new Sound(this);
sndMove_w_d.attachSound("Move_w_d.wav");
sndMove_w_j = new Sound(this);
sndMove_w_j.attachSound("Move_w_j.wav");
sndOne_way_no_t_d = new Sound(this);
sndOne_way_no_t_d.attachSound("One-way-no_t_d.wav");
sndOne_way_no_t_j = new Sound(this);
sndOne_way_no_t_j.attachSound("One-way-no_t_j.wav");
sndOne_way_yes_w_d = new Sound(this);
sndOne_way_yes_w_d.attachSound("One-way-yes_w_d.wav");
sndOne_way_yes_w_j = new Sound(this);
sndOne_way_yes_w_j.attachSound("One-way-yes_w_j.wav");
sndPickup_i_d_j = new Sound(this);
sndPickup_i_d_j.attachSound("Pickup-i_d-j.wav");
sndPickup_i_d_d = new Sound(this);
sndPickup_i_d_d.attachSound("Pickup-i_d_d.wav");
sndPickup_key_p_d = new Sound(this);
sndPickup_key_p_d.attachSound("Pickup-key-p-d.wav");
sndPickup_key_p_j = new Sound(this);
sndPickup_key_p_j.attachSound("Pickup-key_p_j.wav");
sndPickup_m_d_d = new Sound(this);
sndPickup_m_d_d.attachSound("Pickup-m_d_d.wav");
sndPickup_m_d_j = new Sound(this);
sndPickup_m_d_j.attachSound("Pickup-m_d_j.wav");
sndPickup_s_d_j = new Sound(this);
sndPickup_s_d_j.attachSound("Pickup-s_d-j.wav");
sndPickup_s_d_d = new Sound(this);
sndPickup_s_d_d.attachSound("Pickup-s_d_d.wav");
sndPickup_numbers_z_d = new Sound(this);
sndPickup_numbers_z_d.attachSound("Pickup_numbers_z_d.wav");
sndPickup_numbers_z_j = new Sound(this);
sndPickup_numbers_z_j.attachSound("Pickup_numbers_z_j.wav");
sndSpeed_up_f_d = new Sound(this);
sndSpeed_up_f_d.attachSound("Speed-up_f_d.wav");
sndSpeed_up_f_j = new Sound(this);
sndSpeed_up_f_j.attachSound("Speed-up_f_j.wav");
sndSpiked_b_d = new Sound(this);
sndSpiked_b_d.attachSound("Spiked_b_d.wav");
sndSpiked_b_j = new Sound(this);
sndSpiked_b_j.attachSound("Spiked_b_j.wav");
sndSpikes_blink_b_d = new Sound(this);
sndSpikes_blink_b_d.attachSound("Spikes-blink_b_d.wav");
sndSpikes_blink_b_j = new Sound(this);
sndSpikes_blink_b_j.attachSound("Spikes-blink_b_j.wav");
sndWall_t_d = new Sound(this);
sndWall_t_d.attachSound("Wall_t_d.wav");
sndWall_t_j = new Sound(this);
sndWall_t_j.attachSound("Wall_t_j.wav");
lvl_desc = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""];
lvl_desc[0] = "Use the arrow keys to move your cursor to the exit. The cursor stops at each wall. Don't leave the Screen.";
lvl_desc[1] = lvl_desc[0];
lvl_desc[2] = lvl_desc[0];
lvl_desc[3] = "When you beat the game you may enter the Hall of Fame. Collect MIS logos for a higher ranking.";
lvl_desc[4] = lvl_desc[3];
lvl_desc[5] = lvl_desc[3];
lvl_desc[6] = "When you enter one of the transporters you will exit at the corresponding block with the same color.";
lvl_desc[7] = lvl_desc[6];
lvl_desc[8] = lvl_desc[6];
lvl_desc[9] = "The orange gates allow you to pass trough only in one direction.";
lvl_desc[10] = lvl_desc[9];
lvl_desc[11] = "The slopes change your direction.";
lvl_desc[12] = "Collect keys to open doors. You need one key for each door.";
lvl_desc[13] = "Use the acceleration arrows to break trough blocks.";
lvl_desc[14] = lvl_desc[13];
lvl_desc[15] = lvl_desc[13];
lvl_desc[16] = lvl_desc[13];
lvl_desc[17] = "";
lvl_desc[18] = lvl_desc[17];
lvl_desc[19] = lvl_desc[17];
lvl_desc[20] = lvl_desc[17];
lvl_desc[21] = lvl_desc[17];
lvl_desc[22] = lvl_desc[17];
lvl_desc[23] = "Keep it up! Only 7 levels to go!";
lvl_desc[24] = "Keep it up! Only 6 levels to go!";
lvl_desc[25] = "Keep it up! Only 5 levels to go!";
lvl_desc[26] = "Keep it up! Only 4 levels to go!";
lvl_desc[27] = "Keep it up! Only 3 levels to go!";
lvl_desc[28] = "Keep it up! Only 2 levels to go!";
lvl_desc[29] = "Keep it up! This is the last level!";
level1 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 0, 0, 402, 0, 0, 0, 0, 2, 0, 869, 709, 170, 223, 280, 905, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 857, 765, 372, 372, 303, 934, 0], [2, 0, 0, 0, 0, 0, 0, 0, 0, 17, 589, 0, 0, 0, 0, 843, 5, 477, 541, 541, 942, 2], [0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 617, 0, 0, 0, 0, 843, 814, 642, 633, 2, 962, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 683, 0, 0, 0, 0, 754, 2, 815, 827, 860, 918, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
level12 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 34, 0, 0, 0, 0, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 34, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4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0], [0, 0, 2, 0, 0, 34, 0, 126, 135, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0], [0, 2, 11, 21, 0, 111, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 19, 20, 0], [0, 0, 2, 0, 0, 103, 0, 0, 0, 130, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0], [0, 0, 0, 0, 0, 127, 0, 0, 0, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 0], [0, 34, 116, 148, 114, 167, 0, 102, 0, 32, 0, 2, 0, 0, 0, 0, 0, 0, 2, 19, 168, 0], [0, 0, 0, 0, 0, 33, 0, 162, 0, 0, 0, 0, 0, 31, 0, 0, 2, 21, 0, 0, 143, 0], [0, 123, 0, 0, 0, 0, 0, 523, 0, 2, 0, 4, 0, 0, 0, 15, 0, 0, 2, 19, 0, 0], [0, 129, 2, 0, 0, 0, 0, 116, 0, 0, 0, 0, 126, 0, 0, 5, 0, 0, 0, 0, 0, 0], [0, 106, 0, 0, 2, 0, 0, 155, 0, 0, 0, 0, 206, 0, 0, 0, 0, 34, 0, 183, 32, 0], [0, 167, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 139, 0, 0, 195, 0, 0, 0, 0], [0, 0, 18, 0, 0, 0, 141, 0, 2, 0, 0, 0, 2, 0, 213, 0, 0, 153, 0, 2, 0, 0], [0, 20, 0, 19, 0, 0, 218, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 33, 146, 0, 31, 0], [0, 0, 16, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 171, 0, 0, 0, 0, 0, 0, 146, 0], [0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 2, 0, 0, 203, 0, 0, 0, 2, 0, 0, 181, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0], [0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0], [0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0]];
level22 = [[2, 2, 2, 2, 0, 0, 2, 2, 0, 2, 2, 0, 2, 0, 0, 2, 2, 0, 0, 0, 2, 2], [2, 2, 2, 2, 0, 0, 2, 0, 0, 155, 182, 196, 259, 234, 257, 0, 0, 0, 0, 0, 2, 2], [0, 0, 3, 0, 0, 0, 0, 20, 0, 560, 238, 300, 343, 370, 344, 0, 0, 0, 0, 0, 0, 0], [2, 2, 0, 2, 0, 2, 0, 0, 0, 215, 221, 253, 205, 360, 560, 0, 0, 2, 2, 0, 0, 2], [2, 2, 0, 2, 0, 2, 0, 0, 0, 560, 560, 20, 100, 360, 344, 0, 0, 0, 0, 0, 0, 0], [2, 0, 0, 0, 0, 2, 0, 0, 0, 322, 100, 100, 100, 360, 285, 0, 1, 0, 2, 0, 0, 2], [0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 218, 100, 218, 360, 181, 0, 0, 0, 0, 0, 0, 0], [2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [2, 0, 0, 2, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 2], [2, 153, 208, 0, 0, 0, 0, 0, 0, 0, 0, 341, 322, 560, 0, 139, 200, 194, 207, 166, 0, 2], [2, 158, 174, 2, 0, 2, 0, 2, 0, 0, 0, 330, 2, 360, 147, 2, 2, 2, 2, 183, 136, 2], [206, 100, 137, 138, 4, 0, 0, 0, 0, 0, 0, 307, 2, 360, 167, 192, 159, 159, 156, 172, 178, 0], [122, 127, 180, 132, 133, 2, 0, 11, 0, 0, 0, 308, 360, 360, 152, 2, 2, 2, 156, 145, 167, 2], [2, 2, 132, 167, 158, 0, 0, 0, 0, 0, 0, 5, 2, 2, 219, 560, 560, 560, 183, 145, 194, 0], [2, 2, 0, 2, 2, 2, 0, 2, 0, 0, 0, 271, 0, 0, 560, 0, 0, 0, 171, 161, 2, 2], [0, 0, 0, 0, 0, 0, 21, 2, 0, 0, 0, 349, 301, 247, 161, 205, 189, 130, 136, 107, 0, 0], [2, 2, 2, 2, 2, 2, 0, 2, 0, 0, 0, 327, 0, 0, 21, 184, 184, 227, 301, 2, 2, 2], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 247, 238, 238, 280, 347, 365, 365, 0, 0, 0], [2, 2, 0, 2, 2, 2, 2, 2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [2, 2, 0, 2, 2, 2, 2, 2, 0, 0, 2, 2, 2, 2, 0, 2, 2, 2, 0, 2, 2, 2]];
level23 = [[0, 34, 222, 222, 222, 222, 222, 222, 222, 31, 0, 0, 0, 2, 0, 34, 457, 457, 457, 457, 457, 31], [0, 222, 2, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 457, 0, 2, 0, 2, 0, 457], [0, 222, 222, 100, 222, 222, 222, 2, 2, 33, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 31, 457], [0, 2, 100, 100, 100, 100, 100, 100, 100, 457, 457, 457, 457, 100, 31, 33, 457, 222, 31, 517, 222, 457], [0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 2, 100, 457, 0, 0, 222, 478, 517, 222, 457], [0, 100, 100, 100, 0, 2, 222, 0, 100, 0, 0, 100, 34, 100, 222, 5, 222, 32, 478, 517, 222, 457], [0, 100, 100, 100, 100, 100, 100, 11, 100, 0, 0, 100, 222, 100, 457, 2, 0, 0, 478, 517, 222, 457], [0, 100, 2, 100, 2, 0, 222, 0, 100, 0, 0, 100, 222, 100, 457, 34, 478, 478, 478, 517, 222, 457], [0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 2, 517, 222, 457], [0, 100, 100, 100, 0, 0, 222, 2, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 517, 222, 457], [0, 100, 100, 100, 0, 0, 222, 0, 0, 0, 0, 100, 222, 100, 457, 0, 0, 100, 100, 517, 222, 457], [2, 100, 100, 390, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 517, 222, 457], [0, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 2, 100, 517, 222, 457], [0, 2, 100, 100, 100, 100, 100, 100, 100, 390, 390, 390, 100, 100, 100, 100, 100, 100, 100, 1, 32, 457], [0, 0, 0, 100, 0, 0, 222, 0, 0, 0, 0, 100, 222, 100, 33, 457, 457, 457, 100, 457, 457, 32], [2, 0, 0, 100, 0, 31, 222, 0, 4, 0, 0, 100, 100, 100, 2, 0, 0, 0, 100, 0, 0, 0], [0, 0, 0, 100, 0, 0, 222, 0, 0, 0, 0, 2, 222, 222, 222, 222, 222, 222, 100, 222, 3, 31], [0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 2, 0, 222], [0, 0, 0, 2, 0,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0, 2, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0], [0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 13, 0, 0, 32, 0, 0, 0, 0, 0, 0], [0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 5, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0], [0, 0, 0, 0, 0, 2, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
level28 = [[2, 2, 34, 0, 31, 2, 0, 0, 2, 34, 0, 31, 2, 0, 0, 2, 34, 0, 31, 2, 2, 2], [0, 0, 0, 2, 33, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0], [0, 34, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 40, 0, 0, 0, 0], [0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 0, 0, 0, 149, 0, 2, 2, 33, 31, 2], [2, 0, 0, 0, 34, 0, 0, 2, 155, 0, 0, 105, 0, 0, 2, 170, 0, 0, 2, 0, 0, 0], [0, 0, 4, 0, 0, 2, 0, 0, 118, 0, 18, 162, 18, 0, 0, 100, 2, 0, 0, 0, 0, 2], [0, 0, 34, 0, 0, 0, 0, 0, 150, 0, 0, 375, 0, 127, 0, 107, 0, 18, 0, 0, 0, 0], [0, 0, 163, 0, 0, 0, 0, 0, 114, 0, 0, 2, 0, 146, 0, 337, 0, 0, 0, 31, 0, 0], [0, 0, 105, 0, 0, 0, 0, 17, 427, 0, 0, 0, 33, 306, 0, 19, 0, 0, 0, 0, 0, 0], [2, 0, 105, 0, 33, 0, 0, 0, 32, 2, 0, 1, 0, 2, 33, 0, 0, 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, 2, 0, 3, 0, 0, 0, 0, 0, 0, 2, 0, 19, 0, 0, 0, 2, 0, 2, 2], [33, 0, 0, 2, 0, 15, 0, 0, 0, 0, 0, 0, 0, 15, 2, 0, 0, 0, 2, 50, 19, 0], [2, 2, 2, 2, 0, 0, 0, 0, 2, 50, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0]];
function copyMap(map) {
var _local3 = map;
var mapWidth = _local3[0].length;
var mapHeight = _local3.length;
var _local2 = 0;
while (_local2 < mapHeight) {
var _local1 = 0;
while (_local1 < mapWidth) {
_root.GameMap[_local2][_local1] = _local3[_local2][_local1];
_local1++;
}
_local2++;
}
}
function buildMap(map) {
var _local3 = map;
_root.blase1.gotoAndPlay("away");
_root.blase2.gotoAndPlay("away");
removeMovieClip(_root.tiles);
_root.attachMovie("empty", "tiles", 0);
game.clip = _root.tiles;
game.moves = 0;
game.par = 0;
game.startingTime = 0;
game.endTime = 0;
var _local2 = 0;
while (_local2 < _root.game.level) {
if (_root.levelStatus[_local2] == 0) {
_root.levelStatus[_local2] = 1;
}
_local2++;
}
_root.disp_moves = _root.game.moves;
var mapWidth = _local3[0].length;
var mapHeight = _local3.length;
var ebene = ((mapWidth * mapHeight) + 1);
_root.game.ebene = ebene;
_root.conter_mis._alpha = 0;
_root.conter_key._alpha = 0;
updateTabs(true);
_local2 = 0;
while (_local2 < mapHeight) {
var _local1 = 0;
while (_local1 < mapWidth) {
if (_local3[_local2][_local1] == 0) {
} else if (_local3[_local2][_local1] == 1) {
game.curDX = 0;
game.curDY = 0;
placeCursor(_local1, _local2);
_root.cursor.swapDepths(25 + (ebene * 4));
if (_root.game.level == 1) {
_root.attachMovie("excit_blase", "blase1", 26 + (ebene * 4));
_root.blase1._x = (47 + (_local1 * game.tileW)) + int(game.tileW / 4);
_root.blase1._y = (160 + (_local2 * game.tileH)) + int(game.tileH / 4);
}
game.clip.attachMovie("clickbutt", "bigbutt", 29 + (ebene * 4));
game.clip.bigbutt._x = 2;
game.clip.bigbutt._y = 121;
} else if (_local3[_local2][_local1] == 2) {
var name = ((("t_" + _local1) + "_") + _local2);
game[name] = new game["Tile" + _local3[_local2][_local1]]();
game.clip.attachMovie("tile_wall", name, ((25 + (_local2 * mapWidth)) + _local1) + (ebene * 2));
game.clip[name]._x = 47 + (_local1 * game.tileW);
game.clip[name]._y = 160 + (_local2 * game.tileH);
setWallTile(_local1, _local2);
} else if (_local3[_local2][_local1] == 11) {
var name = ((("t_" + _local1) + "_") + _local2);
game[name] = new game["Tile" + _local3[_local2][_local1]]();
game.clip.attachMovie("tile", name, ((25 + (_local2 * mapWidth)) + _local1) + (ebene * 1));
game.clip[name]._x = 48 + (_local1 * game.tileW);
game.clip[name]._y = 161 + (_local2 * game.tileH);
game.clip[name].gotoAndStop(int(_local3[_local2][_local1]));
game.clip[name].Stop();
if (_root.game.level == 1) {
_root.attachMovie("excit_blase2", "blase2", 27 + (ebene * 4));
_root.blase2._x = (47 + (_local1 * game.tileW)) + int(game.tileW / 4);
_root.blase2._y = (160 + (_local2 * game.tileH)) + int(game.tileH / 4);
}
} else if (((((_local3[_local2][_local1] == 20) or (_local3[_local2][_local1] == 21)) or (_local3[_local2][_local1] == 22)) or (_local3[_local2][_local1] == 23)) or (_local3[_local2][_local1] == 24)) {
var name = ((("t_" + _local1) + "_") + _local2);
game[name] = new game["Tile" + _local3[_local2][_local1]]();
game.clip.attachMovie("tile", name, ((25 + (_local2 * mapWidth)) + _local1) + (ebene * 1));
game.clip[name]._x = 48 + (_local1 * game.tileW);
game.clip[name]._y = 161 + (_local2 * game.tileH);
game.clip[name].gotoAndStop(_local3[_local2][_local1]);
game.clip[name].Stop();
game.clip[name].ani.gotoAndPlay((_local3[_local2][_local1] - 20) * 9);
} else if (((_local3[_local2][_local1] == 3) or (_local3[_local2][_local1] == 4)) or (_local3[_local2][_local1] == 5)) {
_root.conter_mis._alpha = 100;
_root.conter_mis.gotoAndStop(1);
var name = ((("t_" + _local1) + "_") + _local2);
game[name] = new game["Tile" + _local3[_local2][_local1]]();
game.clip.attachMovie("tile_pickup", name, ((25 + (_local2 * mapWidth)) + _local1) + (ebene * 0));
game.clip[name]._x = 48 + (_local1 * game.tileW);
game.clip[name]._y = 161 + (_local2 * game.tileH);
game.clip[name].picture.gotoAndStop(_local3[_local2][_local1] - 2);
game.clip[name].gotoAndStop(1);
game.clip[name].Stop();
} else if (((((_local3[_local2][_local1] == 40) or (_local3[_local2][_local1] == 41)) or (_local3[_local2][_local1] == 42)) or (_local3[_local2][_local1] == 43)) or (_local3[_local2][_local1] == 44)) {
_root.conter_key._alpha = 100;
_root.conter_key.gotoAndStop(1);
var name = ((("t_" + _local1) + "_") + _local2);
game[name] = new game["Tile" + _local3[_local2][_local1]]();
game.clip.attachMovie("tile_pickup", name, ((25 + (_local2 * mapWidth)) + _local1) + (ebene * 0));
game.clip[name]._x = 48 + (_local1 * game.tileW);
game.clip[name]._y = 161 + (_local2 * game.tileH);
game.clip[name].picture.gotoAndStop(_local3[_local2][_local1] - 36);
game.clip[name].picture.ani.gotoAndPlay(_local1 * 4);
game.clip[name].gotoAndStop(1);
game.clip[name].Stop();
} else if (_local3[_local2][_local1] > 99) {
_local3[_local2][_local1] = 0;
} else if (_local3[_local2][_local1] == 7) {
var name = ((("t_" + _local1) + "_") + _local2);
game[name] = new game["Tile" + _local3[_local2][_local1]]();
game.clip.attachMovie("tile", name, ((25 + (_local2 * mapWidth)) + _local1) + (ebene * 0));
game.clip[name]._x = 48 + (_local1 * game.tileW);
game.clip[name]._y = 161 + (_local2 * game.tileH);
game.clip[name].gotoAndStop(int(_local3[_local2][_local1]));
game.clip[name].Stop();
game.clip[name].waitOff = 25;
game.clip[name].waitOn = 25;
} else {
var name = ((("t_" + _local1) + "_") + _local2);
game[name] = new game["Tile" + _local3[_local2][_local1]]();
if ((((_local3[_local2][_local1] == 12) or (_local3[_local2][_local1] == 13)) or (_local3[_local2][_local1] == 14)) or (_local3[_local2][_local1] == 15)) {
game.clip.attachMovie("tile", name, ((25 + (_local2 * mapWidth)) + _local1) + (ebene * 0));
} else if ((((_local3[_local2][_local1] == 16) or (_local3[_local2][_local1] == 17)) or (_local3[_local2][_local1] == 18)) or (_local3[_local2][_local1] == 19)) {
game.clip.attachMovie("tile", name, ((25 + (_local2 * mapWidth)) + _local1) + (ebene * 3));
} else if (_local3[_local2][_local1] == 6) {
game.clip.attachMovie("tile", name, ((25 + (_local2 * mapWidth)) + _local1) + (ebene * 3));
} else {
game.clip.attachMovie("tile", name, ((25 + (_local2 * mapWidth)) + _local1) + (ebene * 1));
}
game.clip[name]._x = 48 + (_local1 * game.tileW);
game.clip[name]._y = 161 + (_local2 * game.tileH);
game.clip[name].gotoAndStop(int(_local3[_local2][_local1]));
game.clip[name].Stop();
}
_local1++;
}
_local2++;
}
}
function detectKeys() {
var _local1 = _root;
if ((((_local1.game.curDX == 0) and (_local1.game.curDY == 0)) and (_local1.game.curBeam == 0)) and (_local1.game.dialogActive != true)) {
if (Key.isDown(39)) {
if (_local1.game.keyrelease != 1) {
_local1.game.keyrelease = 1;
_local1.game.curDX = 1;
_local1.game.curDY = 0;
_local1.startingField = true;
playSound("move");
startFieldCheck();
}
} else if (Key.isDown(37)) {
if (_local1.game.keyrelease != 2) {
_local1.game.keyrelease = 2;
_local1.game.curDX = -1;
_local1.game.curDY = 0;
_local1.startingField = true;
playSound("move");
startFieldCheck();
}
} else if (Key.isDown(38)) {
if (_local1.game.keyrelease != 3) {
_local1.game.keyrelease = 3;
_local1.game.curDX = 0;
_local1.game.curDY = -1;
_local1.startingField = true;
playSound("move");
startFieldCheck();
}
} else if (Key.isDown(40)) {
if (_local1.game.keyrelease != 4) {
_local1.game.keyrelease = 4;
_local1.game.curDX = 0;
_local1.game.curDY = 1;
_local1.startingField = true;
playSound("move");
startFieldCheck();
}
} else {
_local1.game.keyrelease = 0;
}
}
}
function moveCursor() {
var _local1 = _root;
if ((_local1.game.curBeam == 2) and (_local1.game.dialogActive != true)) {
mx = _local1.cursor.tx;
my = _local1.cursor.ty;
_local1.cursor._x = _local1.cursor._x + mx;
_local1.cursor._y = _local1.cursor._y + my;
if ((_local1.game.curDX == 0) and (_local1.game.curDY == 0)) {
var i = 0;
while (i < (0.1 * _local1.cursor.BS)) {
r = math.random();
pppx = _local1.cursor._x - (r * mx);
pppy = _local1.cursor._y - (r * my);
spawnParticle((pppx + (_local1.game.tileW / 2)) + ((Math.random() - 0.5) * (_local1.game.tileW / 5)), (pppy + (_local1.game.tileH / 2)) + ((Math.random() - 0.5) * (_local1.game.tileH / 5)), mx / 10, my / 10, 1, 5);
i++;
}
} else {
var i = 0;
while (i < (0.1 * _local1.cursor.BS)) {
r = math.random();
pppx = _local1.cursor._x - (r * mx);
pppy = _local1.cursor._y - (r * my);
spawnParticle((pppx + (_local1.game.tileW / 2)) + ((Math.random() - 0.5) * (_local1.game.tileW / 5)), (pppy + (_local1.game.tileH / 2)) + ((Math.random() - 0.5) * (_local1.game.tileH / 5)), mx / 10, my / 10, 1, 0);
i++;
}
}
if ((math.abs(_local1.cursor.dx - _local1.cursor._x) < 1) and (math.abs(_local1.cursor.dy - _local1.cursor._y) < 1)) {
_local1.cursor._x = _local1.cursor.dx;
_local1.cursor._y = _local1.cursor.dy;
_local1.game.curBeam = 0;
var name = ((("t_" + _local1.game.curX) + "_") + _local1.game.curY);
_local1.game.clip[name].ani.welle.Play();
bumpTile(_local1.game.curX, _local1.game.curY);
playSound("move");
playSound("beamend");
if (_local1.game.curBurn > 0) {
playSound("speedloop");
}
if ((_local1.game.curDX == 0) and (_local1.game.curDY == 0)) {
placeCursor(_local1.game.curX, _local1.game.curY);
}
}
} else if ((_local1.game.curBeam == 0) and (_local1.game.dialogActive != true)) {
if (!((_local1.game.curDX == 0) and (_local1.game.curDY == 0))) {
var _local3 = _local1.game.curX + _local1.game.curDX;
var _local2 = _local1.game.curY + _local1.game.curDY;
var mapWidth = _local1.GameMap[0].length;
var mapHeight = _local1.GameMap.length;
if ((((_local3 < 0) or (_local2 < 0)) or (_local2 > (mapHeight - 1))) or (_local3 > (mapWidth - 1))) {
_local1.cursor._alpha = 0;
gameOver();
} else if (_local1.GameMap[_local2][_local3] == 2) {
if (_local1.game.curBurn > 0) {
placeCursor(_local3, _local2);
_local1.GameMap[_local2][_local3] = 0;
var name = ((("t_" + _local3) + "_") + _local2);
if (_local1.game.curDX == -1) {
game.clip[name].gotoandstop("explode_left");
} else if (_local1.game.curDX == 1) {
game.clip[name].gotoandstop("explode_right");
} else if (_local1.game.curDY == -1) {
game.clip[name].gotoandstop("explode_up");
} else if (_local1.game.curDY == 1) {
game.clip[name].gotoandstop("explode_down");
} else {
game.clip[name].gotoandstop("48");
}
game.clip[name](26 + (((mapWidth * mapHeight) + 1) * 4));
game.clip[name].stop();
fixMap(_local3, _local2);
_local1.game.curBurn = 0;
playSound("speedloop_stop");
playSound("explode");
} else {
bumpTile(_local3, _local2);
playSound("wall");
stopCursor();
}
} else if (((_local1.GameMap[_local2][_local3] == 3) or (_local1.GameMap[_local2][_local3] == 4)) or (_local1.GameMap[_local2][_local3] == 5)) {
if (_local1.GameMap[_local2][_local3] == 3) {
_local1.game.M = 1;
playSound("pickupm");
}
if (_local1.GameMap[_local2][_local3] == 4) {
_local1.game.I = 1;
playSound("pickupi");
}
if (_local1.GameMap[_local2][_local3] == 5) {
_local1.game.S = 1;
playSound("pickups");
}
_local1.GameMap[_local2][_local3] = 0;
var name = ((("t_" + _local3) + "_") + _local2);
_local1.conter_mis.gotoAndStop(((_local1.game.M + _local1.game.I) + _local1.game.S) + 1);
game.clip[name].Play();
placeCursor(_local3, _local2);
} else if (_local1.GameMap[_local2][_local3] == 6) {
playSound("spiked");
gameOver();
} else if (_local1.GameMap[_local2][_local3] == 7) {
var name = ((("t_" + _local3) + "_") + _local2);
if (game.clip[name].off) {
bumpTile(_local3, _local2);
stopCursor();
} else {
playSound("spiked");
gameOver();
}
} else if (_local1.GameMap[_local2][_local3] == 11) {
t = getTimer();
_local1.game.endTime = t - _local1.game.startingTime;
placeCursor(_local3, _local2);
_local1.game.curBeam = 1;
var name = ((("t_" + _local3) + "_") + _local2);
game.clip[name].Ani.gotoAndPlay("excit");
_local1.cursor._alpha = 0;
bumpTile(_local3, _local2);
playsound("button");
} else if ((((_local1.GameMap[_local2][_local3] == 12) or (_local1.GameMap[_local2][_local3] == 13)) or (_local1.GameMap[_local2][_local3] == 14)) or (_local1.GameMap[_local2][_local3] == 15)) {
var ZielDX = 0;
var ZielDY = 0;
if (_local1.GameMap[_local2][_local3] == 12) {
ZielDY = 1;
}
if (_local1.GameMap[_local2][_local3] == 13) {
ZielDX = -1;
}
if (_local1.GameMap[_local2][_local3] == 14) {
ZielDY = -1;
}
if (_local1.GameMap[_local2][_local3] == 15) {
ZielDX = 1;
}
if ((ZielDX == _local1.game.curDX) and (_local1.game.curDY == ZielDY)) {
if (_local1.game.curBurn == 0) {
playSound("speedup");
playSound("speedloop");
_local1.game.curBurn = 1;
_local1.GameMap[_local2][_local3] = 0;
var name = ((("t_" + _local3) + "_") + _local2);
game.clip[name].gotoAndStop(55);
}
}
placeCursor(_local3, _local2);
} else if ((((_local1.GameMap[_local2][_local3] == 16) or (_local1.GameMap[_local2][_local3] == 17)) or (_local1.GameMap[_local2][_local3] == 18)) or (_local1.GameMap[_local2][_local3] == 19)) {
var ZielDX = 0;
var ZielDY = 0;
if (_local1.GameMap[_local2][_local3] == 16) {
ZielDY = -1;
}
if (_local1.GameMap[_local2][_local3] == 17) {
ZielDX = 1;
}
if (_local1.GameMap[_local2][_local3] == 18) {
ZielDY = 1;
}
if (_local1.GameMap[_local2][_local3] == 19) {
ZielDX = -1;
}
if ((ZielDX == _local1.game.curDX) and (_local1.game.curDY == ZielDY)) {
playSound("onewayyes");
var name = ((("t_" + _local3) + "_") + _local2);
game.clip[name].ani.Play();
placeCursor(_local3, _local2);
} else {
playSound("onewayno");
bumpTile(_local3, _local2);
stopCursor();
}
} else if (((((_local1.GameMap[_local2][_local3] == 20) or (_local1.GameMap[_local2][_local3] == 21)) or (_local1.GameMap[_local2][_local3] == 22)) or (_local1.GameMap[_local2][_local3] == 23)) or (_local1.GameMap[_local2][_local3] == 24)) {
var foundX = -1;
var foundY = -1;
var i = mapHeight;
while (i >= 0) {
var j = mapWidth;
while (j >= 0) {
if ((_local1.GameMap[i][j] == _local1.GameMap[_local2][_local3]) and (!((_local2 == i) and (_local3 == j)))) {
foundY = i;
foundX = j;
}
j--;
}
i--;
}
if (!((foundY == -1) or (foundX == -1))) {
_local1.game.curBeam = 2;
placeCursor(_local3, _local2);
_local1.cursor.gotoAndPlay("beam");
bumpTile(_local3, _local2);
var name = ((("t_" + _local3) + "_") + _local2);
game.clip[name].ani.welle.Play();
_local1.game.curX = foundX;
_local1.game.curY = foundY;
_local1.cursor.dx = 47 + (foundX * _local1.game.tileW);
_local1.cursor.dy = 160 + (foundY * _local1.game.tileH);
_local1.cursor.tx = (-((47 + (_local3 * _local1.game.tileW)) - _local1.cursor.dx)) / 10;
_local1.cursor.ty = (-((160 + (_local2 * _local1.game.tileH)) - _local1.cursor.dy)) / 10;
_local1.cursor.BS = math.sqrt((_local1.cursor.tx * _local1.cursor.tx) + (_local1.cursor.ty * _local1.cursor.ty));
playSound("beamend");
playSound("beam");
playSound("speedloop_stop");
} else {
trace("Kein Zielbeamer gefunden! Fehler in der Map?");
placeCursor(_local3, _local2);
}
} else if ((((_local1.GameMap[_local2][_local3] == 31) or (_local1.GameMap[_local2][_local3] == 32)) or (_local1.GameMap[_local2][_local3] == 33)) or (_local1.GameMap[_local2][_local3] == 34)) {
var ZielDX = 0;
var ZielDY = 0;
if (_local1.GameMap[_local2][_local3] == 31) {
ZielDY = -1;
ZielDX = 1;
}
if (_local1.GameMap[_local2][_local3] == 32) {
ZielDY = 1;
ZielDX = 1;
}
if (_local1.GameMap[_local2][_local3] == 33) {
ZielDY = 1;
ZielDX = -1;
}
if (_local1.GameMap[_local2][_local3] == 34) {
ZielDY = -1;
ZielDX = -1;
}
if (((ZielDX == _local1.game.curDX) and (_local1.game.curDY == 0)) or ((_local1.game.curDX == 0) and (_local1.game.curDY == ZielDY))) {
placeCursor(_local3, _local2);
bumpTile(_local3, _local2);
var name = ((("t_" + _local3) + "_") + _local2);
game.clip[name].ani.Play();
if (_local1.GameMap[_local2][_local3] == 31) {
_local1.game.curDX = _local1.game.curDX - 1;
_local1.game.curDY = _local1.game.curDY + 1;
}
if (_local1.GameMap[_local2][_local3] == 32) {
_local1.game.curDX = _local1.game.curDX - 1;
_local1.game.curDY = _local1.game.curDY - 1;
}
if (_local1.GameMap[_local2][_local3] == 33) {
_local1.game.curDX = _local1.game.curDX + 1;
_local1.game.curDY = _local1.game.curDY - 1;
}
if (_local1.GameMap[_local2][_local3] == 34) {
_local1.game.curDX = _local1.game.curDX + 1;
_local1.game.curDY = _local1.game.curDY + 1;
}
playSound("deflect");
} else {
playSound("wall");
bumpTile(_local3, _local2);
stopCursor();
}
} else if (((((_local1.GameMap[_local2][_local3] == 40) or (_local1.GameMap[_local2][_local3] == 41)) or (_local1.GameMap[_local2][_local3] == 42)) or (_local1.GameMap[_local2][_local3] == 43)) or (_local1.GameMap[_local2][_local3] == 44)) {
keynr = _local1.GameMap[_local2][_local3] - 40;
_local1.game.keys[keynr] = _local1.game.keys[keynr] + 1;
playSound("pickupkey");
var name = ((("t_" + _local3) + "_") + _local2);
game.clip[name].Play();
_local1.GameMap[_local2][_local3] = 0;
if (_local1.game.keys[keynr] == 1) {
var i = mapHeight;
while (i >= 0) {
var j = mapWidth;
while (j >= 0) {
if (_local1.GameMap[i][j] == (keynr + 50)) {
var name2 = ((("t_" + j) + "_") + i);
game.clip[name2].ani.GotoAndPlay("glow");
}
j--;
}
i--;
}
}
_local1.conter_key.gotoAndStop(((((_local1.game.keys[0] + _local1.game.keys[1]) + _local1.game.keys[2]) + _local1.game.keys[3]) + _local1.game.keys[4]) + 1);
placeCursor(_local3, _local2);
} else if (((((_local1.GameMap[_local2][_local3] == 50) or (_local1.GameMap[_local2][_local3] == 51)) or (_local1.GameMap[_local2][_local3] == 52)) or (_local1.GameMap[_local2][_local3] == 53)) or (_local1.GameMap[_local2][_local3] == 54)) {
if (_local1.game.keys[_local1.GameMap[_local2][_local3] - 50] > 0) {
keynr = _local1.GameMap[_local2][_local3] - 50;
playSound("door");
var name = ((("t_" + _local3) + "_") + _local2);
if (_local1.game.curDX == 0) {
game.clip[name].ani.GotoAndPlay("open_h");
} else {
game.clip[name].ani.GotoAndPlay("open_v");
}
_local1.game.keys[keynr] = _local1.game.keys[keynr] - 1;
_local1.GameMap[_local2][_local3] = 0;
if (_local1.game.keys[keynr] == 0) {
var i = mapHeight;
while (i >= 0) {
var j = mapWidth;
while (j >= 0) {
if (_local1.GameMap[i][j] == (keynr + 50)) {
var name2 = ((("t_" + j) + "_") + i);
game.clip[name2].ani.GotoAndPlay("unglow");
}
j--;
}
i--;
}
}
placeCursor(_local3, _local2);
_local1.conter_key.gotoAndStop(((((_local1.game.keys[0] + _local1.game.keys[1]) + _local1.game.keys[2]) + _local1.game.keys[3]) + _local1.game.keys[4]) + 1);
} else {
playSound("wall");
bumpTile(_local3, _local2);
stopCursor();
}
} else if (_local1.GameMap[_local2][_local3] > 99) {
placeCursor(_local3, _local2);
} else {
placeCursor(_local3, _local2);
}
}
}
}
function stopCursor() {
var _local1 = _root;
_local1.game.curBurn = 0;
playSound("speedloop_stop");
if (_local1.game.curDX == -1) {
_local1.cursor.gotoAndPlay("squash_l");
} else if (_local1.game.curDX == 1) {
_local1.cursor.gotoAndPlay("squash_r");
} else if (_local1.game.curDY == -1) {
_local1.cursor.gotoAndPlay("squash_u");
} else if (_local1.game.curDY == 1) {
_local1.cursor.gotoAndPlay("squash_d");
}
_local1.game.curDX = 0;
_local1.game.curDY = 0;
}
function bumpTile(tilex, tiley) {
var _local1 = _root;
if (_local1.backbumper.bumpName != "none") {
game.clip[_local1.backbumper.bumpName]._y = _local1.backbumper.dy;
game.clip[_local1.backbumper.bumpName]._x = _local1.backbumper.dx;
_local1.backbumper.bumpName = "none";
_local1.backbumper.dx = 0;
_local1.backbumper.dy = 0;
}
var _local2 = (("t_" + tilex) + "_") + tiley;
_local1.backbumper.bumpName = _local2;
_local1.backbumper.dy = game.clip[_local2]._y;
_local1.backbumper.dx = game.clip[_local2]._x;
game.clip[_local2]._y = game.clip[_local2]._y + (_local1.game.curDY * 2);
game.clip[_local2]._x = game.clip[_local2]._x + (_local1.game.curDX * 2);
}
function placeCursor(nx, ny) {
var _local1 = _root;
moved();
if ((_local1.game.curBurn == 0) and (_local1.game.curBeam == 0)) {
if (_local1.game.curDX != 0) {
_local1.cursor.gotoAndStop(3);
} else if (_local1.game.curDY != 0) {
_local1.cursor.gotoAndStop(2);
} else {
_local1.cursor.gotoAndStop(1);
}
} else if ((_local1.game.curBurn > 0) and (_local1.game.curBeam == 0)) {
if ((_local1.game.curDX == 0) and (_local1.game.curDY == -1)) {
_local1.cursor.gotoAndStop("hadup");
} else if ((_local1.game.curDX == 0) and (_local1.game.curDY == 1)) {
_local1.cursor.gotoAndStop("haddown");
} else if ((_local1.game.curDX == -1) and (_local1.game.curDY == 0)) {
_local1.cursor.gotoAndStop("hadleft");
} else if ((_local1.game.curDX == 1) and (_local1.game.curDY == 0)) {
_local1.cursor.gotoAndStop("hadright");
} else {
_local1.cursor.gotoAndStop(1);
}
var _local2 = 0;
while (_local2 < 5) {
r = Math.random();
pppx = _local1.cursor._x + (r * (_local1.game.curDX * _local1.game.tileW));
pppy = _local1.cursor._y + (r * (_local1.game.curDY * _local1.game.tileH));
spawnParticle((pppx + (_local1.game.tileW / 2)) + ((Math.random() - 0.5) * (_local1.game.tileW / 3.5)), (pppy + (_local1.game.tileH / 2)) + ((Math.random() - 0.5) * (_local1.game.tileH / 3.5)), ((_local1.game.curDX * _local1.game.tileW) / 8) + ((Math.random() - 0.5) * 1), ((_local1.game.curDY * _local1.game.tileH) / 8) + ((Math.random() - 0.5) * 1), int((1 - r) * 4), 1);
_local2++;
}
}
_local1.game.curX = nx;
_local1.game.curY = ny;
_local1.cursor._x = 47 + (_local1.game.curX * _local1.game.tileW);
_local1.cursor._y = 160 + (_local1.game.curY * _local1.game.tileH);
if ((_local1.game.curX >= 0) and (_local1.game.curX <= 21)) {
_local1.posTab_X.gotoAndStop(_local1.game.curX + 2);
} else {
_local1.posTab_X.gotoAndStop(1);
}
if ((_local1.game.curY >= 0) and (_local1.game.curY <= 19)) {
_local1.posTab_Y.gotoAndStop(_local1.game.curY + 2);
} else {
_local1.posTab_Y.gotoAndStop(1);
}
_local1.posTab_X._x = _local1.cursor._x;
_local1.posTab_Y._y = _local1.cursor._y;
}
function gameOver() {
playSound("gameover");
restartLevel();
}
function nextLevel() {
var _local1 = _root;
udate = false;
if (_local1.scoreMIS[_local1.game.level - 1] < ((_local1.game.M + _local1.game.I) + _local1.game.S)) {
udate = true;
} else if (_local1.scoreMIS[_local1.game.level - 1] == ((_local1.game.M + _local1.game.I) + _local1.game.S)) {
if (_local1.scoreMoves[_local1.game.level - 1] > _local1.game.moves) {
udate = true;
} else if (_local1.scoreMoves[_local1.game.level - 1] == _local1.game.moves) {
if (_local1.scoreZeit[_local1.game.level - 1] > _local1.game.endTime) {
udate = true;
}
}
}
if (((_local1.scoreZeit[_local1.game.level - 1] == 0) and (_local1.scoreMIS[_local1.game.level - 1] == 0)) and (_local1.scoreMoves[_local1.game.level - 1] == 0)) {
udate = true;
}
if (udate == true) {
_local1.scoreZeit[_local1.game.level - 1] = _local1.game.endTime;
_local1.scoreMIS[_local1.game.level - 1] = (_local1.game.M + _local1.game.I) + _local1.game.S;
_local1.scoreMoves[_local1.game.level - 1] = _local1.game.moves;
}
_local1.levelStatus[_local1.game.level - 1] = 2;
levComp = 0;
var _local2 = 0;
while (_local2 < _local1.game.levelCount) {
if (_local1.levelStatus[_local2] == 2) {
levComp = levComp + 1;
}
_local2++;
}
if (_local1.game.level == _local1.game.levelCount) {
dispRefresh();
_local1.attachMovie("CompBox", "compbox", 4052 + _local1.game.pcnt);
_local1.game.dialogActive = true;
} else {
_local1.game.level = _local1.game.level + 1;
restartLevel();
}
}
function restartLevel() {
var _local1 = _root;
trace("Restart");
trace("MIS:" + ((_local1.game.M + _local1.game.I) + _local1.game.S));
trace("Moves:" + _local1.game.moves);
t = _local1.game.endTime;
sec = int(t / 1000);
minu = int(sec / 60);
hun = int((t - (sec * 1000)) / 10);
sec = sec - (minu * 60);
if (sec < 10) {
sec = "0" + sec;
}
if (hun < 10) {
hun = "0" + hun;
}
trace((((("Zeit:" + minu) + ":") + sec) + ".") + hun);
if ((_local1.game.level > 0) and (_local1.game.level <= _local1.game.levelCount)) {
_local1.cursor._alpha = 100;
_local1.cursor.gotoAndStop(1);
_local1.game.startingTime = 0;
_local1.game.endTime = 0;
_local1.startingfield = 0;
_local1.game.moves = 0;
_local1.game.par = 0;
_local1.game.curDX = 0;
_local1.game.curDY = 0;
_local1.game.M = 0;
_local1.game.I = 0;
_local1.game.S = 0;
_local1.game.keys = [0, 0, 0, 0, 0];
_local1.game.points = 0;
_local1.game.curBurn = 0;
_local1.game.curBeam = 0;
_local1.game.pcnt = 0;
if (_local1.backbumper.bumpName != "none") {
game.clip[_local1.backbumper.bumpName]._y = _local1.backbumper.dy;
game.clip[_local1.backbumper.bumpName]._x = _local1.backbumper.dx;
_local1.backbumper.bumpName = "none";
_local1.backbumper.dx = 0;
_local1.backbumper.dy = 0;
}
dispRefresh();
copyMap(_local1["level" + game.level]);
buildMap(GameMap);
}
}
function fixMap(maX, maY) {
var _local1 = maY;
var _local2 = maX;
var _local3 = _root;
if (_local3.GameMap[_local1 - 1][_local2 - 1] == 2) {
setWallTile(_local2 - 1, _local1 - 1);
}
if (_local3.GameMap[_local1 - 1][_local2] == 2) {
setWallTile(_local2, _local1 - 1);
}
if (_local3.GameMap[_local1 - 1][_local2 + 1] == 2) {
setWallTile(_local2 + 1, _local1 - 1);
}
if (_local3.GameMap[_local1][_local2 - 1] == 2) {
setWallTile(_local2 - 1, _local1);
}
if (_local3.GameMap[_local1][_local2 + 1] == 2) {
setWallTile(_local2 + 1, _local1);
}
if (_local3.GameMap[_local1 + 1][_local2 - 1] == 2) {
setWallTile(_local2 - 1, _local1 + 1);
}
if (_local3.GameMap[_local1 + 1][_local2] == 2) {
setWallTile(_local2, _local1 + 1);
}
if (_local3.GameMap[_local1 + 1][_local2 + 1] == 2) {
setWallTile(_local2 + 1, _local1 + 1);
}
}
function setWallTile(mapX, mapY) {
var _local3 = mapY;
var name = ((("t_" + mapX) + "_") + _local3);
var _local1 = "0";
var _local2 = "0";
if (GameMap[_local3 - 1][mapX] == 2) {
_local1 = "1";
} else {
_local1 = "0";
}
if (GameMap[_local3][mapX + 1] == 2) {
_local1 = _local1 + "1";
} else {
_local1 = _local1 + "0";
}
if (GameMap[_local3 + 1][mapX] == 2) {
_local1 = _local1 + "1";
} else {
_local1 = _local1 + "0";
}
if (GameMap[_local3][mapX - 1] == 2) {
_local1 = _local1 + "1";
} else {
_local1 = _local1 + "0";
}
if (GameMap[_local3 - 1][mapX - 1] == 2) {
_local2 = "1";
} else {
_local2 = "0";
}
if (GameMap[_local3 - 1][mapX + 1] == 2) {
_local2 = _local2 + "1";
} else {
_local2 = _local2 + "0";
}
if (GameMap[_local3 + 1][mapX + 1] == 2) {
_local2 = _local2 + "1";
} else {
_local2 = _local2 + "0";
}
if (GameMap[_local3 + 1][mapX - 1] == 2) {
_local2 = _local2 + "1";
} else {
_local2 = _local2 + "0";
}
game.clip[name].gotoAndStop(selectWallTile(_local1, _local2));
game.clip[name].Stop();
}
function playSound(saund) {
var _local1 = _root;
var _local2 = saund;
if (_local2 == "wall") {
if (_local1.game.soundSkin == 0) {
_local1[SoundBump].start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndWall_t_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndWall_t_j.start(0, 1);
}
} else if (_local2 == "deflect") {
if (_local1.game.soundSkin == 0) {
_local1[SoundDeflect].start(0, 1);
}
} else if (_local2 == "beamend") {
if (_local1.game.soundSkin == 0) {
_local1[SoundBeamend].start(0, 1);
}
} else if (_local2 == "gameover") {
if (_local1.game.soundSkin == 0) {
_local1.sndGameOver1.start(0, 1);
}
} else if (_local2 == "beam") {
if (_local1.game.soundSkin == 0) {
_local1[SoundBeam].start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndBeam_w_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndBeam_w_j.start(0, 1);
}
} else if (_local2 == "door") {
if (_local1.game.soundSkin == 0) {
_local1[SoundDoor].start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndDoor_open_k_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndDoor_open_k_j.start(0, 1);
}
} else if (_local2 == "move") {
if (_local1.game.soundSkin == 0) {
_local1[SoundMove].start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndMove_w_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndMove_w_j.start(0, 1);
}
} else if (_local2 == "onewayno") {
if (_local1.game.soundSkin == 0) {
_local1[SoundBump].start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndOne_way_no_t_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndOne_way_no_t_j.start(0, 1);
}
} else if (_local2 == "onewayyes") {
if (_local1.game.soundSkin == 0) {
_local1[SoundOneway].start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndOne_way_yes_w_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndOne_way_yes_w_j.start(0, 1);
}
} else if (_local2 == "pickupi") {
if (_local1.game.soundSkin == 0) {
_local1[SoundMis].start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndPickup_i_d_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndPickup_i_d_j.start(0, 1);
}
} else if (_local2 == "pickupm") {
if (_local1.game.soundSkin == 0) {
_local1[SoundMis].start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndPickup_m_d_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndPickup_m_d_j.start(0, 1);
}
} else if (_local2 == "pickups") {
if (_local1.game.soundSkin == 0) {
_local1[SoundMis].start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndPickup_s_d_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndPickup_s_d_j.start(0, 1);
}
} else if (_local2 == "pickupnum") {
if (_local1.game.soundSkin == 0) {
_local1[SoundMis].start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndPickup_numbers_z_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndPickup_numbers_z_j.start(0, 1);
}
} else if (_local2 == "pickupkey") {
if (_local1.game.soundSkin == 0) {
_local1[SoundKey].start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndPickup_key_p_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndPickup_key_p_j.start(0, 1);
}
} else if (_local2 == "speedloop") {
if (_local1.game.soundSkin == 0) {
_local1[SoundSpeedloop].start(0, 1);
}
} else if (_local2 == "speedloop_stop") {
if (_local1.game.soundSkin == 0) {
_local1[SoundSpeedloop].stop();
}
} else if (_local2 == "speedup") {
if (_local1.game.soundSkin == 0) {
_local1[SoundSpeedup].start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndSpeed_up_f_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndSpeed_up_f_j.start(0, 1);
}
} else if (_local2 == "explode") {
if (_local1.game.soundSkin == 0) {
_local1[SoundExplode].start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndSpeed_up_f_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndSpeed_up_f_j.start(0, 1);
}
} else if (_local2 == "spiked") {
if (_local1.game.soundSkin == 0) {
_local1.sndSpiked_b_d.start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndSpiked_b_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndSpiked_b_j.start(0, 1);
}
} else if (_local2 == "spikeblink") {
if (_local1.game.soundSkin == 0) {
_local1.sndSpikes_blink_b_d.start(0, 1);
}
if (_local1.game.soundSkin == 1) {
_local1.sndSpikes_blink_b_d.start(0, 1);
}
if (_local1.game.soundSkin == 2) {
_local1.sndSpikes_blink_b_j.start(0, 1);
}
} else if (_local2 == "excit") {
if (_local1.game.soundSkin == 0) {
_local1.sndExcit.start(0, 1);
}
} else if (_local2 == "button") {
if (_local1.game.soundSkin == 0) {
_local1.sndPickupMisV2_1.start(0, 1);
}
} else {
trace("Unbekannter Sound: " + _local2);
}
}
function selectWallTile(StrV, StrD) {
var _local1 = StrD;
var _local2 = StrV;
if (_local2 == "0000") {
return(1);
}
if (_local2 == "1111") {
if (_local1 == "0000") {
return(3);
}
if (_local1 == "1111") {
return(2);
}
if (_local1 == "1000") {
return(4);
}
if (_local1 == "0100") {
return(5);
}
if (_local1 == "0010") {
return(6);
}
if (_local1 == "0001") {
return(7);
}
if (_local1 == "0111") {
return(44);
}
if (_local1 == "1011") {
return(45);
}
if (_local1 == "1101") {
return(46);
}
if (_local1 == "1110") {
return(47);
}
if (_local1 == "1100") {
return(8);
}
if (_local1 == "0110") {
return(9);
}
if (_local1 == "0011") {
return(10);
}
if (_local1 == "1010") {
return(12);
}
if (_local1 == "0101") {
return(13);
}
if (_local1 == "1001") {
return(11);
}
trace("Tile nicht erkannt");
trace((_local2 + ", ") + _local1);
} else if (_local2 == "0111") {
if ((((_local1 == "1111") or (_local1 == "0011")) or (_local1 == "1011")) or (_local1 == "0111")) {
return(28);
}
if ((((_local1 == "1100") or (_local1 == "0000")) or (_local1 == "1000")) or (_local1 == "0100")) {
return(29);
}
if ((((_local1 == "1110") or (_local1 == "0010")) or (_local1 == "1010")) or (_local1 == "0110")) {
return(30);
}
if ((((_local1 == "1101") or (_local1 == "0001")) or (_local1 == "1001")) or (_local1 == "0101")) {
return(31);
}
trace("Tile nicht erkannt");
trace((_local2 + ", ") + _local1);
} else if (_local2 == "1011") {
if ((((_local1 == "1001") or (_local1 == "1111")) or (_local1 == "1011")) or (_local1 == "1101")) {
return(32);
}
if ((((_local1 == "0000") or (_local1 == "0110")) or (_local1 == "0010")) or (_local1 == "0100")) {
return(33);
}
if ((((_local1 == "0001") or (_local1 == "0111")) or (_local1 == "0011")) or (_local1 == "0101")) {
return(34);
}
if ((((_local1 == "1000") or (_local1 == "1110")) or (_local1 == "1010")) or (_local1 == "1100")) {
return(35);
}
trace("Tile nicht erkannt");
trace((_local2 + ", ") + _local1);
} else if (_local2 == "1101") {
if ((((_local1 == "1100") or (_local1 == "1111")) or (_local1 == "1110")) or (_local1 == "1101")) {
return(36);
}
if ((((_local1 == "0000") or (_local1 == "0011")) or (_local1 == "0010")) or (_local1 == "0001")) {
return(37);
}
if ((((_local1 == "0100") or (_local1 == "0111")) or (_local1 == "0110")) or (_local1 == "0101")) {
return(38);
}
if ((((_local1 == "1000") or (_local1 == "1011")) or (_local1 == "1010")) or (_local1 == "1001")) {
return(39);
}
trace("Tile nicht erkannt");
trace((_local2 + ", ") + _local1);
} else if (_local2 == "1110") {
if ((((_local1 == "0110") or (_local1 == "1111")) or (_local1 == "1110")) or (_local1 == "0111")) {
return(40);
}
if ((((_local1 == "0000") or (_local1 == "1001")) or (_local1 == "1000")) or (_local1 == "0001")) {
return(41);
}
if ((((_local1 == "0010") or (_local1 == "1011")) or (_local1 == "1010")) or (_local1 == "0011")) {
return(42);
}
if ((((_local1 == "0100") or (_local1 == "1101")) or (_local1 == "1100")) or (_local1 == "0101")) {
return(43);
}
trace("Tile nicht erkannt");
trace((_local2 + ", ") + _local1);
} else {
if (_local2 == "0101") {
return(14);
}
if (_local2 == "1010") {
return(15);
}
if (_local2 == "1000") {
return(16);
}
if (_local2 == "0100") {
return(17);
}
if (_local2 == "0010") {
return(18);
}
if (_local2 == "0001") {
return(19);
}
if (_local2 == "1100") {
if ((((((((_local1 == "0100") or (_local1 == "0111")) or (_local1 == "0110")) or (_local1 == "0101")) or (_local1 == "1100")) or (_local1 == "1111")) or (_local1 == "1110")) or (_local1 == "1101")) {
return(20);
}
return(21);
}
if (_local2 == "0110") {
if ((((((((_local1 == "0010") or (_local1 == "0110")) or (_local1 == "0011")) or (_local1 == "0111")) or (_local1 == "1010")) or (_local1 == "1110")) or (_local1 == "1011")) or (_local1 == "1111")) {
return(22);
}
return(23);
}
if (_local2 == "0011") {
if ((((((((_local1 == "0001") or (_local1 == "0111")) or (_local1 == "0011")) or (_local1 == "0101")) or (_local1 == "1001")) or (_local1 == "1111")) or (_local1 == "1011")) or (_local1 == "1101")) {
return(24);
}
return(25);
}
if (_local2 == "1001") {
if ((((((((_local1 == "1000") or (_local1 == "1110")) or (_local1 == "1010")) or (_local1 == "1100")) or (_local1 == "1001")) or (_local1 == "1111")) or (_local1 == "1011")) or (_local1 == "1101")) {
return(26);
}
return(27);
}
}
return(undefined);
}
function displayTime() {
var _local1 = _root;
if ((_local1.game.startingTime == 0) and (_local1.game.endTime == 0)) {
_local1.disp_time = "0:00.0";
} else if ((_local1.game.startingTime != 0) and (_local1.game.endTime == 0)) {
t = getTimer();
t = t - _local1.game.startingTime;
sec = int(t / 1000);
minu = int(sec / 60);
hun = int((t - (sec * 1000)) / 10);
sec = sec - (minu * 60);
if (sec < 10) {
sec = "0" + sec;
}
if (hun < 10) {
hun = "0" + hun;
}
_local1.disp_time = (((minu + ":") + sec) + ".") + hun;
} else {
t = _local1.game.endTime;
sec = int(t / 1000);
minu = int(sec / 60);
hun = int((t - (sec * 1000)) / 10);
sec = sec - (minu * 60);
if (sec < 10) {
sec = "0" + sec;
}
if (hun < 10) {
hun = "0" + hun;
}
_local1.disp_time = (((minu + ":") + sec) + ".") + hun;
}
}
function moved() {
var _local1 = _root;
if (_local1.startingField) {
if (_local1.game.startingTime == 0) {
_local1.game.startingTime = getTimer();
}
_local1.startingField = false;
_local1.game.moves = _local1.game.moves + 1;
_local1.disp_moves = _local1.game.moves;
}
}
function spawnParticle(px, py, bx, by, age, style) {
var _local1 = _root;
var _local2 = py;
var _local3 = px;
_local1.game.pcnt = _local1.game.pcnt + 1;
name = "pee" + _local1.game.pcnt;
if (style == 1) {
_local1.game.clip.attachMovie("particle_f", name, 4000 + _local1.game.pcnt);
_local1.cursor.swapDepths(4000 + _local1.game.pcnt);
_local1.game.clip[name].x = _local3;
_local1.game.clip[name].y = _local2;
_local1.game.clip[name]._x = _local3 - 3;
_local1.game.clip[name]._y = _local2 - 3;
_local1.game.clip[name].dx = bx;
_local1.game.clip[name].dy = by;
_local1.game.clip[name].gotoAndPlay(age);
} else if (style == 5) {
_local1.attachMovie("particle_b", name, 4000 + _local1.game.pcnt);
_local1[name].x = _local3;
_local1[name].y = _local2;
_local1[name]._x = _local3 - 3;
_local1[name]._y = _local2 - 3;
_local1[name].dx = bx;
_local1[name].dy = by;
_local1[name].gotoAndPlay(age);
} else {
_local1.game.clip.attachMovie("particle_b", name, 4000 + _local1.game.pcnt);
_local1.cursor.swapDepths(4000 + _local1.game.pcnt);
_local1.game.clip[name].x = _local3;
_local1.game.clip[name].y = _local2;
_local1.game.clip[name]._x = _local3 - 3;
_local1.game.clip[name]._y = _local2 - 3;
_local1.game.clip[name].dx = bx;
_local1.game.clip[name].dy = by;
_local1.game.clip[name].gotoAndPlay(age);
}
}
function buildTabs() {
var _local3 = _root;
_local3.attachMovie("empty", "tabs", 1);
var _local1 = 0;
while (_local1 < _local3.game.tabCount) {
var _local2 = "tab" + _local1;
_local3.tabs.attachMovie("tab", _local2, 2 + _local1);
_local3.tabs[_local2]._y = 519;
_local3.tabs[_local2]._x = 65 + (72 * _local1);
_local1++;
}
var _local2 = "tab_b";
_local3.tabs.attachMovie("tabblende", _local2, 3 + _local3.game.tabCount);
_local3.tabs[_local2]._y = 519;
_local3.tabs[_local2]._x = 772;
}
function updateTabs(checkOffset) {
var _local1 = _root;
if (checkOffset) {
if (_local1.game.level <= _local1.game.tabOffset) {
_local1.game.tabOffset = _local1.game.level - 1;
}
if (_local1.game.level > ((_local1.game.tabOffset + _local1.game.tabCount) - 4)) {
_local1.game.tabOffset = (_local1.game.level - _local1.game.tabCount) + int(_local1.game.tabCount / 2);
}
if (_local1.game.tabOffset < 0) {
_local1.game.tabOffset = 0;
}
}
var _local3 = 0;
while (_local3 < _local1.game.tabCount) {
var _local2 = "tab" + _local3;
num = (_local1.game.tabOffset + _local3) + 1;
if ((num < 1) or (num > _local1.game.levelCount)) {
_local1.tabs[_local2]._alpha = 0;
} else {
_local1.tabs[_local2]._alpha = 100;
if (num == _local1.game.level) {
_local1.tabs[_local2].bg.gotoandstop(2);
_local1.tabs[_local2].swapDepths(_local1.game.tabCount + 2);
_local1.tabs[_local2].num_bold.gotoAndStop(num + 2);
_local1.tabs[_local2].num_roman.gotoAndStop(2);
} else {
_local1.tabs[_local2].swapDepths(2 + _local3);
_local1.tabs[_local2].bg.gotoandstop(1);
_local1.tabs[_local2].num_roman.gotoAndStop(num + 2);
_local1.tabs[_local2].num_bold.gotoAndStop(2);
}
_local1.tabs[_local2].icon.gotoAndStop(_local1.levelStatus[num - 1] + 1);
_local1.tabs[_local2].num = num;
}
_local3++;
}
_local1.tabs.tab_b.swapDepths(_local1.game.tabCount + 3);
}
function dispRefresh() {
var _local2 = _root;
if ((_local2.game.level > 0) and (_local2.game.level <= _local2.game.levelCount)) {
_local2.dsp_cap = ((("Level " + game.level) + " (Password: ") + _local2.pwd[game.level - 1]) + ")";
}
var d_levels = 0;
var _local3 = 0;
var d_moves = 0;
var d_time = 0;
var _local1 = 0;
while (_local1 < _local2.game.levelCount) {
if (_local2.levelStatus[_local1] == 2) {
d_levels = d_levels + 1;
}
d_moves = d_moves + _local2.scoreMoves[_local1];
_local3 = _local3 + _local2.scoreMIS[_local1];
d_time = d_time + _local2.scoreZeit[_local1];
_local1++;
}
te = parseInt(d_time);
sec = int(te / 1000);
minu = int(sec / 60);
hun = int((te - (sec * 1000)) / 10);
sec = sec - (minu * 60);
if (sec < 10) {
sec = "0" + sec;
}
if (hun < 10) {
hun = "0" + hun;
}
_local2.dsp_score = ((((((("<b>" + _local3) + "<br>") + minu) + ":") + sec) + ".") + hun) + "</b>";
_local2.msg_kleintext = _local2.lvl_desc[_local2.game.level - 1];
}
function startFieldCheck() {
var _local1 = _root;
var _local2 = _local1.GameMap[_local1.game.curY][_local1.game.curX];
if (_local1.game.level == 1) {
_local1.blase1.gotoAndPlay("away");
_local1.blase2.gotoAndPlay("away");
}
if ((((_local2 == 12) or (_local2 == 13)) or (_local2 == 14)) or (_local2 == 15)) {
var ZielDX = 0;
var _local3 = 0;
if (_local2 == 12) {
_local3 = 1;
}
if (_local2 == 13) {
ZielDX = -1;
}
if (_local2 == 14) {
_local3 = -1;
}
if (_local2 == 15) {
ZielDX = 1;
}
if ((ZielDX == _local1.game.curDX) and (_local1.game.curDY == _local3)) {
if (_local1.game.curBurn == 0) {
playSound("speedup");
playSound("speedloop");
_local1.game.curBurn = 1;
_local1.GameMap[_local1.game.curY][_local1.game.curX] = 0;
var name = ((("t_" + _local1.game.curX) + "_") + _local1.game.curY);
game.clip[name].gotoAndStop(55);
}
}
} else if ((((_local2 == 31) or (_local2 == 32)) or (_local2 == 33)) or (_local2 == 34)) {
var ZielDX = 0;
var _local3 = 0;
if (_local2 == 31) {
_local3 = -1;
ZielDX = 1;
}
if (_local2 == 32) {
_local3 = 1;
ZielDX = 1;
}
if (_local2 == 33) {
_local3 = 1;
ZielDX = -1;
}
if (_local2 == 34) {
_local3 = -1;
ZielDX = -1;
}
if (((ZielDX == _local1.game.curDX) and (_local1.game.curDY == 0)) or ((_local1.game.curDX == 0) and (_local1.game.curDY == _local3))) {
bumpTile(_local1.game.curX, _local1.game.curY);
var name = ((("t_" + _local1.game.curX) + "_") + _local1.game.curY);
game.clip[name].ani.Play();
if (_local2 == 31) {
_local1.game.curDX = _local1.game.curDX - 1;
_local1.game.curDY = _local1.game.curDY + 1;
}
if (_local2 == 32) {
_local1.game.curDX = _local1.game.curDX - 1;
_local1.game.curDY = _local1.game.curDY - 1;
}
if (_local2 == 33) {
_local1.game.curDX = _local1.game.curDX + 1;
_local1.game.curDY = _local1.game.curDY - 1;
}
if (_local2 == 34) {
_local1.game.curDX = _local1.game.curDX + 1;
_local1.game.curDY = _local1.game.curDY + 1;
}
playSound("deflect");
}
}
}
stop();
var GameMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
gui = {tabFade:10};
var levelStatus = [1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var scoreMIS = new Array(30);
var scoreMoves = new Array(30);
var scoreZeit = new Array(30);
var i = 0;
while (i < 30) {
_root.scoreMoves[i] = 0;
_root.scoreMIS[i] = 0;
_root.scoreZeit[i] = 0;
i++;
}
pwd = ["Numbers", "Solution", "Business", "Management", "Detail", "Report", "Plain", "Opportunities", "Workflow", "Simulation", "Strategy", "Environment", "Knowledge", "Productivity", "Analysis", "Integration", "Reporting", "Forecasting", "Budgeting", "Consolidation", "Scalability", "Framework", "Planning", "MIS Alea", "MIS onVision", "MIS DeltaMiner", "Subsidiary", "CIO", "CFO", "Goal"];
game = {tileW:33, tileH:18, curX:0, curY:0, curDX:0, curDY:0, curBurn:0, curBeam:0, level:1, M:0, I:0, S:0, keys:[0, 0, 0, 0, 0], soundSkin:0, pcnt:0, keyrelease:0, moves:0, par:0, startingTime:0, endTime:0, tabCount:10, tabOffset:0, levelCount:30, dialogActive:false, ebene:0};
var startingField = false;
buildTabs();
copyMap(_root["level" + game.level]);
buildMap(GameMap);
dispRefresh();
Instance of Symbol 1077 MovieClip "cursor" in Frame 255
onClipEvent (enterFrame) {
_root.moveCursor();
}
Instance of Symbol 41 MovieClip [empty] in Frame 255
onClipEvent (load) {
var timet = 0;
}
onClipEvent (enterFrame) {
_root.detectKeys();
timet = timet + 1;
if (timet > 1) {
this.t = _root.displayTime();
timet = 0;
}
}
Instance of Symbol 41 MovieClip [empty] "backbumper" in Frame 255
onClipEvent (load) {
this.bumpName = "none";
}
onClipEvent (enterFrame) {
if (bumpName != "none") {
if (_root.game.clip[this.bumpName]._x < this.dx) {
_root.game.clip[this.bumpName]._x = _root.game.clip[this.bumpName]._x + 1;
} else if (_root.game.clip[this.bumpName]._x > this.dx) {
_root.game.clip[this.bumpName]._x = _root.game.clip[this.bumpName]._x - 1;
}
if (_root.game.clip[this.bumpName]._y < this.dy) {
_root.game.clip[this.bumpName]._y = _root.game.clip[this.bumpName]._y + 1;
} else if (_root.game.clip[this.bumpName]._y > this.dy) {
_root.game.clip[this.bumpName]._y = _root.game.clip[this.bumpName]._y - 1;
}
if ((_root.game.clip[this.bumpName]._x == this.dx) and (_root.game.clip[this.bumpName]._y == this.dy)) {
this.bumpName = "none";
}
}
}
Instance of Symbol 1130 MovieClip in Frame 255
/* no clip actions */
Symbol 9 Button
on (press) {
getURL ("http://www.schulzkommunikation.de", "_blank");
}
Symbol 10 Button
on (press) {
getURL ("http://www.ceeu.de", "_blank");
}
Symbol 11 MovieClip Frame 1
Symbol 38 MovieClip Frame 88
stop();
Symbol 47 Button
on (press) {
gotoAndPlay ("bild2");
}
Symbol 48 Button
on (press) {
gotoAndPlay ("bild3");
}
Symbol 49 Button
on (press) {
gotoAndPlay ("bild4");
}
Symbol 60 Button
on (press) {
gotoAndPlay ("bild1");
}
Symbol 77 MovieClip Frame 1
stop();
Instance of Symbol 41 MovieClip [empty] "post1" in Symbol 77 MovieClip Frame 2
onClipEvent (load) {
if (_parent.blura1.length < _parent.dettext1.length) {
_parent.blura1 = _parent.dettext1;
}
if (_parent.blurb1.length < _parent.captext1.length) {
_parent.blurb1 = _parent.captext1;
}
_parent.lena1 = _parent.blura1.length;
_parent.lenb1 = _parent.blurb1.length;
_parent.dettext1 = "";
_parent.captext1 = "";
this.t = 0;
this.t2 = 0;
}
onClipEvent (enterFrame) {
if (this.t < _parent.lena1) {
this.t = this.t + 1;
_parent.dettext1 = substring(_parent.blura1, 1, this.t);
}
if (this.t2 < _parent.lenb1) {
this.t2 = this.t2 + 1;
_parent.captext1 = substring(_parent.blurb1, 1, this.t2);
}
}
Symbol 77 MovieClip Frame 20
stop();
Instance of Symbol 41 MovieClip [empty] "post2" in Symbol 77 MovieClip Frame 21
onClipEvent (load) {
if (_parent.blura2.length < _parent.dettext2.length) {
_parent.blura2 = _parent.dettext2;
}
if (_parent.blurb2.length < _parent.captext2.length) {
_parent.blurb2 = _parent.captext2;
}
_parent.lena2 = _parent.blura2.length;
_parent.lenb2 = _parent.blurb2.length;
_parent.dettext2 = "";
_parent.captext2 = "";
this.t = 0;
this.t2 = 0;
}
onClipEvent (enterFrame) {
if (this.t < _parent.lena2) {
this.t = this.t + 1;
_parent.dettext2 = substring(_parent.blura2, 1, this.t);
}
if (this.t2 < _parent.lenb2) {
this.t2 = this.t2 + 1;
_parent.captext2 = substring(_parent.blurb2, 1, this.t2);
}
}
Symbol 77 MovieClip Frame 39
stop();
Instance of Symbol 41 MovieClip [empty] "post3" in Symbol 77 MovieClip Frame 40
onClipEvent (load) {
if (_parent.blura3.length < _parent.dettext3.length) {
_parent.blura3 = _parent.dettext3;
}
if (_parent.blurb3.length < _parent.captext3.length) {
_parent.blurb3 = _parent.captext3;
}
_parent.lena3 = _parent.blura3.length;
_parent.lenb3 = _parent.blurb3.length;
_parent.dettext3 = "";
_parent.captext3 = "";
this.t = 0;
this.t2 = 0;
}
onClipEvent (enterFrame) {
if (this.t < _parent.lena3) {
this.t = this.t + 1;
_parent.dettext3 = substring(_parent.blura3, 1, this.t);
}
if (this.t2 < _parent.lenb3) {
this.t2 = this.t2 + 1;
_parent.captext3 = substring(_parent.blurb3, 1, this.t2);
}
}
Symbol 77 MovieClip Frame 58
stop();
Instance of Symbol 41 MovieClip [empty] "post4" in Symbol 77 MovieClip Frame 59
onClipEvent (load) {
if (_parent.blura4.length < _parent.dettext4.length) {
_parent.blura4 = _parent.dettext4;
}
if (_parent.blurb4.length < _parent.captext4.length) {
_parent.blurb4 = _parent.captext4;
}
_parent.lena4 = _parent.blura4.length;
_parent.lenb4 = _parent.blurb4.length;
_parent.dettext4 = "";
_parent.captext4 = "";
this.t = 0;
this.t2 = 0;
}
onClipEvent (enterFrame) {
if (this.t < _parent.lena4) {
this.t = this.t + 1;
_parent.dettext4 = substring(_parent.blura4, 1, this.t);
}
if (this.t2 < _parent.lenb1) {
this.t2 = this.t2 + 1;
_parent.captext4 = substring(_parent.blurb4, 1, this.t2);
}
}
Symbol 77 MovieClip Frame 77
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 9
stop();
Symbol 88 MovieClip Frame 27
gotoAndStop (1);
Symbol 89 Button
on (rollOver) {
icon.gotoandplay("active");
}
on (rollOut) {
icon.gotoandplay("inactive");
}
on (press) {
_root.play();
_root.help.dalpha = 0;
play();
}
Instance of Symbol 83 MovieClip in Symbol 92 MovieClip Frame 1
onClipEvent (enterFrame) {
sofar = _root.getBytesLoaded();
total = _root.getBytesTotal();
percent = int((sofar / total) * 100);
this.gotoAndStop(percent);
_parent.loading_caption = ("Loading game (" + percent) + "% done)";
if (total == sofar) {
_parent.play();
}
}
Symbol 92 MovieClip Frame 18
stop();
Instance of Symbol 41 MovieClip [empty] "pre2" in Symbol 92 MovieClip Frame 18
onClipEvent (load) {
this.blurb = new String();
this.blurb = _parent.detailtext;
var blurblen = _parent.detailtext.length;
_parent.detailtext = "";
this.t = 0;
}
onClipEvent (enterFrame) {
if (this.t < this.blurblen) {
this.t = this.t + 1;
_parent.detailtext = substring(this.blurb, 1, this.t);
}
}
Instance of Symbol 41 MovieClip [empty] "pre1" in Symbol 92 MovieClip Frame 18
onClipEvent (load) {
_parent.loading_captiona = "";
this.t = 0;
}
onClipEvent (enterFrame) {
if (this.t < this._parent.loading_caption.length) {
this.t = this.t + 1;
_parent.loading_captiona = substring(_parent.loading_caption, 1, this.t);
} else {
_parent.loading_captiona = _parent.loading_caption;
}
}
Instance of Symbol 83 MovieClip in Symbol 92 MovieClip Frame 18
onClipEvent (enterFrame) {
sofar = _root.getBytesLoaded();
total = _root.getBytesTotal();
percent = int((sofar / total) * 100);
this.gotoAndStop(percent);
_parent.loading_caption = ("Loading game (" + percent) + "%)";
if (total == sofar) {
_parent.play();
}
}
Symbol 92 MovieClip Frame 19
stop();
Instance of Symbol 41 MovieClip [empty] "post2" in Symbol 92 MovieClip Frame 19
onClipEvent (load) {
this.blurb = new String();
this.blurb = _parent.detailtexta;
this.blurblen = _parent.detailtexta.length;
_parent.detailtexta = "";
this.t = 0;
}
onClipEvent (enterFrame) {
if (this.t < this.blurblen) {
this.t = this.t + 1;
_parent.detailtexta = substring(this.blurb, 1, this.t);
}
}
Instance of Symbol 41 MovieClip [empty] "post1" in Symbol 92 MovieClip Frame 19
onClipEvent (load) {
_parent.loading_captiona = "";
_parent.loading_caption = "Play Excit";
this.t = 0;
}
onClipEvent (enterFrame) {
if (this.t < this._parent.loading_caption.length) {
this.t = this.t + 1;
_parent.loading_captiona = substring(_parent.loading_caption, 1, this.t);
}
}
Symbol 92 MovieClip Frame 28
stop();
_root.bt2.dx = 820;
_root.bt3.dx = 820;
_root.help.dx = -400;
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 9
stop();
Symbol 96 MovieClip Frame 27
gotoAndStop (1);
Symbol 99 Button
on (rollOver) {
icon.gotoandplay("active");
}
on (rollOut) {
icon.gotoandplay("inactive");
}
on (press) {
_root.help.gotoAndPlay("bild1");
gotoAndPlay ("click");
}
Symbol 106 MovieClip Frame 16
stop();
Instance of Symbol 41 MovieClip [empty] "post2" in Symbol 106 MovieClip Frame 16
onClipEvent (load) {
this.blurb = new String();
this.blurb = _parent.detailtexta;
this.blurblen = _parent.detailtexta.length;
_parent.detailtexta = "";
this.t = 0;
}
onClipEvent (enterFrame) {
if (this.t < this.blurblen) {
this.t = this.t + 1;
_parent.detailtexta = substring(this.blurb, 1, this.t);
}
}
Instance of Symbol 41 MovieClip [empty] "post1" in Symbol 106 MovieClip Frame 16
onClipEvent (load) {
this.blurb = new String();
this.blurb = _parent.loading_captiona;
this.blurblen = _parent.loading_captiona.length;
_parent.loading_captiona = "";
this.t = 0;
}
onClipEvent (enterFrame) {
if (this.t < this.blurblen) {
this.t = this.t + 1;
_parent.loading_captiona = substring(this.blurb, 1, this.t);
}
}
Symbol 106 MovieClip Frame 25
stop();
Symbol 106 MovieClip Frame 33
_root.bt1.dx = 400;
_root.bt2.dx = 400;
_root.bt3.dx = 400;
gotoAndStop ("ready");
Symbol 106 MovieClip Frame 34
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 9
stop();
Symbol 110 MovieClip Frame 27
gotoAndStop (1);
Symbol 113 Button
on (rollOver) {
icon.gotoandplay("active");
}
on (rollOut) {
icon.gotoandplay("inactive");
}
on (press) {
getURL (_root.server.MisPage, "_blank");
gotoAndPlay ("click");
}
Symbol 120 MovieClip Frame 16
stop();
Instance of Symbol 41 MovieClip [empty] "post2" in Symbol 120 MovieClip Frame 16
onClipEvent (load) {
this.blurb = new String();
this.blurb = _parent.detailtexta;
this.blurblen = _parent.detailtexta.length;
_parent.detailtexta = "";
this.t = 0;
}
onClipEvent (enterFrame) {
if (this.t < this.blurblen) {
this.t = this.t + 1;
_parent.detailtexta = substring(this.blurb, 1, this.t);
}
}
Instance of Symbol 41 MovieClip [empty] "post1" in Symbol 120 MovieClip Frame 16
onClipEvent (load) {
this.blurb = new String();
this.blurb = _parent.loading_captiona;
this.blurblen = _parent.loading_captiona.length;
_parent.loading_captiona = "";
this.t = 0;
}
onClipEvent (enterFrame) {
if (this.t < this.blurblen) {
this.t = this.t + 1;
_parent.loading_captiona = substring(this.blurb, 1, this.t);
}
}
Symbol 120 MovieClip Frame 25
stop();
Symbol 120 MovieClip Frame 33
gotoAndStop ("ready");
Symbol 120 MovieClip Frame 34
stop();
Symbol 126 Button
on (press) {
_root.gotoAndPlay(243);
}
Instance of Symbol 41 MovieClip [empty] in Symbol 166 MovieClip [particle_b] Frame 1
onClipEvent (enterFrame) {
_parent.x = _parent.x + _parent.dx;
_parent.y = _parent.y + _parent.dy;
_parent._x = int(_parent.x) - 8;
_parent._y = int(_parent.y) - 8;
_parent.dx = _parent.dx / 1.4;
_parent.dy = _parent.dy / 1.4;
}
Symbol 166 MovieClip [particle_b] Frame 25
removeMovieClip(parent);
Instance of Symbol 41 MovieClip [empty] in Symbol 191 MovieClip [particle_f] Frame 1
onClipEvent (enterFrame) {
_parent.x = _parent.x + _parent.dx;
_parent.y = _parent.y + _parent.dy;
_parent._x = int(_parent.x) - 5;
_parent._y = int(_parent.y) - 10;
_parent.dx = _parent.dx / 1.6;
_parent.dy = _parent.dy / 1.6;
}
Symbol 191 MovieClip [particle_f] Frame 15
removeMovieClip(parent);
Symbol 198 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 2
stop();
Symbol 320 MovieClip Frame 2
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 328 Button
on (release) {
if (_root.game.dialogActive != true) {
if ((this.num > 0) and (this.num <= _root.game.levelCount)) {
if (_root.levelStatus[this.num - 1] == 0) {
_root.attachMovie("PasswordBox", "pwbox", 4050 + _root.game.pcnt);
_root.pwbox.num = this.num;
_root.game.dialogActive = true;
_root.pwbox.caption = ("Level " + this.num) + " is locked!";
_root.pwbox.msg = ("Enter password for level " + this.num) + ".";
_root.pwbox.passwort = "";
} else {
_root.game.level = this.num;
_root.restartLevel();
}
}
}
}
Symbol 358 MovieClip Frame 1
_parent.off = false;
Symbol 358 MovieClip Frame 2
this.wait = this.wait + 1;
if (this.wait < _parent.waitOn) {
this.gotoandplay("Spikeon");
} else {
wait = 0;
}
Symbol 358 MovieClip Frame 9
_parent.off = true;
Symbol 358 MovieClip Frame 10
this.wait = this.wait + 1;
if (this.wait < _parent.waitOff) {
this.gotoandplay("Spikeoff");
} else {
wait = 0;
}
Symbol 456 MovieClip Frame 64
stop();
Symbol 456 MovieClip Frame 105
_root.playSound("excit");
if (_root.game.level >= _root.game.levelcount) {
_root.nextLevel();
} else {
_root.game.dialogActive = true;
_root.attachMovie("excit_blase3", "blase3", 27 + (_root.game.ebene * 4));
_root.blase3._x = (47 + (_root.game.curX * _root.game.tileW)) + int(_root.game.tileW / 4);
_root.blase3._y = (160 + (_root.game.CurY * _root.game.tileH)) + int(_root.game.tileH / 4);
_root.game.keyrelease = 0;
_root.keyListener2 = new Object();
_root.keyListener2.onKeyDown = function () {
var _local1 = _root;
trace("keylisten2");
if (Key.isDown(39)) {
_local1.game.keyrelease = 1;
} else if (Key.isDown(37)) {
_local1.game.keyrelease = 2;
} else if (Key.isDown(38)) {
_local1.game.keyrelease = 3;
} else if (Key.isDown(40)) {
_local1.game.keyrelease = 4;
}
_local1.blase3.play();
_local1.blase3.playme = true;
_local1.game.dialogActive = false;
Key.removeListener(_local1.keyListener2);
};
Key.addListener(_root.keyListener2);
}
stop();
Symbol 478 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 8
gotoAndStop (1);
Symbol 488 MovieClip Frame 1
stop();
Symbol 488 MovieClip Frame 8
gotoAndStop (1);
Symbol 498 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 8
gotoAndStop (1);
Symbol 508 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 8
gotoAndStop (1);
Symbol 529 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 10
var tle = _root.GameMap[_root.game.curY][_root.game.curX];
if (((((tle == 20) or (tle == 21)) or (tle == 22)) or (tle == 23)) or (tle == 24)) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 579 MovieClip Frame 1
stop();
Symbol 586 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 632 MovieClip Frame 1
stop();
Symbol 632 MovieClip Frame 8
stop();
Symbol 632 MovieClip Frame 12
stop();
Symbol 632 MovieClip Frame 16
stop();
Symbol 647 MovieClip Frame 1
stop();
Symbol 647 MovieClip Frame 2
stop();
Symbol 647 MovieClip Frame 3
stop();
Symbol 647 MovieClip Frame 4
stop();
Symbol 647 MovieClip Frame 5
stop();
Symbol 647 MovieClip Frame 6
stop();
Symbol 647 MovieClip Frame 7
stop();
Symbol 647 MovieClip Frame 8
stop();
Symbol 648 MovieClip [tile_pickup] Frame 31
stop();
Symbol 652 MovieClip [tile_pickup_number] Frame 31
stop();
Symbol 855 MovieClip Frame 45
stop();
Symbol 922 MovieClip Frame 45
stop();
Symbol 923 MovieClip [tile_wall] Frame 1
stop();
Symbol 940 Button
on (press) {
_root.game.dialogActive = false;
removeMovieClip(_parent);
}
Symbol 941 Button
on (press) {
butt2._alpha = 100;
}
on (releaseOutside) {
butt2._alpha = 0;
}
on (release) {
butt2._alpha = 0;
_root.game.dialogActive = false;
removeMovieClip(_parent);
}
Symbol 942 Button
on (press) {
butta1._alpha = 100;
}
on (releaseOutside) {
butta1._alpha = 0;
}
on (release) {
butta1._alpha = 0;
if (!frd_name.length) {
msg = "Please enter your name!";
} else if (((!frd_email.length) || (frd_email.indexOf("@") == -1)) || (frd_email.indexOf(".") == -1)) {
msg = "Please enter a valid eMail address!";
} else {
mail = "true";
loadVariables (_root.server.SendFriend, "", "GET");
_root.game.dialogActive = false;
trace("sent");
this.play();
}
}
Symbol 943 MovieClip Frame 1
stop();
Symbol 943 MovieClip Frame 18
stop();
Instance of Symbol 943 MovieClip "content" in Symbol 944 MovieClip [FriendBox] Frame 1
onClipEvent (data) {
if (mail == "true") {
trace("Mail wurde erfolgreich verschickt!");
} else {
trace("Mail wurde leider nicht verschickt!");
}
removeMovieClip(_parent);
}
Symbol 951 Button
on (press) {
_root.game.dialogActive = false;
Key.removeListener(keyListener);
removeMovieClip(this);
}
Symbol 952 Button
on (press) {
butt2._alpha = 100;
}
on (releaseOutside) {
butt2._alpha = 0;
}
on (release) {
butt2._alpha = 0;
_root.game.dialogActive = false;
Key.removeListener(keyListener);
removeMovieClip(this);
}
Symbol 953 Button
on (press) {
butta1._alpha = 100;
}
on (releaseOutside) {
butta1._alpha = 0;
}
on (release) {
butta1._alpha = 0;
pwOK();
}
Symbol 954 MovieClip [PasswordBox] Frame 1
function pwOK() {
var _local1 = _root;
var _local3 = this;
if (_local3.num == 99) {
var _local2 = 0;
while (_local2 < _local1.game.levelCount) {
if (passwort.toLowerCase() == _local1.pwd[_local2].toLowerCase()) {
_local1.game.level = _local2 + 1;
_local1.restartLevel();
_local1.game.dialogActive = false;
Key.removeListener(keyListener);
removeMovieClip(_local3);
}
_local2++;
}
if (_local1.game.dialogActive) {
_local1.playSound("gameover");
}
} else if (passwort.toLowerCase() == _local1.pwd[_local3.num - 1].toLowerCase()) {
_local1.game.level = _local3.num;
_local1.restartLevel();
_local1.game.dialogActive = false;
Key.removeListener(keyListener);
removeMovieClip(_local3);
} else {
_local1.playSound("gameover");
}
}
keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.isDown(13)) {
pwOK();
}
};
Key.addListener(keyListener);
Selection.setFocus("pw_enterbox");
stop();
Symbol 960 MovieClip [excit_blase3] Frame 1
if (_root.game.level >= _root.game.levelcount) {
removeMovieClip(this);
_root.nextLevel();
}
Symbol 960 MovieClip [excit_blase3] Frame 8
if (!this.playme) {
stop();
}
Instance of Symbol 41 MovieClip [empty] "pre2" in Symbol 960 MovieClip [excit_blase3] Frame 8
onClipEvent (load) {
this.pwort = "";
this.blurb = new String();
this.blurb = _root.pwd[_root.game.level];
var blurblen = this.blurb.length;
this.t = 0;
}
onClipEvent (enterFrame) {
if (this.t < this.blurblen) {
this.t = this.t + 1;
_parent.pwort = substring(this.blurb, 1, this.t);
}
}
Symbol 960 MovieClip [excit_blase3] Frame 9
_root.nextLevel();
Instance of Symbol 41 MovieClip [empty] "pre3" in Symbol 960 MovieClip [excit_blase3] Frame 9
onClipEvent (load) {
this.t = _parent.pwort.length;
}
onClipEvent (enterFrame) {
if (this.t >= 0) {
this.t = this.t - 1;
_parent.pwort = substring(_parent.pwort, 1, this.t);
}
}
Symbol 960 MovieClip [excit_blase3] Frame 17
stop();
removeMovieClip(this);
Symbol 964 MovieClip [excit_blase2] Frame 157
stop();
removeMovieClip(this);
Symbol 972 MovieClip Frame 1
stop();
Symbol 972 MovieClip Frame 60
gotoAndPlay ("load");
Symbol 972 MovieClip Frame 70
gotoAndStop (1);
Symbol 972 MovieClip Frame 90
gotoAndPlay ("error");
Symbol 979 Button
on (press) {
_root.game.dialogActive = false;
removeMovieClip(this);
}
Symbol 980 Button
on (press) {
butt2._alpha = 100;
}
on (releaseOutside) {
butt2._alpha = 0;
}
on (release) {
butt2._alpha = 0;
oset = oset - 10;
if (oset < 0) {
oset = 0;
}
com.loadDB(oset);
}
Symbol 981 Button
on (press) {
butta1._alpha = 100;
}
on (releaseOutside) {
butta1._alpha = 0;
}
on (release) {
butt1._alpha = 0;
_root.game.dialogActive = false;
removeMovieClip(this);
}
Symbol 982 Button
on (press) {
butt3._alpha = 100;
}
on (releaseOutside) {
butt3._alpha = 0;
}
on (release) {
butt3._alpha = 0;
_root.game.dialogActive = false;
oset = oset + 10;
com.loadDB(oset);
}
Instance of Symbol 967 MovieClip "com" in Symbol 983 MovieClip [FameBox] Frame 1
onClipEvent (load) {
function loadDB(oset) {
var _local2 = _parent;
mein_xml = new XML();
mein_xml.ignoreWhite = true;
_local2.msg = "Connecting to the Hall of Fame internet database...";
_local2.ani.gotoAndPlay(2);
mein_xml.load((_root.server.ReadFame + "?foffset=") + oset);
mein_xml.onLoad = function (signal) {
var _local2 = _parent;
if (signal) {
_local2.ani.gotoAndPlay("loaded");
_local2.msg = "Welcome to the Excit Hall of Fame! The following Players have completed level 30:";
news_xml = mein_xml.firstChild.childNodes;
removeMovieClip(_local2.liste);
_local2.attachMovie("empty", "liste", 0);
var _local1 = 0;
while (_local1 < news_xml.length) {
if (_local1 <= 9) {
nName = "newsclip" + _local1;
_local2.liste.attachMovie("famedata", nName, _local1);
_local2.liste[nName]._x = 212;
_local2.liste[nName]._y = 217 + (_local1 * 18);
if (_local2.highlgt == news_xml[_local1].attributes.index) {
_local2.liste[nName].gotoAndStop(2);
}
_local2.liste[nName].txt_id = news_xml[_local1].attributes.index;
_local2.liste[nName].txt_name = news_xml[_local1].attributes.name;
_local2.liste[nName].txt_mis = news_xml[_local1].attributes.mis;
_local2.liste[nName].txt_moves = news_xml[_local1].attributes.moves;
_local2.liste[nName].txt_level = news_xml[_local1].attributes.level;
te = parseInt(news_xml[_local1].firstChild);
sec = int(te / 1000);
minu = int(sec / 60);
hun = int((te - (sec * 1000)) / 10);
sec = sec - (minu * 60);
if (sec < 10) {
sec = "0" + sec;
}
if (hun < 10) {
hun = "0" + hun;
}
_local2.liste[nName].txt_time = (((minu + ":") + sec) + ".") + hun;
datum = news_xml[_local1].attributes.datum;
jahr = substring(datum, 1, 4);
monat = substring(datum, 6, 2);
tag = substring(datum, 9, 2);
switch (monat) {
case "01" :
monat = "Jan.";
break;
case "02" :
monat = "Feb.";
break;
case "03" :
monat = "Mar.";
break;
case "04" :
monat = "Apr.";
break;
case "05" :
monat = "May.";
break;
case "06" :
monat = "Jun.";
break;
case "07" :
monat = "Jul.";
break;
case "08" :
monat = "Aug.";
break;
case "09" :
monat = "Sep.";
break;
case "10" :
monat = "Oct.";
break;
case "11" :
monat = "Nov.";
break;
case "12" :
monat = "Dec.";
}
_local2.liste[nName].txt_date = (((tag + ". ") + monat) + " ") + jahr;
} else {
break;
}
_local1++;
}
} else {
_local2.ani.gotoAndPlay("error");
_local2.msg = "Connection to the Hall of Fame has failed! Please check your internet connection or try again later.";
}
};
}
loadDB(_parent.oset);
}
Symbol 994 MovieClip [famedata] Frame 1
stop();
Symbol 1011 Button
on (press) {
_root.game.dialogActive = false;
_root.game.level = jumpTo;
_root.restartLevel();
removeMovieClip(this);
}
Symbol 1012 Button
on (press) {
butt2._alpha = 100;
}
on (releaseOutside) {
butt2._alpha = 0;
}
on (release) {
butt2._alpha = 0;
_root.game.dialogActive = false;
_root.game.level = jumpTo;
_root.restartLevel();
removeMovieClip(this);
}
Symbol 1013 Button
on (press) {
butta1._alpha = 100;
}
on (releaseOutside) {
butta1._alpha = 0;
}
on (release) {
butta1._alpha = 0;
setSpieler();
}
Symbol 1014 MovieClip [CompBox] Frame 1
function setSpieler() {
var _local2 = _root;
var _local3 = this;
fname = _local2.playerName;
if ((fname.lenght = 0)) {
fname = "n.a.";
}
flevel = scr_levels;
fmoves = scr_moves;
fmis = scr_mis;
fzeit = scr_time;
loadVariables ((_local2.server.SendFame + "?") + new Date().getTime(), _local3, "POST");
msg_bottomline = "Connecting to the Hall of Fame internet database...";
ani.gotoandplay("load");
_local3.onData = function () {
var _local2 = _root;
eintrag = parseInt(eintrag);
if (eintrag > 0) {
ani.gotoandplay("loaded");
msg_bottomline = "Entry submited!";
var _local1 = 0;
while (_local1 < _local2.game.levelCount) {
_local2.scoreZeit[_local1] = 0;
_local2.scoreMIS[_local1] = 0;
_local2.scoreMoves[_local1] = 0;
_local2.levelStatus[_local1] = 1;
_local1++;
}
_local2.attachMovie("FameBox", "famebox", 4051 + _local2.game.pcnt);
_local2.FameBox.oset = eintrag - 5;
if (_local2.FameBox.oset < 0) {
_local2.FameBox.oset = 0;
}
_local2.FameBox.highlgt = eintrag;
_local2.game.level = 1;
_local2.restartLevel();
removeMovieClip(this);
} else {
ani.gotoandplay("error");
msg_bottomline = "Connection to the Hall of Fame has failed! Please check your internet connection or try again later.";
}
};
}
var scr_levels = 0;
var scr_mis = 0;
var scr_moves = 0;
var scr_time = 0;
var jumpTo = 1;
var i = 0;
while (i < _root.game.levelCount) {
if (_root.levelStatus[i] == 2) {
scr_levels = scr_levels + 1;
} else if ((_root.levelStatus[1] == 2) and (jumpTo == 1)) {
jumpTo = i + 1;
}
scr_moves = scr_moves + _root.scoreMoves[i];
scr_mis = scr_mis + _root.scoreMIS[i];
scr_time = scr_time + _root.scoreZeit[i];
i++;
}
te = parseInt(scr_time);
sec = int(te / 1000);
minu = int(sec / 60);
hun = int((te - (sec * 1000)) / 10);
sec = sec - (minu * 60);
if (sec < 10) {
sec = "0" + sec;
}
if (hun < 10) {
hun = "0" + hun;
}
ani.gotoandplay("loaded");
msg_score = ((((((((((("<b>" + scr_mis) + "<br>") + scr_levels) + "<br>") + scr_moves) + "<br>") + minu) + ":") + sec) + ".") + hun) + "</b>";
if (scr_levels < _root.game.levelCount) {
msg_kleintext = "If your score appears low, keep in mind that you have used a password to skip some levels. If you wish to improve your ranking, complete the remaining levels.";
msg_congrats = "Final level solved!";
msg = "You have solved the last level of Excit and finally escaped the spreadsheet chaos. Here is your total score.";
msg_bottomline = "You may now enter your score in the Excit Hall of Fame. If you submit your score, the game will reset.";
} else {
msg_kleintext = "";
msg_congrats = "All levels completed!";
msg = "You have solved all levels in a row. You know how to master spreadsheet chaos! Here is your final score.";
msg_bottomline = "You may now enter your score in the Excit Hall of Fame. If you submit your score, the game will reset.";
}
Symbol 1018 MovieClip [excit_blase] Frame 157
stop();
removeMovieClip(this);
Symbol 1036 MovieClip Frame 1
trace("soundclip");
Symbol 1037 Button
on (release) {
if (_root.game.dialogActive != true) {
_root.attachMovie("excit_blase4", "blase4", _root.cursor.getDepth() + 5);
_root.blase4._x = _root._xmouse;
_root.blase4._y = _root._ymouse;
}
if (_root.blase3._name == "blase3") {
_root.blase3.play();
_root.blase3.playme = true;
_root.game.dialogActive = false;
_root.game.keyrelease = 0;
Key.removeListener(_root.keyListener2);
trace("blase 3 kill");
}
}
Symbol 1038 MovieClip [clickbutt] Frame 1
bigbutt.useHandCursor = false;
stop();
Symbol 1042 MovieClip [excit_blase4] Frame 83
stop();
removeMovieClip(this);
Symbol 1077 MovieClip Frame 1
if (_root.game.curBeam == 2) {
gotoAndPlay ("beam");
}
stop();
Symbol 1077 MovieClip Frame 2
if (_root.game.curBeam == 2) {
gotoAndPlay ("beam");
}
stop();
Symbol 1077 MovieClip Frame 3
if (_root.game.curBeam == 2) {
gotoAndPlay ("beam");
}
stop();
Symbol 1077 MovieClip Frame 8
gotoAndStop (1);
Symbol 1077 MovieClip Frame 13
gotoAndStop (1);
Symbol 1077 MovieClip Frame 18
gotoAndStop (1);
Symbol 1077 MovieClip Frame 23
gotoAndStop (1);
Symbol 1077 MovieClip Frame 24
stop();
Symbol 1077 MovieClip Frame 25
stop();
Symbol 1077 MovieClip Frame 26
stop();
Symbol 1077 MovieClip Frame 27
stop();
Symbol 1077 MovieClip Frame 28
stop();
Symbol 1081 MovieClip Frame 1
stop();
Symbol 1082 MovieClip Frame 1
stop();
Symbol 1096 MovieClip Frame 1
stop();
Symbol 1103 MovieClip Frame 1
stop();
Symbol 1110 MovieClip Frame 1
stop();
Symbol 1117 MovieClip Frame 1
stop();
Symbol 1124 MovieClip Frame 1
stop();
Symbol 1125 Button
on (rollOver) {
button1.dalpha = 100;
}
on (rollOut) {
button1.dalpha = 0;
button1.gotoAndStop(1);
}
on (press) {
button1.dalpha = 100;
button1.gotoAndStop(2);
}
on (releaseOutside) {
button1.dalpha = 0;
button1.gotoAndStop(1);
}
on (release) {
button1.dalpha = 100;
button1.gotoAndStop(1);
if (_root.game.dialogActive != true) {
_root.restartLevel();
}
}
Symbol 1126 Button
on (rollOver) {
button2.dalpha = 100;
}
on (rollOut) {
button2.dalpha = 0;
button2.gotoAndStop(1);
}
on (press) {
button2.dalpha = 100;
button2.gotoAndStop(2);
}
on (releaseOutside) {
button2.dalpha = 0;
button2.gotoAndStop(1);
}
on (release) {
button2.dalpha = 100;
button2.gotoAndStop(1);
if (_root.game.dialogActive != true) {
_root.attachMovie("FameBox", "famebox", 4050 + _root.game.pcnt);
_root.FameBox.oset = 0;
_root.FameBox.highlgt = 1;
_root.game.dialogActive = true;
}
}
Symbol 1127 Button
on (rollOver) {
button3.dalpha = 100;
}
on (rollOut) {
button3.dalpha = 0;
button3.gotoAndStop(1);
}
on (press) {
button3.dalpha = 100;
button3.gotoAndStop(2);
}
on (releaseOutside) {
button3.dalpha = 0;
button3.gotoAndStop(1);
}
on (release) {
button3.dalpha = 100;
button3.gotoAndStop(1);
if (_root.game.dialogActive != true) {
_root.attachMovie("FriendBox", "friendbox", 4050 + _root.game.pcnt);
_root.game.dialogActive = true;
_root.content.friendbox.frd_name = "";
_root.content.friendbox.frd_email = "";
_root.content.friendbox.frd_message = "";
}
}
Symbol 1128 Button
on (rollOver) {
button4.dalpha = 100;
}
on (rollOut) {
button4.dalpha = 0;
button4.gotoAndStop(1);
}
on (press) {
button4.dalpha = 100;
button4.gotoAndStop(2);
}
on (releaseOutside) {
button4.dalpha = 0;
button4.gotoAndStop(1);
}
on (release) {
button4.dalpha = 100;
button4.gotoAndStop(1);
getURL (_root.server.MisPage, "_blank");
}
Symbol 1129 Button
on (rollOver) {
button0.dalpha = 100;
}
on (rollOut) {
button0.dalpha = 0;
button0.gotoAndStop(1);
}
on (press) {
button0.dalpha = 100;
button0.gotoAndStop(2);
}
on (releaseOutside) {
button0.dalpha = 0;
button0.gotoAndStop(1);
}
on (release) {
button0.dalpha = 100;
button0.gotoAndStop(1);
if (_root.game.dialogActive != true) {
_root.attachMovie("PasswordBox", "pwbox", 4050 + _root.game.pcnt);
_root.pwbox.num = 99;
_root.game.dialogActive = true;
_root.pwbox.caption = "Enter password!";
_root.pwbox.msg = "Please, enter your password:";
_root.pwbox.passwort = "";
}
}
Instance of Symbol 1096 MovieClip "button0" in Symbol 1130 MovieClip Frame 1
onClipEvent (load) {
this.dalpha = 0;
this._alpha = 0;
}
onClipEvent (enterFrame) {
if ((this.dalpha - this._alpha) > _root.gui.tabFade) {
d = _root.gui.tabFade;
this._alpha = this._alpha + d;
} else if ((this._alpha - this.alpha) > _root.gui.tabFade) {
d = -_root.gui.tabFade;
this._alpha = this._alpha + d;
} else {
this._alpha = this.dalpha;
}
}
Instance of Symbol 1103 MovieClip "button1" in Symbol 1130 MovieClip Frame 1
onClipEvent (load) {
this.dalpha = 0;
this._alpha = 0;
}
onClipEvent (enterFrame) {
if ((this.dalpha - this._alpha) > _root.gui.tabFade) {
d = _root.gui.tabFade;
this._alpha = this._alpha + d;
} else if ((this._alpha - this.alpha) > _root.gui.tabFade) {
d = -_root.gui.tabFade;
this._alpha = this._alpha + d;
} else {
this._alpha = this.dalpha;
}
}
Instance of Symbol 1110 MovieClip "button2" in Symbol 1130 MovieClip Frame 1
onClipEvent (load) {
this.dalpha = 0;
this._alpha = 0;
}
onClipEvent (enterFrame) {
if ((this.dalpha - this._alpha) > _root.gui.tabFade) {
d = _root.gui.tabFade;
this._alpha = this._alpha + d;
} else if ((this._alpha - this.alpha) > _root.gui.tabFade) {
d = -_root.gui.tabFade;
this._alpha = this._alpha + d;
} else {
this._alpha = this.dalpha;
}
}
Instance of Symbol 1117 MovieClip "button3" in Symbol 1130 MovieClip Frame 1
onClipEvent (load) {
this.dalpha = 0;
this._alpha = 0;
}
onClipEvent (enterFrame) {
if ((this.dalpha - this._alpha) > _root.gui.tabFade) {
d = _root.gui.tabFade;
this._alpha = this._alpha + d;
} else if ((this._alpha - this.alpha) > _root.gui.tabFade) {
d = -_root.gui.tabFade;
this._alpha = this._alpha + d;
} else {
this._alpha = this.dalpha;
}
}
Instance of Symbol 1124 MovieClip "button4" in Symbol 1130 MovieClip Frame 1
onClipEvent (load) {
this.dalpha = 0;
this._alpha = 0;
}
onClipEvent (enterFrame) {
if ((this.dalpha - this._alpha) > _root.gui.tabFade) {
d = _root.gui.tabFade;
this._alpha = this._alpha + d;
} else if ((this._alpha - this.alpha) > _root.gui.tabFade) {
d = -_root.gui.tabFade;
this._alpha = this._alpha + d;
} else {
this._alpha = this.dalpha;
}
}
Symbol 1141 MovieClip Frame 2
stop();
Symbol 1142 Button
on (rollOver) {
pic.gotoAndStop(3);
}
on (rollOut) {
pic.gotoAndStop(2);
}
on (press) {
if (this._name == "RRW") {
pic.gotoAndStop(4);
} else if (this._name == "RW") {
pic.gotoAndStop(5);
} else if (this._name == "FF") {
pic.gotoAndStop(6);
} else if (this._name == "FFF") {
pic.gotoAndStop(7);
}
}
on (releaseOutside) {
pic.gotoAndStop(2);
}
on (release) {
pic.gotoAndStop(2);
if (_root.game.dialogActive != true) {
if (this._name == "RRW") {
_root.game.tabOffset = _root.game.tabOffset - 2;
if (_root.game.tabOffset < 0) {
_root.game.tabOffset = 0;
}
_root.updateTabs(false);
} else if (this._name == "RW") {
if (_root.game.level > 1) {
if (_root.levelStatus[_root.game.level - 2] == 0) {
_root.attachMovie("PasswordBox", "pwbox", 4050 + _root.game.pcnt);
_root.pwbox.num = _root.game.level - 1;
_root.game.dialogActive = true;
_root.pwbox.caption = ("Level " + (_root.game.level - 1)) + " is still locked!";
_root.pwbox.msg = ("Enter password for Level " + (_root.game.level - 1)) + ".";
_root.pwbox.passwort = "";
} else {
_root.game.level = _root.game.level - 1;
_root.restartLevel();
}
}
} else if (this._name == "FF") {
if (_root.game.level < _root.game.levelCount) {
if (_root.levelStatus[_root.game.level] == 0) {
_root.attachMovie("PasswordBox", "pwbox", 4050 + _root.game.pcnt);
_root.pwbox.num = _root.game.level + 1;
_root.game.dialogActive = true;
_root.pwbox.caption = ("Level " + (_root.game.level + 1)) + " is still locked!";
_root.pwbox.msg = ("Enter password for Level " + (_root.game.level + 1)) + ".";
_root.pwbox.passwort = "";
} else {
_root.game.level = _root.game.level + 1;
_root.restartLevel();
}
}
} else if (this._name == "FFF") {
_root.game.tabOffset = _root.game.tabOffset + 2;
if (_root.game.tabOffset > (_root.game.levelCount - 1)) {
_root.game.tabOffset = _root.game.levelCount - 1;
}
_root.updateTabs(false);
}
}
}
Symbol 1188 MovieClip Frame 1
stop();
Symbol 1229 MovieClip Frame 1
stop();