[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (522 B)
stop();
fscommand ("allowscale", "false");
fscommand ("trapallkeys", "true");
var contextMenu = new ContextMenu();
contextMenu.hideBuiltInItems();
this.menu = contextMenu;
var total = this.getBytesTotal();
this.onEnterFrame = function () {
var _local4 = this.getBytesLoaded();
var _local3 = Math.floor((_local4 / total) * 100);
percentMC.gotoAndStop(Math.floor(_local3 / 2));
percentTXT.text = _local3 + "%";
if (_local4 == total) {
_root.gotoAndPlay("game_head");
delete this.onEnterFrame;
}
};
Frame 4 (4.44 KiB) ●
function DeleteWhite(str) {
var _local3 = "";
Info.text = "";
var _local2 = 0;
while (_local2 < str.length) {
var _local1 = str.charAt(_local2);
if ((((_local1 != " ") && (_local1 != "\r")) && (_local1 != "\t")) && (_local1 != newline)) {
_local3 = _local3 + _local1;
}
_local2++;
}
return(_local3);
}
function DeleteEndsWhite(str) {
var _local4 = "";
var _local2 = "";
Info.text = "";
var _local5 = true;
var _local3 = 0;
while (_local3 < str.length) {
var _local1 = str.charAt(_local3);
if ((((_local1 != " ") && (_local1 != "\r")) && (_local1 != "\t")) && (_local1 != newline)) {
_local5 = false;
_local4 = _local4 + (_local2 + _local1);
_local2 = "";
} else if (!_local5) {
_local2 = _local2 + _local1;
}
_local3++;
}
return(_local4);
}
function reMoveColor(obj) {
var _local1 = new Color(obj);
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
_local1.setTransform(_local2);
}
function changeColor(obj) {
var _local1 = new Color(obj);
var _local2 = {ra:40, rb:30, ga:40, gb:30, ba:40, bb:30, aa:100, ab:0};
_local1.setTransform(_local2);
}
function changeRed(obj) {
var _local1 = new Color(obj);
var _local2 = {ra:100, rb:125, ga:0, gb:0, ba:0, bb:0, aa:100, ab:0};
_local1.setTransform(_local2);
}
function changeAlpha(obj) {
var _local1 = new Color(obj);
var _local2 = {ra:80, rb:60, ga:80, gb:60, ba:80, bb:60, aa:100, ab:0};
_local1.setTransform(_local2);
}
function changeLight(obj, bx, by, col, qty, sth) {
var _local1 = new flash.filters.GlowFilter();
_local1.color = col;
_local1.quality = qty;
_local1.strength = sth;
_local1.blurX = bx;
_local1.blurY = by;
obj.filters = [_local1];
}
function reMoveLight(obj) {
obj.filters = null;
}
function CopyArrayOne(arr) {
if (((arr == null) || (arr == undefined)) || (arr == "NaN")) {
trace("\u590D\u5236\u4E00\u7EF4\u6570\u7EC4\u51FA\u9519\uFF0C\u65E0\u6CD5\u627E\u5230\u53C2\u6570\u65E0\u6CD5\u590D\u5236!");
return(undefined);
}
var _local3 = new Array();
var _local1 = 0;
while (_local1 < arr.length) {
_local3[_local1] = arr[_local1];
_local1++;
}
return(_local3);
}
function CopyArrayTwo(arr) {
if (((arr == null) || (arr == undefined)) || (arr == "NaN")) {
trace("\u590D\u5236\u4E8C\u7EF4\u6570\u7EC4\u51FA\u9519\uFF0C\u65E0\u6CD5\u627E\u5230\u53C2\u6570\u65E0\u6CD5\u590D\u5236!");
return(undefined);
}
var _local4 = new Array();
var _local1 = 0;
while (_local1 < arr.length) {
_local4[_local1] = new Array();
var _local2 = 0;
while (_local2 < arr[_local1].length) {
_local4[_local1][_local2] = arr[_local1][_local2];
_local1++;
}
_local1++;
}
return(_local4);
}
function valInArray(val, arr) {
if (((arr == null) || (arr == undefined)) || (arr == "NaN")) {
trace("\u5224\u65AD\u503C\u662F\u5426\u5728\u6307\u5B9A\u6570\u7EC4\u4E2D\u51FA\u9519\uFF0C\u65E0\u6CD5\u627E\u5230\u6570\u7EC4\u53C2\u6570\u65E0\u6CD5\u590D\u5236!");
return(undefined);
}
var _local1 = 0;
while (_local1 < arr.length) {
if (val == arr[_local1]) {
return(_local1);
}
_local1++;
}
return(-1);
}
function UpsetArray(arr) {
if (((arr == null) || (arr == undefined)) || (arr == "NaN")) {
trace("\u5224\u65AD\u503C\u662F\u5426\u5728\u6307\u5B9A\u6570\u7EC4\u4E2D\u51FA\u9519\uFF0C\u65E0\u6CD5\u627E\u5230\u6570\u7EC4\u53C2\u6570\u65E0\u6CD5\u590D\u5236!");
return(undefined);
}
var _local4 = arr.length;
var _local5 = 0;
for(;;){
if (_local5 >= _local4) {
return(undefined);
}
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = arr.splice(random(arr.length), 1)[0];
arr.push(_local3);
_local2++;
}
_local5++;
};
}
function PlayBGS() {
bgs.setVolume(20);
bgs.start(0, 100000);
}
function PlaySound(url, fun) {
var _local1 = new Sound();
_local1.attachSound(url);
_local1.start();
_local1.onSoundComplete = fun;
}
trace("Game Start.....");
var gotoURL = "";
var replay = false;
var user_name = "";
btn_gamestart.onRelease = function () {
btn_gamestart.enabled = false;
btn_gameexit.enabled = false;
gotoURL = "game_description";
_root.gotoAndStop("do_nexthead");
};
btn_gameexit.onRelease = function () {
fscommand ("quit", "true");
getURL ("javascript:window.opener=self;window.close();", "_self");
};
var bgs = new Sound("mc_bgs");
bgs.attachSound("os_bgs");
setTimeout(PlayBGS, 100);
Frame 105 (8 B)
stop();
Frame 109 (28 B)
Transitions.gotoAndPlay(2);
Frame 111 (120 B)
game_start.onRelease = function () {
this.enabled = false;
gotoURL = "game_body";
gotoAndStop ("do_nextdes");
};
Frame 119 (28 B)
Transitions.gotoAndPlay(2);
Frame 123 (292 B)
name_txt.text = "";
btn_write.onRelease = function () {
user_name = DeleteEndsWhite(name_txt.text);
if (user_name == "") {
name_txt.text = "";
return(undefined);
}
this.enabled = false;
name_txt.selectable = false;
gotoURL = "game_body";
gotoAndStop ("do_nextName");
};
Frame 126 (28 B)
Transitions.gotoAndPlay(2);
Frame 127 (17.81 KiB) ● ● ●
function reMoveColor(obj) {
var _local1 = new Color(obj);
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
_local1.setTransform(_local2);
}
function changeColor(obj) {
var _local1 = new Color(obj);
var _local2 = {ra:40, rb:30, ga:40, gb:30, ba:40, bb:30, aa:100, ab:0};
_local1.setTransform(_local2);
}
function changeRed(obj) {
var _local1 = new Color(obj);
var _local2 = {ra:100, rb:125, ga:0, gb:0, ba:0, bb:0, aa:100, ab:0};
_local1.setTransform(_local2);
}
function changeAlpha(obj) {
var _local1 = new Color(obj);
var _local2 = {ra:80, rb:60, ga:80, gb:60, ba:80, bb:60, aa:100, ab:0};
_local1.setTransform(_local2);
}
function changeLight(obj, bx, by, col, qty, sth) {
var _local1 = new flash.filters.GlowFilter();
_local1.color = col;
_local1.quality = qty;
_local1.strength = sth;
_local1.blurX = bx;
_local1.blurY = by;
obj.filters = [_local1];
}
function reMoveLight(obj) {
obj.filters = null;
}
function TakeoffOver() {
mc_score.Num2._visible = true;
mc_score.Num2.play();
mc_score.Num1.gotoAndPlay((random(mc_score.Num1._totalframes - (mc_score.Num1._totalframes / 2)) + 1) + (mc_score.Num1._totalframes / 2));
time_score = 0;
qiaohu.onEnterFrame = FireFun;
}
function GO321Fun() {
Info._visible = true;
qiaohu.enabled = true;
clearInterval(f_id);
f_id = setInterval(FlashFun, 400);
}
function FlashFun() {
if (ff) {
ff = false;
reMoveLight(qiaohu);
return(undefined);
}
ff = true;
changeLight(qiaohu, 30, 30, 16711680, 1, 2);
}
function OutMeteors() {
if (_root.TimeStop) {
return(undefined);
}
if ((lastObs != null) && (lastObs._y < 0)) {
return(undefined);
}
var _local2 = attachMovie("meteor" + (random(3) + 1), "meteor" + meter_index, _root.getNextHighestDepth());
_local2._x = random(mete_right - mete_left) + mete_left;
_local2._y = mete_top;
_local2.onEnterFrame = MeteorMove;
lastObs = _local2;
meter_index++;
if (meter_index > 100) {
meter_index = 1;
}
obstacles.push(_local2);
}
function MeteorMove() {
if (_root.TimeStop) {
return(undefined);
}
if (this._y < 700) {
this._y = this._y + (obs_speed + with_speed);
return(undefined);
}
delete this.onEnterFrame;
obstacles.shift();
this.removeMovieClip();
}
function OutTreas() {
if (_root.TimeStop) {
return(undefined);
}
if ((lastTrea != null) && (lastTrea._y < 0)) {
return(undefined);
}
var _local3 = random(3) + 1;
var _local2 = attachMovie("trea" + _local3, "trea" + trea_index, _root.getNextHighestDepth());
_local2._x = random(mete_right - mete_left) + mete_left;
_local2._y = mete_top;
_local2.ran = _local3;
_local2.onEnterFrame = TreaMove;
lastTrea = _local2;
trea_index++;
if (trea_index > 100) {
trea_index = 1;
}
treas.push(_local2);
}
function TreaMove() {
if (_root.TimeStop) {
return(undefined);
}
if (this._y < 700) {
this._y = this._y + (trea_speed + with_speed);
return(undefined);
}
treas.shift();
delete this.onEnterFrame;
this.removeMovieClip();
}
function HaveOneTrea(tr) {
if (tr.ran == 1) {
starNum++;
mc_starNum.gotoAndStop(starNum + 1);
if (starNum >= 10) {
starNum = 0;
PlaySound("os_lifeup", undefined);
mc_starNum.gotoAndStop(starNum + 1);
if (life < 5) {
life++;
mc_life.gotoAndStop(life + 1);
}
}
PlaySound("os_star");
} else if (tr.ran == 2) {
if (paraNum == 0) {
paraNum = 1;
}
PlaySound("os_rato", undefined);
} else {
PlaySound("os_fire", undefined);
RocketFly();
}
tr.gotoAndStop(2);
}
function RocketFly() {
allTime_score = 1;
map_speed = (replay_speed = 25);
up_speed = 25;
rockeyflying = true;
PressFun();
clearInterval(rf_id);
rf_id = setInterval(RocketFlyOver, 2000);
}
function RocketFlyOver() {
clearInterval(rf_id);
if (rockeyflying) {
up_speed = up_speed_init;
replay_speed = replay_speed_init;
allTime_score = allTime_score_init;
rockeyflying = false;
DropDown();
}
}
function FireFun() {
if ((map._y + map_speed) < -1800) {
map._y = map._y + map_speed;
} else if (map._y < -1800) {
map._y = -1800;
replay_map._y = -600;
replay_speed = replay_speed_init;
} else {
StartDown();
}
CompleteScore();
}
function MapMoveFun() {
if (_root.TimeStop) {
return(undefined);
}
if (qh_dd) {
return(undefined);
}
if ((map._y + map_speed) < 600) {
map._y = map._y + map_speed;
if ((map._y + map_speed) >= 0) {
replay_map._y = (map._y - map_speed) - 1200;
replay_map._y = replay_map._y + map_speed;
}
if (!rockeyflying) {
replay_speed = (map_speed = ((600 - map._y) * map_speed_cd) + replay_speed_init);
}
return(undefined);
}
if (map._y < 600) {
map._y = 600;
replay_map._y = replay_map._y + map_speed;
if (!rockeyflying) {
replay_speed = replay_speed_init;
}
return(undefined);
}
delete this.onEnterFrame;
SetMeteors(obs_time);
SetTimeRun();
replay_map.onEnterFrame = replay_mapMove;
}
function StartDown() {
ClearMeTrea();
_root.TimeStop = false;
clearInterval(f_id);
reMoveColor(qiaohu);
firespeed = up_speed;
map_speed_cds = (map_speed * cd_speed) / up_speed;
qiaohu.onEnterFrame = DownFun;
}
function DownFun() {
if (_root.TimeStop) {
return(undefined);
}
var _local3 = firespeed;
if (firespeed > 0) {
map._y = map._y + map_speed;
CompleteScore();
firespeed = firespeed - cd_speed;
map_speed = map_speed - map_speed_cds;
} else {
TipHit._y = TipHit._y - firespeed;
}
if ((_local3 * firespeed) <= 0) {
trace("\u969C\u788D\u7269\u5F00\u59CB\u4E0B\u843D!");
qh_dd = true;
cd_speed = 0.8;
map_speed_cd = (map_speed_init - replay_speed_init) / (map._y - map_inity);
firespeed = -dropspeed;
map_speed = map_speed_init;
mc_score.Num1.stop();
mc_score.Num2.stop();
TipHit._x = this._x + 75;
TipHit._y = this._y;
qiaohu.enabled = true;
qiaohu.onRollOver = RollOverFun;
qiaohu.onReleaseOutside = (qiaohu.onRollOut = RollOutFun);
qiaohu.onPress = PressFun;
SetTrea(trea_time);
qiaohu.gotoAndStop("dropdown");
map.onEnterFrame = MapMoveFun;
}
this._y = this._y - firespeed;
CheckDead();
}
function CheckDead() {
if (qiaohu._y > 500) {
reMoveLight(qiaohu);
qiaohu.enabled = false;
}
if (qiaohu._y > 650) {
trace("\u6B7B\u4E86\u4E00\u6761\u547D\u4E86!");
_root.TimeStop = true;
firstup = false;
ClearMeTrea();
qiaohu.enabled = false;
delete qiaohu.onEnterFrame;
life--;
PlaySound("os_loselife", NextPlay);
up_speed = one_up_speed;
mc_life.gotoAndStop(life + 1);
}
}
function NextPlay() {
if (life > 0) {
firespeed = 0;
qiaohu.gotoAndStop("ready");
qiaohu.qiaohu.gotoAndStop("fly");
qiaohu._y = up_y;
qiaohu._x = hightx;
PlaySound("os_jump", undefined);
restartFun();
return(undefined);
}
_root.TimeStop = true;
mc_movie._visible = true;
mc_movie.gotoAndPlay(1);
}
function RollOverFun() {
PlaySound("Click50_", undefined);
changeLight(qiaohu, 30, 30, 16776960, 1, 2);
}
function RollOutFun() {
reMoveLight(qiaohu);
}
function PressFun() {
TipHit._x = -1000;
reMoveLight(qiaohu);
qiaohu.enabled = false;
Info1._visible = false;
Info1.gotoAndStop(1);
if (!rockeyflying) {
PlaySound("os_jump");
}
mc_score.Num1.play();
mc_score.Num2.play();
var _local2 = qiaohu._xmouse;
if (_local2 < par1) {
xspeed = _xspeed;
} else if (_local2 > par2) {
xspeed = -_xspeed;
} else {
xspeed = 0;
}
qiaohu.canhit = true;
qiaohu.gotoAndStop("ready");
qiaohu.qiaohu.gotoAndStop("fly");
time_score = 0;
qh_dd = false;
_root.TimeStop = false;
qiaohu.canhit = true;
qiaohu.onEnterFrame = FlyFun;
if (newStart) {
newStart = false;
if (map._y >= 600) {
trace("\u5230\u8FBE\u592A\u7A7A\u4E86\uFF0C\u8BBE\u7F6E\u5B9D\u7269\u548C\u969C\u788D\u7269\u51FA\u73B0!");
SetMeTrea();
return(undefined);
}
trace("\u672A\u5230\u592A\u7A7A\uFF0C\u8BBE\u7F6E\u53EA\u6709\u5B9D\u7269\u51FA\u73B0!");
SetTrea(trea_time);
}
}
function FlyFun() {
if (_root.TimeStop) {
return(undefined);
}
with_speed = replay_speed;
this._y = this._y - up_speed;
CompleteScore();
if (xspeed > 0) {
if ((this._x + xspeed) < (800 - this._width)) {
this._x = this._x + xspeed;
} else if (this._x < (800 - this._width)) {
this._x = 800 - this._width;
} else {
xpseed = 0;
}
} else if (xspeed < 0) {
if ((this._x + xspeed) > 0) {
this._x = this._x + xspeed;
} else if (this._x > 0) {
this._x = 0;
} else {
xpseed = 0;
}
}
var _local3 = 0;
while (_local3 < obstacles.length) {
if (((((obstacles[_local3]._y > 0) && (obstacles[_local3].hitTest(this))) && (this.canhit)) && (this._y > ((-this._width) / 2))) && ((this._y - obstacles[_local3]._y) > ((-obstacles[_local3]._width) / 2))) {
delete obstacles[_local3].onEnterFrame;
obstacles[_local3].play();
PlaySound("os_hitedsky", undefined);
if (obstacles[_local3] == lastObs) {
lastObs = null;
}
obstacles.splice(_local3, 1);
HitDropDown();
return(undefined);
}
_local3++;
}
_local3 = 0;
while (_local3 < treas.length) {
if (((treas[_local3]._y > 0) && (treas[_local3].hitTest(this))) && (this._y > (-this._height))) {
delete treas[_local3].onEnterFrame;
treas[_local3].play();
trace((("\u4E0A\u5347\u4E2Dtreas[" + _local3) + "] = ") + treas[_local3]);
if (treas[_local3] == lastTrea) {
lastTrea = null;
}
HaveOneTrea(treas.splice(_local3, 1)[0]);
}
_local3++;
}
if (this._y < -150) {
this.onEnterFrame = CompleteScore;
this.canhit = false;
if (rockeyflying) {
return(undefined);
}
setTimeout(DropDown, (random(4) + 1) * 400);
}
}
function DropDown() {
qh_dd = true;
with_speed = 0;
qiaohu._x = random(800 - qiaohu._width);
if (paraNum == 0) {
qiaohu.gotoAndStop("dropdown");
dropspeed = dropspeed_normal;
} else {
paraNum = 0;
dropspeed = dropspeed_para;
qiaohu.gotoAndStop("dropdown_");
}
mc_score.Num1.stop();
mc_score.Num2.stop();
qiaohu.enabled = true;
qiaohu.onPress = PressFun;
qiaohu.onEnterFrame = DropDownFun;
}
function DropDownFun() {
if (_root.TimeStop) {
return(undefined);
}
var _local3 = 0;
while (_local3 < treas.length) {
if (((treas[_local3]._y > 0) && (treas[_local3].hitTest(qiaohu))) && (qiaohu._y > (-qiaohu._height))) {
delete treas[_local3].onEnterFrame;
treas[_local3].play();
trace((("\u4E0B\u964Dtreas[" + _local3) + "] = ") + treas[_local3]);
if (treas[_local3] == lastTrea) {
lastTrea = null;
}
HaveOneTrea(treas.splice(_local3, 1)[0]);
}
_local3++;
}
this._y = this._y + dropspeed;
CheckDead();
}
function HitDropDown() {
trace("\u78B0\u5230\u9668\u77F3\u4E86....");
if (rockeyflying) {
up_speed = up_speed_init;
replay_speed = replay_speed_init;
allTime_score = allTime_score_init;
rockeyflying = false;
}
qiaohu.canhit = false;
qh_dd = true;
with_speed = 0;
dropspeed = dropspeed_normal;
qiaohu.gotoAndStop("dropdown");
mc_score.Num1.stop();
mc_score.Num2.stop();
qiaohu.enabled = true;
qiaohu.onPress = PressFun;
qiaohu.onEnterFrame = DropDownFun;
}
function ClearMeTrea() {
clearInterval(t_id);
clearInterval(mete_id);
clearInterval(trea_id);
var _local1 = obstacles.length - 1;
while (_local1 >= 0) {
obstacles[_local1].removeMovieClip();
_local1--;
}
_local1 = treas.length - 1;
while (_local1 >= 0) {
treas[_local1].removeMovieClip();
_local1--;
}
obstacles = new Array();
treas = new Array();
}
function SetMeTrea() {
trace("\u8BBE\u7F6E\u4E0B\u843D\u8BA1\u7B97.......");
SetMeteors(obs_time);
SetTrea(trea_time);
SetTimeRun();
}
function SetTimeRun() {
clearInterval(t_id);
t_id = setInterval(TimeRun, 1000);
}
function SetTrea(t) {
clearInterval(trea_id);
trea_id = setInterval(OutTreas, t);
OutTreas();
}
function SetMeteors(t) {
clearInterval(mete_id);
mete_id = setInterval(OutMeteors, t);
OutMeteors();
}
function TimeRun() {
if (_root.TimeStop) {
return(undefined);
}
Lev = Math.floor(score / 500);
if (lastLev != Lev) {
lastLev = Lev;
if (obs_time > 100) {
obs_speed = obs_speed + 3;
obs_time = obs_time - 100;
dropspeed_normal = dropspeed_normal + 0.7;
SetMeteors(obs_time);
Lev++;
}
trace("\u5F53\u524D\u7B49\u7EA7 Lev = " + Lev);
}
}
function CompleteScore() {
time_score++;
if (time_score >= allTime_score) {
time_score = 0;
score++;
mc_score.txt_score.text = score;
}
}
function SetMoiveInit() {
Num1_frame = mc_score.Num1._currentframe - 1;
Num2_frame = mc_score.Num2._currentframe - 1;
score_str = ((score + "") + Num2_frame) + Num1_frame;
qiaohu._y = -200;
qiaohu._x = hightx;
map._y = ((map._y >= -600) ? 0 : -600);
qiaohu.gotoAndStop("hited");
loader.name = user_name;
loader.score = score_str;
}
function MovieStart() {
PlaySound("os_k2203s02", undefined);
qy = highty;
firespeed = 50;
qiaohu.onEnterFrame = MapDropDownOverFun;
}
function MapDropDownOverFun() {
if ((qiaohu._y + firespeed) < highty) {
qiaohu._y = qiaohu._y + firespeed;
return(undefined);
}
if ((map._y - firespeed) > map_inity) {
map._y = map._y - (firespeed - (highty - qiaohu._y));
qiaohu._y = highty;
return(undefined);
}
map._y = map_inity;
qiaohu.onEnterFrame = DropDownOverFun;
}
function DropDownOverFun() {
if ((qy + firespeed) < iniy) {
qy = qy + firespeed;
} else if (qy < iniy) {
qy = iniy;
PlaySound("os_dropdown", undefined);
PlaySound("os_hitedlend", PlayOverOS);
qiaohu.gotoAndStop("dropdown_over");
delete this.onEnterFrame;
clearInterval(ssf_id);
ssf_id = setInterval(ShowScoreFlash, 400);
setTimeout(GameOver, 3000);
}
qiaohu._y = qy;
}
function PlayOverOS() {
PlaySound("os_yun", undefined);
}
function GameOver() {
clearInterval(ssf_id);
reMoveLight(mc_score.mc_flash);
gotoAndPlay ("game_over");
}
function goodsMove() {
if (_root.TimeStop) {
return(undefined);
}
if (this._y < 700) {
this._y = this._y + goodSpeed;
return(undefined);
}
this._y = -200;
}
function ShowScoreFlash() {
if (ssf) {
ssf = false;
reMoveLight(mc_score.mc_flash);
return(undefined);
}
ssf = true;
changeLight(mc_score.mc_flash, 30, 30, 16776960, 1, 3);
}
function replay_mapMove() {
if (_root.TimeStop) {
return(undefined);
}
if (qh_dd) {
return(undefined);
}
if ((this._y + replay_speed) >= 0) {
this._y = -600;
}
this._y = this._y + replay_speed;
}
function restartFun() {
_root.TimeStop = false;
clearInterval(f_id);
reMoveColor(qiaohu);
firespeed = up_speed_init + 4;
qh_dd = true;
mc_score.Num1.stop();
mc_score.Num2.stop();
qiaohu.onEnterFrame = restartDown;
}
function restartDown() {
if (_root.TimeStop) {
return(undefined);
}
var _local3 = firespeed;
firespeed = firespeed - cd_speed;
if ((_local3 * firespeed) <= 0) {
trace("\u518D\u6B21\u969C\u788D\u7269\u5F00\u59CB\u4E0B\u843D!");
firespeed = -dropspeed;
qiaohu.enabled = true;
qiaohu.onPress = PressFun;
Info1._visible = true;
Info1.gotoAndPlay(1);
Info1._x = hightx;
Info1._y = highty;
newStart = true;
qiaohu.gotoAndStop("stopsky");
_root.TimeStop = true;
delete this.onEnterFrame;
}
this._y = this._y - firespeed;
}
var _yspeed = 30;
var _xspeed = 15;
var qiaohu_speed = 5;
var up_speed_init = 20;
var up_speed = up_speed_init;
var one_up_speed = 18;
var firespeed = _yspeed;
var xspeed = _xspeed;
var cd_speed = 0.4;
var highty = 250;
var hightx = qiaohu._x;
var iniy = qiaohu._y;
var up_y = 600;
var dropspeed_normal = 5;
var dropspeed_para = 2;
var dropspeed = dropspeed_normal;
var goodSpeed = 2;
var par1 = 62.5;
var par2 = 129.7;
var cd_meteor = 150;
var mete_left = 50;
var mete_right = 750;
var mete_top = -100;
var score = 0;
var life = 3;
var obstacles = new Array();
var treas = new Array();
var replay_speed_init = 3;
var replay_speed = replay_speed_init;
var map_speed_init = 5;
var map_speed = _yspeed;
var map_speed_cd = 0;
var map_speed_cds = 0;
var map_inity = -2400;
var remap_inity = -1200;
var f_id = null;
var lastObs = null;
var lastTrea = null;
var TimeStop = true;
var nowTime = 0;
var limitTime = 10;
var obs_time = 2000;
var obs_speed = 5;
var trea_time = 6000;
var trea_speed = 3;
var Lev = 1;
var time_score = 0;
var allTime_score_init = 3;
var allTime_score = allTime_score_init;
var paraNum = 0;
var starNum = 0;
var qy = 0;
var Num1_frame = 0;
var Num2_frame = 0;
var qh_dd = false;
var with_speed = 0;
var newStart = false;
var lastLev = 0;
var trea_index = 1;
var meter_index = 1;
var score_str = "";
var rank = 0;
var loader = new LoadVars();
mc_score.txt_score.text = "";
mc_score.Num1.gotoAndStop(1);
mc_score.Num2.gotoAndStop(1);
mc_score.Num2._visible = false;
mc_life.gotoAndStop(life + 1);
mc_starNum.gotoAndStop(starNum + 1);
movie_score.gotoAndStop(1);
movie_score._visible = false;
qiaohu.gotoAndStop("stand");
map._y = map_inity;
replay_map._y = remap_inity;
mc_movie.gotoAndStop(1);
mc_movie._visible = false;
qiaohu.enabled = false;
Info._visible = false;
Info1._visible = false;
Info1.gotoAndStop(1);
if (replay) {
setTimeout(PlayBGS, 100);
}
qiaohu.onPress = function () {
firespeed = _yspeed;
clearInterval(f_id);
reMoveLight(qiaohu);
PlaySound("os_jump", undefined);
Info.swapDepths(0);
Info.removeMovieClip();
qiaohu.gotoAndStop("ready");
this.enabled = false;
delete this.onPress;
};
qiaohu.onRollOver = function () {
PlaySound("Click50_", undefined);
};
loader.onLoad = function (s) {
if (s) {
rank = this.rank;
return(undefined);
}
rank = -1;
trace("\u8BFB\u53D6\u6587\u4EF6\u51FA\u9519!");
};
GO321Fun();
Frame 135 (545 B)
function mc_serverFlash() {
if (msf) {
msf = false;
reMoveLight(mc_server);
return(undefined);
}
msf = true;
changeLight(mc_server, 7, 7, 16711680, 1, 2.5);
}
stopAllSounds();
txt_score.text = score_str;
btn_over_more.onRelease = function () {
stopAllSounds();
replay = true;
gotoAndStop ("game_body");
};
btn_over_exit.onRelease = function () {
fscommand ("quit", "true");
getURL ("javascript:window.opener=self;window.close()", "_self");
};
clearInterval(ser_id);
ser_id = setInterval(mc_serverFlash, 400);
Frame 136 (196 B)
my_sound = new Sound();
my_sound.attachSound("MP3598");
my_sound.onSoundComplete = function () {
myos = new Sound();
myos.attachSound("qiaohule.mp3");
myos.start();
};
my_sound.start();
Frame 146 (8 B)
stop();
Symbol 26 MovieClip [321Go] Frame 119 (51 B)
stop();
this._visible = false;
_root.GO321Fun();
Symbol 32 MovieClip [meteor1] Frame 1 (8 B)
stop();
Symbol 32 MovieClip [meteor1] Frame 16 (47 B)
this._visible = false;
removeMovieClip(this);
Symbol 37 MovieClip [meteor3] Frame 1 (8 B)
stop();
Symbol 37 MovieClip [meteor3] Frame 16 (47 B)
this._visible = false;
removeMovieClip(this);
Symbol 42 MovieClip [meteor2] Frame 1 (8 B)
stop();
Symbol 42 MovieClip [meteor2] Frame 16 (47 B)
this._visible = false;
removeMovieClip(this);
Symbol 55 MovieClip Frame 17 (27 B)
_parent.removeMovieClip();
Symbol 56 MovieClip [trea3] Frame 1 (8 B)
stop();
Symbol 68 MovieClip Frame 17 (27 B)
_parent.removeMovieClip();
Symbol 69 MovieClip [trea2] Frame 1 (8 B)
stop();
Symbol 81 MovieClip [aastar01-shang] Frame 17 (27 B)
_parent.removeMovieClip();
Symbol 83 MovieClip [trea1] Frame 1 (8 B)
stop();
Symbol 151 MovieClip Frame 42 (18 B)
gotoAndPlay (11);
Symbol 152 Button (64 B)
on (release) {
getURL ("http://www.qiaohule.com/", "_blank");
}
Symbol 200 MovieClip Frame 1 (8 B)
stop();
Symbol 200 MovieClip Frame 23 (34 B)
_root.gotoAndStop(_root.gotoURL);
Symbol 200 MovieClip Frame 56 (8 B)
stop();
Symbol 206 MovieClip Frame 3 (8 B)
stop();
Symbol 210 MovieClip Frame 15 (8 B)
stop();
Symbol 319 Button (64 B)
on (release) {
getURL ("http://www.qiaohule.com/", "_blank");
}
Symbol 362 MovieClip Frame 8 (21 B)
_root.TakeoffOver();
Symbol 362 MovieClip Frame 15 (8 B)
stop();
Symbol 484 MovieClip Frame 30 (32 B)
this._visible = false;
stop();
Symbol 532 MovieClip Frame 9 (22 B)
_root.SetMoiveInit();
Symbol 532 MovieClip Frame 22 (29 B)
stop();
_root.MovieStart();
Symbol 579 MovieClip Frame 24 (8 B)
stop();