Instance of Symbol 24 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._yscale = LoadedPercent;
DLRate = (_root.getBytesLoaded() / (getTimer() / 1000)) / 1000;
_root.Rate_txt.text = (int(DLRate * 100) / 100) + "KB/s";
SecondsLeft = (TotalKB - LoadedKB) / DLRate;
Minutes = Math.floor(SecondsLeft / 60);
if (Number(Minutes) < 10) {
Minutes = "0" + Minutes;
}
Seconds = int(SecondsLeft - (Minutes * 60));
if (Number(Seconds) < 10) {
Seconds = "0" + Seconds;
}
_root.TimeLeft_txt.text = (Minutes + " : ") + Seconds;
}
onClipEvent (load) {
_root.Percent_txt.text = "0%";
_root.Bar_mc._yscale = 0;
}
Frame 2
if (Number(Code_mc.LoadedPercent) == 100) {
nextFrame();
} else {
gotoAndPlay (1);
}
Frame 3
gotoAndStop (4);
_root.quedinW.username.text = "";
_root.quedinW.useremail.text = "";
Frame 4
function jsfen() {
_root.fen = (((((_root.aa_num * 5) + (_root.bb_num * 10)) + (_root.cc_num * 50)) + (_root.dd_num * 100)) + (_root.ee_num * 150)) + (_root.ff_num * 200);
_root.g_score = _root.fen;
}
function newgift() {
var gl;
var gl1;
var gll;
gl = Math.floor(Math.random() * 7);
if (gl == 0) {
if (_root.fen_num >= 800) {
gll = 6;
} else if ((_root.fen_num >= 600) and (_root.fen_num < 800)) {
gll = 5;
} else if ((_root.fen_num >= 400) and (_root.fen_num < 600)) {
gll = 5;
} else if ((_root.fen_num >= 200) and (_root.fen_num < 400)) {
gll = 4;
} else {
gll = 4;
}
gl1 = Math.floor(Math.random() * gll);
if (gl1 == 0) {
_root.num = _root.num + 1;
duplicateMovieClip ("/aa", "aa" + _root.num, 10 + _root.num);
setProperty("aa" + _root.num, _x , 147 + Math.floor(Math.random() * 163));
setProperty("aa" + _root.num, _y , 386);
}
} else if (gl == 1) {
if (_root.fen_num >= 800) {
gll = 9;
} else if ((_root.fen_num >= 600) and (_root.fen_num < 800)) {
gll = 8;
} else if ((_root.fen_num >= 400) and (_root.fen_num < 600)) {
gll = 7;
} else if ((_root.fen_num >= 200) and (_root.fen_num < 400)) {
gll = 6;
} else {
gll = 5;
}
gl1 = Math.floor(Math.random() * gll) + 1;
if (gl1 == 0) {
_root.num = _root.num + 1;
duplicateMovieClip ("/bb", "bb" + _root.num, 10 + _root.num);
setProperty("bb" + _root.num, _x , 147 + Math.floor(Math.random() * 163));
setProperty("bb" + _root.num, _y , 386);
}
} else if (gl == 2) {
if (_root.fen_num >= 800) {
gll = 10;
} else if ((_root.fen_num >= 600) and (_root.fen_num < 800)) {
gll = 9;
} else if ((_root.fen_num >= 400) and (_root.fen_num < 600)) {
gll = 8;
} else if ((_root.fen_num >= 200) and (_root.fen_num < 400)) {
gll = 7;
} else {
gll = 6;
}
gl1 = Math.floor(Math.random() * gll);
if (gl1 == 0) {
_root.num = _root.num + 1;
duplicateMovieClip ("/cc", "cc" + _root.num, 10 + _root.num);
setProperty("cc" + _root.num, _x , 147 + Math.floor(Math.random() * 163));
setProperty("cc" + _root.num, _y , 386);
}
} else if (gl == 3) {
if (_root.fen_num >= 800) {
gll = 11;
} else if ((_root.fen_num >= 600) and (_root.fen_num < 800)) {
gll = 10;
} else if ((_root.fen_num >= 400) and (_root.fen_num < 600)) {
gll = 9;
} else if ((_root.fen_num >= 200) and (_root.fen_num < 400)) {
gll = 8;
} else {
gll = 7;
}
gl1 = Math.floor(Math.random() * gll);
if (gl1 == 0) {
_root.num = _root.num + 1;
duplicateMovieClip ("/dd", "dd" + _root.num, 10 + _root.num);
setProperty("dd" + _root.num, _x , 147 + Math.floor(Math.random() * 163));
setProperty("dd" + _root.num, _y , 386);
}
} else if (gl == 4) {
if (_root.fen_num >= 800) {
gll = 12;
} else if ((_root.fen_num >= 600) and (_root.fen_num < 800)) {
gll = 11;
} else if ((_root.fen_num >= 400) and (_root.fen_num < 600)) {
gll = 10;
} else if ((_root.fen_num >= 200) and (_root.fen_num < 400)) {
gll = 9;
} else {
gll = 8;
}
gl1 = Math.floor(Math.random() * gll);
if (gl1 == 0) {
_root.num = _root.num + 1;
duplicateMovieClip ("/ee", "ee" + _root.num, 10 + _root.num);
setProperty("ee" + _root.num, _x , 147 + Math.floor(Math.random() * 163));
setProperty("ee" + _root.num, _y , 386);
}
} else if (gl == 5) {
if (_root.fen_num >= 800) {
gll = 13;
} else if ((_root.fen_num >= 600) and (_root.fen_num < 800)) {
gll = 12;
} else if ((_root.fen_num >= 400) and (_root.fen_num < 600)) {
gll = 11;
} else if ((_root.fen_num >= 200) and (_root.fen_num < 400)) {
gll = 10;
} else {
gll = 9;
}
gll = gll;
gl1 = Math.floor(Math.random() * gll);
if (gl1 == 0) {
_root.num = _root.num + 1;
duplicateMovieClip ("/ff", "ff" + _root.num, 10 + _root.num);
setProperty("ff" + _root.num, _x , 147 + Math.floor(Math.random() * 163));
setProperty("ff" + _root.num, _y , 386);
}
} else if (gl == 6) {
if (_root.Q2_num >= 80) {
gll = 12;
} else if ((_root.Q2_num >= 60) and (_root.Q2_num < 80)) {
gll = 10;
} else if ((_root.Q2_num >= 40) and (_root.Q2_num < 60)) {
gll = 8;
} else if ((_root.Q2_num >= 20) and (_root.Q2_num < 40)) {
gll = 6;
} else {
gll = 4;
}
gll = gll - 3;
gl1 = Math.floor(Math.random() * gll);
if (gl1 == 0) {
_root.num = _root.num + 1;
duplicateMovieClip ("/gg", "gg" + _root.num, 10 + _root.num);
setProperty("gg" + _root.num, _x , 147 + Math.floor(Math.random() * 163));
setProperty("gg" + _root.num, _y , 386);
}
}
}
function jsO2() {
_root.Q2_num = _root.Q2_num - (0.88 + ((2 * (_root.shuzhi_down._y - _root.ren_bj_min_y)) / (_root.ren_bj_max_y - _root.ren_bj_min_y)));
if (_root.Q2_num <= 0) {
clearInterval(time1);
clearInterval(time2);
clearInterval(time5);
_root.midistop(1);
_root.gotoAndStop("ph");
_root.showScores();
} else {
_root.yangqiXSH(_root.Q2_num);
}
}
function renswin() {
var flg;
_root.v_water = (2 * (_root.shuzhi_down._y - _root.ren_bj_min_y)) / (_root.ren_bj_max_y - _root.ren_bj_min_y);
if ((_root.shuzhi_down._rotation >= 0) and (_root.shuzhi_down._rotation <= 90)) {
_root.shuzhi_down._x = _root.shuzhi_down._x + (_root.v_ren * math.sin((_root.shuzhi_down._rotation * math.pi) / 180));
} else if ((_root.shuzhi_down._rotation >= -90) and (_root.shuzhi_down._rotation <= 0)) {
_root.shuzhi_down._x = _root.shuzhi_down._x + (_root.v_ren * math.sin((_root.shuzhi_down._rotation * math.pi) / 180));
} else if ((_root.shuzhi_down._rotation >= -180) and (_root.shuzhi_down._rotation <= -90)) {
_root.shuzhi_down._x = _root.shuzhi_down._x + (_root.v_ren * math.sin((_root.shuzhi_down._rotation * math.pi) / 180));
} else if ((_root.shuzhi_down._rotation >= 90) and (_root.shuzhi_down._rotation <= 180)) {
_root.shuzhi_down._x = _root.shuzhi_down._x + (_root.v_ren * math.sin((_root.shuzhi_down._rotation * math.pi) / 180));
}
if ((_root.shuzhi_down._rotation >= 0) and (_root.shuzhi_down._rotation <= 90)) {
_root.shuzhi_down._y = (_root.shuzhi_down._y - (_root.v_ren * math.cos((_root.shuzhi_down._rotation * math.pi) / 180))) - _root.v_water;
} else if ((_root.shuzhi_down._rotation >= -90) and (_root.shuzhi_down._rotation <= 0)) {
_root.shuzhi_down._y = (_root.shuzhi_down._y - (_root.v_ren * math.cos((_root.shuzhi_down._rotation * math.pi) / 180))) - _root.v_water;
} else if ((_root.shuzhi_down._rotation >= -180) and (_root.shuzhi_down._rotation <= -90)) {
_root.shuzhi_down._y = (_root.shuzhi_down._y - (_root.v_ren * math.cos((_root.shuzhi_down._rotation * math.pi) / 180))) - _root.v_water;
} else if ((_root.shuzhi_down._rotation >= 90) and (_root.shuzhi_down._rotation <= 180)) {
_root.shuzhi_down._y = (_root.shuzhi_down._y - (_root.v_ren * math.cos((_root.shuzhi_down._rotation * math.pi) / 180))) - _root.v_water;
}
if (_root.shuzhi_down._y < _root.ren_bj_min_y) {
_root.shuzhi_down._y = _root.ren_bj_min_y;
} else if (_root.shuzhi_down._y > _root.ren_bj_max_y) {
_root.shuzhi_down._y = _root.ren_bj_max_y;
}
if (_root.shuzhi_down._x < _root.ren_bj_min_x) {
_root.shuzhi_down._x = _root.ren_bj_min_x;
} else if (_root.shuzhi_down._x > _root.ren_bj_max_x) {
_root.shuzhi_down._x = _root.ren_bj_max_x;
}
}
function midistop(bz) {
if (bz == 1) {
sound1.stop();
} else if (bz == 2) {
sound2.stop();
} else if (bz == 3) {
sound3.stop();
}
}
function midiplay(bz) {
if (bz == 1) {
sound1.attachSound("bksound2");
sound1.start("", 99);
} else if (bz == 2) {
sound2.attachSound("yinxiao1");
sound2.start("", 1);
} else if (bz == 3) {
sound3.attachSound("b");
sound3.start("", 1);
}
}
stop();
sound1 = new Sound();
sound2 = new Sound();
sound3 = new Sound();
String.prototype.addCommas = function () {
var len = this.length;
var str = "";
var i = 0;
while (i <= len) {
str = this.charAt(len - i) + str;
if ((((i % 3) == 0) && (i > 0)) && (i < len)) {
str = "," + str;
}
i++;
}
return(str);
};
score = 0;
gameOver = true;
rnd = Math.random;
fscommand ("showmenu", "false");
_root.quedinW._visible = 0;
_root.aa._visible = 0;
game_so = SharedObject.getLocal("neaveInvaders");
_root.v = 0.2;
_root.fen = 0;
_root.Q2_num = 100;
_root.v_water = 0;
move_t2 = 1000;
move_t5 = 1;
aa_num = 0;
bb_num = 0;
K_Code = 0;
cc_num = 0;
dd_num = 0;
ee_num = 0;
ff_num = 0;
move_t1 = 200;
key_cotrol = 0;
key_flg = 1;
ren_speed = 3;
v_ren = 3;
_root.g_score = 0;
ren_rotate = 10;
_root.num = 0;
Frame 5
function yangqiXSH(BaiFN) {
_root.Yqg.Yqt._yscale = _root.ss * (BaiFN / 100);
}
stop();
_root.aageshu.text = 0;
_root.ccgeshu.text = 0;
_root.ddgeshu.text = 0;
_root.eegeshu.text = 0;
_root.ffgeshu.text = 0;
_root.g_score = 0;
ren_bj_min_x = _root.Zuo_bianjie._x;
ren_bj_max_x = _root.You_bianjie._x;
ren_bj_min_y = _root.SH_bianjie._y;
ren_bj_max_y = _root.Xia_bianjie._y;
_root.ss = _root.Yqg.Yqt._yscale;
time2 = setInterval(jsO2, _root.move_t2);
Instance of Symbol 77 MovieClip in Frame 5
onClipEvent (keyDown) {
}
Instance of Symbol 84 MovieClip "ShuZhi_down" in Frame 5
onClipEvent (enterFrame) {
if (_root.key_flg == 1) {
K_Code = Key.getCode();
if (Key.isDown(40)) {
_root.v_ren = _root.v_ren - _root.v;
if (_root.v_ren <= 0) {
_root.v_ren = 0;
}
} else if (Key.isDown(38)) {
_root.v_ren = _root.v_ren + _root.v;
if (_root.v_ren >= 5) {
_root.v_ren = 5;
}
} else if (Key.isDown(37)) {
_root.shuzhi_down._rotation = _root.shuzhi_down._rotation - _root.ren_rotate;
} else if (Key.isDown(39)) {
_root.shuzhi_down._rotation = _root.shuzhi_down._rotation + _root.ren_rotate;
}
}
_root.renswin();
}
Instance of Symbol 112 MovieClip "gg" in Frame 5
onClipEvent (enterFrame) {
if ((_name ne "gg") and (_name ne "gg0")) {
if (this.hitTest("_root.ShuZhi_down.ChuTou")) {
_root.midiplay(2);
_root.Q2_num = _root.Q2_num + 2;
play();
} else {
_y = (_y - 3);
gl = Math.floor(Math.random() * 3);
gl = 1;
if (gl == 0) {
_x = (_x - Math.floor(Math.random() * 4));
} else if (gl == 1) {
if ((_root.shuzhi_down._rotation >= 0) and (_root.shuzhi_down._rotation <= 90)) {
_x = (_x - Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= -90) and (_root.shuzhi_down._rotation <= 0)) {
_x = (_x + Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= -180) and (_root.shuzhi_down._rotation <= -90)) {
_x = (_x + Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= 90) and (_root.shuzhi_down._rotation <= 180)) {
_x = (_x - Math.floor(Math.random() * 5));
}
} else {
_x = (_x + Math.floor(Math.random() * 4));
}
if (_y < (_root.ren_bj_min_y + 10)) {
removeMovieClip(_target);
}
if (_x < 143) {
removeMovieClip(_target);
} else if (_x > 308) {
removeMovieClip(_target);
}
}
}
}
Instance of Symbol 102 MovieClip "cc" in Frame 5
onClipEvent (enterFrame) {
if ((_name ne "cc") and (_name ne "cc0")) {
if (this.hitTest("_root.ShuZhi_down.ChuTou")) {
_root.midiplay(2);
_root.cc_num = _root.cc_num + 1;
_root.ccgeshu.text = _root.cc_num;
_root.jsfen();
removeMovieClip(_target);
} else {
_y = (_y - 4);
gl = Math.floor(Math.random() * 3);
if (gl == 0) {
_x = (_x - Math.floor(Math.random() * 4));
} else if (gl == 1) {
if ((_root.shuzhi_down._rotation >= 0) and (_root.shuzhi_down._rotation <= 90)) {
_x = (_x - Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= -90) and (_root.shuzhi_down._rotation <= 0)) {
_x = (_x + Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= -180) and (_root.shuzhi_down._rotation <= -90)) {
_x = (_x + Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= 90) and (_root.shuzhi_down._rotation <= 180)) {
_x = (_x - Math.floor(Math.random() * 5));
}
} else {
_x = (_x + Math.floor(Math.random() * 4));
}
if (_y < (_root.ren_bj_min_y + 10)) {
removeMovieClip(_target);
}
if (_x < 143) {
removeMovieClip(_target);
} else if (_x > 308) {
removeMovieClip(_target);
}
}
}
}
Instance of Symbol 104 MovieClip "ee" in Frame 5
onClipEvent (enterFrame) {
if ((_name ne "ee") and (_name ne "ee0")) {
if (this.hitTest("_root.ShuZhi_down.ChuTou")) {
_root.midiplay(2);
_root.ee_num = _root.ee_num + 1;
_root.eegeshu.text = _root.ee_num;
_root.jsfen();
removeMovieClip(_target);
} else {
_y = (_y - 6);
gl = Math.floor(Math.random() * 3);
if (gl == 0) {
_x = (_x - Math.floor(Math.random() * 4));
} else if (gl == 1) {
if ((_root.shuzhi_down._rotation >= 0) and (_root.shuzhi_down._rotation <= 90)) {
_x = (_x - Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= -90) and (_root.shuzhi_down._rotation <= 0)) {
_x = (_x + Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= -180) and (_root.shuzhi_down._rotation <= -90)) {
_x = (_x + Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= 90) and (_root.shuzhi_down._rotation <= 180)) {
_x = (_x - Math.floor(Math.random() * 5));
}
} else {
_x = (_x + Math.floor(Math.random() * 4));
}
if (_y < (_root.ren_bj_min_y + 10)) {
removeMovieClip(_target);
}
if (_x < 143) {
removeMovieClip(_target);
} else if (_x > 308) {
removeMovieClip(_target);
}
}
}
}
Instance of Symbol 106 MovieClip "ff" in Frame 5
onClipEvent (enterFrame) {
if ((_name ne "ff") and (_name ne "ff0")) {
if (this.hitTest("_root.ShuZhi_down.ChuTou")) {
_root.midiplay(2);
_root.ff_num = _root.ff_num + 1;
_root.ffgeshu.text = _root.ff_num;
_root.jsfen();
removeMovieClip(_target);
} else {
_y = (_y - 7);
gl = Math.floor(Math.random() * 3);
if (gl == 0) {
_x = (_x - Math.floor(Math.random() * 4));
} else if (gl == 1) {
if ((_root.shuzhi_down._rotation >= 0) and (_root.shuzhi_down._rotation <= 90)) {
_x = (_x - Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= -90) and (_root.shuzhi_down._rotation <= 0)) {
_x = (_x + Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= -180) and (_root.shuzhi_down._rotation <= -90)) {
_x = (_x + Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= 90) and (_root.shuzhi_down._rotation <= 180)) {
_x = (_x - Math.floor(Math.random() * 5));
}
} else {
_x = (_x + Math.floor(Math.random() * 4));
}
if (_y < (_root.ren_bj_min_y + 10)) {
removeMovieClip(_target);
}
if (_x < 143) {
removeMovieClip(_target);
} else if (_x > 308) {
removeMovieClip(_target);
}
}
}
}
Instance of Symbol 114 MovieClip "bb" in Frame 5
onClipEvent (enterFrame) {
if ((_name ne "bb") and (_name ne "bb0")) {
if (this.hitTest("_root.ShuZhi_down.ChuTou")) {
_root.bb_num = _root.bb_num + 1;
_root.bbgeshu.text = _root.bb_num;
_root.jsfen();
removeMovieClip(_target);
} else {
_y = (_y - 3);
gl = Math.floor(Math.random() * 3);
if (gl == 0) {
_x = (_x - Math.floor(Math.random() * 4));
} else if (gl == 1) {
if ((_root.shuzhi_down._rotation >= 0) and (_root.shuzhi_down._rotation <= 90)) {
_x = (_x - Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= -90) and (_root.shuzhi_down._rotation <= 0)) {
_x = (_x + Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= -180) and (_root.shuzhi_down._rotation <= -90)) {
_x = (_x + Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= 90) and (_root.shuzhi_down._rotation <= 180)) {
_x = (_x - Math.floor(Math.random() * 5));
}
} else {
_x = (_x + Math.floor(Math.random() * 4));
}
if (_y < 165) {
removeMovieClip(_target);
} else if (_y > 355) {
removeMovieClip(_target);
}
if (_x < 110) {
removeMovieClip(_target);
} else if (_x > 275) {
removeMovieClip(_target);
}
}
}
}
Instance of Symbol 108 MovieClip "dd" in Frame 5
onClipEvent (enterFrame) {
if ((_name ne "dd") and (_name ne "dd0")) {
if (this.hitTest("_root.ShuZhi_down.ChuTou")) {
_root.midiplay(2);
_root.dd_num = _root.dd_num + 1;
_root.ddgeshu.text = _root.dd_num;
_root.jsfen();
removeMovieClip(_target);
} else {
_y = (_y - 5);
gl = Math.floor(Math.random() * 3);
if (gl == 0) {
_x = (_x - Math.floor(Math.random() * 4));
} else if (gl == 1) {
if ((_root.shuzhi_down._rotation >= 0) and (_root.shuzhi_down._rotation <= 90)) {
_x = (_x - Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= -90) and (_root.shuzhi_down._rotation <= 0)) {
_x = (_x + Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= -180) and (_root.shuzhi_down._rotation <= -90)) {
_x = (_x + Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= 90) and (_root.shuzhi_down._rotation <= 180)) {
_x = (_x - Math.floor(Math.random() * 5));
}
} else {
_x = (_x + Math.floor(Math.random() * 4));
}
if (_y < (_root.ren_bj_min_y + 10)) {
removeMovieClip(_target);
}
if (_x < 143) {
removeMovieClip(_target);
} else if (_x > 308) {
removeMovieClip(_target);
}
}
}
}
Instance of Symbol 110 MovieClip "aa" in Frame 5
onClipEvent (enterFrame) {
if ((_name ne "aa") and (_name ne "aa0")) {
if (this.hitTest("_root.ShuZhi_down.ChuTou")) {
_root.midiplay(2);
_root.aa_num = _root.aa_num + 1;
_root.aageshu.text = _root.aa_num;
_root.jsfen();
removeMovieClip(_target);
} else {
_y = (_y - 2);
gl = Math.floor(Math.random() * 3);
if (gl == 0) {
_x = (_x - Math.floor(Math.random() * 4));
} else if (gl == 1) {
if ((_root.shuzhi_down._rotation >= 0) and (_root.shuzhi_down._rotation <= 90)) {
_x = (_x - Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= -90) and (_root.shuzhi_down._rotation <= 0)) {
_x = (_x + Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= -180) and (_root.shuzhi_down._rotation <= -90)) {
_x = (_x + Math.floor(Math.random() * 5));
} else if ((_root.shuzhi_down._rotation >= 90) and (_root.shuzhi_down._rotation <= 180)) {
_x = (_x - Math.floor(Math.random() * 5));
}
} else {
_x = (_x + Math.floor(Math.random() * 4));
}
if (_y < (_root.ren_bj_min_y + 10)) {
removeMovieClip(_target);
}
if (_x < 143) {
removeMovieClip(_target);
} else if (_x > 308) {
removeMovieClip(_target);
}
}
}
}
Frame 6
stop();
score = _root.fen;
showScores = function () {
var i = 10;
while (i > 0) {
var n = scoreboard_lv["name" + (page + i)];
var s = scoreboard_lv["score" + (page + i)];
var l_mc = this[("line" + i) + "_mc"];
l_mc.rank_txt.text = (page + i) + ".";
l_mc.name_txt.text = (n.length ? (n.toUpperCase()) : "-");
l_mc.score_txt.text = (s.length ? (s.addCommas()) : "-");
l_mc.rank_txt.textColor = (l_mc.name_txt.textColor = (l_mc.score_txt.textColor = ((game_so.data.playerName.length && (n.toUpperCase() == game_so.data.playerName.toUpperCase())) ? 52479 : 16777215)));
l_mc._visible = true;
loading_mc._visible = false;
i--;
}
};
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 = "deep";
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 = "COULD NOT ACCESS SCORES.";
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 () {
if (!this._visible) {
this.dir = (int(rnd() * 2) * 2) - 1;
this._x = 250 - (this.dir * 300);
this._visible = true;
}
this._x = this._x + (this.dir * 3);
if ((this._x > 550) || (this._x < -50)) {
this._visible = false;
}
};
Symbol 8 MovieClip [alien3] Frame 1
stop();
Symbol 8 MovieClip [alien3] Frame 3
gotoAndStop (1);
Symbol 29 Button
on (release) {
_root.quedinW._visible = 1;
_root.aa._visible = 1;
Selection.setFocus(_root.quedinW.username);
Selection.setSelection(1, 1);
}
Symbol 62 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(5);
_root.midiplay(1);
time1 = setInterval(newgift, _root.move_t1);
}
}
Symbol 74 Button
on (press) {
getURL ("http://www.t45ol.com");
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 3
stop();
removeMovieClip(_target);
Symbol 119 MovieClip Frame 1
stop();
errorMsg = "";
i = 0;
alien_mc.onEnterFrame = function () {
i = i + 0.25;
i = i % 2;
this.gotoAndStop(i + 1);
};
Symbol 133 Button
on (press) {
_root.gotoAndStop(4);
_root.quedinW.username.text = _root.game_so.data.playerName;
_root.quedinW.useremail.text = _root.game_so.data.useremail;
}