Frame 1
function isOnBrowser() {
return(_root._url.substr(0, 4) == "http");
}
function isLocalLoopback() {
return(_root._url.substr(0, 17) == "http://127.0.0.1:");
}
function init() {
var _local4 = _global;
var _local3 = this;
_local4.KSS_registerEvent = _local3.registerEvent;
_local4.KSS_registerEventWithParams = _local3.registerEventWithParams;
_local4.KSS_isOnBrowser = _local3.isOnBrowser;
trace("KROMA statistikksystem v1.01 startet");
}
function test() {
trace(System.capabilities.os);
trace(System.capabilities.version);
trace("hello from test()");
}
function registerEvent(myEventName) {
dummyMC.registerParams = 0;
if (_root.annonse_id != undefined) {
dummyMC.annonse_id = _root.annonse_id;
}
dummyMC.event_name = myEventName;
dummyMC.loadVariables(("http://" + statServer) + "/modules/KROMAstatistikk.php", "GET");
trace(("registerEvent(\"" + myEventName) + "\")");
if (this.DEBUG) {
trace(("called dummyMC.loadVariables(\"" + statScript) + "\", \"GET\")");
}
}
function registerEventWithParams(myEventName, myParams) {
dummyMC.registerParams = 1;
dummyMC.event_name = myEventName;
dummyMC.loadVariables((("http://" + statServer) + "/modules/KROMAstatistikk.php?") + myParams, "POST");
}
if (this.dummyMC == undefined) {
_global.KSS_loaded = false;
this.createEmptyMovieClip("dummyMC", 798798);
} else {
_global.KSS_loaded = true;
}
this.DEBUG = _global.DEBUG_statistikk;
Button.prototype.onPress = function () {
var _local2 = this;
if (_local2._name.indexOf("instance") != 0) {
registerEvent("klikk_" + _local2._name);
trace("You pressed button: " + _local2._name);
return(undefined);
}
trace("You pressed a nameless button: " + targetPath(_local2));
};
Button.prototype.onRollOver = function () {
if (_loc1._name.indexOf("instance") != 0) {
this.KROMAstartTimer = getTimer();
trace("startTimer" + this.KROMAstartTimer);
}
};
Button.prototype.onRollOut = function () {
var _local2 = this;
_local2.KROMATimer = getTimer() - _local2.KROMAstartTimer;
if (_local2._name.indexOf("instance") != 0) {
if (_local2.KROMATimer > KROMA_btnTimerLimit) {
trace((("timerEvent trigged by btn : " + _local2._name) + ", timer millisecs = ") + _local2.KROMATimer);
}
}
};
statServer = "www.kroma.no";
dummyMC.percent = -1;
dummyMC.speed = -1;
dummyMC.waiting_time = -1;
dummyMC.event_name = "";
dummyMC.registerParams = 0;
dummyMC.ad_size_bytes = _root.getBytesTotal();
dummyMC.ad_size_pixels = (Stage.width + "x") + Stage.height;
dummyMC.adURL = "JT";
if (mainMovie == undefined) {
_global.mainMovie = this;
_global.mainMovie.statistikk = this;
}
_global.KROMA_btnTimerLimit = 200;
dummyMC.os = System.capabilities.os;
if (System.capabilities.version != undefined) {
dummyMC.version = System.capabilities.version;
} else {
dummyMC.version = $version;
}
if (isOnBrowser()) {
if (isLocalLoopback()) {
dummyMC.adURL = "Lokal loopback";
} else if (_root._url.indexOf("?") > -1) {
var urlArray = _root._url.split("?");
dummyMC.adURL = urlArray[0];
} else {
dummyMC.adURL = _root._url;
}
} else {
dummyMC.adURL = "Lokal testing";
}
if (KSS_loaded != true) {
init();
_global.KSS_loaded = true;
}
System.security.allowDomain("flash.vg.no", "www.kroma.no", "gfx.dagbladet.no", "ap.oasfile.aftenposten.no", _root._url);
mainMovie.statistikk.registerEvent("visning");
function gameSave() {
trace("saved");
var _local1 = SharedObject.getLocal("parkmycar");
_local1.data.myObj = highScore_arr;
_local1.flush();
}
function gameSave_GK() {
trace("saved_GK");
var _local1 = SharedObject.getLocal("parkmycar_GK");
_local1.data.myObj_GK = highScore_GK;
trace(highScore_GK);
_local1.flush();
}
fscommand ("allowscale", false);
fscommand ("showmenu", false);
myLSO = SharedObject.getLocal("parkmycar");
if (myLSO.data.myObj == undefined) {
trace("first play");
highScore_arr = [["cpu", 120000], ["cpu", 100000], ["cpu", 80000], ["cpu", 50000], ["cpu", 30000], ["cpu", 25000], ["cpu", 18000], ["cpu", 15000], ["cpu", 12000], ["cpu", 8000]];
gameSave();
} else {
trace("loaded");
highScore_arr = myLSO.data.myObj;
trace(highScore_arr);
}
myLSOB_GK = SharedObject.getLocal("parkmycar_GK");
if (myLSOB_GK.data.myObj_GK == undefined) {
trace("first play_GK");
highScore_GK = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
gameSave_GK();
} else {
trace("loaded_GK");
highScore_GK = myLSOB_GK.data.myObj_GK;
trace(highScore_GK);
}
Instance of Symbol 67 MovieClip "All" in Frame 1
onClipEvent (load) {
this.swapDepths(2000);
}
Frame 2
byteloaded = _root.getBytesLoaded();
bytetotal = _root.getBytesTotal();
loaded = int((byteloaded / bytetotal) * 10);
loading.gotoAndStop(loaded);
Frame 5
if (byteloaded == bytetotal) {
gotoAndPlay ("start0");
} else {
gotoAndPlay ("loop");
}
Frame 9
OKsound = 1;
onesound = 0;
if ((_root.OKsound == 1) && (onesound == 0)) {
onesound = 1;
KSSOUND = new Sound();
KSSOUND.attachSound("mainscreen");
KSSOUND.start(0, 1000);
}
Frame 10
function doFigure(pmc, num) {
_root.points = new Array(num);
var _local9 = Math.max(pmc._width + 10, pmc._height + 20) / 2;
var _local11 = 360 / num;
var _local8 = 0;
var _local4 = 0;
while (_local4 < num) {
_root.points[_local4] = new Array();
var _local6 = Math.cos((_local8 * 3.141593) / 180);
var _local7 = Math.sin((_local8 * 3.141593) / 180);
var _local2 = pmc._x + (_local9 * _local6);
var _local3 = pmc._y + (_local9 * _local7);
do {
if (pmc.hitTest(_local2, _local3, true)) {
break;
}
_local2 = _local2 - _local6;
_local3 = _local3 - _local7;
} while (!((_local2 <= 0) || (_local3 <= 0)));
_root.points[_local4][0] = _local2 - pmc._x;
_root.points[_local4][1] = _local3 - pmc._y;
_local8 = _local8 + _local11;
_local4 = _local4 + 1;
}
}
function doFigure2(pmc, num) {
pmc.points = new Array(num);
var _local8 = Math.max(pmc._width + 10, pmc._height + 20) / 2;
var _local10 = 360 / num;
var _local7 = 0;
var _local4 = 0;
while (_local4 < num) {
pmc.points[_local4] = new Array();
var _local5 = Math.cos((_local7 * 3.141593) / 180);
var _local6 = Math.sin((_local7 * 3.141593) / 180);
var _local1 = pmc._x + (_local8 * _local5);
var _local2 = pmc._y + (_local8 * _local6);
do {
if (pmc.hitTest(_local1, _local2, true)) {
break;
}
_local1 = _local1 - _local5;
_local2 = _local2 - _local6;
} while (!((_local1 <= 0) || (_local2 <= 0)));
pmc.points[_local4][0] = _local1 - pmc._x;
pmc.points[_local4][1] = _local2 - pmc._y;
_local7 = _local7 + _local10;
_local4 = _local4 + 1;
}
}
hit = false;
JD = 0;
T = 119;
T2 = 0;
live = 3;
guank = 0;
fen = 0;
TZ = 1;
qualityNum = 1;
PDJ = function (x1, y1) {
x2 = _root.A._x;
y2 = _root.A._y;
dx = Math.abs(x2 - x1);
dy = Math.abs(y2 - y1);
angle = Math.atan(dy / dx);
angle = (angle * 180) / 3.141593;
if (dx < 0) {
angle = angle - 180;
}
if (x2 < x1) {
if (y2 <= y1) {
TA = int(angle + 90) - 180;
} else if (y2 > y1) {
TA = -int(angle + 90);
}
}
if (x2 > x1) {
if (y2 <= y1) {
TA = 180 - int(angle + 90);
} else if (y2 > y1) {
TA = int(angle + 90);
}
}
return(TA);
};
PDJ2 = function (x1, y1) {
x2 = _root.QB._x;
y2 = _root.QB._y;
dx = Math.abs(x2 - x1);
dy = Math.abs(y2 - y1);
angle = Math.atan(dy / dx);
angle = (angle * 180) / 3.141593;
if (dx < 0) {
angle = angle - 180;
}
if (x2 < x1) {
if (y2 <= y1) {
TB = int(angle + 90) - 180;
} else if (y2 > y1) {
TB = -int(angle + 90);
}
}
if (x2 > x1) {
if (y2 <= y1) {
TB = 180 - int(angle + 90);
} else if (y2 > y1) {
TB = int(angle + 90);
}
}
return(TB);
};
QBXY = function () {
degree = 0.01745329;
if (_root.guank == 6) {
xspeed = Math.sin((-_root.A._rotation) * degree);
yspeed = Math.cos((-_root.A._rotation) * degree);
} else {
xspeed = Math.sin((-(_root.A._rotation + 180)) * degree);
yspeed = Math.cos((-(_root.A._rotation + 180)) * degree);
}
x2 = xspeed * 120;
y2 = yspeed * 120;
_root.QB._x = x2 + _root.A._x;
_root.QB._y = y2 + _root.A._y;
};
stop();
Frame 11
stop();
Frame 12
if (guank == 0) {
guank = 1;
}
world = 0;
Key.addListener(this);
this.onKeyDown = function () {
if (Key.getAscii() == 32) {
trace(1);
stopAllSounds();
world = 1;
gotoAndPlay("G" + _root.guank);
Key.removeListener(this);
}
};
Frame 15
mainMovie.statistikk.registerEvent("niv\u00E5_g1");
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(3);
guank = 1;
levelmc.G = "0" + _root.guank;
if ((_root.OKsound == 1) && (world == 1)) {
_root.KSSOUND = new Sound();
_root.KSSOUND.attachSound("world1");
_root.KSSOUND.start(0, 2000);
}
_root.timeK.T = "120:00";
world = 2;
stop();
Instance of Symbol 140 MovieClip "A" in Frame 15
onClipEvent (load) {
thisT = 0;
timemove = 0;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 30;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 20;
Z = 30;
_root.doFigure(_root.A, numb);
root1 = 0;
root2 = 0;
SY = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARA");
_root.QD1.start(0, 200);
}
};
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 2) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
k++;
}
i = i + 1;
}
}
if (_root.hit == true) {
thisT = thisT + 1;
}
if (thisT >= 30) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if ((Key.isDown(39) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
QLXZ = QLXZ + 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
}
} else if ((Key.isDown(37) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
QLXZ = QLXZ - 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
}
}
if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD1");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 0.8;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD1");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 0.8;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
if (speed > 0.4) {
speed = speed - 0.3;
} else if (speed < -0.4) {
speed = speed + 0.3;
} else {
speed = 0;
}
if (((((((_root.JD < 8) && (_root.JD > -8)) && (this._x > 170)) && (this._x < 185)) && (this._y > 290)) && (this._y < 300)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
_root.OK.gotoAndPlay(2);
KD = 1;
speed = 0;
timemove = 1;
}
}
Frame 16
gotoAndStop ("start");
Frame 20
mainMovie.statistikk.registerEvent("niv\u00E5_g2");
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(7);
guank = 2;
levelmc.G = "0" + _root.guank;
_root.timeK.T = "120:00";
stop();
Instance of Symbol 181 MovieClip "C1" in Frame 20
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 206.9;
this._y = 230;
FX = 1;
this.gotoAndStop(5);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
this.play();
if (FX == 1) {
this._x = this._x - 1;
if (this._x < 30) {
FX = 0;
this._xscale = -this._xscale;
}
} else if (FX == 0) {
this._x = this._x + 1;
if (this._x > 240) {
FX = 1;
this._xscale = -this._xscale;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
}
}
Instance of Symbol 183 MovieClip "A" in Frame 20
onClipEvent (load) {
PZL = 0;
thisT = 0;
timemove = 0;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 30;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 20;
Z = 30;
_root.doFigure(_root.A, numb);
root1 = 0;
root2 = 0;
SY = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARA");
_root.QD1.start(0, 200);
}
};
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 2) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
trace(k);
_root["B" + k].play();
this.play();
_root.hit = true;
break;
}
if (_root.C1.hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
k++;
}
i = i + 1;
}
}
if (_root.hit == true) {
thisT = thisT + 1;
}
if (thisT >= 30) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if ((Key.isDown(39) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
QLXZ = QLXZ + 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
}
} else if ((Key.isDown(37) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
QLXZ = QLXZ - 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
}
}
if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD1");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 0.8;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD2");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 0.8;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
if (speed > 0.4) {
speed = speed - 0.3;
} else if (speed < -0.4) {
speed = speed + 0.3;
} else {
speed = 0;
}
if (((((((_root.JD < 8) && (_root.JD > -8)) && (this._x > 20)) && (this._x < 47)) && (this._y > 285)) && (this._y < 300)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
KD = 1;
speed = 0;
timemove = 1;
}
}
Frame 21
gotoAndStop ("start");
Frame 25
mainMovie.statistikk.registerEvent("niv\u00E5_g3");
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(1);
WS.setMask(ZZ);
guank = 3;
levelmc.G = "0" + _root.guank;
_root.timeK.T = "120:00";
stop();
Instance of Symbol 199 MovieClip "A" in Frame 25
onClipEvent (load) {
thisT = 0;
timemove = 0;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 30;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 20;
Z = 30;
_root.doFigure(_root.A, numb);
root1 = 0;
root2 = 0;
SY = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARA");
_root.QD1.start(0, 200);
}
};
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 2) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
_root.WS.A.play();
_root.hit = true;
break;
}
k++;
}
i = i + 1;
}
}
if (_root.hit == true) {
thisT = thisT + 1;
}
if (thisT >= 30) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if ((Key.isDown(39) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
QLXZ = QLXZ + 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.WS.A.wheel1._rotation = QLXZ;
_root.WS.A.wheel4._rotation = QLXZ;
}
} else if ((Key.isDown(37) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
QLXZ = QLXZ - 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.WS.A.wheel1._rotation = QLXZ;
_root.WS.A.wheel4._rotation = QLXZ;
}
}
if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD3");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 0.8;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD3");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 0.8;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
_root.WS.A1._rotation = this._rotation;
_root.WS.A1._x = this._x;
_root.WS.A1._y = this._y;
_root.WS.A._rotation = this._rotation;
_root.WS.A._x = this._x;
_root.WS.A._y = this._y;
_root.ZZ._rotation = this._rotation;
_root.ZZ._x = this._x;
_root.ZZ._y = this._y;
if (speed > 0.4) {
speed = speed - 0.3;
} else if (speed < -0.4) {
speed = speed + 0.3;
} else {
speed = 0;
}
if (((((((_root.JD < 8) && (_root.JD > -8)) && (this._x > 100)) && (this._x < 120)) && (this._y > 285)) && (this._y < 310)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
KD = 1;
speed = 0;
timemove = 1;
}
}
Frame 26
gotoAndStop ("start");
Frame 30
mainMovie.statistikk.registerEvent("niv\u00E5_g4");
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(3);
WS.setMask(ZZ);
guank = 4;
levelmc.G = "0" + _root.guank;
_root.timeK.T = "120:00";
stop();
Instance of Symbol 222 MovieClip "MR1" in Frame 30
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 310;
this._y = 173;
SJ = 100;
TT = 0;
this.gotoAndStop(5);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if (TT <= 32) {
TT++;
}
if ((_root.hit == false) && (_root.A.timemove == 0)) {
this.play();
if (Key.isDown(32) && (TT >= 30)) {
TT = 0;
SJ = 300;
this._rotation = this._rotation + 120;
if (_root.OKsound == 1) {
BB = new Sound();
BB.attachSound("QDBB1");
BB.start(0, 1);
}
}
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * 1);
this._y = this._y + (Math.cos(this._rotation * degree) * 1);
if (SJ > 0) {
SJ = SJ - 1;
} else if (SJ <= 0) {
SJ = 300;
this._rotation = random(180) - random(180);
} else if ((((this._x < 40) || (this._x > 540)) || (this._y < 40)) || (this._y > 350)) {
this._rotation = this._rotation + 180;
}
if ((_root.MRL.hitTest(this._x, this._y, true) || (_root.C2.hitTest(this))) || (_root.C1.hitTest(this))) {
SJ = 300;
this._rotation = this._rotation + 180;
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * 3);
this._y = this._y + (Math.cos(this._rotation * degree) * 3);
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
}
}
Instance of Symbol 224 MovieClip "A" in Frame 30
onClipEvent (load) {
thisT = 0;
timemove = 0;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 30;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 20;
Z = 30;
_root.doFigure(_root.A, numb);
root1 = 0;
root2 = 0;
SY = 0;
ABCD = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARA");
_root.QD1.start(0, 200);
}
};
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 2) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
k++;
}
if (_root.MR1.hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
i = i + 1;
}
}
if (_root.hit == true) {
thisT = thisT + 1;
}
if (thisT >= 30) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if (ABCD <= 10) {
ABCD++;
}
if ((Key.isDown(32) && (_root.TS._y >= 0)) && (ABCD >= 5)) {
_root.TS._y = -100;
}
if ((Key.isDown(39) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
QLXZ = QLXZ + 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
} else if ((Key.isDown(37) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
QLXZ = QLXZ - 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
}
if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
_root.TS._y = -100;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD4");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 0.8;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
_root.TS._y = -100;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD4");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 0.8;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
_root.A1._rotation = this._rotation;
_root.A1._x = this._x;
_root.A1._y = this._y;
if (speed > 0.4) {
speed = speed - 0.3;
} else if (speed < -0.4) {
speed = speed + 0.3;
} else {
speed = 0;
}
if (((((((_root.JD < 8) && (_root.JD > -8)) && (this._x > 450)) && (this._x < 465)) && (this._y > 65)) && (this._y < 90)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
KD = 1;
speed = 0;
timemove = 1;
}
}
Frame 31
gotoAndStop ("start");
Frame 35
mainMovie.statistikk.registerEvent("niv\u00E5_g5");
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(2);
guank = 5;
levelmc.G = "0" + _root.guank;
_root.timeK.T = "120:00";
stop();
Instance of Symbol 181 MovieClip "C1" in Frame 35
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 100;
this._y = 230;
FX = 1;
this.gotoAndStop(5);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
this.play();
if (FX == 1) {
this._x = this._x - 1;
if (this._x < 30) {
FX = 0;
this._xscale = -this._xscale;
}
} else if (FX == 0) {
this._x = this._x + 1;
if (this._x > 314) {
FX = 1;
this._xscale = -this._xscale;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
}
}
Instance of Symbol 181 MovieClip "C2" in Frame 35
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 340;
this._y = 358;
FX = 1;
this.gotoAndStop(5);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
this.play();
if (FX == 1) {
this._y = this._y - 1;
if (this._y < 30) {
FX = 0;
this._rotation = this._rotation - 180;
}
} else if (FX == 0) {
this._y = this._y + 1;
if (this._y > 380) {
FX = 1;
this._rotation = this._rotation - 180;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
}
}
Instance of Symbol 222 MovieClip "MR1" in Frame 35
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 310;
this._y = 173;
SJ = 100;
TT = 0;
DOK = 0;
this.gotoAndStop(5);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if (TT <= 45) {
TT++;
}
if ((_root.hit == false) && (_root.A.timemove == 0)) {
if (Key.isDown(32) && (TT >= 30)) {
TT = 0;
SJ = 300;
this._rotation = this._rotation + 120;
if (_root.OKsound == 1) {
BB = new Sound();
BB.attachSound("QDBB2");
BB.start(0, 1);
}
}
var degree = 0.01745329;
if (DOK == 0) {
this.play();
this._x = this._x - (Math.sin(this._rotation * degree) * 1);
this._y = this._y + (Math.cos(this._rotation * degree) * 1);
}
if (SJ > 0) {
SJ = SJ - 1;
} else if (SJ <= 0) {
SJ = 300;
this._rotation = random(180) - random(180);
} else if ((((this._x < 40) || (this._x > 540)) || (this._y < 40)) || (this._y > 350)) {
this._rotation = this._rotation + 180;
}
DOK = 0;
if (_root.C2.hitTest(this) || (_root.C1.hitTest(this))) {
DOK = 1;
this.gotoAndStop(11);
}
if (_root.MRL.hitTest(this._x, this._y, true)) {
SJ = 300;
this._rotation = this._rotation + 180;
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * 3);
this._y = this._y + (Math.cos(this._rotation * degree) * 3);
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
}
}
Instance of Symbol 232 MovieClip "A" in Frame 35
onClipEvent (load) {
thisT = 0;
timemove = 0;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 30;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 20;
Z = 30;
_root.doFigure(_root.A, numb);
root1 = 0;
root2 = 0;
SY = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARA");
_root.QD1.start(0, 200);
}
};
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 2) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
k++;
}
if ((_root.C1.hitTest(X, Y, true) || (_root.C2.hitTest(X, Y, true))) || (_root.MR1.hitTest(X, Y, true))) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
i = i + 1;
}
}
if (_root.hit == true) {
thisT = thisT + 1;
}
if (thisT >= 30) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if ((Key.isDown(39) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
QLXZ = QLXZ + 4;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
} else if ((Key.isDown(37) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
QLXZ = QLXZ - 4;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
}
if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD1");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 0.6;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD1");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 0.6;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
_root.A1._rotation = this._rotation;
_root.A1._x = this._x;
_root.A1._y = this._y;
if (_root.T < 100) {
if (speed > 0.2) {
speed = speed - 0.1;
} else if (speed < -0.2) {
speed = speed + 0.1;
} else {
speed = 0;
}
} else if (_root.T >= 100) {
if (speed > 0.4) {
speed = speed - 0.3;
} else if (speed < -0.4) {
speed = speed + 0.3;
} else {
speed = 0;
}
}
if (((((((_root.JD < 8) && (_root.JD > -8)) && (this._x > 451)) && (this._x < 465)) && (this._y > 280)) && (this._y < 300)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
KD = 1;
speed = 0;
timemove = 1;
}
}
Instance of Symbol 234 MovieClip in Frame 35
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
if (this._x < -750) {
this._x = 580;
}
}
Instance of Symbol 236 MovieClip in Frame 35
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
if (this._x < -295) {
this._x = 580;
}
}
Instance of Symbol 238 MovieClip in Frame 35
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
if (this._x < -280) {
this._x = 580;
}
}
Instance of Symbol 239 MovieClip in Frame 35
onClipEvent (load) {
Y = 1;
T = 0;
TA = 0;
OK = 0;
}
onClipEvent (enterFrame) {
if (_root.T <= 100) {
if (OK == 0) {
_root.TQ.gotoAndStop(4);
OK = 1;
}
if (T > 0) {
T--;
} else if (T <= 0) {
T = 2;
if (_root.T < 70) {
T = 4;
} else if (_root.T < 80) {
T = 5;
}
_root.attachMovie("rain", "rain" + Y, 100 + Y);
_root["rain" + Y]._x = (290 + random(100)) - random(100);
_root["rain" + Y]._y = (210 + random(50)) - random(50);
x2 = 290;
y2 = 210;
x1 = _root["rain" + Y]._x;
y1 = _root["rain" + Y]._y;
dx = Math.abs(x2 - x1);
dy = Math.abs(y2 - y1);
angle = Math.atan(dy / dx);
angle = (angle * 180) / 3.141593;
if (dx < 0) {
angle = angle - 180;
}
if (x2 < x1) {
if (y2 <= y1) {
TA = int(angle + 90) - 180;
} else if (y2 > y1) {
TA = -int(angle + 90);
}
}
if (x2 > x1) {
if (y2 <= y1) {
TA = 180 - int(angle + 90);
} else if (y2 > y1) {
TA = int(angle + 90);
}
}
_root["rain" + Y]._rotation = 180 + TA;
Y++;
if (Y >= 40) {
Y = 1;
}
}
}
}
Frame 36
gotoAndStop ("start");
Frame 40
mainMovie.statistikk.registerEvent("niv\u00E5_g6");
if ((_root.OKsound == 1) && (world == 2)) {
KSSOUND = new Sound();
KSSOUND.attachSound("world2");
KSSOUND.start(0, 2000);
}
world = 3;
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(3);
var LJD = 1;
var ALLLJD = new Array();
var ZD = 1;
var ALLZD = new Array();
var DH1 = 2;
guank = 6;
levelmc.G = "0" + _root.guank;
TQ.swapDepths(704);
timeK.swapDepths(703);
lifeK.swapDepths(701);
levelmc.swapDepths(702);
WK.swapDepths(700);
SS2.swapDepths(608);
_root.timeK.T = "120:00";
stop();
Instance of Symbol 263 MovieClip "GREN2" in Frame 40
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 390;
this._y = 30;
FX = 1;
T = 200;
KD = 0;
SJ = 30;
this.gotoAndStop(7);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
if ((FX == 1) && (KD == 0)) {
this.play();
this._y = this._y - 1;
if (this._y < 20) {
FX = 0;
this._rotation = this._rotation - 180;
}
} else if ((FX == 0) && (KD == 0)) {
this.play();
this._y = this._y + 1;
if (this._y > 100) {
FX = 1;
this._rotation = this._rotation - 180;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
if (this.hitTest(_root.QB._x, _root.QB._y, true) && (_root.A2.mc.KQ == 1)) {
_root.A2.mc.KQ = 0;
stop();
KD = 1;
this._x = -100;
this._y = -100;
this._visible = false;
}
if (T > 0) {
T--;
} else if (T <= 0) {
T = 200;
KD = 1;
this.gotoAndStop("D");
if (FX == 0) {
this.mc._rotation = _root.PDJ(this._x, this._y);
} else if (FX == 1) {
this.mc._rotation = _root.PDJ(this._x, this._y) + 180;
}
_root.attachMovie("JD", "JD" + _root.LJD, _root.LJD + 420);
var degree = 0.01745329;
_root["JD" + _root.LJD]._x = this._x;
_root["JD" + _root.LJD]._y = this._y;
_root["JD" + _root.LJD]._rotation = this.mc._rotation;
_root["JD" + _root.LJD].X = Math.sin(_root.PDJ(this._x, this._y) * degree) * 2;
_root["JD" + _root.LJD].Y = Math.cos(_root.PDJ(this._x, this._y) * degree) * 2;
_root.ALLLJD.push(_root.LJD);
_root.LJD++;
}
}
}
Instance of Symbol 279 MovieClip "GREN1" in Frame 40
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 190;
this._y = 232;
FX = 1;
T = 200;
KD = 0;
SJ = 30;
this.gotoAndStop(7);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
if ((FX == 1) && (KD == 0)) {
this.play();
this._y = this._y - 1;
if (this._y < 230) {
FX = 0;
this._rotation = this._rotation - 180;
}
} else if ((FX == 0) && (KD == 0)) {
this.play();
this._y = this._y + 1;
if (this._y > 340) {
FX = 1;
this._rotation = this._rotation - 180;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
if (this.hitTest(_root.QB._x, _root.QB._y, true) && (_root.A2.mc.KQ == 1)) {
_root.A2.mc.KQ = 0;
stop();
KD = 1;
this._x = -100;
this._y = -100;
this._visible = false;
}
if (T > 0) {
T--;
} else if (T <= 0) {
T = 200;
KD = 1;
this.gotoAndStop("D");
if (FX == 1) {
this.mc._rotation = _root.PDJ(this._x, this._y);
} else if (FX == 0) {
this.mc._rotation = _root.PDJ(this._x, this._y) + 180;
}
_root.attachMovie("JD", "JD" + _root.LJD, _root.LJD + 420);
var degree = 0.01745329;
_root["JD" + _root.LJD]._x = this._x;
_root["JD" + _root.LJD]._y = this._y;
_root["JD" + _root.LJD]._rotation = this.mc._rotation;
_root["JD" + _root.LJD].X = Math.sin(_root.PDJ(this._x, this._y) * degree) * 2;
_root["JD" + _root.LJD].Y = Math.cos(_root.PDJ(this._x, this._y) * degree) * 2;
_root.ALLLJD.push(_root.LJD);
_root.LJD++;
}
}
}
Instance of Symbol 17 MovieClip [JD] "JD" in Frame 40
onClipEvent (enterFrame) {
if ((_root.A.OKKD == 0) && (_root.A.KD == 0)) {
i = 0;
while (i < _root.ALLLJD.length) {
_root["JD" + _root.ALLLJD[i]]._x = _root["JD" + _root.ALLLJD[i]]._x + _root["JD" + _root.ALLLJD[i]].X;
_root["JD" + _root.ALLLJD[i]]._y = _root["JD" + _root.ALLLJD[i]]._y - _root["JD" + _root.ALLLJD[i]].Y;
if ((((_root["JD" + _root.ALLLJD[i]]._x < -20) || (_root["JD" + _root.ALLLJD[i]]._x > 590)) || (_root["JD" + _root.ALLLJD[i]]._y < -20)) || (_root["JD" + _root.ALLLJD[i]]._y > 450)) {
_root["JD" + _root.ALLLJD[i]].removeMovieClip();
_root.ALLLJD.splice(i, 1);
i--;
}
i++;
}
}
}
Instance of Symbol 279 MovieClip "GREN3" in Frame 40
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 450;
this._y = 30;
FX = 1;
T = 200;
KD = 0;
SJ = 30;
this.gotoAndStop(7);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
if ((FX == 1) && (KD == 0)) {
this.play();
this._y = this._y - 1;
if (this._y < 20) {
FX = 0;
this._rotation = this._rotation - 180;
}
} else if ((FX == 0) && (KD == 0)) {
this.play();
this._y = this._y + 1;
if (this._y > 100) {
FX = 1;
this._rotation = this._rotation - 180;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
if (this.hitTest(_root.QB._x, _root.QB._y, true) && (_root.A2.mc.KQ == 1)) {
_root.A2.mc.KQ = 0;
stop();
KD = 1;
this._x = -100;
this._y = -100;
this._visible = false;
}
if (T > 0) {
T--;
} else if (T <= 0) {
T = 200;
KD = 1;
this.gotoAndStop("D");
if (FX == 1) {
this.mc._rotation = _root.PDJ(this._x, this._y);
} else if (FX == 0) {
this.mc._rotation = _root.PDJ(this._x, this._y) + 180;
}
_root.attachMovie("JD", "JD" + _root.LJD, _root.LJD + 420);
var degree = 0.01745329;
_root["JD" + _root.LJD]._x = this._x;
_root["JD" + _root.LJD]._y = this._y;
_root["JD" + _root.LJD]._rotation = this.mc._rotation;
_root["JD" + _root.LJD].X = Math.sin(_root.PDJ(this._x, this._y) * degree) * 2;
_root["JD" + _root.LJD].Y = Math.cos(_root.PDJ(this._x, this._y) * degree) * 2;
_root.ALLLJD.push(_root.LJD);
_root.LJD++;
}
}
}
Instance of Symbol 293 MovieClip "A" in Frame 40
onClipEvent (load) {
thisT = 0;
timemove = 0;
KQOK = 30;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 20;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 30;
Z = 30;
_root.doFigure(_root.A, numb);
BCX1 = 133;
BCY1 = 63;
BCX2 = 200;
BCY2 = 63;
root1 = 0;
root2 = 0;
this.swapDepths(400);
_root.S.swapDepths(410);
_root.YG.swapDepths(411);
SY = 0;
if (_root.TZ == 1) {
_root.A2.swapDepths(401);
_root.QB.swapDepths(464);
_root.QB1.swapDepths(465);
_root.GREN1.swapDepths(461);
_root.GREN2.swapDepths(462);
_root.GREN3.swapDepths(463);
}
ABCD = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARA");
_root.QD1.start(0, 200);
}
};
t = 1;
while (t <= 3) {
if (((Math.abs(this._x - _root["GREN" + t]._x) < 120) && (Math.abs(this._y - _root["GREN" + t]._y) < 120)) && (_root["GREN" + t]._y > 0)) {
_root.QB._x = _root["GREN" + t]._x;
_root.QB._y = _root["GREN" + t]._y;
_root.QB1._alpha = 0;
break;
}
_root.QBXY();
t++;
}
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 2) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
k++;
}
d = 1;
while (d <= 3) {
if (_root["GREN" + d].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
d++;
}
i = i + 1;
}
}
d = 0;
while (d < _root.ALLLJD.length) {
if (this.hitTest(_root["JD" + _root.ALLLJD[d]]._x, _root["JD" + _root.ALLLJD[d]]._y, true) && (_root.hit == false)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
_root["JD" + _root.ALLLJD[d]].play();
_root["JD" + _root.ALLLJD[d]].X = 0;
_root["JD" + _root.ALLLJD[d]].Y = 0;
this.play();
_root.hit = true;
break;
}
d++;
}
if (_root.hit == true) {
thisT = thisT + 1;
}
if (thisT >= 30) {
u = 1;
while (u <= 30) {
_root["DH" + u].removeMovieClip();
u++;
}
_root.QB.removeMovieClip();
_root.A2.removeMovieClip();
_root.GREN1.removeMovieClip();
_root.GREN2.removeMovieClip();
_root.GREN3.removeMovieClip();
_root.S.removeMovieClip();
_root.QB1.removeMovieClip();
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if (KQOK > 0) {
KQOK--;
}
if ((((((_root.TZ == 1) && (Key.isDown(32))) && (_root.A2.mc.KQ == 0)) && (KQOK <= 0)) && (JTOK == 0)) && (KD == 0)) {
_root.TS22._y = -100;
KQOK = 5;
if (_root.DH1 < 31) {
_root.A2.mc.play();
_root.attachMovie("DH", "DH" + _root.DH1, 200 + _root.DH1);
_root["DH" + _root.DH1]._x = _root.QB._x;
_root["DH" + _root.DH1]._y = _root.QB._y;
_root.DH1++;
} else if ((_root.DH1 >= 31) && (_root.OKsound == 1)) {
W = new Sound();
W.attachSound("S5");
W.start(0, 1);
}
}
if (ABCD < 10) {
ABCD++;
}
if (((_root.TS22._y > 0) && (Key.isDown(32))) && (ABCD >= 5)) {
_root.TS22._y = -100;
}
if ((Key.isDown(37) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
QLXZ = QLXZ + 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
} else if ((Key.isDown(39) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
QLXZ = QLXZ - 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
}
if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
_root.TS22._y = -100;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD3");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 0.5;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
_root.TS22._y = -100;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD3");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 0.5;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
_root.A2._rotation = this._rotation;
_root.A2._x = this._x;
_root.A2._y = this._y;
if (speed > 0.4) {
speed = speed - 0.3;
} else if (speed < -0.4) {
speed = speed + 0.3;
} else {
speed = 0;
}
if (((((((_root.JD < 8) && (_root.JD > -8)) && (this._x > 474)) && (this._x < 490)) && (this._y > 250)) && (this._y < 260)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
KD = 1;
speed = 0;
timemove = 1;
}
}
Frame 41
gotoAndStop ("start");
Frame 45
mainMovie.statistikk.registerEvent("niv\u00E5_g7");
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(1);
WS.setMask(ZZ);
guank = 7;
levelmc.G = "0" + _root.guank;
TQ.swapDepths(704);
timeK.swapDepths(703);
lifeK.swapDepths(701);
levelmc.swapDepths(702);
WK.swapDepths(700);
_root.timeK.T = "120:00";
stop();
Instance of Symbol 306 MovieClip "A" in Frame 45
onClipEvent (load) {
thisT = 0;
timemove = 0;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 30;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 20;
Z = 30;
_root.doFigure(_root.A, numb);
root1 = 0;
root2 = 0;
SY = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARA");
_root.QD1.start(0, 200);
}
};
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 2) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
_root.WS.A.play();
_root.hit = true;
break;
}
k++;
}
i = i + 1;
}
}
if (_root.hit == true) {
thisT = thisT + 1;
}
if (thisT >= 30) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if ((Key.isDown(37) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
QLXZ = QLXZ + 2;
_root.WS.A.wheel1._rotation = QLXZ;
_root.WS.A.wheel4._rotation = QLXZ;
}
} else if ((Key.isDown(39) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
QLXZ = QLXZ - 2;
_root.WS.A.wheel1._rotation = QLXZ;
_root.WS.A.wheel4._rotation = QLXZ;
}
}
if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD4");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 1;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD4");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 1;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
_root.WS.A1._rotation = this._rotation;
_root.WS.A1._x = this._x;
_root.WS.A1._y = this._y;
_root.WS.A._rotation = this._rotation;
_root.WS.A._x = this._x;
_root.WS.A._y = this._y;
_root.ZZ._rotation = this._rotation;
_root.ZZ._x = this._x;
_root.ZZ._y = this._y;
if (speed > 0.4) {
speed = speed - 0.3;
} else if (speed < -0.4) {
speed = speed + 0.3;
} else {
speed = 0;
}
if (((((((_root.JD < 8) && (_root.JD > -8)) && (this._x > 471)) && (this._x < 490)) && (this._y > 20)) && (this._y < 60)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
KD = 1;
speed = 0;
timemove = 1;
}
}
Frame 46
gotoAndStop ("start");
Frame 50
mainMovie.statistikk.registerEvent("niv\u00E5_g8");
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(3);
guank = 8;
levelmc.G = "0" + _root.guank;
TQ.swapDepths(704);
timeK.swapDepths(703);
lifeK.swapDepths(701);
levelmc.swapDepths(702);
WK.swapDepths(700);
_root.timeK.T = "120:00";
stop();
Instance of Symbol 322 MovieClip "A" in Frame 50
onClipEvent (load) {
thisT = 0;
timemove = 0;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 30;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 20;
Z = 30;
_root.doFigure(_root.A, numb);
root1 = 0;
root2 = 0;
SY = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARA");
_root.QD1.start(0, 200);
}
};
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 2) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
k++;
}
i = i + 1;
}
}
if (_root.hit == true) {
thisT = thisT + 1;
}
if (thisT >= 30) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if ((Key.isDown(37) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
if (_root.T < 90) {
QLXZ = QLXZ + 4;
} else if (_root.T >= 90) {
QLXZ = QLXZ + 2;
}
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
} else if ((Key.isDown(39) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
if (_root.T < 90) {
QLXZ = QLXZ - 4;
} else if (_root.T >= 90) {
QLXZ = QLXZ - 2;
}
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
}
if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD2");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 0.9;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD2");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 0.9;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
_root.A1._rotation = this._rotation;
_root.A1._x = this._x;
_root.A1._y = this._y;
if (speed > 0.2) {
speed = speed - 0.1;
} else if (speed < -0.2) {
speed = speed + 0.1;
} else {
speed = 0;
}
if (((((((_root.JD < 8) && (_root.JD > -8)) && (this._x > 403)) && (this._x < 421)) && (this._y > 20)) && (this._y < 60)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
KD = 1;
speed = 0;
timemove = 1;
}
}
Instance of Symbol 239 MovieClip in Frame 50
onClipEvent (load) {
Y = 1;
T = 0;
TA = 0;
OK = 0;
}
onClipEvent (enterFrame) {
if (_root.T <= 100) {
if (OK == 0) {
_root.TQ.gotoAndStop(5);
OK = 1;
_root.YG._alpha = 0;
}
if (T > 0) {
T--;
} else if (T <= 0) {
if (_root.T >= 90) {
T = 5;
} else {
T = 10;
}
_root.attachMovie("XXUE", "XXUE" + Y, 100 + Y);
_root["XXUE" + Y]._x = 30 + random(550);
_root["XXUE" + Y]._y = 30 + random(190);
Y++;
if (Y >= 30) {
Y = 1;
}
}
}
}
Frame 51
gotoAndStop ("start");
Frame 55
mainMovie.statistikk.registerEvent("niv\u00E5_g9");
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(7);
guank = 9;
levelmc.G = "0" + _root.guank;
TQ.swapDepths(704);
timeK.swapDepths(703);
lifeK.swapDepths(701);
levelmc.swapDepths(702);
WK.swapDepths(700);
_root.timeK.T = "120:00";
stop();
Instance of Symbol 349 MovieClip "CW1" in Frame 55
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 442;
this._y = 205;
FX = 1;
this.gotoAndStop(5);
TD = 1;
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
this.play();
if (FX == 1) {
if (TD == 0) {
this._x = this._x - 0.5;
}
if (this._x < 309) {
this._rotation = 180 + this._rotation;
FX = 0;
}
} else if (FX == 0) {
if (TD == 0) {
this._x = this._x + 0.5;
}
if (this._x > 450) {
this._rotation = 180 + this._rotation;
FX = 1;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (this._alpha <= 0) {
this._visible = 0;
}
}
}
}
Instance of Symbol 349 MovieClip "CW2" in Frame 55
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 242;
this._y = 205;
this.gotoAndStop(5);
FX = 1;
TD = 1;
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
this.play();
if (FX == 1) {
if (TD == 0) {
this._y = this._y - 0.5;
}
if (this._y < 100) {
this._rotation = 180 + this._rotation;
FX = 0;
}
} else if (FX == 0) {
if (TD == 0) {
this._y = this._y + 0.5;
}
if (this._y > 210) {
this._rotation = 180 + this._rotation;
FX = 1;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (this._alpha <= 0) {
this._visible = 0;
}
}
}
}
Instance of Symbol 351 MovieClip "A" in Frame 55
onClipEvent (load) {
thisT = 0;
timemove = 0;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 30;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 20;
Z = 30;
_root.doFigure(_root.A, numb);
root1 = 0;
root2 = 0;
SY = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARA");
_root.QD1.start(0, 200);
}
};
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 2) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
k++;
}
i = i + 1;
}
}
if ((this.hitTest(_root.CW1._x, _root.CW1._y, true) && (_root.hit == false)) || (this.hitTest(_root.CW2._x, _root.CW2._y, true) && (_root.hit == false))) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
}
if (_root.hit == true) {
thisT = thisT + 1;
}
if (thisT >= 30) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if ((Key.isDown(37) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
QLXZ = QLXZ + 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
} else if ((Key.isDown(39) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
QLXZ = QLXZ - 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
}
if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD1");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 0.7;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD1");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 0.7;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
_root.A1._rotation = this._rotation;
_root.A1._x = this._x;
_root.A1._y = this._y;
if (speed > 0.4) {
speed = speed - 0.3;
} else if (speed < -0.4) {
speed = speed + 0.3;
} else {
speed = 0;
}
if (((((((_root.JD < 8) && (_root.JD > -8)) && (this._x > 336)) && (this._x < 355)) && (this._y > 352)) && (this._y < 380)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
KD = 1;
speed = 0;
timemove = 1;
}
}
Frame 56
gotoAndStop ("start");
Frame 60
mainMovie.statistikk.registerEvent("niv\u00E5_g10");
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(6);
guank = 10;
levelmc.G = _root.guank;
TQ.swapDepths(704);
timeK.swapDepths(703);
lifeK.swapDepths(701);
levelmc.swapDepths(702);
WK.swapDepths(700);
_root.timeK.T = "120:00";
stop();
Instance of Symbol 359 MovieClip "Y1" in Frame 60
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 210;
this._y = 140;
num = 20;
_root.doFigure2(this, num);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TZ == 1) {
i = 0;
while (i < this.points.length) {
X = this.points[i][0] + this._x;
Y = this.points[i][1] + this._y;
if ((_root.A.hitTest(X, Y, true) && (Math.abs(_root.A.speed) >= 1)) && (_root.A.YPZSJ == 0)) {
_root.A.YPZSJ = 30;
_root.A.YPSJFX = (_root.A._rotation + random(40)) - random(40);
trace(_root.A.YPZSJ);
}
i++;
}
}
}
Instance of Symbol 359 MovieClip "Y2" in Frame 60
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 378;
this._y = 160;
num = 20;
_root.doFigure2(this, num);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TZ == 1) {
i = 0;
while (i < this.points.length) {
X = this.points[i][0] + this._x;
Y = this.points[i][1] + this._y;
if ((_root.A.hitTest(X, Y, true) && (Math.abs(_root.A.speed) >= 1)) && (_root.A.YPZSJ == 0)) {
_root.A.YPZSJ = 30;
_root.A.YPSJFX = (_root.A._rotation + random(40)) - random(40);
trace(_root.A.YPZSJ);
}
i++;
}
}
}
Instance of Symbol 361 MovieClip "A" in Frame 60
onClipEvent (load) {
thisT = 0;
timemove = 0;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 30;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 24;
Z = 30;
_root.doFigure(_root.A, numb);
YKKZ = 0;
YPZSJ = 0;
YPSJFX = 0;
speedjs = 0.3;
root1 = 0;
root2 = 0;
SY = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARA");
_root.QD1.start(0, 200);
}
};
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 2) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
k++;
}
i = i + 1;
}
}
if (_root.hit == true) {
thisT = thisT + 1;
}
if (thisT >= 30) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if (YPZSJ > 0) {
YKKZ = 1;
YPZSJ = YPZSJ - 1;
} else if (YPZSJ <= 0) {
YPZSJ = 0;
YKKZ = 0;
}
if (((Key.isDown(37) && (KD == 0)) && (YKKZ == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
QLXZ = QLXZ + 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
} else if (((Key.isDown(39) && (KD == 0)) && (YKKZ == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
QLXZ = QLXZ - 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
}
if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD4");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 0.8;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD4");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 0.8;
}
Direction = 0;
Rotation = -this._rotation;
}
if (YKKZ == 0) {
speedjs = 0.3;
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
} else if (YKKZ == 1) {
speedjs = 0.1;
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(YPSJFX * degree) * speed);
this._y = this._y + (Math.cos(YPSJFX * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(YPSJFX * degree) * speed);
this._y = this._y + (Math.cos(YPSJFX * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
}
_root.A1._rotation = this._rotation;
_root.A1._x = this._x;
_root.A1._y = this._y;
if (speed > 0.4) {
speed = speed - speedjs;
} else if (speed < -0.4) {
speed = speed + speedjs;
} else {
speed = 0;
}
if (((((((_root.JD < 8) && (_root.JD > -8)) && (this._x > 336)) && (this._x < 352)) && (this._y > 250)) && (this._y < 260)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
KD = 1;
speed = 0;
timemove = 1;
}
}
Instance of Symbol 234 MovieClip in Frame 60
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
if (this._x < -750) {
this._x = 580;
}
}
Instance of Symbol 236 MovieClip in Frame 60
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
if (this._x < -295) {
this._x = 580;
}
}
Instance of Symbol 238 MovieClip in Frame 60
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
if (this._x < -280) {
this._x = 580;
}
}
Frame 61
gotoAndStop ("start");
Frame 65
mainMovie.statistikk.registerEvent("niv\u00E5_g11");
if ((_root.OKsound == 1) && (world == 3)) {
KSSOUND = new Sound();
KSSOUND.attachSound("world3");
KSSOUND.start(0, 2000);
}
world = 4;
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(4);
_root.onMouseDown = function () {
if (((TZ == 1) && (_root.mc._x != -100)) && (_root.mc.KQ == 0)) {
_root.mc.play();
}
};
guank = 11;
levelmc.G = _root.guank;
var DH1 = 2;
TQ.swapDepths(704);
timeK.swapDepths(703);
lifeK.swapDepths(701);
levelmc.swapDepths(702);
WK.swapDepths(700);
_root.timeK.T = "120:00";
stop();
Instance of Symbol 376 MovieClip "XT1" in Frame 65
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 600;
this._y = 163;
this._rotation = this._rotation - 90;
this.gotoAndStop(1);
KD = 0;
TOK = 50;
C = 1;
FX = 1;
CS = 1;
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
CC = function () {
u = 1;
while (u <= 30) {
_root["DH" + u].removeMovieClip();
u++;
}
_root.QB.removeMovieClip();
_root.A2.removeMovieClip();
_root.XT1.removeMovieClip();
_root.S.removeMovieClip();
_root.A.removeMovieClip();
};
}
onClipEvent (enterFrame) {
if (((_root.TZ == 1) && (_root.A.JTOK == 0)) && (this._x > 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
if ((KD == 0) && (C == 1)) {
this.play();
this._x = this._x - 2;
if ((this._x <= 210) && (this._x > 100)) {
KD = 1;
}
} else if ((KD == 0) && (C == 2)) {
this.play();
this._y = this._y + 2;
this._x = this._x - 1;
if (this._y >= 220) {
KD = 1;
}
} else if ((KD == 0) && (C == 3)) {
this.play();
this._y = this._y - 2;
this._x = this._x + 1;
if (this._y <= 150) {
KD = 1;
}
} else if ((((KD == 1) && (this._x != -100)) && (C == 1)) && (TOK >= 0)) {
this.gotoAndStop(7);
TOK = TOK - 1;
_root.B4._alpha = 60 + random(40);
} else if ((((KD == 1) && (this._x != -100)) && (C == 2)) && (TOK >= 0)) {
this.gotoAndStop(7);
TOK = TOK - 1;
_root.B3._alpha = 60 + random(40);
} else if ((((KD == 1) && (this._x != -100)) && (C == 3)) && (TOK >= 0)) {
this.gotoAndStop(7);
TOK = TOK - 1;
_root.B5._alpha = 60 + random(40);
}
if ((((TOK <= 0) && (C == 1)) && (_root.B4._alpha >= 0)) && (this._x > 0)) {
_root.B4._alpha = _root.B4._alpha - 4;
if (_root.B4._alpha < 0) {
TOK = 50;
KD = 0;
_root.B4._visible = 0;
_root.B4._x = -100;
_root.live--;
_root.lifeK.gotoAndStop(_root.live);
this.play();
if (_root.live <= 0) {
_root.gotoAndStop("GAMEOVER");
CC();
this.removeMovieClip();
} else {
_root.gotoAndStop("SB");
CC();
this.removeMovieClip();
}
C = 2;
this._rotation = this._rotation - 50;
}
} else if ((((TOK <= 0) && (C == 2)) && (_root.B3._alpha >= 0)) && (this._x > 0)) {
_root.B3._alpha = _root.B3._alpha - 4;
if (_root.B3._alpha < 0) {
TOK = 50;
KD = 0;
_root.B3._visible = 0;
_root.B3._x = -100;
_root.live--;
_root.lifeK.gotoAndStop(_root.live);
this.play();
if (_root.live <= 0) {
_root.gotoAndStop("GAMEOVER");
CC();
this.removeMovieClip();
} else {
_root.gotoAndStop("SB");
CC();
this.removeMovieClip();
}
C = 3;
this._rotation = this._rotation + 160;
}
} else if ((((TOK <= 0) && (C == 3)) && (_root.B5._alpha >= 0)) && (this._x > 0)) {
_root.B5._alpha = _root.B5._alpha - 4;
if (_root.B5._alpha < 0) {
TOK = 50;
KD = 0;
_root.B5._visible = 0;
_root.B5._x = -100;
_root.live--;
_root.lifeK.gotoAndStop(_root.live);
this.play();
if (_root.live <= 0) {
_root.gotoAndStop("GAMEOVER");
CC();
this.removeMovieClip();
} else {
_root.gotoAndStop("SB");
CC();
this.removeMovieClip();
}
C = 4;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
if ((KD == 1) && (this._x != -100)) {
_root.B4._alpha = _root.B4._alpha - 4;
}
}
}
if (this.hitTest(_root.QB._x, _root.QB._y, true) && (_root.A2.mc.KQ == 1)) {
_root.A2.mc.KQ = 0;
_root.B5._alpha = 100;
_root.B3._alpha = 100;
_root.B4._alpha = 100;
this._x = -100;
this._y = -100;
this._visible = false;
TOK = 50;
this.removeMovieClip();
}
}
}
Instance of Symbol 378 MovieClip "A" in Frame 65
onClipEvent (load) {
thisT = 0;
timemove = 0;
KQOK = 30;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 30;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 20;
Z = 30;
root1 = 0;
root2 = 0;
_root.doFigure(_root.A, numb);
this.swapDepths(400);
_root.S.swapDepths(410);
if (_root.TZ == 1) {
_root.A2.swapDepths(401);
_root.QB.swapDepths(464);
_root.QB1.swapDepths(465);
_root.XT1.swapDepths(461);
}
SY = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARD");
_root.QD1.start(0, 200);
}
};
t = 1;
while (t <= 1) {
if (((Math.abs(this._x - _root["XT" + t]._x) < 120) && (Math.abs(this._y - _root["XT" + t]._y) < 120)) && (_root["XT" + t]._y > 0)) {
_root.QB._x = _root["XT" + t]._x;
_root.QB._y = _root["XT" + t]._y;
_root.QB1._alpha = 0;
break;
}
_root.QBXY();
t++;
}
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 10) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
k++;
}
if (_root.XT1.hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
i = i + 1;
}
}
if (_root.hit == true) {
thisT = thisT + 1;
KD = 1;
}
if (thisT >= 30) {
u = 1;
while (u <= 30) {
_root["DH" + u].removeMovieClip();
u++;
}
_root.QB.removeMovieClip();
_root.A2.removeMovieClip();
_root.XT1.removeMovieClip();
_root.S.removeMovieClip();
_root.QB1.removeMovieClip();
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if (KQOK > 0) {
KQOK--;
}
if ((((((_root.TZ == 1) && (Key.isDown(32))) && (_root.A2.mc.KQ == 0)) && (KQOK <= 0)) && (JTOK == 0)) && (KD == 0)) {
KQOK = 5;
if (_root.DH1 < 31) {
_root.A2.mc.play();
_root.attachMovie("DH", "DH" + _root.DH1, 200 + _root.DH1);
_root["DH" + _root.DH1]._x = _root.QB._x;
_root["DH" + _root.DH1]._y = _root.QB._y;
_root.DH1++;
} else if ((_root.DH1 >= 31) && (_root.OKsound == 1)) {
W = new Sound();
W.attachSound("S5");
W.start(0, 1);
}
}
if ((Key.isDown(39) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
QLXZ = QLXZ + 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
}
} else if ((Key.isDown(37) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
QLXZ = QLXZ - 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
}
}
if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("Jeep-Start");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 0.6;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("Jeep-Start");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 0.6;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
_root.A2._rotation = this._rotation;
_root.A2._x = this._x;
_root.A2._y = this._y - 10;
if (speed > 0.2) {
speed = speed - 0.1;
} else if (speed < -0.2) {
speed = speed + 0.1;
} else {
speed = 0;
}
if (((((((_root.JD < 98) && (_root.JD > 82)) && (this._x > 0)) && (this._x < 108)) && (this._y > 290)) && (this._y < 312)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
KD = 1;
speed = 0;
timemove = 1;
}
}
Instance of Symbol 239 MovieClip in Frame 65
onClipEvent (load) {
Y = 1;
T = 0;
TA = 0;
OK = 0;
}
onClipEvent (enterFrame) {
if (OK == 0) {
_root.TQ.gotoAndStop(4);
OK = 1;
}
if (T > 0) {
T--;
} else if (T <= 0) {
T = 3;
_root.attachMovie("rain", "rain" + Y, 100 + Y);
_root["rain" + Y]._x = (290 + random(100)) - random(100);
_root["rain" + Y]._y = (210 + random(50)) - random(50);
x2 = 290;
y2 = 210;
x1 = _root["rain" + Y]._x;
y1 = _root["rain" + Y]._y;
dx = Math.abs(x2 - x1);
dy = Math.abs(y2 - y1);
angle = Math.atan(dy / dx);
angle = (angle * 180) / 3.141593;
if (dx < 0) {
angle = angle - 180;
}
if (x2 < x1) {
if (y2 <= y1) {
TA = int(angle + 90) - 180;
} else if (y2 > y1) {
TA = -int(angle + 90);
}
}
if (x2 > x1) {
if (y2 <= y1) {
TA = 180 - int(angle + 90);
} else if (y2 > y1) {
TA = int(angle + 90);
}
}
_root["rain" + Y]._rotation = 180 + TA;
Y++;
if (Y >= 30) {
Y = 1;
}
}
}
Frame 66
gotoAndStop ("start");
Frame 70
mainMovie.statistikk.registerEvent("niv\u00E5_g12");
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(1);
_root.WS.setMask(ZZ);
guank = 12;
levelmc.G = _root.guank;
TQ.swapDepths(704);
timeK.swapDepths(703);
lifeK.swapDepths(701);
levelmc.swapDepths(702);
WK.swapDepths(700);
_root.timeK.T = "120:00";
stop();
Instance of Symbol 359 MovieClip "Y1" in Frame 70
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 300;
this._y = 253;
num = 20;
_root.doFigure2(this, num);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TZ == 1) {
i = 0;
while (i < this.points.length) {
X = this.points[i][0] + this._x;
Y = this.points[i][1] + this._y;
if ((_root.A.hitTest(X, Y, true) && (Math.abs(_root.A.speed) >= 1)) && (_root.A.YPZSJ == 0)) {
_root.A.YPZSJ = 30;
_root.A.YPSJFX = (_root.A._rotation + random(40)) - random(40);
trace(_root.A.YPZSJ);
}
i++;
}
}
}
Instance of Symbol 359 MovieClip "Y2" in Frame 70
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 500;
this._y = 140;
num = 20;
_root.doFigure2(this, num);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TZ == 1) {
i = 0;
while (i < this.points.length) {
X = this.points[i][0] + this._x;
Y = this.points[i][1] + this._y;
if ((_root.A.hitTest(X, Y, true) && (Math.abs(_root.A.speed) >= 1)) && (_root.A.YPZSJ == 0)) {
_root.A.YPZSJ = 30;
_root.A.YPSJFX = (_root.A._rotation + random(40)) - random(40);
trace(_root.A.YPZSJ);
}
i++;
}
}
}
Instance of Symbol 349 MovieClip "C1" in Frame 70
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 400;
this._y = 119;
FX = 0;
this.gotoAndStop(1);
TD = 1;
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
this.play();
if (FX == 1) {
if (TD == 0) {
this._y = this._y - 0.5;
}
if (this._y < 100) {
this._rotation = 180 + this._rotation;
FX = 0;
}
} else if (FX == 0) {
if (TD == 0) {
this._y = this._y + 0.5;
}
if (this._y > 230) {
this._rotation = 180 + this._rotation;
FX = 1;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (this._alpha <= 0) {
this._visible = 0;
}
}
}
}
Instance of Symbol 222 MovieClip "MR1" in Frame 70
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 367;
this._y = 25;
TT = 0;
SJ = 200;
ZOK = 0;
this.gotoAndStop(5);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if (TT < 32) {
TT++;
}
if ((_root.hit == false) && (_root.A.timemove == 0)) {
this.play();
if (ZOK > 0) {
ZOK = ZOK - 1;
}
if ((Key.isDown(32) && (ZOK <= 0)) && (TT >= 30)) {
TT = 0;
SJ = 300;
this._rotation = this._rotation + 120;
ZOK = 5;
if (_root.OKsound == 1) {
BB = new Sound();
BB.attachSound("QDBB1");
BB.start(0, 1);
}
}
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * 1);
this._y = this._y + (Math.cos(this._rotation * degree) * 1);
if (SJ > 0) {
SJ = SJ - 1;
} else if (SJ <= 0) {
SJ = 300;
this._rotation = random(180) - random(180);
} else if ((((this._x < 40) || (this._x > 540)) || (this._y < 40)) || (this._y > 350)) {
this._rotation = this._rotation + 180;
}
if (_root.MRL.hitTest(this._x, this._y, true) || (_root.MR2.hitTest(this._x, this._y, true))) {
SJ = 300;
this._rotation = this._rotation + 180;
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * 2);
this._y = this._y + (Math.cos(this._rotation * degree) * 2);
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
}
}
Instance of Symbol 222 MovieClip "MR2" in Frame 70
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 504;
this._y = 40;
TT = 0;
ZOK = 0;
SJ = 200;
this.gotoAndStop(5);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if (TT < 32) {
TT++;
}
if ((_root.hit == false) && (_root.A.timemove == 0)) {
this.play();
if (ZOK > 0) {
ZOK = ZOK - 1;
}
if ((Key.isDown(32) && (ZOK <= 0)) && (TT >= 30)) {
TT = 0;
SJ = 300;
this._rotation = this._rotation + 120;
ZOK = 5;
}
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * 1);
this._y = this._y + (Math.cos(this._rotation * degree) * 1);
if (SJ > 0) {
SJ = SJ - 1;
} else if (SJ <= 0) {
SJ = 300;
this._rotation = random(180) - random(180);
} else if ((((this._x < 40) || (this._x > 540)) || (this._y < 40)) || (this._y > 350)) {
this._rotation = this._rotation + 180;
}
if (_root.MRL.hitTest(this._x, this._y, true) || (_root.MR1.hitTest(this._x, this._y, true))) {
SJ = 300;
this._rotation = this._rotation + 180;
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * 2);
this._y = this._y + (Math.cos(this._rotation * degree) * 2);
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
}
}
Instance of Symbol 390 MovieClip "A" in Frame 70
onClipEvent (load) {
thisT = 0;
timemove = 0;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 30;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 24;
Z = 30;
_root.doFigure(_root.A, numb);
YKKZ = 0;
YPZSJ = 0;
YPSJFX = 0;
speedjs = 0.3;
root1 = 0;
root2 = 0;
SY = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARC");
_root.QD1.start(0, 200);
}
};
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 2) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
_root.WS.A.play();
_root.hit = true;
break;
}
k++;
}
if (_root.MR1.hitTest(X, Y, true) || (_root.MR2.hitTest(X, Y, true))) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
_root.WS.A.play();
_root.hit = true;
break;
}
i = i + 1;
}
}
if (this.hitTest(_root.C1._x, _root.C1._y, true) && (_root.hit == false)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
_root.WS.A.play();
_root.hit = true;
}
if (_root.hit == true) {
thisT = thisT + 1;
}
if (thisT >= 30) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if (YPZSJ > 0) {
YKKZ = 1;
YPZSJ = YPZSJ - 1;
} else if (YPZSJ <= 0) {
YPZSJ = 0;
YKKZ = 0;
}
if (((Key.isDown(39) && (KD == 0)) && (YKKZ == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
QLXZ = QLXZ + 2;
_root.WS.A.wheel1._rotation = QLXZ;
_root.WS.A.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
} else if (((Key.isDown(37) && (KD == 0)) && (YKKZ == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
QLXZ = QLXZ - 2;
_root.WS.A.wheel1._rotation = QLXZ;
_root.WS.A.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
}
if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD4");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 0.8;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD4");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 0.8;
}
Direction = 0;
Rotation = -this._rotation;
}
if (YKKZ == 0) {
speedjs = 0.3;
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
} else if (YKKZ == 1) {
speedjs = 0.1;
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(YPSJFX * degree) * speed);
this._y = this._y + (Math.cos(YPSJFX * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(YPSJFX * degree) * speed);
this._y = this._y + (Math.cos(YPSJFX * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
}
_root.WS.A._rotation = this._rotation;
_root.WS.A._x = this._x;
_root.WS.A._y = this._y;
_root.WS.A1._rotation = this._rotation;
_root.WS.A1._x = this._x;
_root.WS.A1._y = this._y;
_root.ZZ._rotation = this._rotation;
_root.ZZ._x = this._x;
_root.ZZ._y = this._y;
if (speed > 0.4) {
speed = speed - speedjs;
} else if (speed < -0.4) {
speed = speed + speedjs;
} else {
speed = 0;
}
if (((((((_root.JD < 8) && (_root.JD > -8)) && (this._x > 437)) && (this._x < 452)) && (this._y > 290)) && (this._y < 330)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
KD = 1;
speed = 0;
timemove = 1;
}
}
Frame 71
gotoAndStop ("start");
Frame 75
mainMovie.statistikk.registerEvent("niv\u00E5_g13");
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(3);
guank = 13;
levelmc.G = _root.guank;
TQ.swapDepths(704);
timeK.swapDepths(703);
lifeK.swapDepths(701);
levelmc.swapDepths(702);
WK.swapDepths(700);
_root.timeK.T = "120:00";
stop();
Instance of Symbol 402 MovieClip "A" in Frame 75
onClipEvent (load) {
thisT = 0;
timemove = 0;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 30;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 20;
Z = 30;
_root.doFigure(_root.A, numb);
root1 = 0;
root2 = 0;
SY = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARD");
_root.QD1.start(0, 200);
}
};
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 2) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
k++;
}
i = i + 1;
}
}
if (_root.hit == true) {
thisT = thisT + 1;
}
if (thisT >= 30) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if ((Key.isDown(39) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
QLXZ = QLXZ + 4;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
} else if ((Key.isDown(37) && (KD == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
QLXZ = QLXZ - 4;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
}
if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("Jeep-Start");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 0.6;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("Jeep-Start");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 0.6;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
_root.A1._rotation = this._rotation;
_root.A1._x = this._x;
_root.A1._y = this._y;
if (speed > 0.2) {
speed = speed - 0.1;
} else if (speed < -0.2) {
speed = speed + 0.1;
} else {
speed = 0;
}
if (((((((_root.JD < 8) && (_root.JD > -8)) && (this._x > 506)) && (this._x < 526)) && (this._y > 290)) && (this._y < 310)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
KD = 1;
speed = 0;
timemove = 1;
}
}
Instance of Symbol 239 MovieClip in Frame 75
onClipEvent (load) {
Y = 1;
T = 0;
TA = 0;
OK = 0;
}
onClipEvent (enterFrame) {
if (_root.T <= 100) {
if (OK == 0) {
_root.TQ.gotoAndStop(5);
OK = 1;
_root.YG._alpha = 0;
}
if (T > 0) {
T--;
} else if (T <= 0) {
if (_root.T >= 90) {
T = 5;
} else {
T = 10;
}
_root.attachMovie("XXUE", "XXUE" + Y, 100 + Y);
_root["XXUE" + Y]._x = 30 + random(550);
_root["XXUE" + Y]._y = 30 + random(190);
Y++;
if (Y >= 20) {
Y = 1;
}
}
}
}
Frame 76
gotoAndStop ("start");
Frame 80
mainMovie.statistikk.registerEvent("niv\u00E5_g14");
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(3);
var LJD = 1;
var ALLLJD = new Array();
var ZD = 1;
var DH1 = 2;
_root.onMouseDown = function () {
if (((TZ == 1) && (_root.mc._x != -100)) && (_root.mc.KQ == 0)) {
_root.mc.play();
}
};
guank = 14;
levelmc.G = _root.guank;
TQ.swapDepths(704);
timeK.swapDepths(703);
lifeK.swapDepths(701);
levelmc.swapDepths(702);
WK.swapDepths(700);
_root.timeK.T = "120:00";
stop();
Instance of Symbol 359 MovieClip "Y2" in Frame 80
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 200;
this._y = 328;
num = 20;
_root.doFigure2(this, num);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TZ == 1) {
i = 0;
while (i < this.points.length) {
X = this.points[i][0] + this._x;
Y = this.points[i][1] + this._y;
if ((_root.A.hitTest(X, Y, true) && (Math.abs(_root.A.speed) >= 1)) && (_root.A.YPZSJ == 0)) {
_root.A.YPZSJ = 30;
_root.A.YPSJFX = (_root.A._rotation + random(40)) - random(40);
trace(_root.A.YPZSJ);
}
i++;
}
}
}
Instance of Symbol 359 MovieClip "Y3" in Frame 80
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 419;
this._y = 200;
num = 20;
_root.doFigure2(this, num);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TZ == 1) {
i = 0;
while (i < this.points.length) {
X = this.points[i][0] + this._x;
Y = this.points[i][1] + this._y;
if ((_root.A.hitTest(X, Y, true) && (Math.abs(_root.A.speed) >= 1)) && (_root.A.YPZSJ == 0)) {
_root.A.YPZSJ = 30;
_root.A.YPSJFX = (_root.A._rotation + random(40)) - random(40);
trace(_root.A.YPZSJ);
}
i++;
}
}
}
Instance of Symbol 359 MovieClip "Y1" in Frame 80
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 268;
this._y = 216;
num = 20;
_root.doFigure2(this, num);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TZ == 1) {
i = 0;
while (i < this.points.length) {
X = this.points[i][0] + this._x;
Y = this.points[i][1] + this._y;
if ((_root.A.hitTest(X, Y, true) && (Math.abs(_root.A.speed) >= 1)) && (_root.A.YPZSJ == 0)) {
_root.A.YPZSJ = 30;
_root.A.YPSJFX = (_root.A._rotation + random(40)) - random(40);
trace(_root.A.YPZSJ);
}
i++;
}
}
}
Instance of Symbol 376 MovieClip "XT1" in Frame 80
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 600;
this._y = 163;
this._rotation = this._rotation - 90;
KD = 0;
TOK = 50;
C = 1;
this.gotoAndStop(1);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
CC = function () {
u = 1;
while (u <= 30) {
_root["DH" + u].removeMovieClip();
u++;
}
_root.QB.removeMovieClip();
_root.A2.removeMovieClip();
_root.XT1.removeMovieClip();
_root.XT2.removeMovieClip();
_root.S.removeMovieClip();
_root.A.removeMovieClip();
};
}
onClipEvent (enterFrame) {
if (((_root.TZ == 1) && (_root.A.JTOK == 0)) && (this._x > 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
if ((KD == 0) && (C == 1)) {
this.play();
this._x = this._x - 2;
if ((this._x <= 210) && (this._x > 100)) {
KD = 1;
}
} else if ((KD == 0) && (C == 2)) {
this.play();
this._y = this._y + 2;
this._x = this._x - 1;
if (this._y >= 220) {
KD = 1;
}
} else if ((KD == 0) && (C == 3)) {
this.play();
this._y = this._y - 2;
this._x = this._x + 1;
if (this._y <= 150) {
KD = 1;
}
} else if ((((KD == 1) && (this._x != -100)) && (C == 1)) && (TOK >= 0)) {
this.gotoAndStop(7);
TOK = TOK - 1;
_root.B4._alpha = 60 + random(40);
} else if ((((KD == 1) && (this._x != -100)) && (C == 2)) && (TOK >= 0)) {
this.gotoAndStop(7);
TOK = TOK - 1;
_root.B3._alpha = 60 + random(40);
} else if ((((KD == 1) && (this._x != -100)) && (C == 3)) && (TOK >= 0)) {
this.gotoAndStop(7);
TOK = TOK - 1;
_root.B5._alpha = 60 + random(40);
}
if ((((TOK <= 0) && (C == 1)) && (_root.B4._alpha >= 0)) && (this._x > 0)) {
_root.B4._alpha = _root.B4._alpha - 4;
if (_root.B4._alpha < 0) {
TOK = 50;
KD = 0;
_root.B4._visible = 0;
_root.B4._x = -100;
_root.live--;
_root.lifeK.gotoAndStop(_root.live);
this.play();
if (_root.live <= 0) {
_root.gotoAndStop("GAMEOVER");
CC();
this.removeMovieClip();
} else {
_root.gotoAndStop("SB");
CC();
this.removeMovieClip();
}
C = 2;
this._rotation = this._rotation - 50;
}
} else if ((((TOK <= 0) && (C == 2)) && (_root.B3._alpha >= 0)) && (this._x > 0)) {
_root.B3._alpha = _root.B3._alpha - 4;
if (_root.B3._alpha < 0) {
TOK = 50;
KD = 0;
_root.B3._visible = 0;
_root.B3._x = -100;
_root.live--;
_root.lifeK.gotoAndStop(_root.live);
this.play();
if (_root.live <= 0) {
_root.gotoAndStop("GAMEOVER");
CC();
this.removeMovieClip();
} else {
_root.gotoAndStop("SB");
CC();
this.removeMovieClip();
}
C = 3;
this._rotation = this._rotation + 160;
}
} else if ((((TOK <= 0) && (C == 3)) && (_root.B5._alpha >= 0)) && (this._x > 0)) {
_root.B5._alpha = _root.B5._alpha - 4;
if (_root.B5._alpha < 0) {
TOK = 50;
KD = 0;
_root.B5._visible = 0;
_root.B5._x = -100;
_root.live--;
_root.lifeK.gotoAndStop(_root.live);
this.play();
if (_root.live <= 0) {
_root.gotoAndStop("GAMEOVER");
CC();
this.removeMovieClip();
} else {
_root.gotoAndStop("SB");
CC();
this.removeMovieClip();
}
C = 4;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
if ((KD == 1) && (this._x != -100)) {
_root.B4._alpha = _root.B4._alpha - 4;
}
}
}
if (this.hitTest(_root.QB._x, _root.QB._y, true) && (_root.A2.mc.KQ == 1)) {
_root.A2.mc.KQ = 0;
_root.B5._alpha = 100;
_root.B3._alpha = 100;
_root.B4._alpha = 100;
this._x = -100;
this._y = -100;
this._visible = false;
TOK = 50;
this.removeMovieClip();
}
}
}
Instance of Symbol 376 MovieClip "XT2" in Frame 80
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 600;
this._y = 50;
this._rotation = this._rotation - 90;
KD = 0;
TOK = 50;
C = 1;
this.gotoAndStop(1);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
CC = function () {
u = 1;
while (u <= 30) {
_root["DH" + u].removeMovieClip();
u++;
}
_root.QB.removeMovieClip();
_root.A2.removeMovieClip();
_root.XT1.removeMovieClip();
_root.XT2.removeMovieClip();
_root.S.removeMovieClip();
_root.A.removeMovieClip();
};
}
onClipEvent (enterFrame) {
if (_root.T < 100) {
if (((_root.TZ == 1) && (_root.A.JTOK == 0)) && (this._x > 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
if ((KD == 0) && (C == 1)) {
this.play();
this._x = this._x - 2;
if (this._x <= 480) {
KD = 1;
}
} else if ((KD == 0) && (C == 2)) {
this.play();
this._x = this._x - 2;
this._y = this._y + 0.5;
if (this._x <= 340) {
KD = 1;
}
} else if ((KD == 0) && (C == 3)) {
this.play();
this._y = this._y + 2;
this._x = this._x + 0.5;
if (this._y >= 230) {
KD = 1;
}
} else if ((((KD == 1) && (this._x != -100)) && (C == 1)) && (TOK >= 0)) {
this.gotoAndStop(7);
TOK = TOK - 1;
_root.B7._alpha = 60 + random(40);
} else if ((((KD == 1) && (this._x != -100)) && (C == 2)) && (TOK >= 0)) {
this.gotoAndStop(7);
TOK = TOK - 1;
_root.B6._alpha = 60 + random(40);
} else if ((((KD == 1) && (this._x != -100)) && (C == 3)) && (TOK >= 0)) {
this.gotoAndStop(7);
TOK = TOK - 1;
_root.B8._alpha = 60 + random(40);
}
if ((((TOK <= 0) && (C == 1)) && (_root.B7._alpha >= 0)) && (this._x > 0)) {
_root.B7._alpha = _root.B7._alpha - 4;
if (_root.B7._alpha < 0) {
TOK = 50;
KD = 0;
_root.B7._visible = 0;
_root.B7._x = -100;
_root.live--;
_root.lifeK.gotoAndStop(_root.live);
this.play();
if (_root.live <= 0) {
_root.gotoAndStop("GAMEOVER");
CC();
this.removeMovieClip();
} else {
_root.gotoAndStop("SB");
CC();
this.removeMovieClip();
}
C = 2;
this._rotation = this._rotation - 10;
}
} else if ((((TOK <= 0) && (C == 2)) && (_root.B6._alpha >= 0)) && (this._x > 0)) {
_root.B6._alpha = _root.B6._alpha - 4;
if (_root.B6._alpha < 0) {
TOK = 50;
KD = 0;
_root.B6._visible = 0;
_root.B6._x = -100;
_root.live--;
_root.lifeK.gotoAndStop(_root.live);
this.play();
if (_root.live <= 0) {
_root.gotoAndStop("GAMEOVER");
CC();
this.removeMovieClip();
} else {
_root.gotoAndStop("SB");
CC();
this.removeMovieClip();
}
C = 3;
this._rotation = this._rotation - 90;
}
} else if ((((TOK <= 0) && (C == 3)) && (_root.B8._alpha >= 0)) && (this._x > 0)) {
_root.B8._alpha = _root.B8._alpha - 4;
if (_root.B8._alpha < 0) {
TOK = 50;
KD = 0;
_root.B8._visible = 0;
_root.B8._x = -100;
_root.live--;
_root.lifeK.gotoAndStop(_root.live);
this.play();
if (_root.live <= 0) {
_root.gotoAndStop("GAMEOVER");
CC();
this.removeMovieClip();
} else {
_root.gotoAndStop("SB");
CC();
this.removeMovieClip();
}
C = 4;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
if ((KD == 1) && (this._x != -100)) {
_root.B4._alpha = _root.B4._alpha - 4;
}
}
}
if (this.hitTest(_root.QB._x, _root.QB._y, true) && (_root.A2.mc.KQ == 1)) {
_root.A2.mc.KQ = 0;
_root.B7._alpha = 100;
_root.B6._alpha = 100;
_root.B8._alpha = 100;
this._x = -100;
this._y = -100;
this._visible = false;
TOK = 50;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 411 MovieClip "A" in Frame 80
onClipEvent (load) {
thisT = 0;
timemove = 0;
KQOK = 30;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 30;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 20;
Z = 30;
_root.doFigure(_root.A, numb);
YKKZ = 0;
YPZSJ = 0;
YPSJFX = 0;
speedjs = 0.3;
this.swapDepths(400);
S.swapDepths(410);
root1 = 0;
root2 = 0;
if (_root.TZ == 1) {
_root.A2.swapDepths(401);
_root.QB.swapDepths(464);
_root.QB1.swapDepths(465);
_root.XT1.swapDepths(461);
_root.XT2.swapDepths(462);
_root.GREN2.swapDepths(460);
_root.GREN1.swapDepths(459);
}
SY = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARC");
_root.QD1.start(0, 200);
}
};
t = 1;
while (t <= 2) {
if (((Math.abs(this._x - _root["XT" + t]._x) < 120) && (Math.abs(this._y - _root["XT" + t]._y) < 120)) && (_root["XT" + t]._y > 0)) {
_root.QB._x = _root["XT" + t]._x;
_root.QB._y = _root["XT" + t]._y;
_root.QB1._alpha = 0;
break;
}
_root.QBXY();
t++;
}
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 8) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
k++;
}
if (((_root.XT1.hitTest(X, Y, true) || (_root.XT2.hitTest(X, Y, true))) || (_root.GREN2.hitTest(X, Y, true))) || (_root.GREN1.hitTest(X, Y, true))) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
i = i + 1;
}
}
d = 0;
while (d < _root.ALLLJD.length) {
if (this.hitTest(_root["JD" + _root.ALLLJD[d]]._x, _root["JD" + _root.ALLLJD[d]]._y, true) && (_root.hit == false)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
_root["JD" + _root.ALLLJD[d]].play();
_root["JD" + _root.ALLLJD[d]].X = 0;
_root["JD" + _root.ALLLJD[d]].Y = 0;
this.play();
_root.hit = true;
break;
}
d++;
}
if (_root.hit == true) {
thisT = thisT + 1;
}
if (thisT >= 30) {
u = 1;
while (u <= 30) {
_root["DH" + u].removeMovieClip();
u++;
}
_root.QB.removeMovieClip();
_root.QB1.removeMovieClip();
_root.A2.removeMovieClip();
_root.XT1.removeMovieClip();
_root.XT2.removeMovieClip();
_root.GREN2.removeMovieClip();
_root.GREN1.removeMovieClip();
_root.S.removeMovieClip();
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if (YPZSJ > 0) {
YKKZ = 1;
YPZSJ = YPZSJ - 1;
} else if (YPZSJ <= 0) {
YPZSJ = 0;
YKKZ = 0;
}
if (YKKZ == 0) {
speedjs = 0.3;
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
} else if (YKKZ == 1) {
speedjs = 0.1;
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(YPSJFX * degree) * speed);
this._y = this._y + (Math.cos(YPSJFX * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(YPSJFX * degree) * speed);
this._y = this._y + (Math.cos(YPSJFX * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
}
if (KQOK > 0) {
KQOK--;
}
if ((((((_root.TZ == 1) && (Key.isDown(32))) && (_root.A2.mc.KQ == 0)) && (KQOK <= 0)) && (JTOK == 0)) && (KD == 0)) {
KQOK = 5;
if (_root.DH1 < 31) {
_root.A2.mc.play();
_root.attachMovie("DH", "DH" + _root.DH1, 200 + _root.DH1);
_root["DH" + _root.DH1]._x = _root.QB._x;
_root["DH" + _root.DH1]._y = _root.QB._y;
_root.DH1++;
} else if ((_root.DH1 >= 31) && (_root.OKsound == 1)) {
W = new Sound();
W.attachSound("S5");
W.start(0, 1);
}
}
if (((Key.isDown(39) && (KD == 0)) && (YKKZ == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
QLXZ = QLXZ + 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
} else if (((Key.isDown(37) && (KD == 0)) && (YKKZ == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
QLXZ = QLXZ - 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
}
if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD4");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 0.5;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("QD4");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 0.5;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
_root.A2._rotation = this._rotation;
_root.A2._x = this._x;
_root.A2._y = this._y;
if (speed > 0.4) {
speed = speed - speedjs;
} else if (speed < -0.4) {
speed = speed + speedjs;
} else {
speed = 0;
}
if (((((((_root.JD < 8) && (_root.JD > -8)) && (this._x > 506)) && (this._x < 522)) && (this._y > 40)) && (this._y < 80)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
KD = 1;
speed = 0;
timemove = 1;
}
}
Frame 81
gotoAndStop ("start");
Frame 85
mainMovie.statistikk.registerEvent("niv\u00E5_g15");
_root.lifeK.gotoAndStop(live);
_root.TQ.gotoAndStop(6);
_root.guank = 15;
var LJD = 1;
var ALLLJD = new Array();
var DH1 = 2;
_root.onMouseDown = function () {
if (((TZ == 1) && (_root.mc._x != -100)) && (_root.mc.KQ == 0)) {
_root.mc.play();
}
};
levelmc.G = _root.guank;
TQ.swapDepths(704);
timeK.swapDepths(703);
lifeK.swapDepths(701);
levelmc.swapDepths(702);
WK.swapDepths(700);
_root.timeK.T = "120:00";
stop();
Instance of Symbol 359 MovieClip "Y1" in Frame 85
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 309;
this._y = 226;
num = 20;
_root.doFigure2(this, num);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TZ == 1) {
i = 0;
while (i < this.points.length) {
X = this.points[i][0] + this._x;
Y = this.points[i][1] + this._y;
if ((_root.A.hitTest(X, Y, true) && (Math.abs(_root.A.speed) >= 1)) && (_root.A.YPZSJ == 0)) {
_root.A.YPZSJ = 30;
_root.A.YPSJFX = (_root.A._rotation + random(40)) - random(40);
trace(_root.A.YPZSJ);
}
i++;
}
}
}
Instance of Symbol 349 MovieClip "C2" in Frame 85
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 340;
this._y = 119;
FX = 0;
this.stop();
TD = 1;
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
this.play();
if (FX == 1) {
if (TD == 0) {
this._y = this._y - 0.5;
}
if (this._y < 100) {
this._rotation = 180 + this._rotation;
FX = 0;
}
} else if (FX == 0) {
if (TD == 0) {
this._y = this._y + 0.5;
}
if (this._y > 250) {
this._rotation = 180 + this._rotation;
FX = 1;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (this._alpha <= 0) {
this._visible = 0;
}
}
}
}
Instance of Symbol 376 MovieClip "XT1" in Frame 85
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 600;
this._y = 163;
this._rotation = this._rotation - 90;
KD = 0;
TOK = 50;
C = 1;
this.stop();
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
CC = function () {
u = 1;
while (u <= 30) {
_root["DH" + u].removeMovieClip();
u++;
}
_root.QB.removeMovieClip();
_root.A2.removeMovieClip();
_root.XT1.removeMovieClip();
_root.XT2.removeMovieClip();
_root.S.removeMovieClip();
_root.A.removeMovieClip();
};
}
onClipEvent (enterFrame) {
if (((_root.TZ == 1) && (_root.A.JTOK == 0)) && (this._x > 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
if ((KD == 0) && (C == 1)) {
this.play();
this._x = this._x - 2;
if ((this._x <= 210) && (this._x > 100)) {
KD = 1;
}
} else if ((KD == 0) && (C == 2)) {
this.play();
this._y = this._y + 2;
this._x = this._x - 1.5;
if (this._y >= 205) {
KD = 1;
}
} else if ((KD == 0) && (C == 3)) {
this.play();
this._y = this._y - 2;
this._x = this._x + 1;
if (this._y <= 150) {
KD = 1;
}
} else if ((((KD == 1) && (this._x != -100)) && (C == 1)) && (TOK >= 0)) {
this.gotoAndStop(7);
TOK = TOK - 1;
_root.B4._alpha = 60 + random(40);
} else if ((((KD == 1) && (this._x != -100)) && (C == 2)) && (TOK >= 0)) {
this.gotoAndStop(7);
TOK = TOK - 1;
_root.B3._alpha = 60 + random(40);
} else if ((((KD == 1) && (this._x != -100)) && (C == 3)) && (TOK >= 0)) {
this.gotoAndStop(7);
TOK = TOK - 1;
_root.B5._alpha = 60 + random(40);
}
if ((((TOK <= 0) && (C == 1)) && (_root.B4._alpha >= 0)) && (this._x > 0)) {
_root.B4._alpha = _root.B4._alpha - 4;
if (_root.B4._alpha < 0) {
TOK = 50;
KD = 0;
_root.B4._visible = 0;
_root.B4._x = -100;
_root.live--;
_root.lifeK.gotoAndStop(_root.live);
this.play();
if (_root.live <= 0) {
_root.gotoAndStop("GAMEOVER");
CC();
this.removeMovieClip();
} else {
_root.gotoAndStop("SB");
CC();
this.removeMovieClip();
}
C = 2;
this._rotation = this._rotation - 50;
}
} else if ((((TOK <= 0) && (C == 2)) && (_root.B3._alpha >= 0)) && (this._x > 0)) {
_root.B3._alpha = _root.B3._alpha - 4;
if (_root.B3._alpha < 0) {
TOK = 50;
KD = 0;
_root.B3._visible = 0;
_root.B3._x = -100;
_root.live--;
_root.lifeK.gotoAndStop(_root.live);
this.play();
if (_root.live <= 0) {
_root.gotoAndStop("GAMEOVER");
CC();
this.removeMovieClip();
} else {
_root.gotoAndStop("SB");
CC();
this.removeMovieClip();
}
C = 3;
this._rotation = this._rotation + 160;
}
} else if ((((TOK <= 0) && (C == 3)) && (_root.B5._alpha >= 0)) && (this._x > 0)) {
_root.B5._alpha = _root.B5._alpha - 4;
if (_root.B5._alpha < 0) {
TOK = 50;
KD = 0;
_root.B5._visible = 0;
_root.B5._x = -100;
_root.live--;
_root.lifeK.gotoAndStop(_root.live);
this.play();
if (_root.live <= 0) {
_root.gotoAndStop("GAMEOVER");
CC();
this.removeMovieClip();
} else {
_root.gotoAndStop("SB");
CC();
this.removeMovieClip();
}
C = 4;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
if ((KD == 1) && (this._x != -100)) {
_root.B4._alpha = _root.B4._alpha - 4;
}
}
}
if (this.hitTest(_root.QB._x, _root.QB._y, true) && (_root.A2.mc.KQ == 1)) {
_root.A2.mc.KQ = 0;
_root.B5._alpha = 100;
_root.B3._alpha = 100;
_root.B4._alpha = 100;
this._x = -100;
this._y = -100;
this._visible = false;
TOK = 50;
this.removeMovieClip();
}
}
}
Instance of Symbol 263 MovieClip "GREN2" in Frame 85
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 550;
this._y = 80;
FX = 1;
T = 200;
KD = 0;
SJ = 30;
this.gotoAndStop(12);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
if ((FX == 1) && (KD == 0)) {
this.play();
this._y = this._y - 1;
if (this._y < 40) {
FX = 0;
this._rotation = this._rotation - 180;
}
} else if ((FX == 0) && (KD == 0)) {
this.play();
this._y = this._y + 1;
if (this._y > 100) {
FX = 1;
this._rotation = this._rotation - 180;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
if (this.hitTest(_root.QB._x, _root.QB._y, true) && (_root.A2.mc.KQ == 1)) {
_root.A2.mc.KQ = 0;
stop();
KD = 1;
this._x = -100;
this._y = -100;
this._visible = false;
}
if (T > 0) {
T--;
} else if (T <= 0) {
T = 200;
KD = 1;
this.gotoAndStop("D");
if (FX == 0) {
this.mc._rotation = _root.PDJ(this._x, this._y);
} else if (FX == 1) {
this.mc._rotation = _root.PDJ(this._x, this._y) + 180;
}
_root.attachMovie("JD", "JD" + _root.LJD, _root.LJD + 420);
var degree = 0.01745329;
_root["JD" + _root.LJD]._x = this._x;
_root["JD" + _root.LJD]._y = this._y;
_root["JD" + _root.LJD]._rotation = this.mc._rotation;
_root["JD" + _root.LJD].X = Math.sin(_root.PDJ(this._x, this._y) * degree) * 2;
_root["JD" + _root.LJD].Y = Math.cos(_root.PDJ(this._x, this._y) * degree) * 2;
_root.ALLLJD.push(_root.LJD);
_root.LJD++;
}
}
}
Instance of Symbol 279 MovieClip "GREN1" in Frame 85
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 190;
this._y = 210;
FX = 1;
T = 200;
KD = 0;
SJ = 30;
this.gotoAndStop(12);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if ((_root.hit == false) && (_root.A.timemove == 0)) {
if ((FX == 1) && (KD == 0)) {
this.play();
this._y = this._y - 1;
if (this._y < 200) {
FX = 0;
this._rotation = this._rotation - 180;
}
} else if ((FX == 0) && (KD == 0)) {
this.play();
this._y = this._y + 1;
if (this._y > 380) {
FX = 1;
this._rotation = this._rotation - 180;
}
}
} else if ((_root.hit == true) || (_root.A.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
if (this.hitTest(_root.QB._x, _root.QB._y, true) && (_root.A2.mc.KQ == 1)) {
_root.A2.mc.KQ = 0;
stop();
KD = 1;
this._x = -100;
this._y = -100;
this._visible = false;
}
if (T > 0) {
T--;
} else if (T <= 0) {
T = 200;
KD = 1;
this.gotoAndStop("D");
if (FX == 1) {
this.mc._rotation = _root.PDJ(this._x, this._y);
} else if (FX == 0) {
this.mc._rotation = _root.PDJ(this._x, this._y) + 180;
}
_root.attachMovie("JD", "JD" + _root.LJD, _root.LJD + 420);
var degree = 0.01745329;
_root["JD" + _root.LJD]._x = this._x;
_root["JD" + _root.LJD]._y = this._y;
_root["JD" + _root.LJD]._rotation = this.mc._rotation;
_root["JD" + _root.LJD].X = Math.sin(_root.PDJ(this._x, this._y) * degree) * 2;
_root["JD" + _root.LJD].Y = Math.cos(_root.PDJ(this._x, this._y) * degree) * 2;
_root.ALLLJD.push(_root.LJD);
_root.LJD++;
}
}
}
Instance of Symbol 17 MovieClip [JD] "JD" in Frame 85
onClipEvent (enterFrame) {
if ((_root.A.OKKD == 0) && (_root.A.KD == 0)) {
i = 0;
while (i < _root.ALLLJD.length) {
_root["JD" + _root.ALLLJD[i]]._x = _root["JD" + _root.ALLLJD[i]]._x + _root["JD" + _root.ALLLJD[i]].X;
_root["JD" + _root.ALLLJD[i]]._y = _root["JD" + _root.ALLLJD[i]]._y - _root["JD" + _root.ALLLJD[i]].Y;
if ((((_root["JD" + _root.ALLLJD[i]]._x < -20) || (_root["JD" + _root.ALLLJD[i]]._x > 590)) || (_root["JD" + _root.ALLLJD[i]]._y < -20)) || (_root["JD" + _root.ALLLJD[i]]._y > 450)) {
_root["JD" + _root.ALLLJD[i]].removeMovieClip();
_root.ALLLJD.splice(i, 1);
i--;
}
i++;
}
}
}
Instance of Symbol 417 MovieClip "A" in Frame 85
onClipEvent (load) {
thisT = 0;
timemove = 0;
KQOK = 30;
KD = 0;
JTOK = 1;
OKKD = 0;
QLXZ = 0;
speed = 0;
Topspeed = 30;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
numb = 20;
Z = 30;
_root.doFigure(_root.A, numb);
YKKZ = 0;
YPZSJ = 0;
YPSJFX = 0;
speedjs = 0.3;
root1 = 0;
root2 = 0;
this.swapDepths(400);
S.swapDepths(410);
_root.YY1.swapDepths(490);
_root.YY2.swapDepths(491);
_root.YY3.swapDepths(492);
if (_root.TZ == 1) {
_root.A2.swapDepths(401);
_root.QB.swapDepths(464);
_root.QB1.swapDepths(465);
_root.XT1.swapDepths(461);
_root.XT2.swapDepths(462);
_root.GREN2.swapDepths(460);
_root.GREN1.swapDepths(459);
_root.C1.swapDepths(398);
_root.C2.swapDepths(399);
}
SY = 0;
}
onClipEvent (enterFrame) {
_root.SX = this._x;
_root.SY = this._y;
QD.onSoundComplete = function () {
if (_root.OKsound == 1) {
_root.QD1 = new Sound();
_root.QD1.attachSound("CARE");
_root.QD1.start(0, 200);
}
};
t = 1;
while (t <= 2) {
if (((Math.abs(this._x - _root["XT" + t]._x) < 120) && (Math.abs(this._y - _root["XT" + t]._y) < 120)) && (_root["XT" + t]._y > 0)) {
_root.QB._x = _root["XT" + t]._x;
_root.QB._y = _root["XT" + t]._y;
_root.QB1._alpha = 0;
break;
}
if (((Math.abs(this._x - _root["GREN" + t]._x) < 120) && (Math.abs(this._y - _root["GREN" + t]._y) < 120)) && (_root["GREN" + t]._y > 0)) {
_root.QB._x = _root["GREN" + t]._x;
_root.QB._y = _root["GREN" + t]._y;
_root.QB1._alpha = 0;
break;
}
_root.QBXY();
_root.A2.mc._rotation = 20;
t++;
}
_root.doFigure(_root.A, numb);
i = 0;
_root.JD = this._rotation;
if (_root.hit == false) {
if ((timemove == 0) && (JTOK == 0)) {
if (this.Z < 10) {
_root.timeK.T = (_root.T + ":0") + this.Z;
} else {
_root.timeK.T = (_root.T + ":") + this.Z;
}
if (this.Z > 0) {
this.Z--;
_root.T2 = this.Z;
} else if (this.Z <= 0) {
this.Z = 29;
_root.T = _root.T - 1;
}
if ((_root.T < 0) && (this.Z == 29)) {
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
}
while (i < numb) {
X = _root.points[i][0] + _x;
Y = _root.points[i][1] + _y;
k = 1;
while (k <= 5) {
if (_root["B" + k].hitTest(X, Y, true)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
k++;
}
if (((_root.XT1.hitTest(X, Y, true) || (_root.GREN1.hitTest(X, Y, true))) || (_root.GREN2.hitTest(X, Y, true))) || (_root.C1.hitTest(X, Y, true))) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
i = i + 1;
}
}
if (this.hitTest(_root.C2._x, _root.C2._y, true) && (_root.hit == false)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
}
d = 0;
while (d < _root.ALLLJD.length) {
if (this.hitTest(_root["JD" + _root.ALLLJD[d]]._x, _root["JD" + _root.ALLLJD[d]]._y, true) && (_root.hit == false)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
speed = 0;
KD = 1;
_root["JD" + _root.ALLLJD[d]].play();
_root["JD" + _root.ALLLJD[d]].X = 0;
_root["JD" + _root.ALLLJD[d]].Y = 0;
this.play();
_root.hit = true;
break;
}
d++;
}
if (_root.hit == true) {
thisT = thisT + 1;
}
if (thisT >= 30) {
u = 1;
while (u <= 30) {
_root["DH" + u].removeMovieClip();
u++;
}
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("SB");
} else if (_root.live <= 1) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
}
if (YPZSJ > 0) {
YKKZ = 1;
YPZSJ = YPZSJ - 1;
} else if (YPZSJ <= 0) {
YPZSJ = 0;
YKKZ = 0;
}
if (YKKZ == 0) {
speedjs = 0.3;
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
} else if (YKKZ == 1) {
speedjs = 0.1;
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(YPSJFX * degree) * speed);
this._y = this._y + (Math.cos(YPSJFX * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(YPSJFX * degree) * speed);
this._y = this._y + (Math.cos(YPSJFX * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
}
if (KQOK > 0) {
KQOK--;
}
if ((((((_root.TZ == 1) && (Key.isDown(32))) && (_root.A2.mc.KQ == 0)) && (KQOK <= 0)) && (JTOK == 0)) && (KD == 0)) {
KQOK = 5;
if (_root.DH1 < 31) {
_root.A2.mc.play();
_root.attachMovie("DH", "DH" + _root.DH1, 200 + _root.DH1);
_root["DH" + _root.DH1]._x = _root.QB._x;
_root["DH" + _root.DH1]._y = _root.QB._y;
_root.DH1++;
} else if ((_root.DH1 >= 31) && (_root.OKsound == 1)) {
W = new Sound();
W.attachSound("S5");
W.start(0, 1);
}
}
if (((Key.isDown(39) && (KD == 0)) && (YKKZ == 0)) && (JTOK == 0)) {
if (QLXZ < TOPdirection) {
QLXZ = QLXZ + 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
} else if (((Key.isDown(37) && (KD == 0)) && (YKKZ == 0)) && (JTOK == 0)) {
if (QLXZ > (-TOPdirection)) {
QLXZ = QLXZ - 2;
this.wheel1._rotation = QLXZ;
this.wheel4._rotation = QLXZ;
_root.A1._rotation = QLXZ;
}
}
if ((Key.isDown(38) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("Semi-Start");
QD.start(0, 1);
}
}
if (speed > (-Topspeed)) {
speed = speed - 0.5;
}
Direction = 1;
Rotation = this._rotation;
} else if ((Key.isDown(40) && (KD == 0)) && (OKKD == 0)) {
_root.JT._y = -100;
JTOK = 0;
if (SY == 0) {
SY = 1;
if (_root.OKsound == 1) {
QD = new Sound();
QD.attachSound("Semi-Start");
QD.start(0, 1);
}
}
if (speed < Topspeed) {
speed = speed + 0.5;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (QLXZ * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.01745329;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (QLXZ * (Math.abs(speed) / Topspeed));
}
_root.A2._rotation = this._rotation;
_root.A2._x = this._x;
_root.A2._y = this._y;
if (speed > 0.4) {
speed = speed - speedjs;
} else if (speed < -0.4) {
speed = speed + speedjs;
} else {
speed = 0;
}
if (((((((_root.JD < 8) && (_root.JD > -8)) && (this._x > 330)) && (this._x < 460)) && (this._y > 0)) && (this._y < 80)) && (KD == 0)) {
_root.attachMovie("OK", "OK", 90);
_root.OK._x = 290;
_root.OK._y = 210;
KD = 1;
speed = 0;
timemove = 1;
}
}
Instance of Symbol 234 MovieClip "YY1" in Frame 85
onClipEvent (enterFrame) {
this._x = this._x - 0.4;
if (this._x < -750) {
this._x = 580;
}
}
Instance of Symbol 236 MovieClip "YY3" in Frame 85
onClipEvent (enterFrame) {
this._x = this._x - 0.4;
if (this._x < -295) {
this._x = 580;
}
}
Instance of Symbol 238 MovieClip "YY2" in Frame 85
onClipEvent (enterFrame) {
this._x = this._x - 0.4;
if (this._x < -280) {
this._x = 580;
}
}
Frame 86
gotoAndStop ("start");
Frame 111
_root.QD1.stop("CARA");
_root.QD1.stop("CARB");
_root.QD1.stop("CARC");
_root.QD1.stop("CARD");
_root.QD1.stop("CARE");
_root.A.removeMovieClip();
_root.A2.removeMovieClip();
timeK.removeMovieClip();
lifeK.removeMovieClip();
levelmc.removeMovieClip();
WK.removeMovieClip();
TQ.removeMovieClip();
YY1.removeMovieClip();
YY2.removeMovieClip();
YY3.removeMovieClip();
YG.removeMovieClip();
S.removeMovieClip();
GREN2.removeMovieClip();
GREN1.removeMovieClip();
GREN3.removeMovieClip();
C1.removeMovieClip();
C2.removeMovieClip();
C3.removeMovieClip();
QB.removeMovieClip();
QB1.removeMovieClip();
YZ.removeMovieClip();
XT1.removeMovieClip();
XT2.removeMovieClip();
MR1.removeMovieClip();
MR2.removeMovieClip();
JD.removeMovieClip();
hit = false;
T = 119;
live = live - 1;
_root.OK.removeMovieClip();
SS2.removeMovieClip();
timeK.removeMovieClip();
lifeK.removeMovieClip();
levelmc.removeMovieClip();
WK.removeMovieClip();
TQ.removeMovieClip();
Key.addListener(this);
this.onKeyDown = function () {
if (Key.getAscii() == 32) {
trace(1);
gotoAndPlay("G" + _root.guank);
Key.removeListener(this);
}
};
trace(_root.ALLLJD);
i = 0;
while (i < _root.ALLLJD.length) {
_root["JD" + _root.ALLLJD[i]].removeMovieClip();
i++;
}
stop();
Instance of Symbol 67 MovieClip "All" in Frame 111
onClipEvent (load) {
this.swapDepths(2000);
}
Frame 112
function submit_f() {
highScore_arr.push([NAME, fen]);
}
onesound = 0;
stopAllSounds();
world = 0;
_root.A.removeMovieClip();
_root.A2.removeMovieClip();
timeK.removeMovieClip();
lifeK.removeMovieClip();
levelmc.removeMovieClip();
WK.removeMovieClip();
TQ.removeMovieClip();
YY1.removeMovieClip();
YY2.removeMovieClip();
YY3.removeMovieClip();
YG.removeMovieClip();
S.removeMovieClip();
GREN2.removeMovieClip();
GREN1.removeMovieClip();
GREN3.removeMovieClip();
C1.removeMovieClip();
C2.removeMovieClip();
C3.removeMovieClip();
QB.removeMovieClip();
QB1.removeMovieClip();
YZ.removeMovieClip();
XT1.removeMovieClip();
XT2.removeMovieClip();
MR1.removeMovieClip();
MR2.removeMovieClip();
JD.removeMovieClip();
SS2.removeMovieClip();
timeK.removeMovieClip();
lifeK.removeMovieClip();
levelmc.removeMovieClip();
WK.removeMovieClip();
TQ.removeMovieClip();
_root.OK.removeMovieClip();
SS2.removeMovieClip();
i = 0;
while (i < _root.ALLLJD.length) {
_root["JD" + _root.ALLLJD[i]].removeMovieClip();
i++;
}
stopAllSounds();
if (OKsound == 1) {
overA = new Sound();
overA.attachSound("over");
overA.start(0, 1);
}
stop();
Instance of Symbol 481 MovieClip "frmKROMA" in Frame 112
onClipEvent (load) {
var isLoaded = true;
trace("loaded!");
}
Frame 113
_root.QD1.stop("CARA");
_root.QD1.stop("CARB");
_root.QD1.stop("CARC");
_root.QD1.stop("CARD");
_root.QD1.stop("CARE");
_root.A.removeMovieClip();
_root.A2.removeMovieClip();
timeK.removeMovieClip();
lifeK.removeMovieClip();
levelmc.removeMovieClip();
WK.removeMovieClip();
TQ.removeMovieClip();
YY1.removeMovieClip();
YY2.removeMovieClip();
YY3.removeMovieClip();
YG.removeMovieClip();
S.removeMovieClip();
GREN2.removeMovieClip();
GREN1.removeMovieClip();
GREN3.removeMovieClip();
C1.removeMovieClip();
C2.removeMovieClip();
C3.removeMovieClip();
QB.removeMovieClip();
QB1.removeMovieClip();
YZ.removeMovieClip();
XT1.removeMovieClip();
XT2.removeMovieClip();
MR1.removeMovieClip();
MR2.removeMovieClip();
JD.removeMovieClip();
SS2.removeMovieClip();
timeK.removeMovieClip();
lifeK.removeMovieClip();
levelmc.removeMovieClip();
WK.removeMovieClip();
TQ.removeMovieClip();
_root.A.removeMovieClip();
fen = fen + ((T * 100) + T2);
hit = false;
_root.X._alpha = 0;
_root.T = 119 - _root.T;
if (_root.T2 != 0) {
_root.T2 = 29 - _root.T2;
}
if ((highScore_GK[_root.guank - 1] > (_root.T + (_root.T2 / 100))) || (highScore_GK[_root.guank - 1] == 0)) {
highScore_GK[_root.guank - 1] = _root.T + (_root.T2 / 100);
_root.X._alpha = 100;
gameSave_GK();
}
var fenALL = 0;
if (_root.T < 10) {
_root.T = "0" + _root.T;
}
if (_root.T2 < 10) {
_root.T2 = "0" + _root.T2;
}
_root.Time = (_root.T + ":") + _root.T2;
T = 119;
if (_root.guank >= 15) {
gotoAndStop ("ALLOK");
}
Key.addListener(this);
this.onKeyDown = function () {
if (Key.getAscii() == 32) {
if (((guank == 5) || (guank == 10)) || (guank == 15)) {
stopAllSounds();
}
_root.guank = _root.guank + 1;
gotoAndPlay("G" + _root.guank);
Key.removeListener(this);
}
};
i = 0;
while (i < _root.ALLLJD.length) {
_root["JD" + _root.ALLLJD[i]].removeMovieClip();
i++;
}
stop();
Frame 114
function submit_f() {
highScore_arr.push([NAME, fen]);
}
onesound = 0;
stopAllSounds();
world = 0;
_root.A.removeMovieClip();
_root.A2.removeMovieClip();
timeK.removeMovieClip();
lifeK.removeMovieClip();
levelmc.removeMovieClip();
WK.removeMovieClip();
TQ.removeMovieClip();
YY1.removeMovieClip();
YY2.removeMovieClip();
YY3.removeMovieClip();
YG.removeMovieClip();
S.removeMovieClip();
GREN2.removeMovieClip();
GREN1.removeMovieClip();
GREN3.removeMovieClip();
C1.removeMovieClip();
C2.removeMovieClip();
C3.removeMovieClip();
QB.removeMovieClip();
QB1.removeMovieClip();
YZ.removeMovieClip();
XT1.removeMovieClip();
XT2.removeMovieClip();
MR1.removeMovieClip();
MR2.removeMovieClip();
JD.removeMovieClip();
SS2.removeMovieClip();
timeK.removeMovieClip();
lifeK.removeMovieClip();
levelmc.removeMovieClip();
WK.removeMovieClip();
TQ.removeMovieClip();
live = 3;
Key.addListener(this);
this.onKeyDown = function () {
if (Key.getAscii() == 32) {
stopAllSounds();
gotoAndStop ("start");
trace(1);
Key.removeListener(this);
}
};
i = 0;
while (i < _root.ALLLJD.length) {
_root["JD" + _root.ALLLJD[i]].removeMovieClip();
i++;
}
stopAllSounds();
if (OKsound == 1) {
overA = new Sound();
overA.attachSound("world_complete");
overA.start(0, 1);
}
stop();
Instance of Symbol 481 MovieClip "frmKROMA" in Frame 114
onClipEvent (load) {
var isLoaded = true;
trace("loaded!");
}
Frame 115
if ((_root.OKsound == 1) && (onesound == 0)) {
onesound = 1;
KSSOUND = new Sound();
KSSOUND.attachSound("mainscreen");
KSSOUND.start(0, 1000);
}
var Q = highScore_arr.length;
var i = 0;
while (i < Q) {
var j = i;
while (j < Q) {
if (highScore_arr[i][1] < highScore_arr[j][1]) {
var temp = highScore_arr[i][0];
highScore_arr[i][0] = highScore_arr[j][0];
highScore_arr[j][0] = temp;
var temp = highScore_arr[i][1];
highScore_arr[i][1] = highScore_arr[j][1];
highScore_arr[j][1] = temp;
}
j++;
}
i++;
}
if (Q > 10) {
Q = 10;
}
var i = 0;
while (i < Q) {
_root["name" + (i + 1)] = highScore_arr[i][0];
_root["score" + (i + 1)] = highScore_arr[i][1];
i++;
}
if (Q > 10) {
Q = 10;
}
var i = 0;
while (i < Q) {
_root["new" + i]._alpha = 0;
if ((highScore_arr[i][0] == _root.NAME) && (highScore_arr[i][1] == _root.fen)) {
_root["new" + i]._alpha = 100;
}
i++;
}
gameSave();
Key.addListener(this);
this.onKeyDown = function () {
if (Key.getAscii() == 32) {
trace(1);
gotoAndStop ("start");
Key.removeListener(this);
}
};
stop();
Frame 116
if ((_root.OKsound == 1) && (onesound == 0)) {
onesound = 1;
KSSOUND = new Sound();
KSSOUND.attachSound("mainscreen");
KSSOUND.start(0, 1000);
}
var Q = highScore_arr.length;
var i = 0;
while (i < Q) {
var j = i;
while (j < Q) {
if (highScore_arr[i][1] < highScore_arr[j][1]) {
var temp = highScore_arr[i][0];
highScore_arr[i][0] = highScore_arr[j][0];
highScore_arr[j][0] = temp;
var temp = highScore_arr[i][1];
highScore_arr[i][1] = highScore_arr[j][1];
highScore_arr[j][1] = temp;
}
j++;
}
i++;
}
if (Q > 10) {
Q = 10;
}
var i = 0;
while (i < Q) {
_root["name" + (i + 1)] = highScore_arr[i][0];
_root["score" + (i + 1)] = highScore_arr[i][1];
i++;
}
if (Q > 10) {
Q = 10;
}
var i = 0;
while (i < Q) {
_root["new" + i]._alpha = 0;
if ((highScore_arr[i][0] == _root.NAME) && (highScore_arr[i][1] == _root.fen)) {
_root["new" + i]._alpha = 100;
}
i++;
}
gameSave();
stop();
Symbol 2 MovieClip [OK] Frame 1
play();
Symbol 2 MovieClip [OK] Frame 50
_root.gotoAndStop("SL");
u = 1;
while (u <= 30) {
_root["DH" + u].removeMovieClip();
u++;
}
_root.QB.removeMovieClip();
_root.A2.removeMovieClip();
_root.GREN1.removeMovieClip();
_root.GREN2.removeMovieClip();
_root.GREN3.removeMovieClip();
_root.S.removeMovieClip();
_root.A.removeMovieClip();
this.removeMovieClip();
Symbol 7 MovieClip [rain] Frame 6
this.removeMovieClip();
Symbol 12 MovieClip [XXUE] Frame 85
this.removeMovieClip();
Symbol 17 MovieClip [JD] Frame 1
stop();
Symbol 17 MovieClip [JD] Frame 16
stop();
Symbol 24 MovieClip Frame 2
play();
Symbol 24 MovieClip Frame 24
gotoAndPlay (4);
Symbol 27 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 1
gotoAndPlay (1);
Symbol 81 MovieClip Frame 1
Symbol 81 MovieClip Frame 25
gotoAndPlay (1);
Symbol 89 Button
on (release) {
gotoAndPlay ("start1");
}
Symbol 92 Button
on (release) {
gotoAndPlay ("help");
}
Symbol 93 Button
on (release) {
gotoAndStop ("help");
}
Symbol 96 Button
on (release) {
gotoAndStop ("start");
}
Symbol 97 Button
on (release) {
gotoAndPlay ("start1");
}
Symbol 121 Button
on (release) {
getURL ("http://moregames.agame.com", "_blank");
}
Symbol 140 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 166 Button
on (release) {
if (_root.JT._y == -100) {
_root.A.JTOK = 1;
_root.A.OKKD = 1;
_root.C1.stop();
_root.C2.stop();
_root.CW1.stop();
_root.CW2.stop();
_root.XT1.stop();
_root.XT2.stop();
_root.GREN1.stop();
_root.GREN2.stop();
_root.GREN3.stop();
_root.MR1.stop();
_root.MR2.stop();
_root.WS.AMR1.stop();
_root.WS.AMR2.stop();
_root.WS.ACW1.stop();
this.gotoAndStop(2);
}
}
Symbol 168 Button
on (release) {
if (_root.JT._y == -100) {
_root.A.JTOK = 0;
_root.A.OKKD = 0;
_root.C1.play();
_root.C2.play();
_root.CW1.play();
_root.CW2.play();
_root.XT1.play();
_root.XT2.play();
_root.GREN1.play();
_root.GREN2.play();
_root.GREN3.play();
_root.MR1.play();
_root.MR2.play();
_root.WS.AMR1.play();
_root.WS.AMR2.play();
_root.WS.ACW1.play();
this.gotoAndStop(1);
}
}
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 2
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 24
_parent.KD = 0;
_parent.T = 200;
_parent.play();
Symbol 263 MovieClip Frame 30
gotoAndPlay (1);
Symbol 263 MovieClip Frame 31
stop();
Symbol 278 MovieClip Frame 25
_parent.KD = 0;
_parent.T = 200;
_parent.gotoAndPlay(1);
Symbol 279 MovieClip Frame 30
gotoAndPlay (1);
Symbol 279 MovieClip Frame 31
stop();
Symbol 285 MovieClip Frame 2
stop();
Symbol 286 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 2
this.KQ = 1;
if (_root.OKsound == 1) {
S = new Sound();
S.attachSound("QDSJ");
S.start(0, 1);
}
_root.QB.play();
Symbol 289 MovieClip Frame 3
this.KQ = 0;
Instance of Symbol 289 MovieClip "mc" in Symbol 290 MovieClip Frame 1
onClipEvent (load) {
this._visible = true;
this._alpha = 100;
_root.MouseKZ(1);
this._rotation = 180;
DOK = 0;
KQ = 0;
}
onClipEvent (enterFrame) {
if (_root.TZ == 1) {
if (DOK > 0) {
DOK = DOK - 1;
}
this._rotation = _root.PDJ2(_root.A._x, _root.A._y) - _root.A2._rotation;
k = 2;
while (k <= 10) {
if ((_root["B" + k].hitTest(_root.QB._x, _root.QB._y, true) && (this.KQ == 1)) && (_root.hit == false)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
_root.A.speed = 0;
_root.A.KD = 1;
_root.hit = true;
}
k++;
}
}
}
Symbol 293 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
this.TD = 1;
Symbol 349 MovieClip Frame 15
this.TD = 0;
Symbol 351 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 1
stop();
Instance of Symbol 289 MovieClip "mc" in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._alpha = 100;
_root.MouseKZ(1);
this._rotation = 0;
} else {
this._alpha = 0;
_root.MouseKZ(0);
this._visible = false;
}
DOK = 0;
KQ = 0;
}
onClipEvent (enterFrame) {
if (_root.TZ == 1) {
if (DOK > 0) {
DOK = DOK - 1;
}
if (this._alpha != 0) {
this._rotation = (_root.PDJ2(_root.A._x, _root.A._y) - _root.A2._rotation) + 20;
}
k = 2;
while (k <= 8) {
if ((_root["B" + k].hitTest(_root.QB._x, _root.QB._y, true) && (this.KQ == 1)) && (_root.hit == false)) {
if (_root.OKsound == 1) {
PZ = new Sound();
PZ.attachSound("PZ");
PZ.start(0, 1);
}
_root.A.speed = 0;
_root.A.KD = 1;
_root.hit = true;
}
k++;
}
}
}
Symbol 390 MovieClip Frame 1
stop();
Instance of Symbol 359 MovieClip "YY1" in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 300;
this._y = 253;
num = 20;
_root.doFigure2(this, num);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
Instance of Symbol 359 MovieClip "YY2" in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 500;
this._y = 140;
num = 20;
_root.doFigure2(this, num);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
Instance of Symbol 349 MovieClip "ACW1" in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 400;
this._y = 119;
FX = 0;
this.stop();
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if (_root.hit == false) {
this.play();
if (FX == 1) {
if (TD == 0) {
this._y = this._y - 0.5;
}
if (this._y < 100) {
this._rotation = 180 + this._rotation;
FX = 0;
}
} else if (FX == 0) {
if (TD == 0) {
this._y = this._y + 0.5;
}
if (this._y > 230) {
this._rotation = 180 + this._rotation;
FX = 1;
}
}
} else if (_root.hit == true) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
if (this._alpha <= 0) {
this._visible = 0;
}
}
}
}
Instance of Symbol 222 MovieClip "AMR1" in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 280;
this._y = 110;
this.gotoAndStop(5);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if (_root.hit == false) {
this.play();
this._x = _root.MR1._x;
this._y = _root.MR1._y;
this._rotation = _root.MR1._rotation;
} else if (_root.hit == true) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
}
}
Instance of Symbol 222 MovieClip "AMR2" in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
if (_root.TZ == 1) {
this._visible = true;
this._x = 474;
this._y = 75;
this.gotoAndStop(5);
} else {
this._x = -100;
this._y = -100;
this._visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.TZ == 1) && (_root.A.JTOK == 0)) {
if (_root.hit == false) {
this.play();
this._x = _root.MR2._x;
this._y = _root.MR2._y;
this._rotation = _root.MR2._rotation;
} else if (_root.hit == true) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
}
}
Symbol 402 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 1
stop();
Symbol 423 Button
on (release) {
Key.removeListener(this);
gotoAndPlay("G" + _root.guank);
}
Symbol 432 Button
on (press) {
KROMA_status = "Sjekker data...";
mainMovie.statistikk.registerEvent("klikk_send_schema_landningsside");
getAllVars(this);
}
Symbol 445 MovieClip Frame 1
isMandatory = true;
txt_firstname.tabIndex = 0;
txt_lastname.tabIndex = 1;
initialFirstname = KROMA_firstname;
initialLastname = KROMA_lastname;
txt_firstname.borderColor = _parent.defaultBorderColor;
txt_lastname.borderColor = _parent.defaultBorderColor;
function validate_names() {
myResult = Array(true, true);
myResult[0] = ((KROMA_firstname.length > 1) && (KROMA_firstname.length < 64)) && (KROMA_firstname != initialFirstname);
myResult[1] = ((KROMA_lastname.length > 1) && (KROMA_lastname.length < 64)) && (KROMA_lastname != initialLastname);
if (KROMA_firstname == "") {
KROMA_firstname = initialFirstname;
}
if (KROMA_lastname == "") {
KROMA_lastname = initialLastname;
}
return(myResult);
}
txt_firstname.onSetFocus = function (oldFocus) {
if (oldFocus) {
oldFocus.borderColor = _parent.defaultBorderColor;
}
txt_firstname.borderColor = _parent.focusColor;
if (KROMA_firstname == initialFirstname) {
KROMA_firstname = "";
}
_parent.KROMA_status = "Skriv inn fornavn.";
};
txt_lastname.onSetFocus = function (oldFocus) {
if (oldFocus) {
oldFocus.borderColor = _parent.defaultBorderColor;
}
txt_lastname.borderColor = _parent.focusColor;
if (KROMA_lastname == initialLastname) {
KROMA_lastname = "";
}
_parent.KROMA_status = "Skriv inn etternavn.";
};
function isKROMA() {
return(true);
}
function getValue() {
return((KROMA_lastname + ", ") + KROMA_firstname);
}
function getName() {
return(this._name);
}
function validate() {
var _local1 = validate_names() || (!isMandatory);
showValidation(_local1[0], _local1[1]);
return(_local1[0] && (_local1[1]));
}
function showValidation(myFirstname, myLastname) {
if (!myFirstname) {
txt_firstname.borderColor = _parent.errorColor;
} else {
txt_firstname.borderColor = _parent.defaultColor;
}
if (!myLastname) {
txt_lastname.borderColor = _parent.errorColor;
} else {
txt_lastname.borderColor = _parent.defaultColor;
}
}
KROMAComponentType = "firstname_lastname_input";
stop();
Symbol 447 MovieClip Frame 1
isMandatory = true;
initialValue = KROMA_value;
txt_adresse.borderColor = _parent.defaultBorderColor;
txt_adresse.tabIndex = 2;
function isKROMA() {
return(true);
}
function getValue() {
return(KROMA_value);
}
function getName() {
return(this._name);
}
function validate() {
trace("starting validate in address...");
var _local1 = validate_address() || (!isMandatory);
showValidation(_local1);
return(_local1);
}
function showValidation(myValue) {
if (!myValue) {
if (KROMA_value == "") {
KROMA_value = initialValue;
}
txt_adresse.borderColor = _parent.errorColor;
} else {
txt_adresse.borderColor = _parent.defaultColor;
}
}
KROMAComponentType = "address_input";
function validate_address() {
myResult = true;
trace("KROMA_value.length = " + KROMA_value.length);
myResult = ((KROMA_value.length > 1) && (KROMA_value.length < 51)) && (KROMA_value != initialValue);
return(myResult);
}
txt_adresse.onSetFocus = function (oldFocus) {
if (oldFocus) {
oldFocus.borderColor = _parent.defaultBorderColor;
}
this.borderColor = _parent.focusColor;
if (KROMA_value == initialValue) {
KROMA_value = "";
}
_parent.KROMA_status = "Skriv inn adresse";
};
stop();
Symbol 450 MovieClip Frame 1
txt_zip.tabIndex = 4;
txt_city.tabIndex = 5;
initialZip = KROMA_zip;
initialCity = KROMA_city;
txt_city.borderColor = _parent.defaultBorderColor;
txt_zip.borderColor = _parent.defaultBorderColor;
function validate_address() {
myResult = Array(true, true);
myResult[0] = (((!isNaN(KROMA_zip)) && (KROMA_zip != initialZip)) && (KROMA_zip > 0)) && (KROMA_zip < 10000);
myResult[1] = (((KROMA_city.indexOf("Poststed") == -1) && (KROMA_city != initialCity)) && (KROMA_city.length > 0)) && (KROMA_city.length < 64);
trace("KROMA_city : " + KROMA_city);
if (KROMA_zip == "") {
KROMA_zip = initialZip;
}
if (KROMA_city == "") {
KROMA_city = initialCity;
}
return(myResult);
}
txt_zip.onSetFocus = function (oldFocus) {
if (oldFocus) {
oldFocus.borderColor = _parent.defaultBorderColor;
}
this.borderColor = _parent.focusColor;
if (KROMA_zip == initialZip) {
KROMA_zip = "";
}
_parent.KROMA_status = "Skriv inn postnr. (Poststedet fylles automatisk inn dersom det gjenkjennes).";
};
txt_city.onSetFocus = function (oldFocus) {
if (oldFocus) {
oldFocus.borderColor = _parent.defaultBorderColor;
}
this.borderColor = _parent.focusColor;
if (KROMA_city == initialCity) {
KROMA_city = "";
}
_parent.KROMA_status = "Skriv inn poststed.";
};
txt_zip.onChanged = function (textfield_txt) {
if (!isNaN(KROMA_zip)) {
if ((KROMA_zip.length > 3) || ((KROMA_zip.length == 3) && (KROMA_zip.substring(0, 1) != "0"))) {
trace("http://kroma.vg.no/modules/hentPoststed.php?postnr=" + KROMA_zip);
trace("KROMA_zip.substring : " + KROMA_zip.substr(0, 1));
loadVariables ("http://kroma.vg.no/modules/hentPoststed.php?postnr=" + KROMA_zip, this._parent);
}
} else {
_parent.KROMA_status = "Bruk bare tall i Postnr-feltet!";
}
};
function isKROMA() {
return(true);
}
function getValue() {
return((KROMA_zip + " ") + KROMA_city);
}
function getName() {
return(this._name);
}
function validate() {
var _local1 = validate_address();
trace("myResult : " + _local1);
showValidation(_local1[0], _local1[1]);
return(_local1[0] && (_local1[1]));
}
function showValidation(myZip, myCity) {
if (!myZip) {
txt_zip.borderColor = _parent.errorColor;
} else {
txt_zip.borderColor = _parent.defaultColor;
}
if (!myCity) {
txt_city.borderColor = _parent.errorColor;
} else {
txt_city.borderColor = _parent.defaultColor;
}
}
KROMAComponentType = "address_input";
stop();
Symbol 452 MovieClip Frame 1
isMandatory = true;
initialValue = KROMA_value;
txt_epost.borderColor = _parent.defaultBorderColor;
txt_epost.tabIndex = 6;
function validate_address() {
var _local1 = KROMA_value;
if (KROMA_value == initialValue) {
return(false);
}
var _local4 = _local1.indexOf("@");
var _local3 = _local1.substring(_local4 + 1, _local1.length);
var _local2 = _local3.indexOf(".");
_local2 = (_local2 + _local4) + 1;
_local3 = _local1.substring(_local4 + 1, _local2);
var _local6 = _local1.substring(_local2 + 1, _local1.length);
var _local5 = _local1.substring(0, _local4);
trace(_local1.indexOf("@") != -1);
trace(_local1.length > 5);
trace(_local3.length > 0);
trace(_local5.length > 1);
trace(_local6.length > 1);
if (((((_local1.indexOf("@") != -1) && (_local1.length > 5)) && (_local3.length > 0)) && (_local5.length > 1)) && (_local6.length > 1)) {
return(true);
}
return(false);
}
txt_epost.onSetFocus = function (oldFocus) {
if (oldFocus) {
oldFocus.borderColor = _parent.defaultBorderColor;
}
txt_epost.borderColor = _parent.focusColor;
if (KROMA_value == initialValue) {
KROMA_value = "";
}
_parent.KROMA_status = "Skriv inn epost-adresse.";
};
function isKROMA() {
return(true);
}
function getValue() {
return(KROMA_value);
}
function getName() {
return(this._name);
}
function validate() {
var _local1 = validate_address() || (!isMandatory);
showValidation(_local1);
return(_local1);
}
function showValidation(myValue) {
if (!myValue) {
if (KROMA_value == "") {
KROMA_value = initialValue;
}
txt_epost.borderColor = _parent.errorColor;
} else {
txt_epost.borderColor = _parent.defaultColor;
}
}
KROMAComponentType = "email_input";
stop();
Symbol 454 MovieClip Frame 1
isMandatory = false;
initialValue = KROMA_value;
txt_telefon.borderColor = _parent.defaultBorderColor;
txt_telefon.tabIndex = 7;
function validate_phone() {
myResult = true;
trace("KROMA_value.length = " + KROMA_value.length);
myResult = ((KROMA_value.length > 7) && (KROMA_value.length < 16)) && (KROMA_value != initialValue);
return(myResult);
}
txt_telefon.onSetFocus = function (oldFocus) {
if (oldFocus) {
oldFocus.borderColor = _parent.defaultBorderColor;
}
txt_telefon.borderColor = _parent.focusColor;
if (KROMA_value == initialValue) {
KROMA_value = "";
}
_parent.KROMA_status = "Skriv inn telefonnummer.";
};
function isKROMA() {
return(true);
}
function getValue() {
return(KROMA_value);
}
function getName() {
return(this._name);
}
function validate() {
var _local1 = validate_phone() || (!isMandatory);
showValidation(_local1);
return(_local1);
}
function showValidation(myValue) {
if (!myValue) {
if (KROMA_value == "") {
KROMA_value = initialValue;
}
txt_telefon.borderColor = _parent.errorColor;
} else {
txt_telefon.borderColor = _parent.defaultColor;
}
}
KROMAComponentType = "phone_input";
stop();
Symbol 480 MovieClip Frame 40
_parent._parent.gotoAndStop(11);
Symbol 481 MovieClip Frame 1
trace("");
trace("_root.lv:");
trace(_root.lv);
stop();
var KROMA_naerelixia = _parent.naerelixia;
var KROMA_kontaktmeg = _parent.kontaktmeg;
var KROMA_svar1 = _parent.svar1;
var KROMA_svar2 = _parent.svar2;
var KROMA_svar3 = _parent.svar3;
trace((((("Test har jeg funnet 3 svar??? " + _parent.svar1) + " ") + _parent.svar2) + " ") + _parent.svar3);
KROMA_status = "";
function additionalValidation() {
myResult = true;
return(myResult);
}
formScript = "http://kroma.no/modules/send_form.php";
timeOut = 30;
clRed = 11871265 /* 0xB52421 */;
clBlue = 255;
clGreen = 65280;
focusColor = 3355443 /* 0x333333 */;
errorColor = clRed;
defaultBorderColor = 11184810 /* 0xAAAAAA */;
additionalValidationString = "NB! Du m\u00E5 fylle ut ENTEN epost eller telefon.";
trace("");
trace("_root.lv:");
trace(_root.lv);
stop();
function sendFormData() {
if ((prevTimer == undefined) || ((getTimer() - prevTimer) > (timeOut * 1000))) {
retLV = new LoadVars();
KROMA_status = "Kobler til server...";
_parent.lv.url = _root._url;
_parent.lv.KROMA_filesize = _root.getBytesTotal();
_parent.lv.KROMA_format = (Stage.width + "x") + Stage.height;
_parent.lv.sendAndLoad(formScript, retLV, "GET");
retLV.onLoad = function (success) {
if (success) {
trace(unescape(retLV));
KROMA_status = KROMA_successString;
gotoAndStop (2);
} else {
trace(unescape(retLV));
KROMA_status = "Fikk ikke kontakt med server!";
}
};
prevTimer = getTimer();
} else {
KROMA_status = ("Du m\u00E5 vente i " + timeOut) + " sekunder f\u00F8r du kan sende inn igjen! (Skjemaet er allerede sendt inn.)";
}
}
function getAllVars(thisObject) {
validated = true;
if (isLoaded) {
} else {
return(false);
}
_parent.lv = new LoadVars(this);
for (i in thisObject) {
if (thisObject[i].variable != undefined) {
_parent.lv[thisObject[i].variable] = thisObject[thisObject[i].variable];
}
if (typeof(thisObject[i]) == "movieclip") {
trace("We have a movieclip : " + thisObject[i]);
trace("i = " + i);
trace("thisObject[i][KROMAComponentType] = " + thisObject[i].KROMAComponentType);
myMC = thisObject[i];
trace((myMC.getName() + "=") + myMC.getValue());
if (myMC.isKROMA()) {
_parent.lv[myMC.getName()] = myMC.getValue();
if (validated) {
validated = myMC.validate();
} else {
myMC.validate();
}
}
}
}
trace("Validated : " + validated);
trace(unescape(_parent.lv));
if (!validated) {
validationString = "Ett eller flere felter er ikke utfylt.";
}
additionalValidated = additionalValidation();
if (!additionalValidated) {
validationString = validationString + (newline + additionalValidationString);
}
if (validated && (additionalValidated)) {
sendFormData();
} else {
KROMA_status = validationString;
}
}
Symbol 481 MovieClip Frame 2
Symbol 492 Button
on (release) {
Key.removeListener(this);
if (((_root.guank == 5) || (_root.guank == 10)) || (_root.guank == 15)) {
stopAllSounds();
}
_root.guank = _root.guank + 1;
gotoAndPlay("G" + _root.guank);
}
Symbol 496 Button
on (release) {
Key.removeListener(this);
gotoAndStop ("start");
}