Frame 1
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
loaderbox._yscale = percent;
if (percent == 100) {
gotoAndPlay (3);
} else {
play();
}
Frame 2
gotoAndPlay (1);
Frame 3
game_quality = "high";
stop();
Frame 43
stop();
Instance of Symbol 30 MovieClip in Frame 43
onClipEvent (keyUp) {
if ((Key.getCode() == 32) or (Key.getCode() == 13)) {
_root.play();
}
}
Frame 44
_quality = "high";
_root.instructions_open = "closed";
_root.highscore_open = "closed";
serverpath = "http://www.hyro.com/games/";
game = "bogan_surf";
pagesize = 200;
play();
Frame 69
front_wavey = front_wave._y;
front_wavelogoy = front_wave.logo._y;
Frame 91
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 ((mov_array.length - 1) < currentmov) {
currentmov = 0;
}
mov_array[currentmov].gotoandplay(2);
} else {
currentmov = 0;
mov_array[currentmov].gotoandplay(2);
}
}
function enter() {
if (currentmov == 0) {
gotoAndPlay (94);
} else if (currentmov == 1) {
gotoAndStop (93);
instructions_open = "yes";
instructions.gotoandplay(2);
} else if (currentmov == 2) {
gotoAndStop (93);
highscore_open = "yes";
highscore_display.gotoandplay(2);
}
}
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 102 MovieClip in Frame 91
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 94
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 (106);
}
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 == 0) {
tellTarget (_root) {
gotoAndPlay ("start");
};
} else if (currentmov == 1) {
gotoAndPlay (44);
} else if (currentmov == 2) {
score_panel.gotoandplay("viewhighscore");
}
}
function options_enter() {
if (currentmov == 0) {
if (surfer._currentframe != 1) {
_root.timer.reset = _root.timer.reset + (int(getTimer() / 1000) - _root.timeroffset);
_root.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 (44);
}
}
_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);
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 (99);
Instance of Symbol 159 MovieClip "whitewash" in Frame 94
onClipEvent (load) {
_xscale = 0;
}
Instance of Symbol 190 MovieClip "timer" in Frame 94
onClipEvent (load) {
a = 1;
}
Frame 99
start_movs();
stop();
Instance of Symbol 236 MovieClip "surfer" in Frame 99
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);
this.gotoAndStop("pause");
}
_root.options_menu.gotoandplay(2);
_root.options = "open";
}
}
}
Frame 106
loadVariables ((((_root.serverpath + "displayscores.asp?method=flash&pagesize=") + pagesize) + "&order=desc&game=") + game, "temp_score_loader");
loadVariables ((((_root.serverpath + "displayscores.asp?method=flash&pagesize=") + pagesize) + "&order=desc&game=") + game, "temp_score_loader");
Frame 107
if (temp_score_loader.loaded eq "yes") {
Set("score" + pagesize, eval ("temp_score_loader.score" + pagesize));
gotoAndPlay (109);
} else {
play();
}
Frame 108
this.gotoAndPlay(_currentframe - 1);
Frame 109
if (totalscore == 0) {
score_panel.gotoandstop("final_options");
} else if (_root.totalscore < eval ("score" + pagesize)) {
score_panel.gotoandstop("final_options");
} else if (email ne "") {
score_panel.email = email;
score_panel.name = name;
}
Frame 121
stop();
Symbol 21 MovieClip Frame 91
_root.play();
stop();
Symbol 21 MovieClip Frame 109
gotoAndPlay (1);
Symbol 30 MovieClip Frame 1
_x = ((_x + random(80)) - 40);
_y = ((_y + random(80)) - 40);
Symbol 30 MovieClip Frame 9
stop();
Symbol 31 Button
on (release) {
play();
}
Symbol 39 MovieClip Frame 1
_x = ((_x + random(80)) - 40);
_y = ((_y + random(80)) - 40);
Symbol 39 MovieClip Frame 9
stop();
Symbol 44 MovieClip Frame 136
num = random(80) - 40;
logo._y = _root.front_wavelogoy - num;
_y = (_root.front_wavey + num);
gotoAndPlay(_currentframe + random(50));
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 52 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 53 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 54 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 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 2
play();
Symbol 63 MovieClip Frame 8
stop();
Symbol 63 MovieClip Frame 9
play();
Symbol 64 Button
on (release) {
_parent.score_index = _parent.score_index + _parent.display_limit;
_parent.duplicate_mov();
}
on (rollOver, dragOver) {
mov.gotoandplay(2);
}
on (rollOut, dragOut) {
mov.gotoandplay("fade");
}
Symbol 65 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 2
play();
Symbol 67 MovieClip Frame 8
stop();
Symbol 67 MovieClip Frame 9
play();
Symbol 68 Button
on (release) {
_parent.score_index = _parent.score_index - _parent.display_limit;
_parent.duplicate_mov();
}
on (rollOver, dragOver) {
mov.gotoandplay(2);
}
on (rollOut, dragOut) {
mov.gotoandplay("fade");
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 1
function clear_scores() {
i = 0;
while (i < _root.page_size) {
delete eval ("name" + i);
i++;
}
}
function duplicate_mov() {
setProperty("score_list", _visible , 0);
if (eval ("name" + ((display_limit + score_index) + 1)) eq "") {
next.gotoAndStop(1);
} else {
next.gotoAndStop(2);
}
if (score_index == 0) {
prev.gotoAndStop(1);
} else {
prev.gotoAndStop(2);
}
var i = 0;
while (i < (display_limit - score_cutoff)) {
var temp_obj = ("score_list_" add i);
var num = ((i + 1) + score_index);
if (eval ("name" + num) eq "") {
remove_mov(i);
return;
}
duplicateMovieClip ("score_list", temp_obj, i);
eval (temp_obj)._y = (score_height + gap) * i;
eval (temp_obj).name = eval ("name" + num);
eval (temp_obj).score = eval ("score" + num);
eval (temp_obj).level = eval ("level" + num);
eval (temp_obj).rank = num;
i++;
}
}
function remove_mov(index) {
i = index;
while (i < display_limit) {
removeMovieClip("score_list_" + i);
i++;
}
}
gap = 0;
display_limit = 5;
score_index = 0;
score_cutoff = 0;
score_height = score_list._height;
score_y = score_list._y;
stop();
Symbol 99 Button
on (release) {
_parent.gotoandplay("fade");
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
score_list.clear_scores();
score_list.score_index = 0;
loadVariables ((((_root.serverpath + "displayscores.asp?method=flash&pagesize=") + _root.pagesize) + "&order=desc&game=") + _root.game, "score_list");
Instance of Symbol 76 MovieClip "score_list" in Symbol 100 MovieClip Frame 2
onClipEvent (data) {
duplicate_mov(5);
}
Symbol 100 MovieClip Frame 45
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 13
menu.gotoandplay(2);
stop();
Symbol 101 MovieClip Frame 14
_root.gotoandstop("main_menu_buttons");
_root.highscore_open = "no";
play();
Symbol 102 MovieClip Frame 1
_x = ((_x + random(80)) - 40);
_y = ((_y + random(80)) - 40);
Symbol 102 MovieClip Frame 9
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 24
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 13
menu.gotoandplay(2);
stop();
Symbol 142 MovieClip Frame 14
_root.gotoandstop("main_menu_buttons");
_root.instructions_open = "no";
play();
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 2
play();
Symbol 167 MovieClip Frame 8
stop();
Symbol 167 MovieClip Frame 9
play();
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 2
play();
Symbol 169 MovieClip Frame 8
stop();
Symbol 169 MovieClip Frame 9
play();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
play();
Symbol 171 MovieClip Frame 8
stop();
Symbol 171 MovieClip Frame 9
play();
Symbol 173 MovieClip Frame 1
_x = ((_x + random(80)) - 40);
_y = ((_y + random(80)) - 40);
Symbol 173 MovieClip Frame 9
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
play();
Symbol 174 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 173 MovieClip in Symbol 174 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 174 MovieClip Frame 23
_root.options = "closed";
Symbol 174 MovieClip Frame 24
gotoAndStop (1);
_root.options_enter();
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 2
play();
Symbol 177 MovieClip Frame 102
_root.gameover();
Symbol 185 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 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 190 MovieClip Frame 3
gotoAndPlay (2);
Symbol 235 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 1
function drag_speed(num) {
if ((num >= 5) and (11 >= num)) {
if ((num == 5) or (num == 11)) {
speed = speed + (drag * 2);
} else {
speed = speed + (drag * 1.5);
}
} else {
speed = speed - drag;
}
}
function check_land(num) {
if ((((num != 9) or (num != 11)) or (num != 5)) or (num != 7)) {
speed = speed + 0.5;
} else if ((num != 6) or (num != 10)) {
speed = speed + 1;
} else {
speed = speed - 1;
}
}
function wipeout() {
var rannum = (random(3) + 1);
_root.waveComment.num = "wipeout" + rannum;
_root.wipeout = "yes";
_root.waveComment.gotoandplay(2);
gotoAndPlay (5);
}
_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 197 MovieClip in Symbol 236 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 236 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 (360 < fkangle) {
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 (_root.speed_limit < speed) {
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 (90 >= angle)) {
wipeout();
} else if (_root.chase_wave.hitTest(_x, _y, 1)) {
wipeout();
} else if (_root.whitewash.hitTest(_x, _y, 1)) {
wipeout();
} else {
if (0 < Math.round(_root.num360)) {
_root.waveComment.num = Math.round(_root.num360);
_root.wavescore = _root.wavescore + _root.score360[Math.round(_root.num360) - 1];
_root.waveComment.gotoandplay(2);
}
if (_root.highest_wave < _root.wavescore) {
_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 (0 < xspeed) {
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 (destx < _x) {
_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 (360 < airTurn) {
airTurn = airTurn - 360;
}
}
_root.wavescore = _root.wavescore + _root.airtime_score;
yspeed = yspeed + _root.air_fall;
if (0 < xspeed) {
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) && (-100 < _root.chase_wave._x)) {
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.main_wide < _root.bg1._x) {
_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.main_wide < _root.bg2._x) {
_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 (_root.dead_zone < _y) {
wipeout();
}
play();
Symbol 236 MovieClip Frame 3
gotoAndPlay (2);
Symbol 236 MovieClip Frame 5
_root.tube_loop.gotoandstop(1);
play();
Symbol 236 MovieClip Frame 51
_root.timeroffset = int(getTimer() / 1000);
_root.timer.gotoandstop(1);
if (0 < _root.dudes) {
_root.dudes = _root.dudes - 1;
_root.boards.nextframe();
_root.start_movs();
} else {
_root.gameover();
}
stop();
Symbol 236 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 (360 < fkangle) {
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 (_root.speed_limit < speed) {
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 (90 >= angle)) {
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 (0 < _root.wave360) {
_root.waveComment.num = _root.wave360;
_root.wavescore = _root.wavescore + _root.score360[_root.wave360 - 1];
_root.waveComment.gotoandplay(2);
}
if (_root.highest_wave < _root.wavescore) {
_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 (0 < xspeed) {
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 (destx < _x) {
_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 (360 < airTurn) {
airTurn = airTurn - 360;
}
}
_root.wavescore = _root.wavescore + _root.airtime_score;
yspeed = yspeed + _root.air_fall;
if (0 < xspeed) {
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) && (-100 < _root.chase_wave._x)) {
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.main_wide < _root.bg1._x) {
_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.main_wide < _root.bg2._x) {
_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 (_root.dead_zone < _y) {
wipeout();
}
play();
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 2
play();
Symbol 237 MovieClip Frame 36
_root.wavescore_ani(200);
_root.waveComment.num = "tube";
_root.waveComment.gotoandplay(2);
gotoAndPlay (2);
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 2
play();
Symbol 240 MovieClip Frame 35
play();
Symbol 240 MovieClip Frame 36
removeMovieClip("");
Symbol 252 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 2
if (0 < random(2)) {
gotoAndPlay (43);
}
Symbol 254 MovieClip Frame 3
word.gotoandplay(num);
play();
Symbol 254 MovieClip Frame 12
word.gotoandstop(num);
Symbol 254 MovieClip Frame 16
word.gotoandstop(num);
Symbol 254 MovieClip Frame 36
word.gotoandstop(num);
Symbol 254 MovieClip Frame 42
gotoAndStop (1);
Symbol 254 MovieClip Frame 43
word.gotoandplay(num);
play();
Symbol 254 MovieClip Frame 58
word.gotoandstop(num);
Symbol 254 MovieClip Frame 78
word.gotoandstop(num);
Symbol 254 MovieClip Frame 83
word.gotoandstop(num);
Symbol 269 Button
on (release) {
_parent.name_bad.gotoAndStop(1);
_parent.email_bad.gotoAndStop(1);
_parent.name_check = "";
if (_parent.check_cuss(_parent.name) ne "bad") {
var n = "good";
} else {
var n = "bad";
_parent.name_bad.gotoAndStop(2);
}
if (_parent.check_email(_parent.email) ne "bad") {
var e = "good";
} else {
var e = "bad";
_parent.email_bad.gotoAndStop(2);
}
if ((e eq "good") and (n eq "good")) {
_parent.send_score();
}
}
Symbol 270 MovieClip Frame 2
play();
Symbol 270 MovieClip Frame 12
stop();
Symbol 272 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 2
play();
Symbol 278 MovieClip Frame 8
stop();
Symbol 278 MovieClip Frame 9
play();
Symbol 279 Button
on (rollOver, dragOver) {
dont.gotoandplay(2);
}
on (rollOut, dragOut) {
dont.gotoandplay("fade");
}
on (release) {
gotoAndStop (19);
}
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 2
play();
Symbol 283 MovieClip Frame 8
stop();
Symbol 283 MovieClip Frame 9
play();
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 2
play();
Symbol 285 MovieClip Frame 8
stop();
Symbol 285 MovieClip Frame 9
play();
Symbol 286 Button
on (rollOver, dragOver) {
if (_root.currentmov != 0) {
keep.gotoandplay(2);
}
if (_root.currentmov ne "") {
_root.mov_array[_root.currentmov].gotoandplay("fade");
}
_root.currentmov = 0;
}
on (rollOut, dragOut) {
keep.gotoandplay("fade");
_root.currentmov = "";
}
on (release) {
_root.final_enter();
}
Symbol 287 Button
on (rollOver, dragOver) {
if (_root.currentmov != 1) {
back.gotoandplay(2);
}
if (_root.currentmov ne "") {
_root.mov_array[_root.currentmov].gotoandplay("fade");
}
_root.currentmov = 1;
}
on (rollOut, dragOut) {
back.gotoandplay("fade");
_root.currentmov = "";
}
on (release) {
_root.final_enter();
}
Symbol 288 Button
on (rollOver, dragOver) {
if (_root.currentmov != 2) {
high.gotoandplay(2);
}
if (_root.currentmov ne "") {
_root.mov_array[_root.currentmov].gotoandplay("fade");
}
_root.currentmov = 2;
}
on (rollOut, dragOut) {
high.gotoandplay("fade");
_root.currentmov = "";
}
on (release) {
_root.final_enter();
}
Symbol 289 MovieClip Frame 1
_x = ((_x + random(80)) - 40);
_y = ((_y + random(80)) - 40);
Symbol 289 MovieClip Frame 9
stop();
Symbol 291 MovieClip Frame 1
function check_cuss(word) {
word = word.toLowerCase();
if (word eq "") {
return("bad");
}
var i = 0;
while (i < cuss_array.length) {
if (-1 < word.indexOf(cuss_array[i].toLowerCase(), 0)) {
return("bad");
}
i++;
}
}
function check_email(word) {
if (word eq "") {
return("bad");
}
var i = 0;
while (i < email_good_array.length) {
if (word.indexOf(email_good_array[i], 0) < 0) {
return("bad");
}
if (-1 < word.indexOf(" ", 0)) {
return("bad");
}
i++;
}
}
serverpath = _root.serverpath;
game = _root.game;
pagesize = _root.pagesize;
method = "post";
cuss_array = new Array("fuck", "cunt", "dick", "shit", "pussy");
email_good_array = new Array(".", "@");
function send_score() {
sent = "";
_root.name = name;
_root.email = email;
score = _root.totalscore;
level = _root.highest_wave;
loadVariables (serverpath + "highscores.asp", "", "POST");
gotoAndPlay (2);
}
stop();
Instance of Symbol 270 MovieClip "submit" in Symbol 291 MovieClip Frame 1
onClipEvent (keyUp) {
if (Key.getCode() == 13) {
_parent.name_bad.gotoAndStop(1);
_parent.email_bad.gotoAndStop(1);
_parent.name_check = "";
if (_parent.check_cuss(_parent.name) ne "bad") {
var n = "good";
} else {
var n = "bad";
_parent.name_bad.gotoAndStop(2);
}
if (_parent.check_email(_parent.email) ne "bad") {
var e = "good";
} else {
var e = "bad";
_parent.email_bad.gotoAndStop(2);
}
if ((e eq "good") and (n eq "good")) {
_parent.send_score();
}
}
}
Symbol 291 MovieClip Frame 2
if (sent eq "yes") {
gotoAndPlay (5);
sent = "";
} else {
play();
}
Symbol 291 MovieClip Frame 3
gotoAndPlay (2);
Symbol 291 MovieClip Frame 19
_root.currentmov = 0;
_root.mov_array = new Array();
_root.mov_array[0] = this.keep;
_root.mov_array[1] = this.back;
_root.mov_array[2] = this.high;
keep.gotoandplay(2);
stop();
Instance of Symbol 289 MovieClip in Symbol 291 MovieClip Frame 19
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 291 MovieClip Frame 22
score_list.clear_scores();
score_list.score_index = 0;
loadVariables ((((_root.serverpath + "displayscores.asp?method=flash&pagesize=") + pagesize) + "&order=desc&game=") + _root.game, "score_list");
loadVariables ((((_root.serverpath + "displayscores.asp?method=flash&pagesize=") + pagesize) + "&order=desc&game=") + _root.game, "score_list");
_root.currentmov = 0;
_root.mov_array = new Array();
_root.mov_array[0] = this.keep;
_root.mov_array[1] = this.back;
keep.gotoandplay(2);
stop();
Instance of Symbol 76 MovieClip "score_list" in Symbol 291 MovieClip Frame 22
onClipEvent (data) {
duplicate_mov(5);
}