Frame 1
function playAgain() {
_root.gotoAndStop("init");
}
System.security.allowDomain("intranet.shockwave.com", "www.shockwave.com", "www.addictinggames.com", "agstage.shockwave.com");
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = "view";
_level0.swHighScoreObject.gameId = "wipeoutAG";
_level0.swHighScoreObject.gameTitle = "Wipeout High Scores";
_level0.swHighScoreObject.screenWidth = 500;
_level0.swHighScoreObject.screenHeight = 300;
_level0.swHighScoreObject.scoreDescriptor = "points";
_level0.swHighScoreObject.numPlayers = 1;
_level0.swHighScoreObject.player1Score = _root.total;
_level0.swHighScoreObject.player1Score = 0;
_level0.swHighScoreObject.player2Score = 0;
_level0.swHighScoreObject.player3Score = 0;
_level0.swHighScoreObject.player4Score = 0;
_level0.HSHubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
Frame 86
function preloadMC() {
var _local3 = getBytesLoaded();
var _local4 = getBytesTotal();
preloader_mc.percentbar_mc._width = (preloader_mc.totalWidth * _local3) / _local4;
var _local6 = Math.round(_local3 / 1024);
var _local5 = Math.round(_local4 / 1024);
preloader_mc.kLoadedReadout_txt.text = _local6 + "k";
preloader_mc.kTotalReadout_txt.text = _local5 + "k";
if ((_local3 == _local4) && (_local4 > 0)) {
delete this.onEnterFrame;
if ((((myURL.indexOf(okDomain) != -1) || (myURL.indexOf(okDomain1) != -1)) || (myURL.indexOf(okDomain2) != -1)) or disable_check) {
_root.gotoAndPlay("init");
} else {
_root.gotoAndPlay("bad");
}
} else if (_local3 == -1) {
failureReport_txt.text = "The file is not currently available. Please try again later. If you continue to receive this message, please contact the system administrator.";
}
}
stop();
disable_check = true;
myURL = _url;
okDomain = "markfennell";
okDomain1 = "209.200.250.151";
okDomain2 = "127.0.0.1";
preloader_mc.totalWidth = preloader_mc.percentbar_mc._width;
preloader_mc.percentbar_mc._width = 0;
preloader_mc.onEnterFrame = function () {
preloadMC();
};
Frame 115
stop();
_root.createEmptyMovieClip("wavesfx_mc", 286);
wavesfx = new Sound(wavesfx_mc);
wavesfx.attachSound("waves.wav");
wavesfx.setVolume(40);
_root.createEmptyMovieClip("splash_mc", 285);
splash = new Sound();
splash.attachSound("rock_splash.mp3");
splash.setVolume(100);
mbenneyTimer = function () {
this.reset();
};
mT = mbenneyTimer.prototype;
mT.reset = function () {
this.oldTime = 0;
this.pause = true;
this.totalTime = 0;
};
mT.stop = function () {
if (!this.pause) {
this.pause = true;
this.totalTime = this.totalTime + (getTimer() - this.oldTime);
}
};
mT.start = function () {
if (this.pause) {
this.pause = false;
this.oldTime = getTimer();
}
};
mT.getMili = function () {
var _local2 = this.totalTime;
if (!this.pause) {
_local2 = _local2 + (getTimer() - this.oldTime);
}
return(_local2);
};
mT.getSecs = function () {
var _local2 = this.totalTime / 1000;
if (!this.pause) {
_local2 = _local2 + ((getTimer() - this.oldTime) / 1000);
}
return(Math.round(_local2));
};
mT.getMins = function () {
var _local2 = this.totalTime / 1000;
if (!this.pause) {
_local2 = _local2 + (((getTimer() - this.oldTime) / 1000) / 60);
}
return(Math.round(_local2));
};
mT.getCount = function (secs) {
var _local2 = this.totalTime;
if (!this.pause) {
_local2 = _local2 + ((getTimer() - this.oldTime) / 1000);
}
var _local3 = secs - _local2;
return(Math.round(_local3));
};
Frame 116
function two(x) {
return(((x > 9) ? "" : "0") + x);
}
function three(x) {
return((((x > 99) ? "" : "0") + ((x > 9) ? "" : "0")) + x);
}
function displaytime(ms) {
var _local2 = Math.floor(ms / 1000);
ms = ms % 1000;
var _local1 = three(ms);
var _local3 = Math.floor(_local2 / 60);
_local2 = _local2 % 60;
_local1 = (two(_local2) + ":") + _local1;
var _local5 = Math.floor(_local3 / 60);
_local3 = _local3 % 60;
_local1 = (two(_local3) + ":") + _local1;
return(_local1);
}
stop();
wavesfx.start(0, 999);
_root.closeoutspeed = 25;
_root.basewavespeed = 15;
_root.wavespeed = 15;
_root.closerate = -3;
_root.gamescore = 0;
_root.tubetime = 0;
_root.oldtime = 0;
_root.scoring.txt_score = "0";
_root.scoring.txt_score_bg = "0";
_root.total = 0;
Instance of Symbol 77 MovieClip "wave" in Frame 116
onClipEvent (load) {
_root.wavespeed = 15;
}
onClipEvent (enterFrame) {
dx = _root.wavespeed;
this._x = this._x + dx;
if (this._x >= 1000) {
this._x = this._x - 1000;
} else if (this._x <= -500) {
this._x = this._x + 1000;
}
_parent.fg._x = _parent.fg._x + (dx * 1.5);
if (_parent.fg._x >= 1000) {
_parent.fg._x = _parent.fg._x - 1000;
} else if (_parent.fg._x <= -500) {
_parent.fg._x = _parent.fg._x + 1000;
}
_parent.fg2._x = _parent.fg2._x + (dx * 3);
if (_parent.fg2._x >= 1000) {
_parent.fg2._x = _parent.fg2._x - 1000;
} else if (_parent.fg2._x <= -500) {
_parent.fg2._x = _parent.fg2._x + 1000;
}
_parent.bg._x = _parent.bg._x + (dx * 0.25);
if (_parent.bg._x >= 500) {
_parent.bg._x = _parent.bg._x - 500;
}
}
Instance of Symbol 92 MovieClip "shark" in Frame 116
onClipEvent (load) {
}
onClipEvent (enterFrame) {
this._x = this._x - 2;
if (this._x == 230) {
if (Math.random() > 0.5) {
gotoAndPlay ("attack");
}
}
if (this._x < -100) {
this._x = 500 + (Math.floor(Math.random() * 400) * 2);
}
this._y = 245 + (10 * Math.sin((this._x * Math.PI) / 180));
}
Instance of Symbol 214 MovieClip "surfer" in Frame 116
onClipEvent (load) {
angle = 0;
cutbackangle = 15;
baseangle = 8;
surferangle = this._rotation;
initX = this._x;
initY = this._y;
mGravity = 2;
gravity_water = 2;
gravity_airborne = 3;
boardforce = 10;
airborne_decay = 0.92;
mGravityboost = 1.05;
y = initY;
x = initX;
v0x = 0;
v0y = 20;
vy = 0;
vx = 0;
vy_surfer = 0;
time = 1;
i = 1000;
airborne = false;
wavetop = 126;
wavebot = -45;
_root.closeout._x = 1200 + (Math.random() * 500);
closeoutspeed = -2;
surferx = 4;
bigwavedx = 4;
closeout = 750;
wipeout = false;
intube = false;
cutback = false;
cutback_angle = 0;
aerialangle = 0;
attack = false;
}
onClipEvent (enterFrame) {
if (_root.shark.hitTest(this.hitsurfer)) {
if ((!attack) && (!wipeout)) {
attack = true;
_root.txt_shark.gotoAndPlay("display");
_root.blood.gotoAndPlay("bleed");
wipeout = true;
this.gotoAndPlay("wipeout");
}
} else if (_root.closeout.hitwipeout.hitTest(this.hitsurfer)) {
if (!wipeout) {
wipeout = true;
_root.txt_wipeout.gotoAndPlay("display");
this.gotoAndPlay("wipeout");
}
}
if (Key.isDown(32)) {
if (((!cutback) && (!airborne)) && (!wipeout)) {
cutback = true;
cutback_angle = 0;
}
angle = cutbackangle;
} else {
if ((cutback && (!airborne)) && (!wipeout)) {
_root.gamescore = _root.gamescore + (cutback_angle * 10);
_root.scoring.txt_score = _root.gamescore;
_root.scoring.txt_score_bg = _root.gamescore;
_root.txt_cutback.cutbackscore = cutback_angle * 10;
_root.txt_cutback.gotoAndPlay("display");
}
angle = baseangle;
cutback = false;
cutbackscore = 0;
}
if (Key.isDown(39)) {
surferangle = surferangle + angle;
if (cutback) {
cutback_angle = cutback_angle + angle;
}
if (airborne) {
aerialangle = aerialangle + angle;
}
} else if (Key.isDown(37)) {
surferangle = surferangle - angle;
if (cutback) {
cutback_angle = cutback_angle + angle;
}
if (airborne) {
aerialangle = aerialangle + angle;
}
}
surferangle = (surferangle + 360) % 360;
vy = (v0y - (mGravity * time)) + vy_surfer;
y = ((v0y * time) - (((0.5 * mGravity) * time) * time)) + (vy_surfer * time);
if (y < wavetop) {
mGravity = gravity_water;
if (airborne) {
if (((surferangle <= 355) && (surferangle >= 290)) || ((surferangle <= 210) && (surferangle >= 170))) {
vy_surfer = (boardforce * Math.sin((surferangle * Math.PI) / 180)) / 2;
} else if (!wipeout) {
wipeout = true;
_root.txt_wipeout.gotoAndPlay("display");
this.gotoAndPlay("wipeout");
}
if (!wipeout) {
_root.gamescore = _root.gamescore + (aerialangle * 15);
_root.scoring.txt_score = _root.gamescore;
_root.scoring.txt_score_bg = _root.gamescore;
if (aerialangle < 200) {
_root.txt_floater.cutbackscore = aerialangle * 15;
_root.txt_floater.gotoAndPlay("display");
} else {
_root.txt_aerial.cutbackscore = aerialangle * 15;
_root.txt_aerial.gotoAndPlay("display");
}
}
aerialangle = 0;
} else {
vy_surfer = boardforce * Math.sin((surferangle * Math.PI) / 180);
}
airborne = false;
if ((y < wavebot) && (!wipeout)) {
wipeout = true;
_root.txt_wipeout.gotoAndPlay("display");
this.gotoAndPlay("wipeout");
}
} else {
mGravity = mGravity * mGravityboost;
if (!airborne) {
airborne = true;
aerialangle = 0;
} else {
vy_surfer = vy_surfer * airborne_decay;
}
}
v0y = vy;
if (!wipeout) {
surferframe = 36 - Math.round(surferangle / 10);
this.gotoAndStop(surferframe);
} else {
vy_surfer = 0;
}
this._y = initY - y;
closeoutspeed = (-4 * Math.random()) - 1;
if (airborne) {
vx_surfer = 0;
bigwavemove = 0;
} else {
vx_surfer = surferx * Math.cos((surferangle * Math.PI) / 180);
bigwavemove = bigwavedx * Math.cos((surferangle * Math.PI) / 180);
}
_root.wavespeed = _root.basewavespeed + bigwavemove;
if ((_root.closeout._x < closeout) && (!wipeout)) {
wipeout = true;
_root.txt_closeout.gotoAndPlay("display");
this.gotoAndPlay("wipeout");
} else {
_root.closeout._x = _root.closeout._x + (closeoutspeed + vx_surfer);
}
if (_root.closeout.hittube.hitTest(this.hitsurfer)) {
if (!intube) {
intube = true;
timestart = _root.myTimer.getMili();
} else if (!wipeout) {
_root.tubetime = (_root.myTimer.getMili() - timestart) + _root.oldtime;
_root.tube.txt_timer = _root.displaytime(_root.tubetime);
_root.tube.txt_timer_bg = _root.displaytime(_root.tubetime);
}
} else {
intube = false;
_root.oldtime = _root.tubetime;
}
var waketrail = _root.wakemask.createEmptyMovieClip("waketrail", 10000);
var waketrail2 = _root.wakemask.createEmptyMovieClip("waketrail2", 10001);
var waketrail3 = _root.wakemask.createEmptyMovieClip("waketrail3", 10002);
var wake = _root.wakemask.attachMovie("wake", "wake" + i, i);
wake._x = this._x;
wake._y = this._y;
upswirl = 1;
wake.onEnterFrame = function () {
dx = _root.wavespeed * Math.cos((surferangle * Math.PI) / 180);
if (dx < 0) {
dx = dx * 0.1;
} else {
dx = dx * 0.8;
}
dx = dx - (8 * Math.random());
this._x = this._x + dx;
this._y = this._y - upswirl;
upswirl = upswirl * 1.2;
};
i++;
if (!wipeout) {
if (attack) {
waketrail.lineStyle(1, 16711680, 60);
waketrail2.lineStyle(2, 16711680, 30);
waketrail3.lineStyle(1, 16711680, 60);
} else {
waketrail.lineStyle(1, 16777215, 60);
waketrail2.lineStyle(2, 16777215, 30);
waketrail3.lineStyle(1, 16777215, 60);
}
}
waketrail.moveTo(wake._x, wake._y);
waketrail2.moveTo(wake._x, wake._y);
waketrail3.moveTo(wake._x, wake._y);
maxsegments = i - 1000;
if (maxsegments > 18) {
maxsegments = 18;
}
j = i - 1;
while (j > (i - maxsegments)) {
k = j - 1;
waketrail.moveTo(_root.wakemask["wake" + k]._x, _root.wakemask["wake" + k]._y);
waketrail.lineTo(_root.wakemask["wake" + j]._x, _root.wakemask["wake" + j]._y);
offset2 = (j - i) * 1.5;
waketrail2.moveTo(_root.wakemask["wake" + k]._x + offset2, _root.wakemask["wake" + k]._y);
waketrail2.lineTo(_root.wakemask["wake" + j]._x + offset2, _root.wakemask["wake" + j]._y);
offset3 = j - i;
waketrail3.moveTo(_root.wakemask["wake" + k]._x + offset3, _root.wakemask["wake" + k]._y);
waketrail3.lineTo(_root.wakemask["wake" + j]._x + offset3, _root.wakemask["wake" + j]._y);
j--;
}
}
Instance of Symbol 237 MovieClip "closeout" in Frame 116
onClipEvent (load) {
this._alpha = 98;
}
Instance of Symbol 255 MovieClip in Frame 116
onClipEvent (load) {
_root.gametime = 30000;
_root.myTimer = new _root.mbenneyTimer();
_root.myTimer.start();
timeup = false;
}
onClipEvent (enterFrame) {
time = _root.myTimer.getMili();
if (time >= _root.gametime) {
this.txt_timer = "00:00:000";
this.txt_timer_bg = "00:00:000";
if (!timeup) {
_root.txt_timeup.gotoAndPlay("display");
_root.txt_wipeout.gotoAndStop("start");
}
timeup = true;
} else {
this.txt_timer = _root.displaytime(_root.gametime - time);
this.txt_timer_bg = _root.displaytime(_root.gametime - time);
}
}
Frame 117
stop();
_root.closeout.removeMovieClip();
_root.surfer.removeMovieClip();
wavesfx.stop();
txt_score = _root.gamescore;
txt_tube = _root.tubetime * 4;
bonus = 1;
txt_total = (txt_score + txt_tube) * bonus;
_root.total = txt_total;
Frame 118
stop();
_root.scoreboard_mc.jumpto = "submit";
_root.scoreboard_mc.gotoAndPlay("clear");
stop();
Frame 119
stop();
scoreboard = new Array("Player", "", "", "Score");
_root.scoreboard_mc.jumpto = "load";
_root.scoreboard_mc.gotoAndPlay("clear");
stop();
Frame 120
stop();
Frame 121
stop();
Symbol 10 MovieClip [wake] Frame 19
this.removeMovieClip();
Symbol 20 Button
on (release) {
gotoAndPlay ("preloader");
}
Symbol 31 Button
on (release) {
getURL ("http://www.addictinggames.com", _blank);
}
Symbol 55 Button
on (release) {
gotoAndPlay ("start");
}
on (keyPress "<Space>") {
gotoAndPlay ("start");
}
Symbol 60 Button
on (release) {
gotoAndPlay ("about");
}
Symbol 65 Button
on (release) {
_root.swHighScoreObject.showTab = "view";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 90 MovieClip Frame 17
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
stop();
Symbol 214 MovieClip Frame 1
hitsurfer._visible = false;
stop();
Symbol 214 MovieClip Frame 2
stop();
Symbol 214 MovieClip Frame 3
stop();
Symbol 214 MovieClip Frame 4
stop();
Symbol 214 MovieClip Frame 5
stop();
Symbol 214 MovieClip Frame 6
stop();
Symbol 214 MovieClip Frame 7
stop();
Symbol 214 MovieClip Frame 8
stop();
Symbol 214 MovieClip Frame 9
stop();
Symbol 214 MovieClip Frame 10
stop();
Symbol 214 MovieClip Frame 11
stop();
Symbol 214 MovieClip Frame 12
stop();
Symbol 214 MovieClip Frame 13
stop();
Symbol 214 MovieClip Frame 14
stop();
Symbol 214 MovieClip Frame 15
stop();
Symbol 214 MovieClip Frame 16
stop();
Symbol 214 MovieClip Frame 17
stop();
Symbol 214 MovieClip Frame 18
stop();
Symbol 214 MovieClip Frame 19
stop();
Symbol 214 MovieClip Frame 20
stop();
Symbol 214 MovieClip Frame 21
stop();
Symbol 214 MovieClip Frame 22
stop();
Symbol 214 MovieClip Frame 23
stop();
Symbol 214 MovieClip Frame 24
stop();
Symbol 214 MovieClip Frame 25
stop();
Symbol 214 MovieClip Frame 26
stop();
Symbol 214 MovieClip Frame 27
stop();
Symbol 214 MovieClip Frame 28
stop();
Symbol 214 MovieClip Frame 29
stop();
Symbol 214 MovieClip Frame 30
stop();
Symbol 214 MovieClip Frame 31
stop();
Symbol 214 MovieClip Frame 32
stop();
Symbol 214 MovieClip Frame 33
stop();
Symbol 214 MovieClip Frame 34
stop();
Symbol 214 MovieClip Frame 35
stop();
Symbol 214 MovieClip Frame 36
stop();
Symbol 214 MovieClip Frame 57
stop();
_root.gotoAndPlay("finish");
Instance of Symbol 223 MovieClip in Symbol 224 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + _root.closeoutspeed;
if (this._x >= 500) {
this._x = this._x - 500;
}
}
Instance of Symbol 227 MovieClip in Symbol 228 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + _root.closeoutspeed;
if (this._x >= 500) {
this._x = this._x - 500;
}
}
Symbol 237 MovieClip Frame 1
hittube._visible = false;
hitwipeout._visible = false;
Instance of Symbol 220 MovieClip "closeout" in Symbol 237 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + _root.closeoutspeed;
if (this._x >= 725) {
this._x = this._x - 725;
}
}
Symbol 250 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 1
stop();
cutbackscore = 0;
Symbol 268 MovieClip Frame 2
txt_score = "+" + cutbackscore;
Symbol 272 MovieClip Frame 1
stop();
cutbackscore = 0;
Symbol 272 MovieClip Frame 2
txt_score = "+" + cutbackscore;
Symbol 276 MovieClip Frame 1
stop();
cutbackscore = 0;
Symbol 276 MovieClip Frame 2
txt_score = "+" + cutbackscore;
Symbol 279 MovieClip Frame 1
stop();
cutbackscore = 0;
Symbol 279 MovieClip Frame 2
txt_score = "+" + cutbackscore;
Symbol 279 MovieClip Frame 34
_root.gotoAndPlay("finish");
Symbol 283 MovieClip Frame 1
stop();
cutbackscore = 0;
Symbol 283 MovieClip Frame 2
txt_score = "+" + cutbackscore;
Symbol 283 MovieClip Frame 19
_root.gotoAndPlay("finish");
Symbol 287 MovieClip Frame 1
stop();
cutbackscore = 0;
Symbol 287 MovieClip Frame 2
txt_score = "+" + cutbackscore;
Symbol 287 MovieClip Frame 37
stop();
_root.gotoAndPlay("finish");
Symbol 288 MovieClip Frame 1
stop();
cutbackscore = 0;
Symbol 288 MovieClip Frame 2
txt_score = "+" + cutbackscore;
Symbol 288 MovieClip Frame 32
_root.gotoAndPlay("finish");
Symbol 299 Button
on (release) {
gotoAndPlay ("init");
}
on (keyPress "<Space>") {
gotoAndPlay ("init");
}
Symbol 303 Button
on (release) {
_level0.swHighScoreObject.player1Score = _root.total;
_root.swHighScoreObject.showTab = "submit";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 311 MovieClip Frame 8
stop();
Symbol 312 MovieClip Frame 26
stop();
Symbol 330 MovieClip Frame 9
stop();
Symbol 331 MovieClip Frame 26
stop();
Symbol 366 MovieClip Frame 1
function exit() {
gotoAndPlay ("clear");
exited = true;
}
function is_Empty(string) {
if (((string == "") || (string == undefined)) || (string == null)) {
return(true);
}
return(false);
}
local_data = SharedObject.getLocal("user_data");
score_start = 0;
score_limit = 12;
position._visible = false;
displayed = false;
exited = false;
String.prototype.replace = function (pattern, replacement) {
return(this.split(pattern).join(replacement));
};
String.prototype.isEmail = function () {
var _local6 = "Invalid email address";
var _local3 = this;
var _local2 = new Array("@", ".");
var _local4 = new Array();
i = 0;
while (i < 200) {
if (((((((i >= 33) && (i <= 45)) || (i == 47)) || ((i >= 58) && (i <= 63))) || ((i > 91) && (i <= 96))) || ((i >= 123) && (i <= 126))) || ((i >= 161) && (i <= 199))) {
var _local5 = String.fromCharCode(i);
_local4.push(_local5);
}
i++;
}
i = 0;
while (i < _local4.length) {
if (_local3.indexOf(_local4[i]) != -1) {
var _local5 = _local4[i];
return(false);
}
i++;
}
i = 0;
while (i < _local2.length) {
if (_local3.indexOf(_local2[i]) != -1) {
index = _local3.indexOf(_local2[i]);
if ((_local3.indexOf(_local2[i], index + 1) != -1) && (_local2[i] != ".")) {
return(false);
}
} else {
return(false);
}
i++;
}
return(true);
};
String.prototype.checksum = function () {
sum = 0;
i = 0;
while (i < this.length) {
sum = sum + this.charCodeAt(i);
i++;
}
return(sum);
};
stop();
Symbol 366 MovieClip Frame 2
url = (("http://www.markfennell.com/flash/wipeout/score_load.php?start=" + score_start) + "&end=") + score_limit;
this.createEmptyMovieClip("xj250", 1);
loadVariables (url, xj250);
xj250.onEnterFrame = function () {
if (this.Loaded == "done") {
delete this.onEnterFrame;
gotoAndPlay ("display");
}
};
exit_btn.onRelease = function () {
exit();
};
stop();
Symbol 366 MovieClip Frame 8
function clearScore(j) {
this["flag" + j].removeMovieClip();
this["score_display" + j].removeMovieClip();
}
txt_title_name = _root.scoreboard[0];
txt_title_score2 = _root.scoreboard[2];
txt_title_score = _root.scoreboard[3];
total = xj250.scores;
score_end = score_start + score_limit;
if (score_end > total) {
score_end = total;
}
if (score_start <= 0) {
score_start = 0;
}
next_btn._visible = false;
prev_btn._visible = false;
if (score_end < total) {
next_btn._visible = true;
next_btn.onRelease = function () {
i = 0;
while (i < score_limit) {
clearScore(i);
i++;
}
score_start = score_end;
score_end = score_end + score_limit;
gotoAndPlay ("load");
};
}
if (score_start >= score_limit) {
prev_btn._visible = true;
prev_btn.onRelease = function () {
i = 0;
while (i < score_limit) {
clearScore(i);
i++;
}
score_start = score_start - score_limit;
score_end = score_end - score_limit;
gotoAndPlay ("load");
};
}
var names = new Array();
names = xj250.name.split(",");
var country = new Array();
country = xj250.country.split(",");
var score = new Array();
score = xj250.score.split(",");
var score2 = new Array();
score2 = xj250.score2.split(",");
var img = new Array();
img = xj250.img.split(",");
i = score_start;
while (i < score_end) {
j = i - score_start;
var flag_mc = this.attachMovie(country[j], "flag" + j, j + 200);
flag_mc._x = 225;
flag_mc._y = -89 + ((i - score_start) * 19);
var line = this.attachMovie("score_display", "score_display" + j, j + 100);
rank = i + 1;
line._x = 0;
line._y = 8 + (j * 19);
line.txt_rank = rank + ".";
line.txt_name = names[j];
line.txt_score = score[j];
line.txt_score2 = "";
i++;
}
exit_btn.onRelease = function () {
exit();
};
stop();
Symbol 366 MovieClip Frame 15
if ((!displayed) && (!exited)) {
gotoAndPlay(jumpto);
}
i = 0;
while (i < score_limit) {
this["flag" + i].removeMovieClip();
this["score_display" + i].removeMovieClip();
i++;
}
Symbol 366 MovieClip Frame 36
exited = false;
stop();
Symbol 366 MovieClip Frame 37
function is_null(string) {
if (((string == null) || (string == undefined)) || (string == "")) {
return("null");
}
return(string);
}
function submit(user, email) {
score = _root.x1025;
score2 = is_null(_root.x1026);
img = is_null(_root.x1027);
user = user.replace("|", "");
user = user.replace(",", "");
rc4_text = email + "|";
rc4_text = rc4_text + (user + "|");
rc4_text = rc4_text + (((score + "|") + score.toString(10).checksum()) + "|");
rc4_text = rc4_text + (((score2 + "|") + score2.toString(10).checksum()) + "|");
rc4_text = rc4_text + (((img + "|") + img.toString(10).checksum()) + "|");
rc4_text = rc4_text + email.checksum();
rc4_key = "topgun";
_root.rc4_hash = RC4.encrypt(rc4_text, rc4_key);
local_data.data.user_name = user;
local_data.data.user_email = email;
local_data.flush();
}
stored_user_name = local_data.data.user_name;
stored_user_email = local_data.data.user_email;
if (!is_Empty(stored_user_name)) {
txt_name = stored_user_name;
}
if (!is_Empty(stored_user_email)) {
txt_email = stored_user_email;
}
stop();
txt_info = "SUBMIT SCORE";
submit_btn.onRelease = function () {
if (txt_email.isEmail() && (txt_name.length > 0)) {
_root.emailaddr = txt_email;
submit(txt_name, txt_email);
gotoAndPlay ("submitdata");
} else {
txt_email = "";
}
};
exit_btn.onRelease = function () {
exit();
};
stop();
Symbol 366 MovieClip Frame 44
alert._visible = false;
this.createEmptyMovieClip("xj22", 1);
xj22.xj25 = _root.rc4_hash;
xj22.loadVariables("http://www.markfennell.com/flash/wipeout/score_submit.php", "POST");
xj22.onEnterFrame = function () {
if (this.Loaded == "done") {
if (this.msg != undefined) {
txt_info = this.msg;
}
accessing._visible = false;
if (this.alert == "true") {
alert._visible = true;
alert.txt_emailaddr = _root.emailaddr;
alert.change_btn.onRelease = function () {
gotoAndPlay ("submit");
};
}
delete this.onEnterFrame;
}
};
exit_btn.onRelease = function () {
exit();
};
stop();
Symbol 366 MovieClip Frame 53
stop();
txt_info = "Tell a friend";
stored_user_name = local_data.data.user_name;
stored_user_email = local_data.data.user_email;
if (!is_Empty(stored_user_name)) {
txt_name = stored_user_name;
}
if (!is_Empty(stored_user_email)) {
txt_email = stored_user_email;
}
submit_btn.onRelease = function () {
if (txt_email.isEmail() && (txt_name.length > 0)) {
if (txt_friendemail.isEmail() && (txt_friend.length > 0)) {
_root.tell_txt_name = txt_name;
_root.tell_txt_email = txt_email;
_root.tell_txt_friend = txt_friend;
_root.tell_txt_friendemail = txt_friendemail;
gotoAndPlay ("tellsubmit");
} else {
txt_friendemail = "";
}
} else {
txt_email = "";
}
};
exit_btn.onRelease = function () {
exit();
};
stop();
Symbol 366 MovieClip Frame 54
accessing._visible = true;
this.createEmptyMovieClip("xj23", 1);
xj23.me = _root.tell_txt_name;
xj23.email = _root.tell_txt_email;
xj23.friend = _root.tell_txt_friend;
xj23.friendaddr = _root.tell_txt_friendemail;
xj23.loadVariables("tell.php", "POST");
xj23.onEnterFrame = function () {
if (this.Loaded == "done") {
if (this.msg != undefined) {
txt_info = this.msg;
}
accessing._visible = false;
delete this.onEnterFrame;
}
};
exit_btn.onRelease = function () {
exit();
};
stop();
Symbol 373 Button
on (release) {
_root.gotoAndPlay("init");
}
Symbol 376 Button
on (release) {
getURL ("http://www.markfennell.com/flash/wipeout", "_self");
}