Frame 1
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
loaderbox._yscale = percent;
if (percent == 100) {
gotoAndPlay (3);
} else {
play();
}
Instance of Symbol 4 MovieClip "loaderbox" in Frame 1
onClipEvent (load) {
_yscale = 1;
}
Frame 2
gotoAndPlay (1);
Frame 3
_global.trackingClientID = 20;
_global.trackingProjectID = 1;
_global.getTrackingSO = function () {
var _local1 = SharedObject.getLocal(_global.SOName, "/");
return(_local1);
};
_global.getTrackingSOData = function () {
return(getTrackingSO().data);
};
_global.siteStartTime = getTimer();
_global.siteEVTTime = getTimer();
_global.SOName = (("siteTrackingStats_" + trackingClientID) + "_") + trackingProjectID;
if (_global.getTrackingSO().data.userID == undefined) {
returnVisitor = 0;
_global.getTrackingSO().data.userID = random(9999999999);
} else {
returnVisitor = 1;
_global.getTrackingSO().data.userID = random(9999999999);
}
_global.trackSystemInfo = function () {
var _local1 = _global;
sendSystemInfoLV = new LoadVars();
var _local2 = _local1.trackingClientID;
var _local3 = _local1.trackingProjectID;
sendSystemInfoLV.clientId = _local2;
sendSystemInfoLV.projectId = _local3;
sendSystemInfoLV.version = System.capabilities.version;
sendSystemInfoLV.manufacturer = System.capabilities.manufacturer;
sendSystemInfoLV.os = System.capabilities.os;
sendSystemInfoLV.screenResolutionX = System.capabilities.screenResolutionX;
sendSystemInfoLV.screenResolutionY = System.capabilities.screenResolutionY;
sendSystemInfoLV.avHardwareDisable = System.capabilities.avHardwareDisable;
sendSystemInfoLV.pixelAspectRatio = System.capabilities.pixelAspectRatio;
sendSystemInfoLV.screenDPI = System.capabilities.screenDPI;
sendSystemInfoLV.language = System.capabilities.language;
sendSystemInfoLV.hasAudioEncoder = System.capabilities.hasAudioEncoder;
sendSystemInfoLV.hasVideoEncoder = System.capabilities.hasVideoEncoder;
sendSystemInfoLV.hasAccessibility = System.capabilities.hasAccessibility;
if (_url.substring(0, 4) == "http") {
sendSystemInfoLV.url = _url;
} else {
sendSystemInfoLV.url = "local";
}
sendSystemInfoLV.onLoad = function (success) {
if (_global.debugSiteStats) {
if (!success) {
}
}
};
sendSystemInfoLV.sendAndLoad("http://www.soap.com.au/php_dev/sitestats/usrinfo.php", sendSystemInfoLV, "POST");
sendRefererInfoLV = new LoadVars();
sendRefererInfoLV.clientid = _local2;
sendRefererInfoLV.projectid = _local3;
var refererUrl = referer;
sendRefererInfoLV.referrer = referer;
sendRefererInfoLV.onLoad = function (success) {
if (_global.debugSiteStats) {
if (!success) {
}
}
};
sendRefererInfoLV.sendAndLoad("http://www.soap.com.au/php_dev/pgtrack/reftrack.php", sendRefererInfoLV, "POST");
};
_global.trackSite = function (actionType) {
var _local1 = _global;
var clientID = _local1.trackingClientID;
var projectID = _local1.trackingProjectID;
var actionType = actionType;
var _local3 = arguments;
_local3.shift();
var _local2 = 0;
switch (actionType) {
case "impression" :
break;
case "click" :
break;
case "over" :
break;
case "durationFromInit" :
_local2 = Math.ceil((getTimer() - _local1.siteStartTime) / 1000);
break;
case "durationEvent" :
_local2 = Math.ceil((getTimer() - _local1.siteEVTTime) / 1000);
break;
default :
actionType = "";
}
var pageID = _local3.join(",");
sendTrackInfoLV = new LoadVars();
sendTrackInfoLV.return = returnVisitor;
sendTrackInfoLV.onLoad = function (success) {
var _local1 = this;
if (_global.debugSiteStats) {
if (!success) {
}
}
};
sendTrackInfoLV.clientId = clientID;
sendTrackInfoLV.projectId = projectID;
sendTrackInfoLV.actionType = actionType;
sendTrackInfoLV.pageId = pageID;
sendTrackInfoLV.time = _local2;
sendTrackInfoLV.user = _local1.getTrackingSOData().userID;
sendTrackInfoLV.sendAndLoad("http://www.soap.com.au/php_dev/pgtrack/pgtrack.php", sendTrackInfoLV, "POST");
if (_local1.debugSiteStats) {
}
};
_global.debugSiteStats = false;
_global.trackSystemInfo();
Frame 4
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 5
SOT = "ZOMBIESURF1_0";
so = SharedObject.getLocal(SOT, "/");
SOD = so.data;
_quality = "high";
_root.instructions_open = "closed";
_root.highscore_open = "closed";
serverURL = "http://www.soapcreative.com/work/fox/sy/portal.php";
GID = 47;
play();
Frame 60
function down() {
skel.gotoandstop(1);
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) {
currentmov = 0;
}
mov_array[currentmov].gotoandplay(2);
} else {
currentmov = 0;
mov_array[currentmov].gotoandplay(2);
}
}
function enter() {
if (currentmov == 0) {
surfID = 1;
gotoAndPlay (62);
} else if (currentmov == 1) {
surfID = 2;
gotoAndPlay (62);
} else if (currentmov == 2) {
instructions_open = "yes";
instructions.gotoandplay(2);
} else if (currentmov == 3) {
highscore_open = "yes";
highscore_display.gotoandplay(2);
}
}
stop();
mov_array = new Array();
mov_array[0] = but_luke;
mov_array[1] = but_shawnee;
mov_array[2] = but_instruct;
mov_array[3] = but_highs;
Instance of Symbol 42 MovieClip in Frame 60
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") {
instructions.gotoandplay("fade");
} else if (_root.highscore_open eq "yes") {
highscore_display.gotoandplay("fade");
_root.gotoandstop("main_menu_buttons");
}
}
}
Frame 62
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) {
gotoAndPlay ("start");
} else if (currentmov == 0) {
gotoAndPlay (3);
} 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 (3);
}
}
_global.trackSite("impression", "start_game");
_quality = game_quality;
whitewash._visible = 0;
chase_wave_speed = 8;
xratio = 0.25;
chase_wave_startx = 1000;
score360 = new Array(500, 1250, 2500, 5000, 10000, 21000, 51000, 80000, 100000);
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 = 520;
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 146 MovieClip "whitewash" in Frame 62
onClipEvent (load) {
_xscale = 0;
}
Instance of Symbol 178 MovieClip "timer" in Frame 62
onClipEvent (load) {
a = 1;
}
Frame 67
start_movs();
stop();
Instance of Symbol 262 MovieClip "surfer" in Frame 67
onClipEvent (keyDown) {
if (Key.getCode() == 81) {
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 74
_global.trackSite("impression", "gameover");
Frame 75
this.gotoAndPlay("show_result");
Frame 76
this.gotoAndPlay(_currentframe - 1);
Frame 77
if (totalscore == 0) {
score_panel.gotoandstop("final_options");
} else if (email ne "") {
score_panel.email = email;
score_panel.name = name;
}
Frame 89
stop();
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 9
gotoAndPlay (2);
Symbol 21 MovieClip Frame 8
stop();
skel_hand.gotoandplay(2);
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 9
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 9
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 8
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 8
stop();
Symbol 32 Button
on (rollOver, dragOver) {
if (currentmov != 0) {
mov_array[currentmov].gotoandplay("fade");
mov_array[0].gotoandplay(2);
}
currentmov = 0;
}
on (rollOut, dragOut) {
mov_array[0].gotoandplay("fade");
currentmov = "";
}
on (release) {
enter();
}
Symbol 33 Button
on (rollOver, dragOver) {
if (currentmov != 1) {
mov_array[currentmov].gotoandplay("fade");
mov_array[1].gotoandplay(2);
}
currentmov = 1;
}
on (rollOut, dragOut) {
mov_array[1].gotoandplay("fade");
currentmov = "";
}
on (release) {
enter();
}
Symbol 34 Button
on (rollOver, dragOver) {
if (currentmov != 2) {
mov_array[currentmov].gotoandplay("fade");
mov_array[2].gotoandplay(2);
}
currentmov = 2;
}
on (rollOut, dragOut) {
mov_array[2].gotoandplay("fade");
currentmov = "";
}
on (release) {
enter();
}
Symbol 35 Button
on (rollOver, dragOver) {
if (currentmov != 3) {
mov_array[currentmov].gotoandplay("fade");
mov_array[3].gotoandplay(2);
}
currentmov = 3;
}
on (rollOut, dragOut) {
mov_array[3].gotoandplay("fade");
currentmov = "";
}
on (release) {
enter();
}
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 9
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 6
stop();
Symbol 53 Button
on (release) {
gotoAndPlay ("fade");
}
on (rollOver, dragOver) {
closeB2.gotoandplay(2);
}
on (rollOut, dragOut) {
closeB2.gotoandplay("fade");
}
Symbol 70 MovieClip Frame 12
stop();
Symbol 77 Button
on (release) {
_parent.scNEXT();
}
Symbol 82 Button
on (release) {
_parent.scEND();
}
Symbol 87 Button
on (release) {
_parent.scPREV();
}
Symbol 92 Button
on (release) {
_parent.scSTART();
}
Symbol 94 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
function closeB() {
gotoAndPlay ("fade");
}
function sortHIS(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://www.soapcreative.com/highscoreengine/highscoreXML.php?gameid=" + _root.GID) + "&start=0&count=100";
HIS.load(serverURL);
}
butB.useHandCursor = false;
Symbol 95 MovieClip Frame 18
loadscores();
stop();
Symbol 95 MovieClip Frame 21
function showLIST(off) {
if ((off > 0) && (off < lim)) {
buts.gotoandstop(2);
} else if (off >= lim) {
buts.gotoandstop(3);
} else {
buts.gotoandstop(1);
}
if (lim < 1) {
buts.gotoandstop(4);
}
clearList();
var _local2 = 0;
while (_local2 < 5) {
var _local1 = scLIST.score.duplicateMovieClip("sc_" + _local2, _local2);
_local1._y = 0 + (25 * _local2);
var _local3 = _local2 + off;
_local1.rank = _local3 + 1;
var a = HISA[_local3].pname;
if (a eq "") {
_local1._visible = 0;
return;
}
_local1.pname = a;
_local1.score = HISA[_local3].score;
_local1.wavescore = HISA[_local3].wscore;
_local2++;
}
}
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;
showList(offset);
}
offset = 0;
lim = int(HISA.length / 5) * 5;
scLIST.score._visible = 0;
showList(offset);
Symbol 95 MovieClip Frame 30
stop();
Symbol 95 MovieClip Frame 31
_root.highscore_open = "no";
Symbol 129 Button
on (release) {
_parent.gotoandplay("fade");
}
on (rollOver, dragOver) {
closeB.gotoandplay(2);
}
on (rollOut, dragOut) {
closeB.gotoandplay("fade");
}
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 24
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 2
butB.useHandCursor = false;
Symbol 131 MovieClip Frame 13
_global.trackSite("impression", "view_HS");
menu.gotoandplay(2);
stop();
Symbol 131 MovieClip Frame 14
_root.gotoandstop("main_menu_buttons");
_root.instructions_open = "no";
play();
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 2
play();
Symbol 153 MovieClip Frame 8
stop();
Symbol 153 MovieClip Frame 9
play();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
play();
Symbol 155 MovieClip Frame 8
stop();
Symbol 155 MovieClip Frame 9
play();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
play();
Symbol 157 MovieClip Frame 8
stop();
Symbol 157 MovieClip Frame 9
play();
Symbol 160 MovieClip Frame 55
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 2
play();
Symbol 161 MovieClip Frame 15
_root.currentmov = 0;
_root.mov_array = new Array();
_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 42 MovieClip in Symbol 161 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 161 MovieClip Frame 23
_root.options = "closed";
Symbol 161 MovieClip Frame 24
gotoAndStop (1);
_root.options_enter();
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 2
play();
Symbol 164 MovieClip Frame 102
_root.gameover();
Symbol 172 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 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 178 MovieClip Frame 3
gotoAndPlay (2);
Symbol 191 MovieClip Frame 1
stop();
gotoAndStop(_root.surfID);
Symbol 224 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 1
stop();
gotoAndStop(_root.surfID);
Symbol 261 MovieClip Frame 1
function setEXP(mc) {
var _local1 = this;
var _local2 = mc;
_local2.fs = -(random(25) - 8);
_local2.rs = random(20);
if (_local2.rs == 0) {
_local2.rs = 9;
}
_local2.xs = random(50) - 25;
_local2.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y + _local1.fs;
_local1._x = _local1._x + _local1.xs;
_local1.fs = _local1.fs + 0.7;
_local1._rotation = _local1._rotation + _local1.rs;
};
}
gotoAndStop(_root.surfID);
setEXP(p1);
setEXP(p2);
setEXP(p3);
setEXP(p4);
setEXP(p5);
stop();
Symbol 262 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(typ) {
var _local1 = _root;
if (typ == "slow") {
_local1.waveComment.num = "slow";
} else {
_local1.waveComment.num = 9 + random(11);
}
_local1.wipeout = "yes";
_local1.waveComment.gotoandplay(2);
gotoAndPlay ("win");
}
PI = Math.PI;
_root.whitewash._visible = 1;
id = 1;
tube = "no";
_root.wipeout = "no";
_root.whitewash.themask._xscale = 1;
drag = 0.055;
turn_speed = 9.47368421052632;
frame_ratio = 22.5;
radius = _width / 2;
fkangle = 247.5;
stop();
Instance of Symbol 191 MovieClip "dude" in Symbol 262 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 262 MovieClip Frame 2
if (Key.isDown(39)) {
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(37)) {
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) > 8) {
_root.waveComment.num = 8;
_root.wavescore = _root.wavescore + _root.score360[8];
_root.wavescore = _root.wavescore + (_root.score360[Math.round(Math.round(_root.num360) - 8)] * 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 + 40)) {
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 + 40)) {
wipeout();
}
} else if (tube eq "yes") {
_root.tube_loop.gotoandstop(1);
_root.wavescore_ani(1200);
_root.waveComment.num = "barrel";
_root.waveComment.gotoandplay(2);
tube = "no";
}
xspeed = speed * Math.sin(((((-angle) + 180) / 360) * 2) * PI);
yspeed = speed * Math.cos(((((-angle) + 180) / 360) * 2) * 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)) {
var tempxscale = (100 + ((_root.chase_wave._x - 300) * _root.xratio));
_root.whitewash.themask._xscale = 100 - tempxscale;
}
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 (xspeed < 0) {
if (_root.bg1._x > _root.main_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 < (-_root.wide)) {
_root.bg2._x = _root.bg1._x + _root.wide;
} else if (_root.bg1._x < (-_root.wide)) {
_root.bg1._x = _root.bg2._x + _root.wide;
}
if (frame == 0) {
frame = 16;
}
dude.dude.gotoandstop(frame);
if (speed < _root.speed_cutoff) {
wipeout("slow");
} else if (_y > _root.dead_zone) {
wipeout();
}
play();
Symbol 262 MovieClip Frame 3
gotoAndPlay (2);
Symbol 262 MovieClip Frame 5
_root.tube_loop.gotoandstop(1);
play();
Symbol 262 MovieClip Frame 79
_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 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 2
play();
Symbol 263 MovieClip Frame 64
_root.wavescore_ani(1000);
_root.waveComment.num = "tube";
_root.waveComment.gotoandplay(2);
gotoAndPlay (2);
Symbol 267 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 2
play();
Symbol 267 MovieClip Frame 35
play();
Symbol 267 MovieClip Frame 36
removeMovieClip("");
Symbol 271 MovieClip Frame 1
stop();
gotoAndStop(random(2) + 1);
Symbol 274 MovieClip Frame 1
stop();
gotoAndStop(random(2) + 1);
Symbol 277 MovieClip Frame 1
stop();
gotoAndStop(random(2) + 1);
Symbol 296 MovieClip Frame 1
stop();
gotoAndStop(random(2) + 1);
Symbol 298 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 2
gotoAndPlay("animation" + (random(3) + 1));
Symbol 299 MovieClip Frame 3
word.gotoandplay(num);
play();
Symbol 299 MovieClip Frame 12
word.gotoandstop(num);
Symbol 299 MovieClip Frame 16
word.gotoandstop(num);
Symbol 299 MovieClip Frame 36
word.gotoandstop(num);
Symbol 299 MovieClip Frame 42
gotoAndStop (1);
Symbol 299 MovieClip Frame 43
word.gotoandplay(num);
play();
Symbol 299 MovieClip Frame 58
word.gotoandstop(num);
Symbol 299 MovieClip Frame 78
word.gotoandstop(num);
Symbol 299 MovieClip Frame 83
word.gotoandstop(num);
Symbol 299 MovieClip Frame 84
gotoAndStop (1);
Symbol 299 MovieClip Frame 85
word.gotoandplay(num);
play();
Symbol 299 MovieClip Frame 94
word.gotoandstop(num);
Symbol 299 MovieClip Frame 96
word.gotoandstop(num);
Symbol 299 MovieClip Frame 98
word.gotoandstop(num);
Symbol 299 MovieClip Frame 118
word.gotoandstop(num);
Symbol 299 MovieClip Frame 123
word.gotoandstop(num);
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 7
stop();
Symbol 310 Button
on (rollOver, dragOver) {
but2.gotoandplay(2);
}
on (rollOut, dragOut) {
but2.gotoandplay("fade");
}
on (release) {
gotoAndPlay ("final_options");
}
Symbol 318 Button
on (release) {
_root.viewPP();
}
Symbol 321 Button
on (release) {
_root.viewTC();
}
Symbol 323 Button
on (release) {
getURL ("javascript:popprivate()");
}
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 18
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 7
stop();
Symbol 332 Button
on (rollOver, dragOver) {
but1.gotoandplay(2);
}
on (rollOut, dragOut) {
but1.gotoandplay("fade");
}
on (release) {
checkForm();
}
Symbol 335 Button
on (press) {
gotoAndStop (3);
}
Symbol 339 Button
on (release) {
_parent.country = "AUSTRALIA/NZ";
gotoAndPlay (2);
}
Symbol 343 Button
on (release) {
_parent.country = "EUROPE";
gotoAndPlay (2);
}
Symbol 346 Button
on (release) {
_parent.country = "ASIA";
gotoAndPlay (2);
}
Symbol 349 Button
on (release) {
_parent.country = "REST OF WORLD";
gotoAndPlay (2);
}
Symbol 352 MovieClip Frame 2
stop();
if (_parent.country eq "") {
txt = "Select";
} else {
txt = _parent.country;
}
Symbol 352 MovieClip Frame 4
play();
Symbol 352 MovieClip Frame 20
stop();
Symbol 358 Button
on (release) {
userOpt("1");
}
Symbol 360 Button
on (release) {
userOpt("0");
}
Symbol 366 MovieClip Frame 1
gotoAndStop(random(4) + 1);
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 7
stop();
Symbol 369 Button
on (rollOver, dragOver) {
but3.gotoandplay(2);
}
on (rollOut, dragOut) {
but3.gotoandplay("fade");
}
on (release) {
gotoAndStop (1);
}
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 7
stop();
Symbol 376 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 7
stop();
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 7
stop();
Symbol 379 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 380 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 381 Button
on (rollOver, dragOver) {
if (_root.currentmov != 2) {
but3.gotoandplay(2);
}
if (_root.currentmov ne "") {
_root.mov_array[_root.currentmov].gotoandplay("fade");
}
_root.currentmov = 2;
}
on (rollOut, dragOut) {
but3.gotoandplay("fade");
_root.currentmov = "";
}
on (release) {
_root.final_enter();
}
Symbol 382 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.text;
_local1.SOD.username = username.text;
_local1.SOD.useremail = useremail;
MF.strEmail = useremail;
MF.intScore = _local1.totalscore;
MF.strMisc1 = _local1.highest_wave;
_local1.SOD.country = country;
MF.strMisc2 = country;
var _local3 = _local1.totalscore + "";
var ch1 = _local3.charCodeAt(0);
var _local2 = _local1.highest_wave + "";
var ch2 = _local2.charCodeAt(0);
MF.strMisc4 = (((((ch1 + " : ") + _local3.length) + " | ") + ch2) + " : ") + _local2.length;
if (_local1.surfID == 1) {
MF.strMisc3 = "Luke";
} else {
MF.strMisc3 = "Shawnee";
}
if (_local1.SOD.optin ne "yes") {
gotoAndPlay ("askoptin");
} else {
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.text eq "") || (check_cuss(username.text) eq "bad")) {
_local1 = false;
usernamebg.gotoandplay("error");
} else {
usernamebg.gotoandstop(1);
}
userEmail = _root.chkWWW(useremail);
if ((useremail eq "") || (!_root.chkEmail(useremail))) {
_local1 = false;
useremailbg.gotoandplay("error");
} else {
useremailbg.gotoandstop(1);
}
if (country eq "") {
_local1 = false;
regiondrop.gotoandplay("error");
} else {
regiondrop.gotoandstop(1);
}
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 = _root.serverURL;
cuss_array = new Array("fuck", "cunt", "dick", "shit", "pussy");
Instance of Symbol 311 MovieClip "submit" in Symbol 382 MovieClip Frame 1
onClipEvent (keyUp) {
if (Key.getCode() == 13) {
_parent.checkForm();
}
}
Symbol 382 MovieClip Frame 2
if (sent eq "yes") {
gotoAndPlay ("options");
sent = "";
} else {
play();
}
Symbol 382 MovieClip Frame 3
gotoAndPlay ("highscoreloop");
Symbol 382 MovieClip Frame 13
stop();
Symbol 382 MovieClip Frame 16
MF.sendAndLoad(serverURL, MF, "POST");
_global.trackSite("impression", "submit_score");
Symbol 382 MovieClip Frame 17
a++;
if (a > 200) {
gotoAndStop ("error");
} else {
play();
}
Symbol 382 MovieClip Frame 18
gotoAndPlay ("highscorelooper");
Symbol 382 MovieClip Frame 83
gotoAndPlay ("final_options");
Symbol 382 MovieClip Frame 84
_root.scoreSubmitted = true;
stop();
Symbol 382 MovieClip Frame 86
stop();
Symbol 382 MovieClip Frame 93
stop();
Symbol 382 MovieClip Frame 102
stop();
Symbol 382 MovieClip Frame 104
stop();
Symbol 382 MovieClip Frame 111
_root.currentmov = 1;
_root.currentmov = "";
_root.mov_array = new Array();
_root.mov_array[0] = but1;
_root.mov_array[1] = but2;
_root.mov_array[2] = but3;
stop();
Instance of Symbol 42 MovieClip in Symbol 382 MovieClip Frame 111
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 42 MovieClip in Symbol 382 MovieClip Frame 111
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();
}
}
Symbol 382 MovieClip Frame 122
_root.currentmov = 0;
_root.mov_array = new Array();
_root.mov_array[0] = but1;
_root.mov_array[1] = but2;
Symbol 382 MovieClip Frame 123
highscore_list.gotoandplay(2);
stop();