Frame 1
System.useCodepage = ture;
Instance of Symbol 11 MovieClip "Code_mc" in Frame 1
onClipEvent (enterFrame) {
TotalKB = _root.getBytesTotal() / 1000;
LoadedKB = _root.getBytesLoaded() / 1000;
_root.Size_txt.text = ((int(LoadedKB) + "KB/") + int(TotalKB)) + "KB";
LoadedPercent = int((LoadedKB / TotalKB) * 100);
_root.Percent_txt.text = LoadedPercent + "%";
_root.Bar_mc._xscale = LoadedPercent;
}
onClipEvent (load) {
_root.Percent_txt.text = "0%";
_root.Bar_mc._xscale = 0;
}
Frame 2
if (Number(Code_mc.LoadedPercent) == 100) {
_root.gotoAndStop("select");
} else {
gotoAndPlay (1);
}
Frame 3
function num_xsh(number, x, y) {
var i;
var temp1;
var temp2;
var temp3;
var temp4;
duplicateMovieClip ("_root.zxh", "zxhcopy", 400);
temp = String(number).length;
i = 1;
while (i <= temp) {
Set("temp" + i, String(number).substr(temp - i, 1));
_root.zxhcopy.z["zm" + i].gotoAndStop("z" + eval ("temp" + i));
_root.zxhcopy.z["zm" + i]._visible = 1;
i++;
}
i = temp + 1;
while (i <= 4) {
_root.zxhcopy.z["zm" + i]._visible = 0;
i++;
}
_root.zxhcopy._alpha = 0;
_root.zxhcopy._x = x;
_root.zxhcopy._y = y - 20;
_root.xshtime = 0;
_root.alp = 0;
_root.xsh_jg = 5;
_root.zjs = 1;
}
function xsh() {
var _local1 = _root;
if ((_local1.xshtime >= 0) and (_local1.xshtime < 11)) {
_local1.zxhcopy._alpha = _local1.alp;
_local1.alp = _local1.alp + 10;
_local1.xshtime = _local1.xshtime + 1;
} else if ((_local1.xshtime >= 11) and (_local1.xshtime < (11 + _local1.xsh_jg))) {
_local1.xshtime = _local1.xshtime + 1;
} else if ((_local1.xshtime >= (11 + _local1.xsh_jg)) and (_local1.xshtime < (21 + _local1.xsh_jg))) {
_local1.zxhcopy._alpha = _local1.alp;
_local1.alp = _local1.alp - 10;
_local1.xshtime = _local1.xshtime + 1;
} else if (_local1.xshtime >= (21 + _local1.xsh_jg)) {
removeMovieClip(_local1.zxhcopy);
clearInterval(xsh_time1);
}
}
function wipeout(scoreloss) {
var _local1 = _root;
_local1.speed = 0;
_local1.active = true;
_local1.flyin = false;
_local1.crashCount = 0;
_local1.score = _local1.score - (scoreloss * 0);
if (_local1.score < 0) {
_local1.score = 0;
}
_local1[(("ren" + _local1.ren_dunxiang) + "_cl") + "FZ"]._visible = 0;
_local1[("ren" + _local1.ren_dunxiang) + "_px"]._x = _local1[(("ren" + _local1.ren_dunxiang) + "_cl") + "FZ"]._x;
_local1[("ren" + _local1.ren_dunxiang) + "_px"]._y = _local1[(("ren" + _local1.ren_dunxiang) + "_cl") + "FZ"]._y;
_local1[("ren" + _local1.ren_dunxiang) + "_px"]._visible = 1;
_local1[("ren" + _local1.ren_dunxiang) + "_px"].gotoAndPlay(1);
_local1.lan1._x = _local1[(("ren" + _local1.ren_dunxiang) + "_cl") + "FZ"]._x;
_local1.lan1._y = _local1[(("ren" + _local1.ren_dunxiang) + "_cl") + "FZ"]._y;
_local1.lan1._visible = 1;
_local1.lan1.gotoAndPlay(1);
_local1.midiplay(2);
removeMovieClip(_local1[(("ren" + _local1.ren_dunxiang) + "_cl") + "FZ"]);
if (_local1.extrain_flg == 0) {
_local1.ren_num = _local1.ren_num - 1;
if (_local1.ren_dunxiang eq "01") {
if (_local1.ren_num == 9) {
_local1.mqt1._visible = 1;
_local1.mqt2._visible = 1;
_local1.mqt3._visible = 1;
_local1.mqt4._visible = 1;
_local1.mqt5._visible = 1;
_local1.mqt6._visible = 1;
_local1.mqt7._visible = 1;
_local1.mqt8._visible = 1;
_local1.mqt9._visible = 1;
_local1.mqt10._visible = 0;
} else if (_local1.ren_num == 8) {
_local1.mqt1._visible = 1;
_local1.mqt2._visible = 1;
_local1.mqt3._visible = 1;
_local1.mqt4._visible = 1;
_local1.mqt5._visible = 1;
_local1.mqt6._visible = 1;
_local1.mqt7._visible = 1;
_local1.mqt8._visible = 1;
_local1.mqt9._visible = 0;
_local1.mqt10._visible = 0;
} else if (_local1.ren_num == 7) {
_local1.mqt1._visible = 1;
_local1.mqt2._visible = 1;
_local1.mqt3._visible = 1;
_local1.mqt4._visible = 1;
_local1.mqt5._visible = 1;
_local1.mqt6._visible = 1;
_local1.mqt7._visible = 1;
_local1.mqt8._visible = 0;
_local1.mqt9._visible = 0;
_local1.mqt10._visible = 0;
} else if (_local1.ren_num == 6) {
_local1.mqt1._visible = 1;
_local1.mqt2._visible = 1;
_local1.mqt3._visible = 1;
_local1.mqt4._visible = 1;
_local1.mqt5._visible = 1;
_local1.mqt6._visible = 1;
_local1.mqt7._visible = 0;
_local1.mqt8._visible = 0;
_local1.mqt9._visible = 0;
_local1.mqt10._visible = 0;
} else if (_local1.ren_num == 5) {
_local1.mqt1._visible = 1;
_local1.mqt2._visible = 1;
_local1.mqt3._visible = 1;
_local1.mqt4._visible = 1;
_local1.mqt5._visible = 1;
_local1.mqt6._visible = 0;
_local1.mqt7._visible = 0;
_local1.mqt8._visible = 0;
_local1.mqt9._visible = 0;
_local1.mqt10._visible = 0;
} else if (_local1.ren_num == 4) {
_local1.mqt1._visible = 1;
_local1.mqt2._visible = 1;
_local1.mqt3._visible = 1;
_local1.mqt4._visible = 1;
_local1.mqt5._visible = 0;
_local1.mqt6._visible = 0;
_local1.mqt7._visible = 0;
_local1.mqt8._visible = 0;
_local1.mqt9._visible = 0;
_local1.mqt10._visible = 0;
} else if (_local1.ren_num == 3) {
_local1.mqt1._visible = 1;
_local1.mqt2._visible = 1;
_local1.mqt3._visible = 1;
_local1.mqt4._visible = 0;
_local1.mqt5._visible = 0;
_local1.mqt6._visible = 0;
_local1.mqt7._visible = 0;
_local1.mqt8._visible = 0;
_local1.mqt9._visible = 0;
_local1.mqt10._visible = 0;
} else if (_local1.ren_num == 2) {
_local1.mqt1._visible = 1;
_local1.mqt2._visible = 1;
_local1.mqt3._visible = 0;
_local1.mqt4._visible = 0;
_local1.mqt5._visible = 0;
_local1.mqt6._visible = 0;
_local1.mqt7._visible = 0;
_local1.mqt8._visible = 0;
_local1.mqt9._visible = 0;
_local1.mqt10._visible = 0;
} else if (_local1.ren_num == 1) {
_local1.mqt1._visible = 1;
_local1.mqt2._visible = 0;
_local1.mqt3._visible = 0;
_local1.mqt4._visible = 0;
_local1.mqt5._visible = 0;
_local1.mqt6._visible = 0;
_local1.mqt7._visible = 0;
_local1.mqt8._visible = 0;
_local1.mqt9._visible = 0;
_local1.mqt10._visible = 0;
} else if (_local1.ren_num == 0) {
_local1.time15._visible = 0;
_local1.mqt1._visible = 0;
_local1.mqt2._visible = 0;
_local1.mqt3._visible = 0;
_local1.mqt4._visible = 0;
_local1.mqt5._visible = 0;
_local1.mqt6._visible = 0;
_local1.mqt7._visible = 0;
_local1.mqt8._visible = 0;
_local1.mqt9._visible = 0;
_local1.mqt10._visible = 0;
}
} else if (_local1.ren_dunxiang eq "02") {
if (_local1.ren_num == 9) {
_local1.qt1._visible = 1;
_local1.qt2._visible = 1;
_local1.qt3._visible = 1;
_local1.qt4._visible = 1;
_local1.qt5._visible = 1;
_local1.qt6._visible = 1;
_local1.qt7._visible = 1;
_local1.qt8._visible = 1;
_local1.qt9._visible = 1;
_local1.qt10._visible = 0;
} else if (_local1.ren_num == 8) {
_local1.qt1._visible = 1;
_local1.qt2._visible = 1;
_local1.qt3._visible = 1;
_local1.qt4._visible = 1;
_local1.qt5._visible = 1;
_local1.qt6._visible = 1;
_local1.qt7._visible = 1;
_local1.qt8._visible = 1;
_local1.qt9._visible = 0;
_local1.qt10._visible = 0;
} else if (_local1.ren_num == 7) {
_local1.qt1._visible = 1;
_local1.qt2._visible = 1;
_local1.qt3._visible = 1;
_local1.qt4._visible = 1;
_local1.qt5._visible = 1;
_local1.qt6._visible = 1;
_local1.qt7._visible = 1;
_local1.qt8._visible = 0;
_local1.qt9._visible = 0;
_local1.qt10._visible = 0;
} else if (_local1.ren_num == 6) {
_local1.qt1._visible = 1;
_local1.qt2._visible = 1;
_local1.qt3._visible = 1;
_local1.qt4._visible = 1;
_local1.qt5._visible = 1;
_local1.qt6._visible = 1;
_local1.qt7._visible = 0;
_local1.qt8._visible = 0;
_local1.qt9._visible = 0;
_local1.qt10._visible = 0;
} else if (_local1.ren_num == 5) {
_local1.qt1._visible = 1;
_local1.qt2._visible = 1;
_local1.qt3._visible = 1;
_local1.qt4._visible = 1;
_local1.qt5._visible = 1;
_local1.qt6._visible = 0;
_local1.qt7._visible = 0;
_local1.qt8._visible = 0;
_local1.qt9._visible = 0;
_local1.qt10._visible = 0;
} else if (_local1.ren_num == 4) {
_local1.qt1._visible = 1;
_local1.qt2._visible = 1;
_local1.qt3._visible = 1;
_local1.qt4._visible = 1;
_local1.qt5._visible = 0;
_local1.qt6._visible = 0;
_local1.qt7._visible = 0;
_local1.qt8._visible = 0;
_local1.qt9._visible = 0;
_local1.qt10._visible = 0;
} else if (_local1.ren_num == 3) {
_local1.qt1._visible = 1;
_local1.qt2._visible = 1;
_local1.qt3._visible = 1;
_local1.qt4._visible = 0;
_local1.qt5._visible = 0;
_local1.qt6._visible = 0;
_local1.qt7._visible = 0;
_local1.qt8._visible = 0;
_local1.qt9._visible = 0;
_local1.qt10._visible = 0;
} else if (_local1.ren_num == 2) {
_local1.qt1._visible = 1;
_local1.qt2._visible = 1;
_local1.qt3._visible = 0;
_local1.qt4._visible = 0;
_local1.qt5._visible = 0;
_local1.qt6._visible = 0;
_local1.qt7._visible = 0;
_local1.qt8._visible = 0;
_local1.qt9._visible = 0;
_local1.qt10._visible = 0;
} else if (_local1.ren_num == 1) {
_local1.qt1._visible = 1;
_local1.qt2._visible = 0;
_local1.qt3._visible = 0;
_local1.qt4._visible = 0;
_local1.qt5._visible = 0;
_local1.qt6._visible = 0;
_local1.qt7._visible = 0;
_local1.qt8._visible = 0;
_local1.qt9._visible = 0;
_local1.qt10._visible = 0;
} else if (_local1.ren_num == 0) {
_local1.qt1._visible = 0;
_local1.qt2._visible = 0;
_local1.qt3._visible = 0;
_local1.qt4._visible = 0;
_local1.qt5._visible = 0;
_local1.qt6._visible = 0;
_local1.qt7._visible = 0;
_local1.qt8._visible = 0;
_local1.qt9._visible = 0;
_local1.qt10._visible = 0;
_local1.time15._visible = 0;
}
}
}
_local1.surfer._y = 257 - _local1.adjust_y;
_local1.water._y = (257 - _local1.adjust_y) + _local1.adjust_y2;
_local1.wave_light._visible = 1;
_local1.wave_light._y = 240.9 - _local1.adjust_y;
ii = 1;
while (ii <= 2) {
_local1[("ren0" + ii) + "_clSL"]._visible = 0;
ii++;
}
wz_qishi_x = 275;
wz_qishi_y = 257 - _local1.adjust_y;
duplicateMovieClip (_local1[("ren" + _local1.ren_dunxiang) + "_clSL"], (("ren" + _local1.ren_dunxiang) + "_cl") + "FZ", 2);
_local1[(("ren" + _local1.ren_dunxiang) + "_cl") + "FZ"]._y = wz_qishi_y;
_local1[(("ren" + _local1.ren_dunxiang) + "_cl") + "FZ"]._x = wz_qishi_x;
_local1[(("ren" + _local1.ren_dunxiang) + "_cl") + "FZ"].gotoAndStop(1);
_local1[(("ren" + _local1.ren_dunxiang) + "_cl") + "FZ"]._visible = 0;
_local1.flyin = false;
_local1.active = false;
_local1.readytogo = true;
_local1.i = 0;
_local1.flyin = false;
_local1.ren_sy = 0;
_local1.ren_dx = 0;
_local1.ren_dy = 0;
_local1.accelY = 0.6;
_local1.accelX = 5;
_local1.brakesX = 0.8;
_local1.brakesXmax = 0.8;
_local1.maxX = 30;
_local1.jumpY = 0;
_local1.crashCount = 0;
_local1.jumpSpin = "none";
_local1.spinScore = 0;
_local1.speed = 0;
_local1.gameOn = false;
if (_local1.ren_num == 0) {
clearInterval(time0);
_local1.midistop(1);
_local1.midistop(4);
_local1.timenum = 0;
_local1.time15._visible = 0;
_local1.over_flg = 1;
removeMovieClip(_local1[(("ren" + _local1.ren_dunxiang) + "_cl") + "FZ"]);
clearInterval(time0);
_local1.gift_flg = 0;
if (_local1.gift1_active) {
removeMovieClip(_local1["gift1" + _local1.num]);
removeMovieClip(_local1["gift1" + (_local1.num - 1)]);
_local1.gift1_active = false;
_local1.gift1_num = 0;
} else if (_local1.gift2_active) {
removeMovieClip(_local1["gift2" + _local1.num]);
removeMovieClip(_local1["gift2" + (_local1.num - 1)]);
_local1.gift2_num = 0;
_local1.gift2_active = false;
} else if (_local1.gift3_active) {
removeMovieClip(_local1["gift3" + _local1.num]);
removeMovieClip(_local1["gift3" + (_local1.num - 1)]);
_local1.gift3_num = 0;
_local1.gift3_active = false;
} else if (_local1.gift4_active) {
removeMovieClip(_local1["gift4" + _local1.num]);
removeMovieClip(_local1["gift4" + (_local1.num - 1)]);
_local1.gift4_num = 0;
_local1.gift4_active = false;
} else if (_local1.gift5_active) {
removeMovieClip(_local1["gift5" + _local1.num]);
removeMovieClip(_local1["gift5" + (_local1.num - 1)]);
_local1.gift5_num = 0;
_local1.gift5_active = false;
}
_local1.gift1_active = false;
_local1.gift2_active = false;
_local1.gift3_active = false;
_local1.gift4_active = false;
_local1.gift5_active = false;
_local1.quedinW._visible = 1;
}
}
function jumpframe() {
_root.gotoAndStop("4");
}
function SJGstr() {
var _local1 = _root;
var _local2;
var temp2;
var i;
if (_local1._strIntzt == 1) {
_local1.numQC();
}
_local1.strIntzt = 1;
if (_local1.timenum == 120) {
_local2 = "200";
} else if (_local1.timenum >= 60) {
if (_local1.timenum == 60) {
_local2 = "100";
} else if ((_local1.timenum > 60) and (_local1.timenum < 70)) {
_local2 = "10" + (_local1.timenum - 60);
} else {
_local2 = "1" + (_local1.timenum - 60);
}
} else if ((_local1.timenum < 60) and (_local1.timenum >= 10)) {
_local2 = "0" + _local1.timenum;
} else {
_local2 = "00" + _local1.timenum;
}
_local1.txt2 = _local2.charAt(0);
_local1.txt3 = _local2.charAt(1) + _local2.charAt(2);
}
function SJtime() {
var _local1 = _root;
_local1.timenum = _local1.timenum - 1;
if (_local1.timenum == 15) {
_local1.time15._visible = 1;
_local1.time15.gotoAndStop((15 - _local1.timenum) + 1);
_local1.midiplay(4);
} else if ((_local1.timenum < 15) and (_local1.timenum > 0)) {
_local1.time15.gotoAndStop((15 - _local1.timenum) + 1);
_local1.midiplay(4);
}
if (_local1.timenum <= 0) {
_local1.midistop(4);
}
_local1.SJGstr();
if (_local1.timenum == 0) {
_local1.midistop(1);
_local1.midistop(4);
_local1.time15._visible = 0;
_local1.over_flg = 1;
if (_local1.ren_dunxiang eq "01") {
_local1.mqt1._visible = 0;
_local1.mqt2._visible = 0;
_local1.mqt3._visible = 0;
_local1.mqt4._visible = 0;
_local1.mqt5._visible = 0;
_local1.mqt6._visible = 0;
_local1.mqt7._visible = 0;
_local1.mqt8._visible = 0;
_local1.mqt9._visible = 0;
_local1.mqt10._visible = 0;
} else if (_local1.ren_dunxiang eq "02") {
_local1.qt1._visible = 0;
_local1.qt2._visible = 0;
_local1.qt3._visible = 0;
_local1.qt4._visible = 0;
_local1.qt5._visible = 0;
_local1.qt6._visible = 0;
_local1.qt7._visible = 0;
_local1.qt8._visible = 0;
_local1.qt9._visible = 0;
_local1.qt10._visible = 0;
}
removeMovieClip(_local1[(("ren" + _local1.ren_dunxiang) + "_cl") + "FZ"]);
clearInterval(time0);
_local1.gift_flg = 0;
if (_local1.gift1_active) {
removeMovieClip(_local1["gift1" + _local1.num]);
removeMovieClip(_local1["gift1" + (_local1.num - 1)]);
_local1.gift1_active = false;
_local1.gift1_num = 0;
} else if (_local1.gift2_active) {
removeMovieClip(_local1["gift2" + _local1.num]);
removeMovieClip(_local1["gift2" + (_local1.num - 1)]);
_local1.gift2_num = 0;
_local1.gift2_active = false;
} else if (_local1.gift3_active) {
removeMovieClip(_local1["gift3" + _local1.num]);
removeMovieClip(_local1["gift3" + (_local1.num - 1)]);
_local1.gift3_num = 0;
_local1.gift3_active = false;
} else if (_local1.gift4_active) {
removeMovieClip(_local1["gift4" + _local1.num]);
removeMovieClip(_local1["gift4" + (_local1.num - 1)]);
_local1.gift4_num = 0;
_local1.gift4_active = false;
} else if (_local1.gift5_active) {
removeMovieClip(_local1["gift5" + _local1.num]);
removeMovieClip(_local1["gift5" + (_local1.num - 1)]);
_local1.gift5_num = 0;
_local1.gift5_active = false;
}
_local1.gift1_active = false;
_local1.gift2_active = false;
_local1.gift3_active = false;
_local1.gift4_active = false;
_local1.gift5_active = false;
_local1.quedinW._visible = 1;
}
}
function newGame() {
var _local1 = _root;
clearInterval(time0);
_local1.midistop(1);
_local1.midistop(4);
_local1.time15._visible = 0;
_local1.timenum = 0;
_local1.over_flg = 1;
removeMovieClip(__root["num100copy" + _local1.no_100]);
removeMovieClip(__root["num200copy" + _local1.no_200]);
_local1.zjs = 0;
removeMovieClip(_local1.zxhcopy);
_local1.surfer.gotoAndStop(1);
_local1.eaten = false;
_local1.level = 1;
_local1.time15._visible = 0;
if (_local1.ren_dunxiang eq "01") {
_local1.mqt1._visible = 1;
_local1.mqt2._visible = 1;
_local1.mqt3._visible = 1;
_local1.mqt4._visible = 1;
_local1.mqt5._visible = 1;
_local1.mqt6._visible = 1;
_local1.mqt7._visible = 1;
_local1.mqt8._visible = 1;
_local1.mqt9._visible = 1;
_local1.mqt10._visible = 1;
} else if (_local1.ren_dunxiang eq "02") {
_local1.qt1._visible = 1;
_local1.qt2._visible = 1;
_local1.qt3._visible = 1;
_local1.qt4._visible = 1;
_local1.qt5._visible = 1;
_local1.qt6._visible = 1;
_local1.qt7._visible = 1;
_local1.qt8._visible = 1;
_local1.qt9._visible = 1;
_local1.qt10._visible = 1;
}
_local1.timenum = 120;
_local1.score = 0;
_local1.ren_num = 10;
_local1[(("ren" + _local1.ren_dunxiang) + "_cl") + "FZ"]._visible = 0;
removeMovieClip(_local1[(("ren" + _local1.ren_dunxiang) + "_cl") + "FZ"]);
_local1.surfer._y = 257 - _local1.adjust_y;
_local1.water._y = (257 - _local1.adjust_y) + _local1.adjust_y2;
_local1.wave_light._visible = 1;
_local1.wave_light._y = 240.9 - _local1.adjust_y;
ii = 1;
while (ii <= 2) {
_local1[("ren0" + ii) + "_clSL"]._visible = 0;
_local1[("ren0" + ii) + "_px"]._visible = 0;
ii++;
}
wz_qishi_x = 275;
wz_qishi_y = 257 - _local1.adjust_y;
_local1.visible_flg = 1;
this.shad._visible = true;
_local1.flyin = false;
_local1.active = false;
_local1.readytogo = true;
_local1.i = 0;
_local1.flyin = false;
_local1.ren_sy = 0;
_local1.ren_dx = 0;
_local1.ren_dy = 0;
_local1.accelY = 0.6;
_local1.accelX = 5;
_local1.brakesX = 0.8;
_local1.brakesXmax = 0.8;
_local1.maxX = 30;
_local1.jumpY = 0;
_local1.crashCount = 0;
_local1.jumpSpin = "none";
_local1.spinScore = 0;
_local1.speed = 0;
_local1.pipeX = 0;
_local1.pipe.x = _local1.pipeX;
_local1.pipe._x = _local1.pipeX;
_local1.gameOn = false;
_local1.gift_flg = 0;
if (_local1.gift1_active) {
removeMovieClip(_local1["gift1" + _local1.num]);
removeMovieClip(_local1["gift1" + (_local1.num - 1)]);
_local1.gift1_active = false;
_local1.gift1_num = 0;
} else if (_local1.gift2_active) {
removeMovieClip(_local1["gift2" + _local1.num]);
removeMovieClip(_local1["gift2" + (_local1.num - 1)]);
_local1.gift2_num = 0;
_local1.gift2_active = false;
} else if (_local1.gift3_active) {
removeMovieClip(_local1["gift3" + _local1.num]);
removeMovieClip(_local1["gift3" + (_local1.num - 1)]);
_local1.gift3_num = 0;
_local1.gift3_active = false;
} else if (_local1.gift4_active) {
removeMovieClip(_local1["gift4" + _local1.num]);
removeMovieClip(_local1["gift4" + (_local1.num - 1)]);
_local1.gift4_num = 0;
_local1.gift4_active = false;
} else if (_local1.gift5_active) {
removeMovieClip(_local1["gift5" + _local1.num]);
removeMovieClip(_local1["gift5" + (_local1.num - 1)]);
_local1.gift5_num = 0;
_local1.gift5_active = false;
}
_local1.gift1_active = false;
_local1.gift2_active = false;
_local1.gift3_active = false;
_local1.gift4_active = false;
_local1.gift5_active = false;
_local1.quedinW._visible = 1;
}
function newLevel() {
var _local1 = _root;
_local1.threshold = 14000 + ((level - 1) * 11000);
_local1.speed = 0;
_local1.pipeX = 0;
_local1.pipe.x = _local1.pipeX;
_local1.pipe._x = _local1.pipeX;
startTime = getTimer();
_local1.gameOn = true;
gotoAndStop ("game");
_local1.surfer_active = false;
_local1.readytogo = false;
_local1.level++;
if (_local1.level == 1) {
info = "";
} else if (_local1.level == 2) {
info = "";
} else if (_local1.level == 3) {
info = "";
}
}
function midiplay(bz) {
var _local1 = bz;
if (_local1 == 1) {
if (_root.sound_flg == 1) {
sound1.attachSound("bj");
sound1.start("", 60);
}
} else if (_local1 == 2) {
sound2.attachSound("downwater");
sound2.start("", 1);
} else if (_local1 == 3) {
sound3.attachSound("kissgift");
sound3.start("", 1);
} else if (_local1 == 4) {
sound4.attachSound("time");
sound4.start("", 1);
} else if (_local1 == 5) {
sound5.attachSound("ou");
sound5.start("", 1);
}
}
function midistop(bz) {
var _local1 = bz;
if (_local1 == 1) {
sound1.stop();
} else if (_local1 == 2) {
sound2.stop();
} else if (_local1 == 3) {
sound3.stop();
} else if (_local1 == 4) {
sound4.stop();
} else if (_local1 == 5) {
sound5.stop();
}
}
stop();
_root.quedinW.username.text = "";
_root.quedinW.useremail.text = "";
_root.quedinW.username.text = _root.game_so.data.playerName;
_root.quedinW.useremail.text = _root.game_so.data.useremail;
String.prototype.addCommas = function () {
var _local3 = this.length;
var _local2 = "";
var _local1 = 0;
while (_local1 <= _local3) {
_local2 = this.charAt(_local3 - _local1) + _local2;
if ((((_local1 % 3) == 0) && (_local1 > 0)) && (_local1 < _local3)) {
_local2 = "," + _local2;
}
_local1++;
}
return(_local2);
};
_root.accelY = 0.6;
_root.pl = 50;
_root.pl2 = 50;
_root.maxX = 30;
_root.zjs = 0;
_root.zxh._visible = 0;
_root.alp = 0;
_root.xshtime = 0;
_root.xsh_jg = 10;
_root.fen_base = 2;
_root.over_flg = 0;
_root.extrain_flg = 0;
_root.message_box._visible = 0;
_root.time15._visible = 0;
sound1 = new Sound();
sound2 = new Sound();
sound3 = new Sound();
sound4 = new Sound();
sound5 = new Sound();
_root.adjust_y = 57;
_root.adjust_y2 = 175;
_root.eaten = false;
_root.gameOn = true;
_root.strIntzt = 0;
_root.gameOver = true;
_root.rnd = Math.random;
_root.aa._visible = 0;
game_so = SharedObject.getLocal("FlashGamesStudio");
_root.game_so.data.playerName = "";
_root.game_so.data.useremail = "";
_root.sound_flg = 1;
_root.score = 0;
_root.threshold = 11000;
_root.readytogo = true;
_root.surfer3_active = false;
_root.surfer2_active = false;
_root.surfer_active = false;
_root.active = false;
_root.gift1_active = false;
_root.gift2_active = false;
_root.gift3_active = false;
_root.gift4_active = false;
_root.gift5_active = false;
_root.flyin = false;
_root.fen_1 = 100;
_root.fen_2 = 200;
_root.top = 252 - _root.adjust_y;
_root.bottom = 390;
_root.left = 120;
_root.right = 560;
_root.resetX = 275;
_root.resetY = 257 - _root.adjust_y;
_root.leftX = _root.resetX - 100;
_root.rightX = _root.resetX + 100;
_root.slideX = 5;
_root.ren_sy = 0;
_root.ren_dx = 0;
_root.ren_dy = 0;
_root.g = -0.7;
_root.accelX = 5;
_root.brakesX = 0.8;
_root.brakesXmax = 0.8;
_root.jumpY = 0;
_root.crashCount = 0;
_root.jumpSpin = "none";
_root.spinScore = 0;
_root.level = 1;
_root.i = 0;
_root.speed = 0;
_root.dz = 0;
_root.sfxCount = 0;
_root.wx = 11;
_root.jumpHeight = 0;
_root.score = 0;
_root.jumpScore = 0;
_root.num = 0;
_root.lev = 100;
_root.ren_num = 10;
_root.timenum = 120;
Frame 4
stop();
_root.midiplay(0);
_root.quedinW._visible = 0;
_root.over_flg = 0;
_root.suzi100num = 1;
_root.suzi200num = 1;
_root.sz100200jg = 1;
_root.alp1 = 0;
_root.alp2 = 0;
_root.copy100num = 0;
j = 1;
while (j <= 100) {
_root["xshtime" + j] = 0;
j++;
}
_root.visible_flg = 1;
_root.time15._visible = 0;
_root.gameOn = false;
_root.txt2 = 0;
_root.txt3 = 0;
_root.surfer._visible = 1;
_root.lan1._visible = 0;
_root.surfer._y = 257 - _root.adjust_y;
_root.water._y = (257 - _root.adjust_y) + _root.adjust_y2;
_root.wave_light._visible = 1;
_root.wave_light._y = 240.9 - _root.adjust_y;
ii = 1;
while (ii <= 2) {
_root[("ren0" + ii) + "_clSL"]._visible = 0;
_root[("ren0" + ii) + "_px"]._visible = 0;
ii++;
}
wz_qishi_x = 275;
wz_qishi_y = 257 - _root.adjust_y;
duplicateMovieClip (_root[("ren" + _root.ren_dunxiang) + "_clSL"], (("ren" + _root.ren_dunxiang) + "_cl") + "FZ", 2);
_root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"]._y = wz_qishi_y;
_root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"]._x = wz_qishi_x;
_root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"].gotoAndStop(1);
_root.pipeX = 0;
_root.pipe.x = _root.pipeX;
_root.pipe._x = _root.pipeX;
_root.ss = _root.bb._xscale;
_root.zhuanhuan = 3;
if (_root.extrain_flg == 0) {
clearInterval(time0);
_root.timenum = 120;
_root.SJGstr();
time0 = setInterval(SJtime, 1000);
}
Instance of Symbol 144 MovieClip "zxh" in Frame 4
onClipEvent (enterFrame) {
if ((_root.zjs == 1) and (_name ne "zxh")) {
if (_root.over_flg == 1) {
_root.zjs = 0;
removeMovieClip(_root.zxhcopy);
} else if ((_root.xshtime >= 0) and (_root.xshtime < 11)) {
_root.zxhcopy._alpha = _root.alp;
_root.alp = _root.alp + 10;
_root.xshtime = _root.xshtime + 1;
} else if ((_root.xshtime >= 11) and (_root.xshtime < (11 + _root.xsh_jg))) {
_root.xshtime = _root.xshtime + 1;
} else if ((_root.xshtime >= (11 + _root.xsh_jg)) and (_root.xshtime < (21 + _root.xsh_jg))) {
_root.zxhcopy._alpha = _root.alp;
_root.alp = _root.alp - 10;
_root.xshtime = _root.xshtime + 1;
} else if (_root.xshtime >= (21 + _root.xsh_jg)) {
_root.zjs = 0;
removeMovieClip(_root.zxhcopy);
}
}
}
Instance of Symbol 146 MovieClip "num100" in Frame 4
onClipEvent (enterFrame) {
if (_name ne "num100") {
if (_root.over_flg == 1) {
removeMovieClip(_target);
} else {
strtemp1 = _name;
tempnum = strtemp1.substr(10);
Set("SJnum" + tempnum, tempnum);
if ((_root["xshtime" + eval ("SJnum" + tempnum)] >= 0) and (_root["xshtime" + eval ("SJnum" + tempnum)] < (11 * _root.sz100200jg))) {
if (((_root["xshtime" + eval ("SJnum" + tempnum)] / _root.sz100200jg) - Math.floor(_root["xshtime" + eval ("SJnum" + tempnum)] / _root.sz100200jg)) == 0) {
_root[_name]._alpha = _root.alp1;
_root.alp1 = _root.alp1 + 10;
}
_root["xshtime" + eval ("SJnum" + tempnum)] = _root["xshtime" + eval ("SJnum" + tempnum)] + 1;
} else if ((_root["xshtime" + eval ("SJnum" + tempnum)] >= (11 * _root.sz100200jg)) and (_root["xshtime" + eval ("SJnum" + tempnum)] < ((11 * _root.sz100200jg) + (_root.xsh_jg * _root.sz100200jg)))) {
_root["xshtime" + eval ("SJnum" + tempnum)] = _root["xshtime" + eval ("SJnum" + tempnum)] + 1;
} else if ((_root["xshtime" + eval ("SJnum" + tempnum)] >= ((11 * _root.sz100200jg) + (_root.xsh_jg * _root.sz100200jg))) and (_root["xshtime" + eval ("SJnum" + tempnum)] < ((21 * _root.sz100200jg) + (_root.xsh_jg * _root.sz100200jg)))) {
if (((_root["xshtime" + eval ("SJnum" + tempnum)] / _root.sz100200jg) - Math.floor(_root["xshtime" + eval ("SJnum" + tempnum)] / _root.sz100200jg)) == 0) {
_root[_name]._alpha = _root.alp1;
_root.alp1 = _root.alp1 - 10;
}
_root["xshtime" + eval ("SJnum" + tempnum)] = _root["xshtime" + eval ("SJnum" + tempnum)] + 1;
} else if (_root["xshtime" + eval ("SJnum" + tempnum)] >= ((21 * _root.sz100200jg) + (_root.xsh_jg * _root.sz100200jg))) {
removeMovieClip(_target);
}
}
}
}
Instance of Symbol 148 MovieClip "num200" in Frame 4
onClipEvent (enterFrame) {
if (_name ne "num200") {
if (_root.over_flg == 1) {
removeMovieClip(_target);
} else {
strtemp2 = _name;
tempnum2 = strtemp2.substr(10);
Set("SJnum" + tempnum2, tempnum2);
if ((_root["xshtime" + eval ("SJnum" + tempnum2)] >= 0) and (_root["xshtime" + eval ("SJnum" + tempnum2)] < (11 * _root.sz100200jg))) {
if (((_root["xshtime" + eval ("SJnum" + tempnum2)] / _root.sz100200jg) - Math.floor(_root["xshtime" + eval ("SJnum" + tempnum2)] / _root.sz100200jg)) == 0) {
_root[_name]._alpha = _root.alp2;
_root.alp2 = _root.alp2 + 10;
}
_root["xshtime" + eval ("SJnum" + tempnum2)] = _root["xshtime" + eval ("SJnum" + tempnum2)] + 1;
} else if ((_root["xshtime" + eval ("SJnum" + tempnum2)] >= (11 * _root.sz100200jg)) and (_root["xshtime" + eval ("SJnum" + tempnum2)] < ((11 * _root.sz100200jg) + (_root.xsh_jg * _root.sz100200jg)))) {
_root["xshtime" + eval ("SJnum" + tempnum2)] = _root["xshtime" + eval ("SJnum" + tempnum2)] + 1;
} else if ((_root["xshtime" + eval ("SJnum" + tempnum2)] >= ((11 * _root.sz100200jg) + (_root.xsh_jg * _root.sz100200jg))) and (_root["xshtime" + eval ("SJnum" + tempnum2)] < ((21 * _root.sz100200jg) + (_root.xsh_jg * _root.sz100200jg)))) {
if (((_root["xshtime" + eval ("SJnum" + tempnum2)] / _root.sz100200jg) - Math.floor(_root["xshtime" + eval ("SJnum" + tempnum2)] / _root.sz100200jg)) == 0) {
_root[_name]._alpha = _root.alp2;
_root.alp2 = _root.alp2 - 10;
}
_root["xshtime" + eval ("SJnum" + tempnum2)] = _root["xshtime" + eval ("SJnum" + tempnum2)] + 1;
} else if (_root["xshtime" + eval ("SJnum" + tempnum2)] >= ((21 * _root.sz100200jg) + (_root.xsh_jg * _root.sz100200jg))) {
removeMovieClip(_target);
}
}
}
}
Instance of Symbol 88 MovieClip "gift5" in Frame 4
onClipEvent (enterFrame) {
if (_root.over_flg == 1) {
_root.gift5_active = false;
removeMovieClip(_target);
} else if (_root.gift_flg == 1) {
if ((!_root.gift5_active) && (random(_root.pl2) == 0)) {
_root.num = _root.num + 1;
duplicateMovieClip ("/gift5", "gift5" + _root.num, _root.lev + _root.num);
setProperty(_root["gift5" + _root.num], _x , 150 + Math.floor(Math.random() * 300));
setProperty(_root["gift5" + _root.num], _y , (175 + Math.floor(Math.random() * 30)) - _root.adjust_y);
_root.surfer_jj_2 = _root.surfer._y - _root["gift5" + _root.num]._y;
_root.gift5_active = true;
_root.gift5_num = 0;
} else if (_name ne "gift5") {
if (this.hitTest(_root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"].tantou) and (_root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"]._visible == 1)) {
_root.copy100num = _root.copy100num + 1;
duplicateMovieClip ("_root.num200", "num200copy" + _root.copy100num, 410 + _root.copy100num);
_root["num200copy" + _root.copy100num]._x = _x;
_root["num200copy" + _root.copy100num]._y = _y;
_root["num200copy" + _root.copy100num]._alpha = 0;
_root.no_200 = _root.copy100num;
_root.midiplay(3);
removeMovieClip(_target);
_root.Score = _root.Score + _root.fen_2;
_root.gift5_active = false;
_root.gift5_num = 0;
} else {
_y = (_root.surfer._y - _root.surfer_jj_2);
_root.gift5_num = _root.gift5_num + 1;
if (_root.gift5_num > 60) {
_root.gift5_num = 0;
removeMovieClip(_target);
_root.gift5_active = false;
}
}
}
}
}
Instance of Symbol 175 MovieClip "surfer" in Frame 4
onClipEvent (enterFrame) {
_x = (_x + _root.speed);
if (_x > 833.1) {
_x = (_x - 559.5);
}
if (_x < 273.6) {
_x = (_x + 559.5);
}
_y = (((135.3 + _root.jumpHeight) + 121.7) - _root.adjust_y);
_root.water._y = (((135.3 + _root.jumpHeight) + 121.7) - _root.adjust_y) + _root.adjust_y2;
if ((!_root.surfer2_active) && (random(20) == 0)) {
_root.surfer2_num = 0;
_root.surfer2._visible = 1;
_root.surfer2._x = 100 + Math.floor(Math.random() * 50);
_root.surfer2._y = _root.surfer._y + 3;
_root.surfer2.gotoAndPlay(1);
}
if ((!_root.surfer3_active) && (random(20) == 0)) {
_root.surfer3_num = 0;
_root.surfer3._visible = 1;
_root.surfer3._x = 450 + Math.floor(Math.random() * 50);
_root.surfer3._y = _root.surfer._y + 3;
_root.surfer3.gotoAndPlay(1);
}
}
Instance of Symbol 196 MovieClip "pipe" in Frame 4
onClipEvent (enterFrame) {
if (_root.over_flg == 0) {
dx = _root.wx - (x / 30);
if (dx < _root.wx) {
dx = _root.wx;
}
if (_root.surfer_active) {
x = x + dx;
}
x = x + _root.speed;
if (x > 0) {
_x = x;
_root.pipex = x;
}
_y = (_root.surfer._y + 95);
}
}
onClipEvent (load) {
x = 0;
_root.pipex = _x;
}
Instance of Symbol 210 MovieClip "surfer2" in Frame 4
onClipEvent (enterFrame) {
_root.surfer2_num = _root.surfer2_num + 1;
if (_root.surfer2_num < 5) {
_root.surfer2._y = _root.surfer._y + 3;
} else {
_root.surfer2_num = 0;
this._visible = 0;
}
}
Instance of Symbol 215 MovieClip "surfer3" in Frame 4
onClipEvent (enterFrame) {
_root.surfer3_num = _root.surfer3_num + 1;
if (_root.surfer3_num < 5) {
_root.surfer3._y = _root.surfer._y + 3;
} else {
_root.surfer3_num = 0;
this._visible = 0;
}
}
Instance of Symbol 278 MovieClip "ren01_clSL" in Frame 4
onClipEvent (enterFrame) {
if (_name ne "ren01_clSL") {
if ((((Key.isDown(39) || (Key.isDown(37))) && (!_root.active)) && (_root.readytogo)) && (_root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"]._visible == 1)) {
_root.active = true;
_root.readytogo = false;
}
cf = this._currentframe;
x = this._x;
y = this._y;
if (_root.active) {
if (_root.visible_flg == 1) {
_root[_name].shad._visible = 1;
} else {
_root[_name].shad._visible = 0;
}
rot = 1;
if (Key.isDown(32)) {
rot = 2;
}
if (Key.isDown(37)) {
_root.spinScore = _root.spinScore + (rot * 10);
cf = cf - rot;
}
if (Key.isDown(39)) {
_root.spinScore = _root.spinScore + (rot * 10);
cf = cf + rot;
}
if (cf > 30) {
cf = cf - 29;
}
if (cf < 1) {
cf = cf + 29;
}
this.gotoAndStop(cf);
if (_root.flyin) {
_root.i++;
_root.jumpheight = ((_root.jumpY * _root.i) - (_root.g * Math.pow(_root.i, 2))) * -1;
y = _root.ren_sy + ((_root.jumpY * _root.i) - (_root.g * Math.pow(_root.i, 2)));
if (y < _root.top) {
}
y = _root.top;
_root.speed = _root.speed * 0.88;
_root.spinScore = _root.spinScore + (_root.jumpheight / 20);
if ((_root.top < y) || (_root.jumpheight < 0)) {
px = _root.pipe._x - _x;
px = _x - _root.pipe._x;
_root.jumpheight = 0;
_root.jj_adjust = 250;
if (((cf > 5) && (cf < 27)) || (px > (135 + _root.jj_adjust))) {
if (px > (135 + _root.jj_adjust)) {
_root.spinScore = _root.spinScore + 2300;
} else if ((px - _root.jj_adjust) > 0) {
_root.spinScore = (_root.spinScore + (px * _root.fen_base)) - (_root.fen_base * _root.jj_adjust);
}
_root.wipeout(Math.ceil(_root.spinScore));
} else if (px <= 0) {
_root.spinScore = _root.spinScore + 2300;
_root.wipeout(Math.ceil(_root.spinScore));
} else {
_root.sfx.playSound("land");
if ((px - _root.jj_adjust) > 0) {
_root.spinScore = (_root.spinScore + (px * _root.fen_base)) - (_root.jj_adjust * _root.fen_base);
}
_root.jumpscore = Math.ceil(_root.spinScore);
if ((_root.extrain_flg == 0) or (_root.extrain_flg == 1)) {
_root.score = _root.score + _root.jumpscore;
_root.num_xsh(Math.floor(_root.jumpscore), _root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"]._x, _root.surfer._y);
}
}
_root.visible_flg = 1;
if (_root.visible_flg == 1) {
_root[_name].shad._visible = 1;
} else {
_root[_name].shad._visible = 0;
}
_root.flyin = false;
}
} else {
angle = (cf - 1) * 12;
angleX = Math.sin(angle * 0.017453);
if (angleX > 0.9) {
_root.brakesX = _root.brakesX - 0.01;
} else if (_root.brakesX < _root.brakesXmax) {
_root.brakesX = _root.brakesX + 0.02;
} else if (_root.brakesXmax < _root.brakesX) {
_root.brakesX = _root.brakesXmax;
}
angleX = angleX * _root.accelX;
_root.ren_dx = _root.ren_dx + angleX;
_x = (_x - angleX);
if (_x < _root.leftX) {
_x = _root.leftX;
}
if (_root.rightX < _x) {
_x = _root.rightX;
}
_root.ren_dx = _root.ren_dx * _root.brakesX;
if (_root.maxX < _root.ren_dx) {
_root.ren_dx = _root.maxX;
}
if (_root.ren_dx < (-_root.maxX)) {
_root.ren_dx = -_root.maxX;
}
_root.ren_dy = Math.cos(angle * 0.017453) * ((_root.maxX * _root.accelY) + (Math.abs(_root.ren_dx) * _root.accelY));
if ((_root.pipe._x - _x) > (200 + _root.jj_adjust)) {
_root.wipeout(200);
}
if (_root.gameon) {
_root.active = false;
if ((_root.level < 3) && (_root.score >= _root.threshold)) {
_root.gotoAndStop("start");
} else {
_root.gotoAndStop("over");
}
}
y = y + _root.ren_dy;
if (y < _root.top) {
_root.jumpY = _root.ren_dy;
_root.jumpSpin = "none";
_root.spinScore = 0;
_root.ren_sy = y;
_root.i = 0;
_root.visible_flg = 0;
if (_root.visible_flg == 1) {
_root[_name].shad._visible = 1;
} else {
_root[_name].shad._visible = 0;
}
_root.flyin = true;
}
if (_root.bottom < y) {
_root.wipeout(500);
}
}
_root.speed = _root.ren_dx;
_y = y;
}
}
}
Instance of Symbol 365 MovieClip "ren02_clSL" in Frame 4
onClipEvent (enterFrame) {
if (_name ne "ren02_clSL") {
if ((((Key.isDown(39) || (Key.isDown(37))) && (!_root.active)) && (_root.readytogo)) && (_root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"]._visible == 1)) {
_root.active = true;
_root.readytogo = false;
}
cf = this._currentframe;
x = this._x;
y = this._y;
if (_root.active) {
if (_root.visible_flg == 1) {
_root[_name].shad._visible = 1;
} else {
_root[_name].shad._visible = 0;
}
rot = 1;
if (Key.isDown(32)) {
rot = 2;
}
if (Key.isDown(37)) {
_root.spinScore = _root.spinScore + (rot * 10);
cf = cf - rot;
}
if (Key.isDown(39)) {
_root.spinScore = _root.spinScore + (rot * 10);
cf = cf + rot;
}
if (cf > 30) {
cf = cf - 29;
}
if (cf < 1) {
cf = cf + 29;
}
this.gotoAndStop(cf);
if (_root.flyin) {
_root.i++;
_root.jumpheight = ((_root.jumpY * _root.i) - (_root.g * Math.pow(_root.i, 2))) * -1;
y = _root.ren_sy + ((_root.jumpY * _root.i) - (_root.g * Math.pow(_root.i, 2)));
if (y < _root.top) {
}
y = _root.top;
_root.speed = _root.speed * 0.88;
_root.spinScore = _root.spinScore + (_root.jumpheight / 20);
if ((_root.top < y) || (_root.jumpheight < 0)) {
px = _root.pipe._x - _x;
px = _x - _root.pipe._x;
_root.jumpheight = 0;
_root.jj_adjust = 250;
if (((cf > 5) && (cf < 27)) || (px > (135 + _root.jj_adjust))) {
if (px > (135 + _root.jj_adjust)) {
_root.spinScore = _root.spinScore + 2300;
} else if ((px - _root.jj_adjust) > 0) {
_root.spinScore = (_root.spinScore + (px * _root.fen_base)) - (_root.fen_base * _root.jj_adjust);
}
_root.wipeout(Math.ceil(_root.spinScore));
} else if (px <= 0) {
_root.spinScore = _root.spinScore + 2300;
_root.wipeout(Math.ceil(_root.spinScore));
} else {
_root.sfx.playSound("land");
if ((px - _root.jj_adjust) > 0) {
_root.spinScore = (_root.spinScore + (px * _root.fen_base)) - (_root.jj_adjust * _root.fen_base);
}
_root.jumpscore = Math.ceil(_root.spinScore);
if ((_root.extrain_flg == 0) or (_root.extrain_flg == 1)) {
_root.score = _root.score + _root.jumpscore;
_root.num_xsh(Math.floor(_root.jumpscore), _root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"]._x, _root.surfer._y);
}
}
_root.visible_flg = 1;
if (_root.visible_flg == 1) {
_root[_name].shad._visible = 1;
} else {
_root[_name].shad._visible = 0;
}
_root.flyin = false;
}
} else {
angle = (cf - 1) * 12;
angleX = Math.sin(angle * 0.017453);
if (angleX > 0.9) {
_root.brakesX = _root.brakesX - 0.01;
} else if (_root.brakesX < _root.brakesXmax) {
_root.brakesX = _root.brakesX + 0.02;
} else if (_root.brakesXmax < _root.brakesX) {
_root.brakesX = _root.brakesXmax;
}
angleX = angleX * _root.accelX;
_root.ren_dx = _root.ren_dx + angleX;
_x = (_x - angleX);
if (_x < _root.leftX) {
_x = _root.leftX;
}
if (_root.rightX < _x) {
_x = _root.rightX;
}
_root.ren_dx = _root.ren_dx * _root.brakesX;
if (_root.maxX < _root.ren_dx) {
_root.ren_dx = _root.maxX;
}
if (_root.ren_dx < (-_root.maxX)) {
_root.ren_dx = -_root.maxX;
}
_root.ren_dy = Math.cos(angle * 0.017453) * ((_root.maxX * _root.accelY) + (Math.abs(_root.ren_dx) * _root.accelY));
if ((_root.pipe._x - _x) > (200 + _root.jj_adjust)) {
_root.wipeout(200);
}
if (_root.gameon) {
_root.active = false;
if ((_root.level < 3) && (_root.score >= _root.threshold)) {
_root.gotoAndStop("start");
} else {
_root.gotoAndStop("gameover");
}
}
y = y + _root.ren_dy;
if (y < _root.top) {
_root.jumpY = _root.ren_dy;
_root.jumpSpin = "none";
_root.spinScore = 0;
_root.ren_sy = y;
_root.i = 0;
_root.visible_flg = 0;
if (_root.visible_flg == 1) {
_root[_name].shad._visible = 1;
} else {
_root[_name].shad._visible = 0;
}
_root.flyin = true;
}
if (_root.bottom < y) {
_root.wipeout(500);
}
}
_root.speed = _root.ren_dx;
_y = y;
}
}
}
Instance of Symbol 404 MovieClip "gift1" in Frame 4
onClipEvent (enterFrame) {
if (_root.over_flg == 1) {
_root.gift1_active = false;
removeMovieClip(_target);
} else if (_root.gift_flg == 1) {
if (((!_root.gift1_active) && (random(_root.pl) == 0)) && (_root.gift1_active == false)) {
_root.num = _root.num + 1;
duplicateMovieClip ("/gift1", "gift1" + _root.num, _root.lev + _root.num);
setProperty(_root["gift1" + _root.num], _x , 150 + Math.floor(Math.random() * 300));
setProperty(_root["gift1" + _root.num], _y , (175 + Math.floor(Math.random() * 30)) - _root.adjust_y);
_root.surfer_jj_1 = _root.surfer._y - _root["gift1" + _root.num]._y;
_root.gift1_active = true;
_root.gift1_num = 0;
} else if (_name ne "gift1") {
if (this.hitTest(_root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"].tantou) and (_root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"]._visible == 1)) {
_root.copy100num = _root.copy100num + 1;
duplicateMovieClip ("_root.num100", "num100copy" + _root.copy100num, 410 + _root.copy100num);
_root["num100copy" + _root.copy100num]._x = _x;
_root["num100copy" + _root.copy100num]._y = _y;
_root["num100copy" + _root.copy100num]._alpha = 0;
_root.no_100 = _root.copy100num;
_root.midiplay(3);
removeMovieClip(_target);
_root.Score = _root.Score + _root.fen_1;
_root.gift1_active = false;
_root.gift1_num = 0;
} else {
_y = (_root.surfer._y - _root.surfer_jj_1);
_root.gift1_num = _root.gift1_num + 1;
if (_root.gift1_num > 60) {
_root.gift1_num = 0;
removeMovieClip(_target);
_root.gift1_active = false;
}
}
}
}
}
Frame 5
stop();
score = _root.score;
showScores = function () {
var _local2 = 10;
while (_local2 > 0) {
var _local3 = scoreboard_lv["name" + (page + _local2)];
var s = scoreboard_lv["score" + (page + _local2)];
var _local1 = this[("line" + _local2) + "_mc"];
_local1.rank_txt.text = (page + _local2) + ".";
_local1.name_txt.text = (_local3.length ? (_local3.toUpperCase()) : "-");
_local1.score_txt.text = (s.length ? (s.addCommas()) : "-");
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = ((game_so.data.playerName.length && (_local3.toUpperCase() == game_so.data.playerName.toUpperCase())) ? 52479 : 16777215)));
_local1._visible = true;
loading_mc._visible = false;
_local2--;
}
};
page = 0;
maxScore = 50;
scoreboard_lv = new LoadVars();
if ((score > 0) && (game_so.data.playerName.length > 0)) {
scoreboard_lv.score = score;
scoreboard_lv.name = _root.game_so.data.playerName.toLowerCase();
scoreboard_lv.useremail = _root.game_so.data.useremail.toLowerCase();
}
scoreboard_lv.game = "surf";
scoreboard_lv.sendAndLoad("game_score.php", scoreboard_lv, "POST");
scoreboard_lv.onLoad = function (success) {
if (success) {
if (Boolean(scoreboard_lv.success)) {
if (scoreboard_lv.maxScore.length > 0) {
maxScore = Number(scoreboard_lv.maxScore);
}
showScores();
} else {
loading_mc.errorMsg = scoreboard_lv.errorMsg.toUpperCase();
loading_mc.gotoAndStop(2);
}
} else {
loading_mc.errorMsg = "SCORES ONLY ON T45OL.COM.";
loading_mc.gotoAndStop(2);
}
};
score = 0;
last_btn._visible = false;
next_btn._visible = ture;
top_btn.onPress = function () {
page = 1;
next_btn._visible = true;
showScores();
};
last_btn.onPress = function () {
page = page - 10;
if (page < 0) {
page = 0;
}
if (page < 10) {
last_btn._visible = false;
}
next_btn._visible = true;
showScores();
};
next_btn.onPress = function () {
page = page + 10;
if (page > maxScore) {
page = maxScore;
}
if (page > (maxScore - 20)) {
next_btn._visible = false;
}
last_btn._visible = true;
showScores();
};
newGame_btn.onRelease = function () {
gotoAndStop (2);
};
ufo_mc.dir = 1;
ufo_mc.onEnterFrame = function () {
var _local1 = this;
if (!_local1._visible) {
_local1.dir = (int(rnd() * 2) * 2) - 1;
_local1._x = 250 - (_local1.dir * 300);
_local1._visible = true;
}
_local1._x = _local1._x + (_local1.dir * 3);
if ((_local1._x > 550) || (_local1._x < -50)) {
_local1._visible = false;
}
};
Symbol 44 MovieClip Frame 1
_root.midiplay(5);
Symbol 74 Button
on (press, keyPress "1") {
_root.midistop(5);
_root.midiplay(1);
_root.extrain_flg = 0;
_root.ren_dunxiang = "01";
_root.gotoAndStop("game_kl_main");
if (_root.ren_dunxiang eq "02") {
_root.mqt1._visible = 0;
_root.mqt2._visible = 0;
_root.mqt3._visible = 0;
_root.mqt4._visible = 0;
_root.mqt5._visible = 0;
_root.mqt6._visible = 0;
_root.mqt7._visible = 0;
_root.mqt8._visible = 0;
_root.mqt9._visible = 0;
_root.mqt10._visible = 0;
} else if (_root.ren_dunxiang eq "01") {
_root.qt1._visible = 0;
_root.qt2._visible = 0;
_root.qt3._visible = 0;
_root.qt4._visible = 0;
_root.qt5._visible = 0;
_root.qt6._visible = 0;
_root.qt7._visible = 0;
_root.qt8._visible = 0;
_root.qt9._visible = 0;
_root.qt10._visible = 0;
}
if (_root.extrain_flg == 0) {
_root.ren_num = 10;
_root.score_text._visible = 1;
_root.gift_flg = 1;
} else {
_root.score_text._visible = 1;
_root.score = 0;
_root.ren_num = 10;
_root.gift_flg = 1;
_root.qt1._visible = 0;
_root.qt2._visible = 0;
_root.qt3._visible = 0;
_root.qt4._visible = 0;
_root.qt5._visible = 0;
_root.qt6._visible = 0;
_root.qt7._visible = 0;
_root.qt8._visible = 0;
_root.qt9._visible = 0;
_root.qt10._visible = 0;
_root.mqt1._visible = 0;
_root.mqt2._visible = 0;
_root.mqt3._visible = 0;
_root.mqt4._visible = 0;
_root.mqt5._visible = 0;
_root.mqt6._visible = 0;
_root.mqt7._visible = 0;
_root.mqt8._visible = 0;
_root.mqt9._visible = 0;
_root.mqt10._visible = 0;
}
}
Symbol 80 Button
on (press, keyPress "2") {
_root.midistop(5);
_root.midiplay(1);
_root.extrain_flg = 0;
_root.ren_dunxiang = "02";
_root.gotoAndStop("game_kl_main");
if (_root.ren_dunxiang eq "02") {
_root.mqt1._visible = 0;
_root.mqt2._visible = 0;
_root.mqt3._visible = 0;
_root.mqt4._visible = 0;
_root.mqt5._visible = 0;
_root.mqt6._visible = 0;
_root.mqt7._visible = 0;
_root.mqt8._visible = 0;
_root.mqt9._visible = 0;
_root.mqt10._visible = 0;
} else if (_root.ren_dunxiang eq "01") {
_root.qt1._visible = 0;
_root.qt2._visible = 0;
_root.qt3._visible = 0;
_root.qt4._visible = 0;
_root.qt5._visible = 0;
_root.qt6._visible = 0;
_root.qt7._visible = 0;
_root.qt8._visible = 0;
_root.qt9._visible = 0;
_root.qt10._visible = 0;
}
if (_root.extrain_flg == 0) {
_root.ren_num = 10;
_root.score_text._visible = 1;
_root.gift_flg = 1;
} else {
_root.score_text._visible = 1;
_root.score = 0;
_root.ren_num = 10;
_root.gift_flg = 1;
_root.qt1._visible = 0;
_root.qt2._visible = 0;
_root.qt3._visible = 0;
_root.qt4._visible = 0;
_root.qt5._visible = 0;
_root.qt6._visible = 0;
_root.qt7._visible = 0;
_root.qt8._visible = 0;
_root.qt9._visible = 0;
_root.qt10._visible = 0;
_root.mqt1._visible = 0;
_root.mqt2._visible = 0;
_root.mqt3._visible = 0;
_root.mqt4._visible = 0;
_root.mqt5._visible = 0;
_root.mqt6._visible = 0;
_root.mqt7._visible = 0;
_root.mqt8._visible = 0;
_root.mqt9._visible = 0;
_root.mqt10._visible = 0;
}
}
Symbol 116 MovieClip Frame 3
stop();
Symbol 123 Button
on (release) {
getURL ("http://www.t45ol.com", "_black");
}
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 3
stop();
Symbol 142 MovieClip Frame 4
stop();
Symbol 142 MovieClip Frame 5
stop();
Symbol 142 MovieClip Frame 6
stop();
Symbol 142 MovieClip Frame 7
stop();
Symbol 142 MovieClip Frame 8
stop();
Symbol 142 MovieClip Frame 9
stop();
Symbol 142 MovieClip Frame 10
stop();
Symbol 168 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 10
stop();
this.gotoAndStop(1);
this._visible = 0;
Symbol 210 MovieClip Frame 1
stop();
stop();
Symbol 210 MovieClip Frame 10
stop();
this.gotoAndStop(1);
this._visible = 0;
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 10
stop();
this.gotoAndStop(1);
this._visible = 0;
Symbol 278 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 12
stop();
_root.pipeX = 0;
_root.pipe.x = _root.pipeX;
_root.pipe._x = _root.pipeX;
_root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"]._visible = 1;
_root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"].gotoAndStop(1);
_root.visible_flg = 1;
this.gotoAndStop(1);
this._visible = 0;
Symbol 365 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 11
stop();
_root.pipeX = 0;
_root.pipe.x = _root.pipeX;
_root.pipe._x = _root.pipeX;
_root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"]._visible = 1;
_root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"].gotoAndStop(1);
_root.visible_flg = 1;
this.gotoAndStop(1);
this._visible = 0;
Symbol 382 Button
on (release) {
if (_root.sound_flg == 1) {
_root.sound_flg = 0;
_root.midistop(1);
this.gotoAndStop(2);
} else {
_root.sound_flg = 1;
_root.midiplay(1);
this.gotoAndStop(1);
}
}
Symbol 384 MovieClip Frame 1
stop();
Symbol 401 Button
on (release) {
removeMovieClip(_root[(("ren" + _root.ren_dunxiang) + "_cl") + "FZ"]);
_root.newGame();
this.gotoAndStop("select");
}
Symbol 422 Button
on (press) {
if ((_root.quedinW.username.text.length != 0) and (_root.quedinW.useremail.text.length != 0)) {
_root.game_so.data.playerName = _root.quedinW.username.text;
_root.game_so.data.useremail = _root.quedinW.useremail.text;
_root.gotoAndStop("ph");
}
}
Symbol 438 Button
on (release) {
_root.newGame();
this.gotoAndStop("select");
}
Symbol 452 Button
on (release) {
getURL ("http://www.t45ol.com/", "_blank");
}
Symbol 454 Button
on (release) {
getURL ("http://www.t45ol.com/play_flash.php?ID=990", "_blank");
}
Symbol 458 Button
on (release) {
getURL ("http://www.frontnetwork.net", "_blank");
}
Symbol 460 MovieClip Frame 1
stop();
errorMsg = "";
i = 0;
alien_mc.onEnterFrame = function () {
i = i + 0.25;
i = i % 2;
this.gotoAndStop(i + 1);
};