Frame 16
ifFrameLoaded (3) {
gotoAndPlay (17);
}
gotoAndPlay (1);
Frame 17
ifFrameLoaded (20) {
gotoAndPlay (18);
}
gotoAndPlay (1);
Frame 18
ifFrameLoaded (47) {
gotoAndStop (20);
}
Frame 19
gotoAndPlay (1);
Frame 20
stop();
Frame 21
var globalspeed = 9;
var speedmin = 5;
var speedmax = 15;
var gameend = false;
var score = 0;
var crash = false;
var reifen = 50;
var schlussel = 100;
var lenkrad = 200;
var navi = 500;
mouse.hide();
timer = 60;
punkte = 0;
Instance of Symbol 39 MovieClip in Frame 21
onClipEvent (load) {
setProperty(this, _y , 1);
}
onClipEvent (enterFrame) {
_y = (_y + _root.globalspeed);
if (((_y / 81) >= 1) and (_root.globalspeed <= 8)) {
setProperty(this, _y , 1);
} else if (((_y / 76) >= 1) and (_root.globalspeed > 8)) {
setProperty(this, _y , 1);
}
}
Instance of Symbol 42 MovieClip "borte" in Frame 21
onClipEvent (load) {
setProperty(this, _y , 1);
}
onClipEvent (enterFrame) {
_y = (_y + _root.globalspeed);
if (((_y / 81) >= 1) and (_root.globalspeed <= 8)) {
setProperty(this, _y , 1);
} else if (((_y / 76) >= 1) and (_root.globalspeed > 8)) {
setProperty(this, _y , 1);
}
}
Instance of Symbol 46 MovieClip "borte2" in Frame 21
onClipEvent (load) {
setProperty(this, _y , 1);
}
onClipEvent (enterFrame) {
_y = (_y + _root.globalspeed);
if (((_y / 81) >= 1) and (_root.globalspeed <= 8)) {
setProperty(this, _y , 1);
} else if (((_y / 76) >= 1) and (_root.globalspeed > 8)) {
setProperty(this, _y , 1);
}
}
Frame 22
if (key.isdown(key.Enter)) {
gotoAndPlay (23);
} else {
gotoAndPlay (21);
}
Instance of Symbol 74 MovieClip "bonus" in Frame 23
onClipEvent (load) {
var vposs = 0;
}
onClipEvent (enterFrame) {
vposs = vposs + 1;
_y = (_y + _root.globalspeed);
if (_y >= 460) {
setProperty(this, _y , -30);
setProperty(this, _x , 200 + random(200));
_root.bonus.gotoAndPlay(random(4));
}
}
Instance of Symbol 88 MovieClip "ball" in Frame 23
onClipEvent (load) {
var vpos = 0;
var goto = 2;
}
onClipEvent (enterFrame) {
vpos = vpos + 1;
_y = (_y + (_root.globalspeed / 1.5));
if (_y >= 360) {
setProperty(this, _y , -120);
setProperty(this, _x , 200 + random(200));
_root.ball.gotoAndPlay(random(6));
}
}
Instance of Symbol 92 MovieClip "car" in Frame 23
onClipEvent (load) {
var xmin = 170;
var xmax = 440;
var ymin = 260;
var ymax = 260;
var dummy;
var timevariable = 0;
s1 = new Sound(this);
s1.attachSound("bang");
s1.setVolume(100);
s2 = new Sound(this);
s2.attachSound("hit");
s2.setVolume(100);
s3 = new Sound(this);
s3.attachSound("beep");
s3.setVolume(60);
s4 = new Sound(this);
s4.attachSound("crash");
s4.setVolume(100);
s5 = new Sound(this);
s5.attachSound("beep2");
s5.setVolume(40);
s6 = new Sound(this);
s6.attachSound("car_skids");
s6.setVolume(30);
}
onClipEvent (enterFrame) {
timevariable = timevariable + 1;
if (timevariable == 25) {
_root.timer = _root.timer - 1;
timevariable = 0;
if ((_root.timer <= 5) and (_root.timer > 0)) {
s3.start(0);
}
if (_root.timer == 0) {
s5.start(0);
}
}
if (_root.timer == 0) {
_root.gameend = true;
}
speed = _root.globalspeed * 1.1;
rotation = (_rotation * -1) + 90;
sinus = Math.sin((rotation * Math.PI) / 180);
cosinus = Math.cos((rotation * Math.PI) / 180);
if (Key.isDown(39)) {
_rotation = (_rotation + 9);
} else if (Key.isDown(37)) {
_rotation = (_rotation - 9);
}
if (_rotation >= 45) {
setProperty(_this, _rotation , 45);
}
if (_rotation <= -45) {
setProperty(_this, _rotation , -45);
}
_y = (_y - (sinus * speed));
_x = (_x + (cosinus * speed));
if (_x > xmax) {
setProperty(this, _x , xmax);
}
if (_y > ymax) {
setProperty(this, _y , ymax);
}
if (_x < xmin) {
setProperty(this, _x , xmin);
}
if (_y < ymin) {
setProperty(this, _y , ymin);
}
if (Key.isDown(38)) {
_root.globalspeed = _root.globalspeed + 2;
if (_root.globalspeed >= _root.speedmax) {
_root.globalspeed = _root.speedmax;
}
} else if (Key.isDown(40)) {
_root.globalspeed = _root.globalspeed - 2;
if (_root.globalspeed <= _root.speedmin) {
_root.globalspeed = _root.speedmin;
}
}
if (_root.car.porsche.hittest(_root.ball)) {
s4.start();
_root.crash = true;
_root.gameend = true;
gotoAndPlay (22);
}
if (_root.car.porsche.hittest(_root.bonus.reifen)) {
s2.start();
_root.score = _root.score + _root.reifen;
_root.punkte = _root.score;
setProperty(_root.bonus, _y , 400);
}
if (_root.car.porsche.hittest(_root.bonus.schlussel)) {
s2.start();
_root.score = _root.score + _root.schlussel;
_root.punkte = _root.score;
setProperty(_root.bonus, _y , 400);
}
if (_root.car.porsche.hittest(_root.bonus.lenkrad)) {
s2.start();
_root.score = _root.score + _root.lenkrad;
_root.punkte = _root.score;
setProperty(_root.bonus, _y , 400);
}
if (_root.car.porsche.hittest(_root.bonus.navi)) {
s2.start();
_root.score = _root.score + _root.navi;
_root.punkte = _root.score;
setProperty(_root.bonus, _y , 400);
}
if (_root.car.porsche.hittest(_root.borte2)) {
s1.start(0.1, 0);
setProperty(this, _x , _x - 10);
}
if (_root.car.porsche.hittest(_root.borte)) {
s1.start(0.1, 0);
setProperty(this, _x , _x + 10);
}
}
Frame 26
if ((_root.timer == 0) or (_root.gameend == true)) {
gotoAndPlay (27);
} else {
gotoAndPlay (23);
}
Frame 52
ergebnis = score;
pnConnector.storeScore(score);
mouse.show();
stop();
Frame 53
_root.gameover = 1;
Symbol 4 MovieClip [pnFlashGames] Frame 1
#initclip 1
pnFlashGames = function () {
this.gid = _root.pn_gid;
this.uname = _root.pn_uname;
this.busy = false;
this.gameSaved = null;
this.gameLoaded = null;
this.scoreStored = null;
this.gameData = "";
};
pnFlashGames.prototype.saveGame = function (gameData) {
this.busy = true;
varsObj = new LoadVars();
varsObj.func = "saveGame";
varsObj.gid = this.gid;
varsObj.gameData = gameData;
varsObj.type = "user";
varsObj.module = "pnFlashGames";
varsObj.parent = this;
varsObj.onLoad = this.saveGame_Result;
varsObj.sendAndLoad("index.php", varsObj, "POST");
};
pnFlashGames.prototype.saveGame_Result = function (success) {
this.parent._parent.incoming = this.opSuccess;
if (this.opSuccess == "true") {
this.parent.gameSaved = true;
} else {
this.parent.gameSaved = false;
}
this.parent.busy = false;
};
pnFlashGames.prototype.loadGame = function () {
this.busy = true;
varsObj = new LoadVars();
varsObj.func = "loadGame";
varsObj.gid = this.gid;
varsObj.type = "user";
varsObj.module = "pnFlashGames";
varsObj.parent = this;
varsObj.onLoad = this.loadGame_Result;
varsObj.sendAndLoad("index.php", varsObj, "POST");
};
pnFlashGames.prototype.loadGame_Result = function (success) {
if (this.opSuccess == "true") {
this.parent.gameLoaded = true;
this.parent.gameData = gameData;
} else {
this.parent.gameLoaded = false;
}
if (this.parent.onLoadGame != null) {
this.parent.onLoadGame(this.gameData);
}
this.parent.busy = false;
};
pnFlashGames.prototype.storeScore = function (score) {
this.busy = true;
varsObj = new LoadVars();
varsObj.score = score;
varsObj.func = "storeScore";
varsObj.gid = this.gid;
varsObj.type = "user";
varsObj.module = "pnFlashGames";
varsObj.parent = this;
varsObj.onLoad = this.storeScore_Result;
varsObj.sendAndLoad("index.php", varsObj, "POST");
};
pnFlashGames.prototype.storeScore_Result = function (success) {
if (this.opSuccess == "true") {
this.parent.scoreStored = true;
} else {
this.parent.scoreStored = false;
}
this.parent.busy = false;
};
Object.registerClass("pnFlashGames", pnFlashGames);
#endinitclip
Symbol 26 Button
on (press, release) {
gotoAndPlay (21);
}
Symbol 30 MovieClip Frame 50
gotoAndPlay (1);
Symbol 35 Button
on (release) {
getURL ("http://www.glitterboys.com");
}
Symbol 55 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "discoracer";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
if (_root.score == 0) {
this.prequestvars.score = -1;
} else {
this.prequestvars.score = _root.score;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 61 MovieClip Frame 22
gotoAndPlay (1);
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 74 MovieClip Frame 3
stop();
Symbol 74 MovieClip Frame 4
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Symbol 88 MovieClip Frame 3
stop();
Symbol 88 MovieClip Frame 4
stop();
Symbol 88 MovieClip Frame 5
stop();
Symbol 88 MovieClip Frame 6
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 38
gotoAndStop (1);
Symbol 101 Button
on (release) {
nextFrame();
stopAllSounds();
}