Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
fscommand ("allowscale", "false");
Stage.scaleMode = "noScale";
__com_mochibot__("8ca82e75", this, 10301, true);
Frame 2
stop();
language_mc.en.onRelease = function () {
_root.myLanguage = 1;
play();
};
language_mc.fr.onRelease = function () {
_root.myLanguage = 2;
play();
};
language_mc.pt.onRelease = function () {
_root.myLanguage = 3;
play();
};
Frame 3
stop();
_global._r = this;
_rsound.s_bg.stop();
sl = 1;
gamekey = "kill";
var soundPlay = false;
var soundCount = 0;
var test = new Sound();
test.attachSound("n_zd");
var BGM = new Array("bg_sound", "n_zd", "qe_f", "zd", "qi_e");
var i = 0;
while (i < BGM.length) {
var name = BGM[i];
BGM[name] = new Sound();
BGM[name].attachSound(name);
i++;
}
BGM.bg_sound.start(0, 900);
MovieClip.prototype.smoothMove = function (speed, targetx, targety, targets) {
var _local2 = this;
var _local3 = speed;
_local2._x = _local2._x + (_local3 * (targetx - _local2._x));
_local2._y = _local2._y + (_local3 * (targety - _local2._y));
_local2._xscale = (_local2._yscale = _local3 * (targets - _local2._xscale));
};
MovieClip.prototype.tabEnabled = false;
Button.prototype.tabEnabled = false;
Symbol 28 MovieClip Frame 1
this.stop();
var name = Number(this._name.substring(2, 3));
Symbol 49 MovieClip Frame 1
this.stop();
var name = Number(this._name.substring(2, 3));
Symbol 60 MovieClip [pointbox] Frame 31
this.removeMovieClip();
Symbol 65 Button
on (release) {
getURL ("http://www.jeux-internet.com", "_blank");
}
Symbol 71 MovieClip Frame 1
stop();
stepp = 0;
Instance of Symbol 70 MovieClip "loaderbar" in Symbol 71 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.loaderbar.gotoAndStop(_parent.stepp);
if ((_root.getBytesLoaded() / _root.getBytesTotal()) > (_parent.stepp / 100)) {
_parent.stepp = _parent.stepp + (random(2) + 1);
}
if (_parent.stepp >= 100) {
_parent.play();
}
}
Symbol 71 MovieClip Frame 110
_root.play();
Symbol 79 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 25
stop();
_rs.die++;
_rs.chk_f();
this._parent._parent.removeMovieClip();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 5
this._parent.onEnterFrame = null;
Symbol 148 MovieClip Frame 15
gotoAndPlay (2);
Symbol 154 MovieClip Frame 31
_rs.die++;
_rs.chk_f();
this._parent._parent.removeMovieClip();
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 10
this._parent.onEnterFrame = null;
Symbol 156 MovieClip [ball] Frame 1
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 5
gotoAndStop (1);
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 2
stop();
next_b1.onRelease = function () {
_rs.select = 1;
_rs.gotoAndStop("start");
};
next_b2.onRelease = function () {
_rs.select = 2;
_rs.gotoAndStop("start2");
};
Symbol 214 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 214 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 214 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 217 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 217 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 217 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 223 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 228 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 228 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 237 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
stop();
Symbol 237 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
stop();
Symbol 237 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
stop();
Symbol 241 MovieClip Frame 44
_rsound.s_rifleshot.start(0, 1);
helpgun.play();
Symbol 241 MovieClip Frame 86
_rsound.s_rifleshot.start(0, 1);
helpgun.play();
Symbol 241 MovieClip Frame 147
_parent.play();
Symbol 241 MovieClip Frame 148
_rsound.s_serv.start(0, 1);
Symbol 251 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
stop();
Symbol 251 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
stop();
Symbol 251 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
stop();
Symbol 255 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 255 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 255 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 256 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 262 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 262 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 264 Button
on (release) {
getURL (" http://www.jeux-internet.com/");
}
Symbol 265 MovieClip Frame 14
stop();
_rsound.s_serv.start(0, 1);
Symbol 265 MovieClip Frame 33
_rsound.s_bg.start(0, 999);
stop();
next_b1.onRollOver = function () {
_rsound.s_emptyshot.start(0, 1);
char_mc.gotoAndStop("f2");
};
next_b1.onRelease = function () {
_rsound.s_serv.start(0, 1);
_rs.select = 1;
_rs.gotoAndStop("help1");
};
next_b2.onRollOver = function () {
_rsound.s_emptyshot.start(0, 1);
char_mc.gotoAndStop("f1");
};
next_b2.onRelease = function () {
_rsound.s_serv.start(0, 1);
_rs.select = 2;
_rs.gotoAndStop("help2");
};
Symbol 275 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 275 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 275 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 283 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 1
stop();
BGM.bg_sound.start();
stog = true;
Symbol 293 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 293 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 293 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 301 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 301 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 301 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 303 Button
on (release) {
_rs.gotoAndStop("start");
}
Symbol 308 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
stop();
Symbol 308 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
stop();
Symbol 308 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
stop();
Symbol 310 MovieClip Frame 25
stop();
Symbol 312 MovieClip Frame 27
_rsound.s_serv.start(0, 1);
Symbol 312 MovieClip Frame 40
_rsound.s_rifleshot.start(0, 1);
helpgun.play();
Symbol 312 MovieClip Frame 74
_rsound.s_rifleshot.start(0, 1);
helpgun.play();
Symbol 312 MovieClip Frame 125
_rsound.s_serv.start(0, 1);
Symbol 313 Button
on (release) {
_rs.gotoAndStop("start2");
}
Symbol 317 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 317 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 317 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 318 MovieClip Frame 44
_rsound.s_rifleshot.start(0, 1);
helpgun.play();
Symbol 318 MovieClip Frame 86
_rsound.s_rifleshot.start(0, 1);
helpgun.play();
Symbol 318 MovieClip Frame 169
_rsound.s_serv.start(0, 1);
Symbol 319 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 329 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 329 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 332 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 332 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 332 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 336 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 336 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 336 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 339 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 339 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 339 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 343 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 343 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 343 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 349 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 349 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 349 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 354 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 354 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 354 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 358 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 358 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 358 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 359 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 359 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 359 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 2
go_b.onRelease = function () {
_rs.go_f();
gotoAndStop (1);
};
Symbol 360 MovieClip Frame 11
go_b.onRelease = function () {
_rs.go_f();
gotoAndStop (1);
};
Symbol 365 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 365 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 365 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 369 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 369 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 369 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 373 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 373 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 373 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 377 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 377 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 377 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 379 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 50
_rs.next_f();
Symbol 390 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 394 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 394 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 397 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 397 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 397 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 401 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 401 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 401 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 405 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 405 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 405 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 406 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 8
stop();
point_mc.gotoAndStop(_rs.pengscore);
point_txt.text = _rs.curscore;
points_txt.text = _rs.curscore;
peng_mc.gotoAndStop(_rs.pengscore);
Symbol 416 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 416 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 416 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 422 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 422 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 422 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 423 Button
on (release) {
_root.bg_mc.gotoAndStop("select");
}
Symbol 430 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 430 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 430 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 431 Button
on (release) {
FNsend();
}
Symbol 435 MovieClip Frame 1
function FNsend() {
trace("\u63D0\u4EA4\u6210\u7EE9");
if (username.text != "") {
var LVwrite = new LoadVars();
LVwrite.action = "send";
LVwrite.gamekey = _root.gamekey;
LVwrite.username = username.text;
LVwrite.score = Number(score_txt.text);
trace("username: " + username.text);
trace("score:" + score_txt.text);
trace("gameKey:" + _root.gamekey);
LVwrite.onLoad = function () {
_root.score = 0;
_root.bg_mc.gotoAndStop("rank");
FNshow(LVwrite.h);
trace("2 \u670D\u52A1\u5668\u8FD4\u56DE\uFF1A" + LVwrite.h);
_root.showRank();
};
LVwrite.sendAndLoad((PATHURL + "/submit.php?action=send&gamekey=") + _root.gamekey, LVwrite, "POST");
trace((("\u63D0\u4EA4\u5730\u5740: " + PATHURL) + "/submit.php?action=send&gamekey=") + _root.gamekey);
}
}
function display_number(p, p2) {
k = 1;
while (k <= 8) {
p2["m" + k]._visible = true;
k++;
}
a = String(p);
b = a.length;
k = b + 1;
while (k <= 8) {
p2["m" + k]._visible = false;
k++;
}
k = 1;
while (k <= b) {
c = Number(a.charAt(b - k));
p2["m" + k].gotoAndStop(c + 1);
p2["m" + k]._x = p2["m" + k]._x - ((3 - b) * 48);
k++;
}
}
PATHURL = "http://www.razon.cc";
display_number(_root.score, score_txt);
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.isDown(13)) {
trace("Enter");
FNsend();
}
};
Key.addListener(keyListener);
Symbol 442 MovieClip Frame 1
gotoAndStop(_root.myLanguage);
Symbol 442 MovieClip Frame 2
gotoAndStop(_root.myLanguage);
Symbol 442 MovieClip Frame 3
gotoAndStop(_root.myLanguage);
Symbol 443 Button
on (release) {
_root.bg_mc.gotoAndStop("select");
}
Symbol 445 MovieClip Frame 1
stop();
_global._rs = this;
Symbol 445 MovieClip Frame 12
stop();
game = {w:500, h:400};
focus_f = function () {
var _local3 = this;
var _local4 = _local3._xmouse;
var _local5 = _local3._ymouse;
tail_mc._x = _local4;
tail_mc._y = _local5;
var _local7 = ((_local5 > 80) ? (_local5) : 80);
var _local6 = (400 + _local7) / 2;
gun_mc._y = _local6;
gun_mc._x = _local4 + ((400 - _local6) * 0.7);
if ((_root._xmouse > 0) && (_root._xmouse < 500)) {
_local3.bg0_mc._x = (-_local4) * 0.4;
}
_local3.bg1_mc._x = (-_local4) * 0.2;
_local3.bg2_mc._x = (-_local4) * 0.1;
};
this.onEnterFrame = focus_f;
_global._rbg = this.bg0_mc;
ball_box_dep = 10000;
bg0_mc.createEmptyMovieClip("ball_box", ball_box_dep);
ball_box._x = (ball_box._y = 0);
l_obj = {tg:"left_mc", dir:1};
r_obj = {tg:"right_mc", dir:-1};
g = 0.4;
angle = 30;
ball_dep = 0;
attach_ball_f = function (bs) {
var _local2 = this;
ball_dep++;
cur_ball = bg0_mc.ball_box.attachMovie("ball", "ball" + ball_dep, ball_dep);
cur_ball.gotoAndStop("b" + select);
cur_ball.init = function () {
var _local2 = this;
if (bs) {
_local2.bs = true;
_local2.ball_mc.ban_mc.gotoAndStop("red");
}
var _local4 = (random(2) ? (l_obj) : (r_obj));
var _local3 = ((select == 1) ? (_rsound.s_serv) : (_rsound.s_pserv));
_local3.setPan(-80 * _local4.dir);
_local3.start(0, 1);
_local2._x = _rbg[_local4.tg]._x;
_local2._y = _rbg[_local4.tg]._y;
_local2.power = random(10) + 25;
_local2.v = (_local2.power * 0.14) + 30;
angle = random(10) + 25;
pangle = (random(20) + 30) * _local4.dir;
_local2.vz = _local2.v * Math.cos((angle * 3.141593) / 180);
_local2.vy = (-_local2.v) * Math.sin((angle * 3.141593) / 180);
_local2.vx = (_local2.vy / 2) * Math.tan((pangle * 3.141593) / 180);
_local2.vy = _local2.vy + Math.abs(_local2.vx / 2);
_local2.initvy = _local2.vy;
_local2._z = 0;
_local2.onEnterFrame = function () {
var _local2 = this;
_local2.vy = _local2.vy + g;
var _local4 = _local2._z + _local2.vz;
var _local3 = _local2._y + _local2.vy;
var _local5 = _local2._x - _local2.vx;
_local2.zr = (2500 - _local2._z) / 2500;
_local2._yscale = _local2.zr * 100;
_local2._xscale = _local2.zr * 100;
if (_local2.vy > 0) {
if (_local2._y > (game.h - 140)) {
die++;
chk_f();
_local2.onEnterFrame = null;
_local2.removeMovieClip();
}
} else if (_local2.vy < 0) {
}
_local2._z = _local4;
_local2._y = _local3;
_local2._x = _local5;
};
};
cur_ball.init();
};
shot_mc_dep = 10000;
this.createEmptyMovieClip("shot_mc", shot_mc_dep);
levelnum = 0;
cnum = 2;
ballselect = select;
popopen_f = function () {
levelnum++;
Mouse.show();
tail_mc._visible = 0;
pause = true;
pop_mc.gotoAndStop("ready");
pop_mc.cc.bb.level_txt.text = levelnum;
trace(pop_mc.cc.bb.level_txt);
border_mc.round_txt.text = levelnum;
pop_mc.num_txt.text = cnum;
pop_mc.ball.gotoAndStop("ball" + ballselect);
if (select == 1) {
_rsound.s_reload.start(0, 1);
} else {
_rsound.s_preload.start(0, 1);
}
real_f();
};
go_f = function () {
var _local2 = this;
Mouse.hide();
tail_mc._visible = 1;
pause = false;
if (select == 1) {
_rsound.s_bbik.start(0, 1);
} else {
_rsound.s_pbbik.start(0, 1);
}
combo = 0;
combo3 = false;
combo6 = false;
bonus = random(7) + 3;
trace(bonus);
die = 0;
okdie = 0;
shot_mc.dk = 30;
shot_mc.k = 0;
shot_mc.count = 0;
shot_mc.onEnterFrame = function () {
var _local2 = this;
_local2.k++;
if ((_local2.k % _local2.dk) == 0) {
_local2.count++;
bs = 0;
if (_local2.count == bonus) {
bs = 1;
}
attach_ball_f(bs);
if (_local2.count == cnum) {
_local2.onEnterFrame = null;
}
}
};
};
real_f = function () {
alnum = 10;
var _local1 = 1;
while (_local1 <= alnum) {
border_mc["a" + _local1].gotoAndStop("oo");
_local1++;
}
alin = false;
};
shotal_f = function () {
border_mc["a" + alnum].gotoAndStop("xx");
alnum--;
if (alnum == 0) {
alin = true;
}
};
al_mc.startDrag(true);
popopen_f();
listen_M = new Object();
listen_M.onMouseDown = function () {
if (alin) {
trace("cc");
_root.test.start(0, 1);
}
if ((!pause) && (!alin)) {
shotal_f();
updateAfterEvent();
hitchk = false;
for (var _local7 in bg0_mc.ball_box) {
var _local2 = bg0_mc.ball_box[_local7];
if (_local2.hitTest(al_mc) && (!_local2.die)) {
okdie++;
hitchk = true;
var _local4 = bg0_mc.getNextHighestDepth();
cpmc = bg0_mc.attachMovie("pointbox", "pointbox" + _local4, _local4, {_x:_local2._x, _y:_local2._y - 30});
if (_local2.bs) {
var _local3 = 100 + (100 * combo);
cpmc.point_mc.point_txt.text = 100;
cpmc.point_mc.point_txt.textColor = "0xff6600";
scoreup_f(_local3);
} else {
var _local3 = 50 + (50 * combo);
cpmc.point_mc.point_txt.text = 50;
scoreup_f(_local3);
}
if (combo) {
cpmc.point_mc.combo_mc.combo_txt.text = combo + 1;
} else {
cpmc.point_mc.combo_mc._visible = 0;
}
_local2.die = true;
_local2.ball_mc.gotoAndStop("boom");
if (select == 1) {
continue;
}
_rsound.s_sook.start(0, 1);
}
}
if (hitchk) {
combo++;
} else {
combo = 0;
}
if (select == 1) {
_rsound.s_rifleshot.start(0, 1);
tail_mc.play();
} else {
_rsound.s_pgun.start(0, 1);
tail_mc.gotoAndPlay("s2");
}
reaction_f();
return(undefined);
}
if ((!pause) && (alin)) {
_rsound.s_emptyshot.start(0, 1);
}
};
Mouse.addListener(listen_M);
reaction_f = function () {
var _local2 = this;
gun_mc.gotoAndPlay(2);
bg0_mc._y = 20;
bg0_mc.onEnterFrame = function () {
var _local2 = this;
_local2._y = _local2._y - 1;
if (_local2._y == 0) {
_local2.onEnterFrame = null;
}
};
};
chk_f = function () {
if (die == cnum) {
if (okdie == cnum) {
cnum++;
if (cnum > 10) {
cnum = 10;
}
result_pop.gotoAndPlay(2);
result_pop.txt_mc.gotoAndStop("good");
_rsound.s_wow.start(0, 1);
} else {
cnum--;
if (cnum < 2) {
cnum = 2;
}
result_pop.gotoAndPlay(2);
result_pop.txt_mc.gotoAndStop("bad");
_rsound.s_woo.start(0, 1);
}
}
};
next_f = function () {
if (levelnum == 10) {
gameover_f();
} else {
popopen_f();
}
};
score = 0;
border_mc.score_txt.text = score;
scoreup_f = function (sc) {
trace(sc);
score = score + sc;
border_mc.score_txt.text = score;
};
gameover_f = function () {
Mouse.show();
tail_mc._visible = 0;
pause = true;
Mouse.removeListener(listen_M);
gotoAndStop ("ending");
};
Symbol 445 MovieClip Frame 16
stop();
game = {w:500, h:400};
focus_f = function () {
var _local3 = this;
var _local4 = _local3._xmouse;
var _local5 = _local3._ymouse;
tail_mc._x = _local4;
tail_mc._y = _local5;
var _local7 = ((_local5 > 80) ? (_local5) : 80);
var _local6 = (400 + _local7) / 2;
gun_mc._y = _local6;
gun_mc._x = _local4 + ((400 - _local6) * 0.7);
if ((_root._xmouse > 0) && (_root._xmouse < 500)) {
_local3.bg0_mc._x = (-_local4) * 0.4;
}
_local3.bg1_mc._x = (-_local4) * 0.2;
_local3.bg2_mc._x = (-_local4) * 0.1;
};
this.onEnterFrame = focus_f;
_global._rbg = this.bg0_mc;
ball_box_dep = 10000;
bg0_mc.createEmptyMovieClip("ball_box", ball_box_dep);
ball_box._x = (ball_box._y = 0);
l_obj = {tg:"left_mc", dir:1};
r_obj = {tg:"right_mc", dir:-1};
g = 0.4;
angle = 30;
ball_dep = 0;
attach_ball_f = function () {
var _local2 = this;
ball_dep++;
cur_ball = bg0_mc.ball_box.attachMovie("ball", "ball" + ball_dep, ball_dep);
cur_ball.gotoAndStop("b" + select);
cur_ball.init = function () {
var _local2 = this;
real_f();
var _local4 = (random(2) ? (l_obj) : (r_obj));
curser = _rsound.s_serv;
curser.setPan(-80 * _local4.dir);
curser.start(0, 1);
_local2._x = _rbg[_local4.tg]._x;
_local2._y = _rbg[_local4.tg]._y;
_local2.power = random(10) + 25;
_local2.v = (_local2.power * 0.14) + 30;
angle = random(5) + 30;
pangle = (random(20) + 30) * _local4.dir;
_local2.vz = _local2.v * Math.cos((angle * 3.141593) / 180);
_local2.vy = (-_local2.v) * Math.sin((angle * 3.141593) / 180);
_local2.vx = (_local2.vy / 2) * Math.tan((pangle * 3.141593) / 180);
_local2.vy = _local2.vy + Math.abs(_local2.vx / 2);
_local2.initvy = _local2.vy;
_local2.k = 0;
_local2._z = 0;
_local2.state = "";
_local2.onEnterFrame = function () {
var _local2 = this;
_local2.vy = _local2.vy + g;
var _local4 = _local2._z + _local2.vz;
var _local3 = _local2._y + _local2.vy;
var _local5 = _local2._x - _local2.vx;
_local2.zr = (2500 - _local2._z) / 2500;
_local2._yscale = _local2.zr * 100;
_local2._xscale = _local2.zr * 100;
trace(_local2.zr * 100);
if (_local2.vy > 0) {
if (_local2._y > (game.h - 120)) {
_local2._visible = 0;
die++;
_rsound.s_woo.start(0, 1);
_local2.onEnterFrame = function () {
var _local2 = this;
_local2.k++;
if (_local2.k == 30) {
next_f();
_local2.removeMovieClip();
}
};
}
} else if (_local2.vy < 0) {
}
_local2._z = _local4;
_local2._y = _local3;
_local2._x = _local5;
};
};
cur_ball.init();
};
shot_mc_dep = 10000;
this.createEmptyMovieClip("shot_mc", shot_mc_dep);
levelnum = 0;
cnum = 1;
ballselect = select;
popopen_f = function () {
levelnum++;
Mouse.show();
tail_mc._visible = 0;
pause = true;
pop_mc.gotoAndStop("ready2");
pop_mc.cc.bb.level_txt.text = levelnum;
pop_mc.ball.gotoAndStop("ball" + ballselect);
real_f();
};
go_f = function () {
var _local2 = this;
Mouse.hide();
tail_mc._visible = 1;
pause = false;
die = 0;
okdie = 0;
shot_mc.dk = 30;
shot_mc.k = 0;
shot_mc.count = 0;
shot_mc.onEnterFrame = function () {
var _local2 = this;
_local2.k++;
if ((_local2.k % _local2.dk) == 0) {
_local2.count++;
attach_ball_f();
if (_local2.count == cnum) {
_local2.onEnterFrame = null;
}
}
};
};
real_f = function () {
var _local2 = 0;
alnum = 3;
var _local1 = 1;
while (_local1 <= 10) {
border_mc["a" + _local1].gotoAndStop("xx");
_local1++;
}
_local1 = 1;
while (_local1 <= alnum) {
_local2++;
border_mc["a" + _local1].gotoAndStop("oo");
_local1++;
}
alin = false;
};
shotal_f = function () {
border_mc["a" + alnum].gotoAndStop("xx");
alnum--;
if (alnum == 0) {
alin = true;
}
};
al_mc.startDrag(true);
popopen_f();
listen_M = new Object();
listen_M.onMouseDown = function () {
var _local6 = this;
if (alin) {
trace("cc");
_root.test.start(0, 1);
}
if ((!pause) && (!alin)) {
shotal_f();
updateAfterEvent();
var _local8 = _xmouse;
var _local9 = _ymouse;
for (var _local12 in bg0_mc.ball_box) {
var _local3 = bg0_mc.ball_box[_local12];
if (_local3.ball_mc.hitTest(_local8, _local9, true) && (_local3.state == "")) {
_local3.ball_mc.gotoAndStop("pan");
_local3.state = "pan";
_local3.vy = -5;
_local3.k = 0;
_local3.onEnterFrame = function () {
var _local2 = this;
_local2.vy = _local2.vy + g;
var _local3 = _local2._y + _local2.vy;
if (_local3 > game.h) {
_local2._visible = 0;
die++;
_local2.onEnterFrame = function () {
var _local2 = this;
_local2.k++;
if (_local2.k == 30) {
next_f();
_local2.removeMovieClip();
trace("beibei");
}
};
}
_local2._y = _local3;
};
continue;
}
if (_local3.ball_mc.pan_mc.hitTest(_local8, _local9, true) && (!_local3.die)) {
var _local4 = _local3.ball_mc.pan_mc._xmouse;
var _local5 = _local3.ball_mc.pan_mc._ymouse;
_local3.ball_mc.pan_mc.holl_mc.attachMovie("dot", "dot", 1, {_x:_local4, _y:_local5});
okdie++;
trace(okdie);
_local3.die = true;
_local3.k = 0;
chk_f(_local4, _local5);
_local3.onEnterFrame = function () {
var _local3 = this;
var _local2 = 250;
var _local4 = 310;
_local3.smoothMove(0.2, _local2, _local4, 500);
if (Math.abs(_local2 - _local3._x) < 1) {
_local3.k++;
if (_local3.k == 1) {
peng_mc.play();
}
if (_local3.k > 50) {
peng_mc.gotoAndStop(1);
next_f();
_local3.onEnterFrame = function () {
var _local2 = this;
var _local3 = -200;
var _local4 = 310;
_local2.smoothMove(0.2, _local3, _local4, 500);
if (Math.abs(_local3 - _local2._x) < 10) {
_local2.onEnterFrame = null;
_local2.removeMovieClip();
}
};
}
}
};
}
}
tail_mc.play();
reaction_f();
return(undefined);
}
if ((!pause) && (alin)) {
}
};
Mouse.addListener(listen_M);
reaction_f = function () {
var _local2 = this;
gun_mc.gotoAndPlay(2);
bg0_mc._y = 20;
bg0_mc.onEnterFrame = function () {
var _local2 = this;
_local2._y = _local2._y - 1;
if (_local2._y == 0) {
_local2.onEnterFrame = null;
}
};
};
pengscore = "zero";
chk_f = function (cxshot, cyshot) {
var _local1 = Math.sqrt((cxshot * cxshot) + (cyshot * cyshot));
trace(_local1);
if (_local1 < 15) {
trace("100");
pengscore = "best";
} else if (_local1 < 35) {
trace("70");
pengscore = "excellent";
} else if (_local1 < 55) {
trace("50");
pengscore = "good";
} else if (_local1 < 80) {
trace("30");
pengscore = "poor";
} else {
trace("0");
pengscore = "zero";
}
curscore = Math.round(((80 - _local1) / 80) * 100);
scoreup_f(curscore * 5);
};
next_f = function () {
if (levelnum == 10) {
gameover_f();
} else {
popopen_f();
}
};
score = 0;
border_mc.score_txt.text = score;
scoreup_f = function (sc) {
score = score + sc;
border_mc.score_txt.text = score;
};
gameover_f = function () {
Mouse.show();
tail_mc._visible = 0;
pause = true;
Mouse.removeListener(listen_M);
this.onEnterFrame = null;
gotoAndStop ("ending");
};
Symbol 445 MovieClip Frame 22
_rsound.setVol("bg", 100, 3);
trace(score);
this.createEmptyMovieClip("send_mc", 99999);
go_page = function () {
send_mc.type = "shoot";
send_mc.param1 = _r.param1;
send_mc.param2 = _r.param2;
send_mc.result = score;
send_mc.getURL(_r.page_url, "_self", "POST");
};
save_f = function () {
var _local2 = this;
send_obj = new LoadVars();
result_obj = new LoadVars();
send_obj.type = "shoot";
send_obj.param1 = _r.param1;
send_obj.param2 = _r.param2;
send_obj.result = score;
send_obj.rand = random(3000);
for (var _local3 in send_obj) {
trace((_local3 + "==") + send_obj[_local3]);
}
result_obj.onLoad = function (success) {
var _local2 = this;
if (success) {
for (var _local3 in _local2) {
trace((_local3 + "==") + _local2[_local3]);
}
if (_local2.chk == "F") {
_r.gotoAndStop("F");
} else if (_local2.chk == "R") {
_r.gotoAndStop("R");
} else if (_local2.chk == "T") {
}
return(undefined);
}
};
send_obj.sendAndLoad(_r.save_url, result_obj, "POST");
};
result_mc.score_txt.text = score;
Symbol 445 MovieClip Frame 23
function FNload() {
LVwrite = new LoadVars();
LVwrite.action = "load";
LVwrite.gamekey = _root.gamekey;
LVwrite.onLoad = function () {
FNshow(LVwrite.h);
trace((("\u6211\u7684\u5206\u6570:" + score) + " 1 \u670D\u52A1\u5668\u8FD4\u56DE\uFF1A") + LVwrite.h);
};
trace((PATHURL + "/submit.php?action=load&gamekey=") + _root.gamekey);
LVwrite.sendAndLoad(PATHURL + "/submit.php", LVwrite, "POST");
}
function FNshow(str) {
trace("OK");
var _local5 = str.split(",");
var _local2 = 0;
while (_local2 < 5) {
var _local4 = _local5[_local2].split("|");
if (_local4[1] > 0) {
trace("OK?");
var _local3 = _root.bg_mc.rank.attachMovie("rankbar", "rankbar" + _local2, _local2);
_local3._x = 60;
_local3._y = 120 + (_local2 * 45);
_local3.username.text = _local4[0];
FN_Score(_local3.score_mc, _local4[1]);
}
_local2++;
}
}
function FN_Score(mc, num) {
s_num1 = int(num / 100000) + 1;
s_num11 = num % 100000;
s_num2 = int(s_num11 / 10000) + 1;
s_num22 = s_num11 % 10000;
s_num3 = int(s_num22 / 1000) + 1;
s_num33 = s_num22 % 1000;
s_num4 = int(s_num33 / 100) + 1;
s_num44 = s_num33 % 100;
s_num5 = int(s_num44 / 10) + 1;
s_num6 = (s_num44 % 10) + 1;
if ((num >= 10) && (num < 100)) {
s_num5++;
} else if ((num >= 100) && (num < 1000)) {
s_num4++;
s_num5++;
} else if ((num >= 1000) && (num < 10000)) {
s_num3++;
s_num4++;
s_num5++;
} else if ((num >= 10000) && (num < 100000)) {
s_num2++;
s_num3++;
s_num4++;
s_num5++;
} else if (num >= 100000) {
s_num1++;
s_num2++;
s_num3++;
s_num4++;
s_num5++;
}
mc.mc1.gotoAndStop(s_num6);
mc.mc2.gotoAndStop(s_num5);
mc.mc3.gotoAndStop(s_num4);
mc.mc4.gotoAndStop(s_num3);
mc.mc5.gotoAndStop(s_num2);
mc.mc6.gotoAndStop(s_num1);
}
stop();
trace("\u6392\u884C\u699C frame ");
PATHURL = "http://www.razon.cc";
FNload();