Frame 1
var MochiAd = {getVersion:function () {
return("2.4");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
} else {
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
bar._visible = false;
delete options.no_progress_bar;
} else {
bar._x = 10;
bar._y = h - 20;
}
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
return(s);
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var _local2 = (100 * clip_loaded) / clip_total;
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var pcnt = Math.min(100, Math.min(_local2 || 0, ad_pcnt));
pcnt = Math.max(_local1.last_pcnt, pcnt);
_local1.last_pcnt = pcnt;
_inside._xscale = pcnt;
options.ad_progress(pcnt);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((elapsed > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}
}, showClickAwayAd:function (options) {
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
}, ad_skipped:function () {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local2 = MochiAd._getRes(options);
var w = _local2[0];
var h = _local2[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
return(s);
};
var sendHostProgress = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var _local3 = getTimer() - this.started;
var _local1 = false;
if (!chk.showing) {
var _local2 = ad_clip.getBytesTotal();
if ((_local2 > 0) || (typeof(_local2) == "undefined")) {
_local1 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local3 > chk.ad_timeout) {
options.ad_failed();
_local1 = true;
}
}
if (_local1) {
delete this.onEnterFrame;
}
};
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
return(s);
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showPreloaderAd:function (options) {
MochiAd.showPreGameAd(options);
}, showTimedAd:function (options) {
MochiAd.showInterLevelAd(options);
}, _allowDomains:function (server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
if (_local1._mochiad._containerLCName != undefined) {
_local1._mochiad.lc.send(_local1._mochiad._containerLCName, "notify", {id:"unload"});
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
if (_local3.id == "test") {
}
return(_local3);
}, rpc:function (clip, callbackID, arg) {
var _local1 = clip;
var _local2 = arg;
switch (_local2.id) {
case "setValue" :
MochiAd.setValue(_local1, _local2.objectName, _local2.value);
return;
case "getValue" :
var val = MochiAd.getValue(_local1, _local2.objectName);
_local1._mochiad.lc.send(_local1._mochiad._containerLCName, "rpcResult", callbackID, val);
return;
case "runMethod" :
var _local3 = MochiAd.runMethod(_local1, _local2.method, _local2.args);
_local1._mochiad.lc.send(_local1._mochiad._containerLCName, "rpcResult", callbackID, _local3);
}
}, setValue:function (base, objectName, value) {
var _local2 = base;
var nameArray:Array = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (nameArray.length - 1)) {
if ((_local2[nameArray[_local1]] == undefined) || (_local2[nameArray[_local1]] == null)) {
return;
}
_local2 = _local2[nameArray[_local1]];
_local1++;
}
_local2[nameArray[_local1]] = value;
}, getValue:function (base, objectName) {
var _local2 = base;
var nameArray:Array = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (nameArray.length - 1)) {
if ((_local2[nameArray[_local1]] == undefined) || (_local2[nameArray[_local1]] == null)) {
return(undefined);
}
_local2 = _local2[nameArray[_local1]];
_local1++;
}
return(_local2[nameArray[_local1]]);
}, runMethod:function (base, methodName, argsArray:Array) {
var _local2 = base;
var nameArray:Array = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (nameArray.length - 1)) {
if ((_local2[nameArray[_local1]] == undefined) || (_local2[nameArray[_local1]] == null)) {
return(undefined);
}
_local2 = _local2[nameArray[_local1]];
_local1++;
}
if (typeof(_local2[nameArray[_local1]]) == "function") {
return(_local2[nameArray[_local1]].apply(_local2, argsArray));
}
return(undefined);
}, _:null};
MochiAd.showPreGameAd({id:"9e0a21c691ad4742", res:"480x400"});
Frame 2
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
loaderbox._yscale = percent;
if (percent == 100) {
gotoAndPlay (4);
} else {
play();
}
Frame 3
gotoAndPlay (2);
Frame 4
game_quality = "high";
Frame 5
stop();
Instance of Symbol 14 MovieClip in Frame 5
onClipEvent (keyUp) {
if ((Key.getCode() == 32) or (Key.getCode() == 13)) {
_root.play();
}
}
Frame 6
_quality = "high";
_root.instructions_open = "closed";
_root.highscore_open = "closed";
_root.GID = 15;
play();
function viewPP() {
getURL ("javascript:viewpp()");
}
function viewTC() {
getURL ("javascript:poppage('zombie_terms.html',470,410,'yes')");
}
function chkEmail(e) {
var _local1 = e;
if (_local1.length > 7) {
if (_local1.indexOf("@") > 0) {
if ((((_local1.indexOf(" ") < 0) && (_local1.indexOf(",") < 0)) && (_local1.indexOf("'") < 0)) && (_local1.indexOf("\"") < 0)) {
if ((_local1.indexOf("@") + 1) < _local1.lastIndexOf(".")) {
if (_local1.indexOf("@") == _local1.lastIndexOf("@")) {
if (_local1.lastIndexOf(".") < (_local1.length - 1)) {
return(true);
}
}
}
}
}
}
return(false);
}
function chkWWW(e) {
var _local1 = e.toLowerCase();
if (_local1.indexOf("www.") == 0) {
_local1 = e.slice(4);
return(_local1);
}
return(_local1);
}
_global.trackSite("impression", "view_game");
String.prototype.SR = function (find, replace) {
return(this.split(find).join(replace));
};
XML.prototype.ignoreWhite = true;
XML.prototype.contentType = "text/xml";
System.useCodePage = true;
XML.getNodeByAttribute = function (theNode, nodeName, attributeName, attributeValue, recursiveSearch) {
var _local3 = nodeName;
var _local1;
var _local2 = 0;
while (_local2 < theNode.childNodes.length) {
_local1 = theNode.childNodes[_local2];
if ((_local1.nodeName.toLowerCase() == _local3.toLowerCase()) && (_local1.attributes[attributeName] == attributeValue)) {
return(_local1);
}
if (_local1.hasChildNodes() && (recursiveSearch)) {
_local1 = XML.getNodeByAttribute(_local1, _local3, attributeName, attributeValue, true);
if (_local1 != null) {
return(_local1);
}
}
_local2++;
}
return(null);
};
XML.getNode = function (theNode, nodeName, recursiveSearch) {
var _local3 = nodeName;
var _local1;
var _local2 = 0;
while (_local2 < theNode.childNodes.length) {
_local1 = theNode.childNodes[_local2];
if (_local1.nodeName.toLowerCase() == _local3.toLowerCase()) {
return(_local1);
}
if (_local1.hasChildNodes() && (recursiveSearch)) {
_local1 = XML.getNode(_local1, _local3, true);
if (_local1 != null) {
return(_local1);
}
}
_local2++;
}
return(null);
};
XML.hasNode = function (theNode, nodeName, recursiveSearch) {
var _local3 = nodeName;
var _local2;
var _local1 = 0;
while (_local1 < theNode.childNodes.length) {
_local2 = theNode.childNodes[_local1];
if (_local2.nodeName.toLowerCase() == _local3.toLowerCase()) {
return(true);
}
if (_local2.hasChildNodes() && (recursiveSearch)) {
if (XML.hasNode(_local2, _local3, true)) {
return(true);
}
}
_local1++;
}
return(false);
};
XML.getNodesArray = function (theNode, nodeName) {
var _local3 = theNode;
var _local2;
returnArray = new Array();
var _local1 = 0;
while (_local1 < _local3.childNodes.length) {
_local2 = _local3.childNodes[_local1];
if (_local2.nodeName.toLowerCase() == nodeName.toLowerCase()) {
returnArray.push(_local2);
}
_local1++;
}
return(returnArray);
};
XML.errorList = ["", "", "A CDATA section was not properly terminated", "The XML declaration was not properly terminated.", "The DOCTYPE declaration was not properly terminated.", "A comment was not properly terminated.", "An XML element was malformed.", "Out of memory.", "An attribute value was not properly terminated.", "A start-tag was not matched with an end-tag.", "An end-tag was encountered without a matching start-tag."];
Frame 31
front_wavey = front_wave._y;
front_wavelogoy = front_wave.logo._y;
Frame 53
function down() {
if (currentmov ne "") {
mov_array[currentmov].gotoandplay("fade");
currentmov--;
if (currentmov < 0) {
currentmov = mov_array.length - 1;
}
mov_array[currentmov].gotoandplay(2);
} else {
currentmov = 0;
mov_array[currentmov].gotoandplay(2);
}
}
function up() {
if (currentmov ne "") {
mov_array[currentmov].gotoandplay("fade");
currentmov++;
if (currentmov > (mov_array.length - 1)) {
currentmov = 0;
}
mov_array[currentmov].gotoandplay(2);
} else {
currentmov = 0;
mov_array[currentmov].gotoandplay(2);
}
}
function enter() {
if (currentmov == 0) {
gotoAndPlay (56);
} else if (currentmov == 1) {
gotoAndStop ("no_buttons");
instructions_open = "yes";
instructions.gotoandplay(2);
} else if (currentmov == 2) {
gotoAndStop ("no_buttons");
highscore_open = "yes";
highscore_display.gotoandplay(2);
} else if (currentmov == 3) {
gotoAndPlay (6);
}
}
stop();
currentmov = 0;
mov_array = new Array();
mov_array[0] = _root.play;
mov_array[1] = _root.instruct;
mov_array[2] = _root.highscore;
play.gotoandplay(2);
Instance of Symbol 14 MovieClip in Frame 53
onClipEvent (keyUp) {
if ((_root.instructions_open ne "yes") and (_root.highscore_open ne "yes")) {
if (Key.getCode() == 40) {
_root.up();
} else if ((Key.getCode() == 38) or (Key.getCode() == 9)) {
_root.down();
} else if ((Key.getCode() == 32) or (Key.getCode() == 13)) {
_root.enter();
}
} else if ((Key.getCode() == 32) or (Key.getCode() == 13)) {
if (_root.instructions_open eq "yes") {
_root.instructions.gotoandplay("fade");
} else if (_root.highscore_open eq "yes") {
_root.highscore_display.gotoandplay("fade");
}
}
}
Frame 56
function start_movs() {
surfer._x = player_1_startx;
surfer._y = player_1_starty;
surfer.speed = speed_start;
surfer.gotoandstop(1);
chase_wave._x = chase_wave_startx;
}
function gameover() {
_quality = "high";
gotoAndPlay ("gameover");
}
function times_up() {
_quality = "high";
surfer.gotoandstop("pause");
times_up_ani.gotoandplay(2);
}
function wavescore_ani(score) {
wavescoreani.duplicateMovieClip("wscoreani", 900);
wscoreani.gotoandplay(2);
wscoreani.wavescore.score = score;
totalscore = totalscore + score;
wscoreani._x = surfer._x;
wscoreani._y = surfer._y;
}
function final_enter() {
if (currentmov == 1) {
_root.gotoAndPlay("start");
} else if (currentmov == 0) {
gotoAndPlay (6);
} else if (currentmov == 2) {
score_panel.gotoandplay("viewhighscore");
}
}
function options_enter() {
var _local1 = _root;
if (currentmov == 0) {
if (surfer._currentframe != 1) {
if (_local1.tube_loop._currentframe != 1) {
_local1.tube_loop.play();
}
_local1.timer.reset = _local1.timer.reset + (int(getTimer() / 1000) - _local1.timeroffset);
_local1.timer.gotoandplay(2);
surfer.gotoandplay(2);
}
} else if (currentmov == 1) {
if (game_quality eq "low") {
game_quality = "high";
} else {
game_quality = "low";
}
_quality = game_quality;
} else if (currentmov == 2) {
gotoAndPlay (6);
}
}
_quality = game_quality;
whitewash._visible = 0;
chase_wave_speed = 8;
xratio = 0.208333333333333;
chase_wave_startx = 1000;
score360 = new Array(500, 1250, 2500, 5000, 10000, 21000, 51000);
wave_starty = bg1._y;
player_1_startx = 315;
player_1_starty = wave_starty + 30;
dudes = 3;
dead_zone = bg1._y + (bg1._height - 25);
main_wide = 480;
airtime_score = 1;
totalscore = 0;
wavescore = 0;
highest_wave = 0;
speed_limit = 50;
speed_cutoff = 3;
speed_start = 10;
air_fall = 0.5;
wide = bg1._width;
timeroffset = 0;
timer.reset = 0;
timer.min = 3;
timer.secs = "00";
total_secs = timer.min * 60;
boards.gotoandstop(1);
_root.player_1_key_array = new Array("blank", 37, 87, 39);
bg2._x = bg1._x - wide;
gotoAndPlay ("surfing");
Instance of Symbol 181 MovieClip "whitewash" in Frame 56
onClipEvent (load) {
_xscale = 0;
}
Instance of Symbol 213 MovieClip "timer" in Frame 56
onClipEvent (load) {
a = 1;
}
Frame 62
start_movs();
stop();
Instance of Symbol 259 MovieClip "surfer" in Frame 62
onClipEvent (keyDown) {
if (Key.getCode() == 27) {
if ((_root.options ne "open") && (_root.wipeout ne "yes")) {
if (_currentframe == 1) {
} else {
_root.timeroffset = int(getTimer() / 1000);
_root.timer.gotoandstop(1);
_root.tube_loop.stop();
this.gotoAndStop("pause");
}
_root.options_menu.gotoandplay(2);
_root.options = "open";
}
}
}
Frame 69
Frame 70
this.gotoAndPlay("show_result");
Frame 71
this.gotoAndPlay(_currentframe - 1);
Frame 72
if (totalscore == 0) {
score_panel.gotoandstop("final_options");
} else if (email ne "") {
score_panel.email = email;
score_panel.name = name;
}
Frame 84
stop();
Symbol 14 MovieClip Frame 1
_x = ((_x + random(80)) - 40);
_y = ((_y + random(80)) - 40);
Symbol 14 MovieClip Frame 9
stop();
Symbol 15 Button
on (release) {
play();
}
Symbol 42 MovieClip Frame 136
num = random(80) - 40;
logo._y = _root.front_wavelogoy - num;
_y = (_root.front_wavey + num);
gotoAndPlay(_currentframe + random(50));
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 8
stop();
Symbol 44 MovieClip Frame 9
play();
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 8
stop();
Symbol 46 MovieClip Frame 9
play();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 8
stop();
Symbol 48 MovieClip Frame 9
play();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 8
stop();
Symbol 50 MovieClip Frame 9
play();
Symbol 54 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut, dragOut) {
gotoAndPlay ("fade");
}
on (release) {
getURL ("http://www.soap.com.au", "_blank");
}
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 11
stop();
Symbol 62 Button
on (rollOver, dragOver) {
if (currentmov != 0) {
mov_array[currentmov].gotoandplay("fade");
play.gotoandplay(2);
}
currentmov = 0;
}
on (rollOut, dragOut) {
play.gotoandplay("fade");
currentmov = "";
}
on (release) {
enter();
}
Symbol 63 Button
on (rollOver, dragOver) {
if (currentmov != 1) {
mov_array[currentmov].gotoandplay("fade");
instruct.gotoandplay(2);
}
currentmov = 1;
}
on (rollOut, dragOut) {
instruct.gotoandplay("fade");
currentmov = "";
}
on (release) {
enter();
}
Symbol 64 Button
on (rollOver, dragOver) {
if (currentmov != 2) {
mov_array[currentmov].gotoandplay("fade");
highscore.gotoandplay(2);
}
currentmov = 2;
}
on (rollOut, dragOut) {
highscore.gotoandplay("fade");
currentmov = "";
}
on (release) {
enter();
}
Symbol 65 Button
on (rollOver, dragOver) {
if (currentmov != 3) {
mov_array[currentmov].gotoandplay("fade");
highscore.gotoandplay(2);
}
currentmov = 3;
}
on (rollOut, dragOut) {
highscore.gotoandplay("fade");
currentmov = "";
}
on (release) {
enter();
}
Symbol 66 Button
on (rollOver, dragOver) {
moreGame.gotoandplay(2);
}
on (rollOut, dragOut) {
moreGame.gotoandplay("fade");
}
on (release) {
getURL ("http://www.soap.com.au/games", "_blank");
}
Symbol 93 Button
on (release) {
_parent.gotoandplay("fade");
}
Symbol 102 MovieClip Frame 12
stop();
Symbol 109 Button
on (release) {
_parent.scNEXT();
}
Symbol 114 Button
on (release) {
_parent.scEND();
}
Symbol 119 Button
on (release) {
_parent.scPREV();
}
Symbol 124 Button
on (release) {
_parent.scSTART();
}
Symbol 126 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 2
function closeB() {
gotoAndPlay ("fade");
}
function sortHIS(x) {
theX = x;
var nA = XML.getNodesArray(x.firstChild, "entry");
var l = na.length;
HISA = new Array();
var _local1 = 0;
while (_local1 < l) {
var _local3 = nA[_local1];
HISA[_local1] = new Array();
var _local2 = HISA[_local1];
var a = _local3.attributes.score;
_local2.score = a;
var a = _local3.attributes.pname;
_local2.pname = a.toUpperCase();
var a = _local3.attributes.miscellaneous1;
_local2.wscore = a.toUpperCase();
_local1++;
}
delete ansA;
delete _level0.returnArray;
delete HIS;
gotoAndPlay ("showScores");
}
function loadScores() {
HIS = new XML();
HIS.ignoreWhite = true;
HIS.onLoad = function (success) {
if (success) {
sortHIS(this);
}
};
serverURL = ("http://stats.soap.com.au/highscore/highscoreXML.php?gameid=" + _root.GID) + "&start=0&count=100";
HIS.load(serverURL);
}
butB.useHandCursor = false;
Symbol 127 MovieClip Frame 23
loadscores();
stop();
Symbol 127 MovieClip Frame 34
function showLIST(off) {
if ((off > 0) && (off < (lim - 5))) {
buts.gotoandstop(2);
} else if (off >= (lim - 5)) {
buts.gotoandstop(3);
} else {
buts.gotoandstop(1);
}
if (lim < 1) {
buts.gotoandstop(4);
}
clearList();
var _local1 = 0;
while (_local1 < 5) {
scLIST.score.duplicateMovieClip("sc_" + _local1, _local1);
var _local2 = scLIST["sc_" + _local1];
_local2._y = 0 + (25 * _local1);
var _local3 = _local1 + off;
_local2.rank = _local3 + 1;
var a = HISA[_local3].pname;
if (a eq "") {
_local2._visible = 0;
return;
}
_local2.pname = a;
_local2.score = HISA[_local3].score;
_local2.wavescore = HISA[_local3].wscore;
_local1++;
}
}
function clearList() {
var i = 0;
while (i < 5) {
var m = eval ("scLIST.sc_" + i);
m.removeMovieClip();
i++;
}
}
function scNEXT() {
offset = offset + 5;
showList(offset);
}
function scPREV() {
offset = offset - 5;
showList(offset);
}
function scSTART() {
offset = 0;
showList(offset);
}
function scEND() {
offset = lim - 5;
showList(offset);
}
offset = 0;
lim = int(HISA.length / 5) * 5;
scLIST.score._visible = 0;
showLIST(offset);
Symbol 127 MovieClip Frame 45
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 13
menu.gotoandplay(2);
stop();
Symbol 128 MovieClip Frame 14
_root.gotoandstop("main_menu_buttons");
_root.highscore_open = "no";
play();
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 24
stop();
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 13
menu.gotoandplay(2);
stop();
Symbol 164 MovieClip Frame 14
_root.gotoandstop("main_menu_buttons");
_root.instructions_open = "no";
play();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
play();
Symbol 189 MovieClip Frame 8
stop();
Symbol 189 MovieClip Frame 9
play();
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 2
play();
Symbol 191 MovieClip Frame 8
stop();
Symbol 191 MovieClip Frame 9
play();
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 2
play();
Symbol 193 MovieClip Frame 8
stop();
Symbol 193 MovieClip Frame 9
play();
Symbol 196 MovieClip Frame 55
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
play();
Symbol 197 MovieClip Frame 15
_root.currentmov = 0;
_root.mov_array[0] = score_panel.keep;
_root.mov_array[1] = score_panel.quality;
_root.mov_array[2] = score_panel.quit;
score_panel.keep.gotoandplay(2);
stop();
Instance of Symbol 14 MovieClip in Symbol 197 MovieClip Frame 15
onClipEvent (keyDown) {
if (Key.getCode() == 40) {
_root.up();
} else if ((Key.getCode() == 38) or (Key.getCode() == 9)) {
_root.down();
} else if ((Key.getCode() == 32) or (Key.getCode() == 13)) {
if (_root.currentmov == 1) {
_root.options_enter();
} else {
_parent.play();
}
}
}
Symbol 197 MovieClip Frame 23
_root.options = "closed";
Symbol 197 MovieClip Frame 24
gotoAndStop (1);
_root.options_enter();
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 2
play();
Symbol 200 MovieClip Frame 102
_root.gameover();
Symbol 208 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 2
time_secs = int(getTimer() / 1000) - reset;
secs_left = _root.total_secs - time_secs;
min = int(secs_left / 60);
secs = (_root.total_secs - (60 * min)) - time_secs;
if (Number(secs) < 0) {
secs = "0";
min = min - 1;
a++;
}
if (Number(secs) < 10) {
secs = "0" add secs;
}
if (Number(min) < 0) {
min = "0";
sec = "00";
_root.times_up();
stop();
}
Symbol 213 MovieClip Frame 3
gotoAndPlay (2);
Symbol 258 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 1
function drag_speed(num) {
var _local1 = num;
if ((_local1 >= 5) and (_local1 <= 11)) {
if ((_local1 == 5) or (_local1 == 11)) {
speed = speed + (drag * 2);
} else {
speed = speed + (drag * 1.5);
}
} else {
speed = speed - drag;
}
}
function check_land(num) {
var _local1 = num;
if ((((_local1 != 9) or (_local1 != 11)) or (_local1 != 5)) or (_local1 != 7)) {
speed = speed + 0.5;
} else if ((_local1 != 6) or (_local1 != 10)) {
speed = speed + 1;
} else {
speed = speed - 1;
}
}
function wipeout() {
var _local1 = _root;
var _local2 = random(3) + 1;
_local1.waveComment.num = "wipeout" + _local2;
_local1.wipeout = "yes";
_local1.waveComment.gotoandplay(2);
gotoAndPlay ("win");
}
_root.whitewash._visible = 1;
id = 1;
tube = "no";
_root.wipeout = "no";
_root.whitewash._xscale = 0;
drag = 0.055;
turn_speed = 9.47368421052632;
frame_ratio = 22.5;
radius = _width / 2;
fkangle = 247.5;
stop();
Instance of Symbol 220 MovieClip in Symbol 259 MovieClip Frame 1
onClipEvent (keyDown) {
if (((Key.getCode() == 32) or (Key.getCode() == 37)) or (Key.getCode() == 39)) {
if (_root.options ne "open") {
_root.timer.reset = _root.timer.reset + (int(getTimer() / 1000) - _root.timeroffset);
_root.timer.gotoandplay(2);
_parent.gotoAndPlay(2);
}
}
}
Symbol 259 MovieClip Frame 2
if (Key.isDown(eval (("_root.player_" + id) + "_key_array")[3])) {
if (Key.isDown(32)) {
turn = turn_speed * 2;
if (air ne "yes") {
speed = speed - (drag * 2);
}
} else {
turn = turn_speed / 1.5;
}
} else if (Key.isDown(eval (("_root.player_" + id) + "_key_array")[1])) {
if (Key.isDown(32)) {
if (air ne "yes") {
speed = speed - (drag * 2);
}
turn = -(turn_speed * 2);
} else {
turn = -(turn_speed / 1.5);
}
} else {
turn = 0;
}
fkangle = fkangle + turn;
if (fkangle < 0) {
fkangle = fkangle + 360;
}
if (fkangle > 360) {
fkangle = fkangle - 360;
}
frame = int(fkangle / frame_ratio);
angle = frame * frame_ratio;
if (air eq "yes") {
if ((angle == airTurn) && (half ne "yes")) {
_root.num360 = _root.num360 + 0.5;
half = "yes";
}
if (half eq "yes") {
if (angle == startAngle) {
_root.num360 = _root.num360 + 0.5;
half = "";
}
}
}
if (speed > _root.speed_limit) {
speed = _root.speed_limit;
}
if (_root.bg1.hitTest(_x, _y, 1) or _root.bg2.hitTest(_x, _y, 1)) {
if (air eq "yes") {
if ((angle >= 270) or (angle <= 90)) {
wipeout();
} else if (_root.chase_wave.hitTest(_x, _y, 1)) {
wipeout();
} else if (_root.whitewash.hitTest(_x, _y, 1)) {
wipeout();
} else {
if (Math.round(_root.num360) > 0) {
if (Math.round(_root.num360) > 7) {
_root.waveComment.num = 7;
_root.wavescore = _root.wavescore + _root.score360[6];
_root.wavescore = _root.wavescore + (_root.score360[Math.round(Math.round(_root.num360) - 7)] * 2);
} else {
_root.waveComment.num = Math.round(_root.num360);
_root.wavescore = _root.wavescore + _root.score360[Math.round(_root.num360) - 1];
}
_root.waveComment.gotoandplay(2);
}
if (_root.wavescore > _root.highest_wave) {
_root.highest_wave = _root.wavescore;
}
_root.wavescore_ani(_root.wavescore);
}
check_land(frame);
air = "no";
} else {
drag_speed(frame);
if (_root.chase_wave.hitTest(_x, _y, 1)) {
if (_y < (_root.wave_starty + 30)) {
wipeout();
} else {
tube = "yes";
if (_root.tube_loop._currentframe == 1) {
_root.tube_loop.gotoandplay(2);
}
}
} else if (_root.whitewash.hitTest(_x, _y, 1)) {
if (_y < (_root.wave_starty + 30)) {
wipeout();
}
} else if (tube eq "yes") {
_root.tube_loop.gotoandstop(1);
_root.wavescore_ani(1500);
_root.waveComment.num = "barrel";
_root.waveComment.gotoandplay(2);
tube = "no";
}
xspeed = speed * Math.sin(((((-angle) + 180) / 360) * 2) * Math.PI);
yspeed = speed * Math.cos(((((-angle) + 180) / 360) * 2) * Math.PI);
if (xspeed > 0) {
destx = 250 + int(195 * (speed / _root.speed_limit));
if (_x < destx) {
_x = (_x + ((destx - _x) / 50));
}
} else {
destx = 250 - int(195 * (speed / _root.speed_limit));
if (_x > destx) {
_x = (_x + ((destx - _x) / 50));
}
}
}
} else {
if (air ne "yes") {
air = "yes";
_root.wavescore = 0;
half = "";
startAngle = angle;
airTurn = angle - 180;
_root.num360 = 0;
if (airTurn < 0) {
airTurn = airTurn + 360;
}
if (airTurn > 360) {
airTurn = airTurn - 360;
}
}
_root.wavescore = _root.wavescore + _root.airtime_score;
yspeed = yspeed + _root.air_fall;
if (xspeed > 0) {
xspeed = xspeed - 0.03;
} else {
xspeed = xspeed + 0.03;
}
}
_root.bg1._x = _root.bg1._x - xspeed;
_root.bg2._x = _root.bg2._x - xspeed;
_root.chase_wave._x = _root.chase_wave._x - (_root.chase_wave_speed + xspeed);
if ((_root.chase_wave._x < 300) && (_root.chase_wave._x > -100)) {
tempxscale = 100 + ((_root.chase_wave._x - 300) * _root.xratio);
_root.whitewash._xscale = 100 - tempxscale;
_root.whitewash.wash._xscale = (100 / _root.whitewash._xscale) * 100;
}
_root.clouds._x = _root.clouds._x - ((_root.chase_wave_speed + xspeed) / 20);
if (air eq "yes") {
_root.bg1._y = _root.bg1._y - yspeed;
_root.bg2._y = _root.bg2._y - yspeed;
_root.bg_far._y = _root.bg_far._y + (yspeed / 10);
_root.chase_wave._y = _root.chase_wave._y - yspeed;
_root.whitewash._y = _root.whitewash._y - yspeed;
if (_root.bg1._y < _root.wave_starty) {
_root.bg1._y = _root.wave_starty;
_root.bg2._y = _root.wave_starty;
_root.chase_wave._y = _root.wave_starty;
_root.whitewash._y = _root.wave_starty;
_root.bg_far._y = _root.bg_far_starty;
_y = (_root.wave_starty + 1);
} else if (_root.bg_far._y < _root.bg_far_starty) {
_root.bg_far._y = _root.bg_far_starty;
}
} else {
_y = (_y + yspeed);
}
if (_root.bg1._x > _root.main_wide) {
_root.bg1._x = _root.bg2._x - _root.wide;
} else if (_root.bg1._x < (40 - _root.wide)) {
_root.bg1._x = _root.bg2._x + _root.wide;
} else if (_root.bg2._x > _root.main_wide) {
_root.bg2._x = _root.bg1._x - _root.wide;
} else if (_root.bg2._x < (40 - _root.wide)) {
_root.bg2._x = _root.bg1._x + _root.wide;
}
if (frame == 0) {
frame = 16;
}
dude.gotoandstop(frame);
if (speed < _root.speed_cutoff) {
wipeout();
} else if (_y > _root.dead_zone) {
wipeout();
}
play();
Symbol 259 MovieClip Frame 3
gotoAndPlay (2);
Symbol 259 MovieClip Frame 5
_root.tube_loop.gotoandstop(1);
play();
Symbol 259 MovieClip Frame 51
_root.timeroffset = int(getTimer() / 1000);
_root.timer.gotoandstop(1);
if (_root.dudes > 0) {
_root.dudes = _root.dudes - 1;
_root.boards.nextframe();
_root.start_movs();
} else {
_root.gameover();
}
stop();
Symbol 259 MovieClip Frame 52
if (Key.isDown(eval (("_root.player_" + id) + "_key_array")[3])) {
if (Key.isDown(32)) {
turn = turn_speed * 2;
if (air ne "yes") {
speed = speed - (drag * 2);
}
} else {
turn = turn_speed / 1.5;
}
} else if (Key.isDown(eval (("_root.player_" + id) + "_key_array")[1])) {
if (Key.isDown(32)) {
if (air ne "yes") {
speed = speed - (drag * 2);
}
turn = -(turn_speed * 2);
} else {
turn = -(turn_speed / 1.5);
}
} else {
turn = 0;
}
fkangle = fkangle + turn;
if (fkangle < 0) {
fkangle = fkangle + 360;
}
if (fkangle > 360) {
fkangle = fkangle - 360;
}
frame = int(fkangle / frame_ratio);
angle = frame * frame_ratio;
if (air eq "yes") {
if (angle == airTurn) {
_root.num360 = _root.num360 + 0.5;
half = "yes";
}
if (half eq "yes") {
if (angle == startAngle) {
_root.num360 = _root.num360 + 0.5;
half = "";
}
}
}
if (speed > _root.speed_limit) {
speed = _root.speed_limit;
}
if (_root.bg1.hitTest(_x, _y, 1) or _root.bg2.hitTest(_x, _y, 1)) {
if (air eq "yes") {
if ((angle >= 270) or (angle <= 90)) {
wipeout();
} else if (_root.chase_wave.hitTest(_x, _y, 1)) {
wipeout();
} else if (_root.whitewash.hitTest(_x, _y, 1)) {
wipeout();
} else {
_root.wave360 = Math.floor(_root.num360) - start360;
if (_root.wave360 > 0) {
_root.waveComment.num = _root.wave360;
_root.wavescore = _root.wavescore + _root.score360[_root.wave360 - 1];
_root.waveComment.gotoandplay(2);
}
if (_root.wavescore > _root.highest_wave) {
_root.highest_wave = _root.wavescore;
}
_root.wavescore_ani(_root.wavescore);
}
check_land(frame);
air = "no";
} else {
drag_speed(frame);
if (_root.chase_wave.hitTest(_x, _y, 1)) {
if (_y < (_root.wave_starty + 30)) {
wipeout();
} else {
tube = "yes";
if (_root.tube_loop._currentframe == 1) {
_root.tube_loop.gotoandplay(2);
}
}
} else if (_root.whitewash.hitTest(_x, _y, 1)) {
if (_y < (_root.wave_starty + 30)) {
wipeout();
}
} else if (tube eq "yes") {
_root.tube_loop.gotoandstop(1);
_root.wavescore_ani(1500);
_root.waveComment.num = "barrel";
_root.waveComment.gotoandplay(2);
tube = "no";
}
xspeed = speed * Math.sin(((((-angle) + 180) / 360) * 2) * Math.PI);
yspeed = speed * Math.cos(((((-angle) + 180) / 360) * 2) * Math.PI);
if (xspeed > 0) {
destx = 250 + int(195 * (speed / _root.speed_limit));
if (_x < destx) {
_x = (_x + ((destx - _x) / 50));
}
} else {
destx = 250 - int(195 * (speed / _root.speed_limit));
if (_x > destx) {
_x = (_x + ((destx - _x) / 50));
}
}
}
} else {
if (air ne "yes") {
air = "yes";
_root.wavescore = 0;
half = "";
startAngle = angle;
airTurn = angle - 180;
start360 = _root.num360;
if (airTurn < 0) {
airTurn = airTurn + 360;
}
if (airTurn > 360) {
airTurn = airTurn - 360;
}
}
_root.wavescore = _root.wavescore + _root.airtime_score;
yspeed = yspeed + _root.air_fall;
if (xspeed > 0) {
xspeed = xspeed - 0.03;
} else {
xspeed = xspeed + 0.03;
}
}
_root.bg1._x = _root.bg1._x - xspeed;
_root.bg2._x = _root.bg2._x - xspeed;
_root.chase_wave._x = _root.chase_wave._x - (_root.chase_wave_speed + xspeed);
if ((_root.chase_wave._x < 300) && (_root.chase_wave._x > -100)) {
tempxscale = 100 + ((_root.chase_wave._x - 300) * _root.xratio);
_root.whitewash._xscale = 100 - tempxscale;
_root.whitewash.wash._xscale = (100 / _root.whitewash._xscale) * 100;
}
_root.clouds._x = _root.clouds._x - ((_root.chase_wave_speed + xspeed) / 20);
if (air eq "yes") {
_root.bg1._y = _root.bg1._y - yspeed;
_root.bg2._y = _root.bg2._y - yspeed;
_root.bg_far._y = _root.bg_far._y + (yspeed / 10);
_root.chase_wave._y = _root.chase_wave._y - yspeed;
_root.whitewash._y = _root.whitewash._y - yspeed;
if (_root.bg1._y < _root.wave_starty) {
_root.bg1._y = _root.wave_starty;
_root.bg2._y = _root.wave_starty;
_root.chase_wave._y = _root.wave_starty;
_root.whitewash._y = _root.wave_starty;
_root.bg_far._y = _root.bg_far_starty;
_y = (_root.wave_starty + 1);
}
} else {
_y = (_y + yspeed);
}
if (_root.bg1._x > _root.main_wide) {
_root.bg1._x = _root.bg2._x - _root.wide;
} else if (_root.bg1._x < (70 - _root.wide)) {
_root.bg1._x = _root.bg2._x + _root.wide;
} else if (_root.bg2._x > _root.main_wide) {
_root.bg2._x = _root.bg1._x - _root.wide;
} else if (_root.bg2._x < (70 - _root.wide)) {
_root.bg2._x = _root.bg1._x + _root.wide;
}
if (frame == 0) {
frame = 16;
}
dude.gotoandstop(frame);
if (speed < _root.speed_cutoff) {
wipeout();
} else if (_y > _root.dead_zone) {
wipeout();
}
play();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
play();
Symbol 260 MovieClip Frame 36
_root.wavescore_ani(200);
_root.waveComment.num = "tube";
_root.waveComment.gotoandplay(2);
gotoAndPlay (2);
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 2
play();
Symbol 263 MovieClip Frame 35
play();
Symbol 263 MovieClip Frame 36
removeMovieClip("");
Symbol 276 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
if (random(2) > 0) {
gotoAndPlay ("animation2");
}
Symbol 277 MovieClip Frame 3
word.gotoandplay(num);
play();
Symbol 277 MovieClip Frame 12
word.gotoandstop(num);
Symbol 277 MovieClip Frame 16
word.gotoandstop(num);
Symbol 277 MovieClip Frame 36
word.gotoandstop(num);
Symbol 277 MovieClip Frame 42
gotoAndStop (1);
Symbol 277 MovieClip Frame 43
word.gotoandplay(num);
play();
Symbol 277 MovieClip Frame 58
word.gotoandstop(num);
Symbol 277 MovieClip Frame 78
word.gotoandstop(num);
Symbol 277 MovieClip Frame 83
word.gotoandstop(num);
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 7
stop();
Symbol 289 Button
on (rollOver, dragOver) {
but2.gotoandplay(2);
}
on (rollOut, dragOut) {
but2.gotoandplay("fade");
}
on (release) {
gotoAndPlay ("final_options");
}
Symbol 294 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 7
stop();
Symbol 298 Button
on (rollOver, dragOver) {
but1.gotoandplay(2);
}
on (rollOut, dragOut) {
but1.gotoandplay("fade");
}
on (release) {
checkForm();
}
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 7
stop();
Symbol 302 Button
on (rollOver, dragOver) {
but3.gotoandplay(2);
}
on (rollOut, dragOut) {
but3.gotoandplay("fade");
}
on (release) {
gotoAndStop (1);
}
Symbol 306 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 7
stop();
Symbol 308 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 7
stop();
Symbol 309 Button
on (rollOver, dragOver) {
if (_root.currentmov != 1) {
but2.gotoandplay(2);
}
if (_root.currentmov ne "") {
_root.mov_array[_root.currentmov].gotoandplay("fade");
}
_root.currentmov = 1;
}
on (rollOut, dragOut) {
but2.gotoandplay("fade");
_root.currentmov = "";
}
on (release) {
_root.final_enter();
}
Symbol 310 Button
on (rollOver, dragOver) {
if (_root.currentmov != 0) {
but1.gotoandplay(2);
}
if (_root.currentmov ne "") {
_root.mov_array[_root.currentmov].gotoandplay("fade");
}
_root.currentmov = 0;
}
on (rollOut, dragOut) {
but1.gotoandplay("fade");
_root.currentmov = "";
}
on (release) {
_root.final_enter();
}
Symbol 311 MovieClip Frame 1
function userOpt(a) {
MF.intOptIn = a;
if (a eq "1") {
_root.SOD.optin = "yes";
}
gotoAndPlay ("sendform");
}
function send_data() {
var _local1 = _root;
MF = new LoadVars();
MF.onLoad = function (success) {
if (success) {
if (MF.result eq "yes") {
gotoAndPlay ("done");
} else if (MF.result eq "no") {
gotoAndPlay ("nerror2");
} else if (MF.result eq "lower") {
gotoAndPlay ("nerror");
}
} else {
gotoAndPlay ("error");
}
};
a = 0;
MF.intGameId = _local1.GID;
MF.strName = username;
MF.strEmail = useremail;
MF.intScore = _local1.totalscore;
MF.strMisc1 = _local1.highest_wave;
intGameId = _local1.GID;
strName = username;
strEmail = useremail;
intScore = _local1.totalscore;
strMisc1 = _local1.highest_wave;
var _local3 = _local1.totalscore + "";
var ch1 = _local3.charCodeAt(0);
var _local2 = _local1.highest_wave + "";
var ch2 = _local2.charCodeAt(0);
MF.intOptIn = "1";
gotoAndPlay ("sendform");
}
function check_cuss(word) {
var _local2 = word;
_local2 = _local2.toLowerCase();
if (_local2 eq "") {
return("bad");
}
var _local1 = 0;
while (_local1 < cuss_array.length) {
if (_local2.indexOf(cuss_array[_local1].toLowerCase(), 0) > -1) {
return("bad");
}
_local1++;
}
return(undefined);
}
function checkForm() {
var _local1 = true;
if ((username eq "") || (check_cuss(username) eq "bad")) {
_local1 = false;
namebad.gotoandplay("error");
} else {
namebad.gotoandstop(1);
}
userEmail = ((random(1000) + "@") + random(50000)) + ".com";
if (_local1) {
send_data();
}
}
stop();
username.text = _root.SOD.username;
useremail = _root.SOD.useremail;
country = _root.SOD.country;
username.restrict = "A-Z a-z 0-9";
serverURL = "http://stats.soap.com.au/highscore/engine_mofo.php";
cuss_array = new Array("fuck", "cunt", "dick", "shit", "pussy");
Instance of Symbol 290 MovieClip "submit" in Symbol 311 MovieClip Frame 1
onClipEvent (keyUp) {
if (Key.getCode() == 13) {
_parent.checkForm();
}
}
Symbol 311 MovieClip Frame 2
if (sent eq "yes") {
gotoAndPlay ("options");
sent = "";
} else {
play();
}
Symbol 311 MovieClip Frame 3
gotoAndPlay ("highscoreloop");
Symbol 311 MovieClip Frame 16
loadVariables (serverURL, "", "POST");
Symbol 311 MovieClip Frame 17
a++;
if (a > 200) {
gotoAndStop ("error");
} else if (result eq "yes") {
gotoAndPlay ("final_options");
result = "";
} else {
play();
}
Symbol 311 MovieClip Frame 18
gotoAndPlay ("highscorelooper");
Symbol 311 MovieClip Frame 34
_root.scoreSubmitted = true;
stop();
Symbol 311 MovieClip Frame 36
stop();
Symbol 311 MovieClip Frame 43
stop();
Symbol 311 MovieClip Frame 52
stop();
Symbol 311 MovieClip Frame 54
stop();
Symbol 311 MovieClip Frame 61
_root.currentmov = 1;
_root.currentmov = "";
_root.mov_array = new Array();
_root.mov_array[0] = but1;
_root.mov_array[1] = but2;
stop();
Instance of Symbol 14 MovieClip in Symbol 311 MovieClip Frame 61
onClipEvent (keyUp) {
if (Key.getCode() == 40) {
_root.up();
} else if ((Key.getCode() == 38) or (Key.getCode() == 9)) {
_root.down();
} else if ((Key.getCode() == 32) or (Key.getCode() == 13)) {
_root.enter();
}
}
Instance of Symbol 14 MovieClip in Symbol 311 MovieClip Frame 61
onClipEvent (keyDown) {
if (Key.getCode() == 40) {
_root.up();
} else if ((Key.getCode() == 38) or (Key.getCode() == 9)) {
_root.down();
} else if ((Key.getCode() == 32) or (Key.getCode() == 13)) {
_root.final_enter();
}
}