Frame 1
if (_totalframes == _framesloaded) {
gotoAndStop (3);
_quality = "medium";
}
Stage.showMenu = false;
total = getBytesTotal();
loaded = getBytesLoaded();
bar._x = 96 + ((loaded / total) * 128);
Frame 2
gotoAndPlay(_currentframe - 1);
Frame 3
_global.nextmsg = "";
attachMovie("n1", "n", 1);
snd_f = 1;
_global.snd_a = new Sound(_root);
_global.snd_a.setVolume(100);
bgm_1 = new Sound(this);
bgm_2 = new Sound(this);
se_1 = new Sound(this);
se_2 = new Sound(this);
se_6 = new Sound(this);
_global.se_4 = new Sound(this);
_global.se_5 = new Sound(this);
bgm_1.attachSound("snd1");
bgm_2.attachSound("snd2");
se_1.attachSound("se1");
se_2.attachSound("se2");
se_6.attachSound("se6");
_global.se_4.attachSound("se4");
_global.se_5.attachSound("se5");
Instance of Symbol 196 MovieClip in Frame 4
on (press) {
_global.nextmsg = "";
_parent.attachMovie("n1", "n", 1);
}
Frame 5
bgm_1.stop();
bgm_2.stop();
_global.p_1_hv = "";
_global.p_1_s1 = 0;
_global.p_1_s2 = 0;
_global.p_1_s3 = 0;
_global.p_1_s4 = 0;
_global.st_nm = "";
_global.st_ty = 0;
_global.p_2_hv = "";
_global.p_1_ps = 0;
_global.p_2_ps = 0;
_global.p_1_name = "774kb";
_global.p_2_name = "Rival";
_global.p_1_cl = 0;
_global.p_2_cl = 0;
_global.p_1_rp = new Array();
_global.p_2_rp = new Array();
_global.p_1_rt = new Array();
_global.p_2_rt = new Array();
_global.p_1_rr = new Array();
_global.p_2_rr = new Array();
_global.p_1_rs = new Array();
_global.p_2_rs = new Array();
_global.p_1_bx = new Array();
_global.p_2_bx = new Array();
_global.p_1_by = new Array();
_global.p_2_by = new Array();
_global.cp_c = 0;
_global.cp_x = new Array();
_global.cp_y = new Array();
_global.cp_r = new Array();
_global.cp_t = new Array();
_global.cp_s = 0;
p_1_p = new Array();
s_g = new Array();
s_g = [964, 945, 958, 975, 968, 975];
s_s = new Array();
s_s = [33, 40, 32, 26, 30, 40];
_global.p_ir_nm = new Array();
_global.p_ir_ti = new Array();
_global.p_ir_hv = new Array();
_global.p_ir_fl = 0;
_global.p_debug = 0;
stop();
Frame 7
_global.cp_c = 0;
Instance of Symbol 385 MovieClip "stall" in Frame 7
onClipEvent (enterFrame) {
this.map.mini._rotation = this.map.mini._rotation + 2;
this.map.minib._rotation = this.map.minib._rotation + 2;
}
Frame 8
if (_global.p_1_s2 == 1) {
type2_btn.enabled = false;
type3_btn.enabled = false;
type4_btn.enabled = false;
} else {
type2_btn.enabled = true;
type3_btn.enabled = true;
type4_btn.enabled = true;
}
Frame 9
sele1.gotoAndStop(_global.p_1_s1);
sele2.gotoAndStop(_global.p_1_s2);
sele3.gotoAndStop(_global.p_1_s3);
Frame 11
bgm_1.stop();
bgm_2.stop();
if (_global.p_1_s3 < 3) {
mini.gst._visible = false;
vs_1._visible = false;
vs_2._visible = false;
vs_3._visible = false;
vs_4.gotoAndStop(1);
vs_5.gotoAndStop(1);
vs_6._visible = false;
} else {
vs_1.text = _global.p_1_name;
vs_3.text = _global.p_2_name;
vs_4.gotoAndPlay(1 + ((_global.p_1_s1 - 1) * 30));
vs_5.gotoAndPlay(1 + ((_global.p_2_s1 - 1) * 30));
}
ch.attachMovie(_global.p_1_hv, "p_1", 2);
gst.attachMovie(_global.p_2_hv, "p_2", 2);
bg.attachMovie(_global.st_nm, "map", 2);
bg.map.attachMovie(_global.st_nm + "x", "nomap", 2);
mini.map.attachMovie(_global.st_nm + "m", "map", 2);
bg.attachMovie("bg_0" + _global.p_1_s2, "mapbg", 1);
bg.map._xscale = 1000;
bg.map._yscale = 1000;
bg.map._x = st_1_x * -10;
gst_x = bg.map._x;
bg.map._y = (st_1_y * -10) + 20;
gst_y = bg.map._y;
trace(st_1_y);
mini.map.map._xscale = 25;
mini.map.map._yscale = 25;
p_1.stop();
_parent.p_2_px = 0;
_parent.p_2_py = 0;
m_t = 0;
timing.gotoAndStop(1);
waitgage.gotoAndStop(1);
_global.m_t = 0;
_global.m_e = 99;
p_1_px = 0;
p_1_py = 0;
stop();
attachMovie("readygo", "readygo", 2);
readygo._x = 160;
readygo._y = 120;
loadMovie ("hover_bgm.swf", "bgm");
toDecimal = function (src) {
var dic_str;
var v;
var i;
var bf;
v = Math.round((src * 100) / 20);
dic_str = new String(v);
if (dic_str.length <= 2) {
bf = "0.";
i = dic_str.length;
while (i < 2) {
bf = bf + "0";
i++;
}
dic_str = bf + dic_str;
} else {
dic_str = (dic_str.slice(0, -2) + ".") + dic_str.substr(dic_str.length - 2, 2);
}
return(dic_str);
};
Instance of Symbol 373 MovieClip in Frame 11
onClipEvent (enterFrame) {
rot = Math.round((Math.atan2(_ymouse - 20, _xmouse) * 180) / Math.PI);
_parent.yajirushi._rotation = rot;
_parent.ch.p_1.gotoAndStop((Math.round((rot / 15) + 24) % 24) + 1);
_parent.bg.map._x = _parent.bg.map._x - _parent.p_1_px;
_parent.bg.map._y = _parent.bg.map._y - _parent.p_1_py;
_parent.mini.map.map._x = _parent.bg.map._x / 40;
_parent.mini.map.map._y = _parent.bg.map._y / 40;
_parent.mini.gst._x = (_parent.gst._x / 40) - 4;
_parent.mini.gst._y = (_parent.gst._y / 40) - 3;
if (_parent.bg.map._x > 0) {
_parent.bg.mapbg._x = (_parent.bg.map._x % 320) - 160;
} else {
_parent.bg.mapbg._x = (_parent.bg.map._x % 320) + 160;
}
if (_parent.bg.map._y > 0) {
_parent.bg.mapbg._y = (_parent.bg.map._y % 240) - 120;
} else {
_parent.bg.mapbg._y = (_parent.bg.map._y % 240) + 120;
}
x = math.round(math.sqrt((_parent.p_1_px * _parent.p_1_px) + (_parent.p_1_py * _parent.p_1_py)) * 1.8);
_parent.g_km.text = x;
_parent.g_mt._rotation = x * 1.35;
if (((_global.cp_x[_global.cp_c] * -10) + (_global.cp_r[_global.cp_c] * 5)) > _parent.bg.map._x) {
if (((_global.cp_x[_global.cp_c] * -10) - (_global.cp_r[_global.cp_c] * 5)) < _parent.bg.map._x) {
if (((_global.cp_y[_global.cp_c] * -10) + (_global.cp_r[_global.cp_c] * 5)) > _parent.bg.map._y) {
if (((_global.cp_y[_global.cp_c] * -10) - (_global.cp_r[_global.cp_c] * 5)) < _parent.bg.map._y) {
_global.cp_c++;
if ((_global.cp_c % _global.cp_s) == 0) {
_global.cp_t[_global.cp_c] = m_t;
eval ("_parent.t_no" + (_global.cp_c / _global.cp_s)).text = _parent.toDecimal(_global.cp_t[_global.cp_c] - _global.cp_t[_global.cp_c - _global.cp_s]);
attachMovie("measu", "measu", 1);
} else {
attachMovie("time_ex", "time_ex", 1);
}
if (_global.cp_r[_global.cp_c] == 0) {
_parent.nextFrame();
} else {
if (((_global.m_e + 30) - math.floor(_global.m_t / 20)) > 99) {
_global.m_e = _global.m_e + (99 - (_global.m_e - math.floor(_global.m_t / 20)));
} else {
_global.m_e = _global.m_e + 30;
}
_parent.se_6.start();
}
}
}
}
}
_parent.gst.p_2.gotoAndStop((Math.round((_global.p_2_rr[_global.p_2_cl] / 15) + 24) % 24) + 1);
_parent.gst_x = _parent.gst_x - _parent.p_2_px;
_parent.gst_y = _parent.gst_y - _parent.p_2_py;
_parent.gst._x = (_parent.bg.map._x - _parent.gst_x) + 160;
_parent.gst._y = (_parent.bg.map._y - _parent.gst_y) + 120;
if (_parent.bg.map.nomap.hitTest(_parent.gst._x, _parent.gst._y + 20, true)) {
_parent.p_2_px = (_parent.p_2_px * _parent.s_g[_global.p_2_s1 - 1]) / 5000;
_parent.p_2_py = (_parent.p_2_py * _parent.s_g[_global.p_2_s1 - 1]) / 5000;
} else if (_parent.bg.map.hitTest(_parent.gst._x, _parent.gst._y + 20, true)) {
_parent.p_2_px = (_parent.p_2_px * _parent.s_g[_global.p_2_s1 - 1]) / 1000;
_parent.p_2_py = (_parent.p_2_py * _parent.s_g[_global.p_2_s1 - 1]) / 1000;
} else {
_parent.p_2_px = (_parent.p_2_px * _parent.s_g[_global.p_2_s1 - 1]) / 1500;
_parent.p_2_py = (_parent.p_2_py * _parent.s_g[_global.p_2_s1 - 1]) / 1500;
}
x = _global.m_e - math.floor(_global.m_t / 20);
_parent.g_time.text = x;
if ((x == 0) && (_global.p_ir_fl != 2)) {
_global.p_ir_fl = 2;
_parent.nextFrame();
}
if (_parent.bg.map.nomap.hitTest(160, 140, true)) {
_parent.p_1_px = (_parent.p_1_px * _parent.p_1_g) / 5000;
_parent.p_1_py = (_parent.p_1_py * _parent.p_1_g) / 5000;
} else if (_parent.bg.map.hitTest(160, 140, true)) {
_parent.p_1_px = (_parent.p_1_px * _parent.p_1_g) / 1000;
_parent.p_1_py = (_parent.p_1_py * _parent.p_1_g) / 1000;
} else {
_parent.p_1_px = (_parent.p_1_px * _parent.p_1_g) / 1500;
_parent.p_1_py = (_parent.p_1_py * _parent.p_1_g) / 1500;
}
if (_global.p_2_rt[_global.p_2_cl] == m_t) {
trace(m_t);
rad = (_global.p_2_rr[_global.p_2_cl] * Math.PI) / 180;
_parent.p_2_px = _parent.p_2_px + (((Math.cos(rad) * _parent.s_s[_global.p_2_s1 - 1]) * _global.p_2_rp[_global.p_2_cl]) / 100);
_parent.p_2_py = _parent.p_2_py + (((Math.sin(rad) * _parent.s_s[_global.p_2_s1 - 1]) * _global.p_2_rp[_global.p_2_cl]) / 100);
_parent.gst_x = _global.p_2_bx[_global.p_2_cl];
_parent.gst_y = _global.p_2_by[_global.p_2_cl];
_global.p_2_cl++;
}
}
onClipEvent (mouseDown) {
if (_parent.waitgage._currentframe == 1) {
if (_parent.timing._currentframe == 1) {
_parent.timing.gotoAndPlay(1);
} else {
_parent.timing.stop();
_parent.waitgage.gotoAndPlay(17 - _parent.p_1_j);
rot = Math.round((Math.atan2(_ymouse, _xmouse) * 180) / Math.PI);
rad = (rot * Math.PI) / 180;
if (_global.m_t != 0) {
_parent.p_1_px = _parent.p_1_px + (((Math.cos(rad) * _parent.p_1_s) * _parent.p_1_p[_parent.timing._currentframe]) / 100);
_parent.p_1_py = _parent.p_1_py + (((Math.sin(rad) * _parent.p_1_s) * _parent.p_1_p[_parent.timing._currentframe]) / 100);
_global.p_1_rp[_global.p_1_cl] = _parent.p_1_p[_parent.timing._currentframe];
_global.p_1_rt[_global.p_1_cl] = m_t;
_global.p_1_rr[_global.p_1_cl] = rot;
_global.p_1_bx[_global.p_1_cl] = Math.floor(_parent.bg.map._x);
_global.p_1_by[_global.p_1_cl] = Math.floor(_parent.bg.map._y);
_global.p_1_cl++;
smk_p = {x:160, y:140};
_parent.bg.map.globalToLocal(smk_p);
_parent.bg.map.attachMovie("smk", "smk", 3);
_parent.bg.map.smk._x = smk_p.x;
_parent.bg.map.smk._y = smk_p.y;
_parent.bg.map.smk._rotation = rot;
_parent.se_1.start();
}
}
}
}
Instance of Symbol 373 MovieClip in Frame 12
onClipEvent (enterFrame) {
_global.m_t++;
}
Instance of Symbol 568 MovieClip in Frame 12
on (press) {
_parent.attachMovie("game_end", "game_end", 2);
}
Frame 13
bgm.play();
stop();
if (_global.p_ir_fl == 2) {
attachMovie("end_time", "end_effect", 2);
g_timeall1.text = "";
g_timeall2.text = "";
g_timeall3.text = "";
g_timeall4.text = "";
g_timeall5.text = "Total time " + toDecimal(_global.m_t);
} else if ((_global.m_t > _global.p_2_rs) && (_global.p_1_s3 >= 3)) {
attachMovie("end_lose", "end_effect", 2);
_global.p_ir_fl = 1;
g_timeall2.text = toDecimal(_global.m_t);
g_timeall3.text = _global.p_2_name;
g_timeall4.text = toDecimal(_global.p_2_rs);
} else if (_global.p_1_s3 == 1) {
attachMovie("end_goal", "end_effect", 2);
_global.p_ir_fl = 0;
g_timeall1.text = "";
g_timeall2.text = "";
g_timeall3.text = "";
g_timeall4.text = "";
g_timeall5.text = toDecimal(_global.m_t);
} else {
attachMovie("end_win", "end_effect", 2);
_global.p_ir_fl = 0;
g_timeall2.text = toDecimal(_global.m_t);
g_timeall3.text = _global.p_2_name;
g_timeall4.text = toDecimal(_global.p_2_rs);
}
Frame 14
if (_global.p_1_s3 == 1) {
gotoAndStop (5);
} else {
nextFrame();
}
stop();
Frame 15
bgm_2.start(0, 99);
sele1.gotoAndStop(_global.p_1_s1);
sele2.gotoAndStop(_global.p_1_s2);
stop();
Frame 16
stop();
Frame 17
x = _global.p_1_s2 - 1;
stall.map.minib.removeMovieClip();
stall.map.attachMovie(("cs_0" + x) + "m", "minib", 1);
stall.map.minib._x = 20;
stall.map.minib._y = 40;
stall.map.minib._alpha = 10;
stall.map.mini.removeMovieClip();
stall.map.attachMovie(("cs_0" + x) + "m", "mini", 2);
stall.map._yscale = 40;
stall.map._rotation = 0;
stall._xscale = 30;
stall._yscale = 30;
sele3.gotoAndStop(_global.p_1_s3);
sele1.gotoAndStop(_global.p_1_s1);
stop();
Instance of Symbol 385 MovieClip "stall" in Frame 17
onClipEvent (enterFrame) {
this.map.mini._rotation = this.map.mini._rotation + 2;
this.map.minib._rotation = this.map.minib._rotation + 2;
}
Instance of Symbol 196 MovieClip in Symbol 200 MovieClip [n2] Frame 1
on (press) {
}
Symbol 200 MovieClip [n2] Frame 4
_parent.prevFrame();
Symbol 200 MovieClip [n2] Frame 5
label.t = _global.nextmsg;
Symbol 200 MovieClip [n2] Frame 24
label.t = _global.nextmsg;
Symbol 200 MovieClip [n2] Frame 46
this.removeMovieClip();
Instance of Symbol 196 MovieClip in Symbol 201 MovieClip [n4] Frame 1
on (press) {
}
Symbol 201 MovieClip [n4] Frame 4
_parent.gotoAndStop(_global.nextf);
Symbol 201 MovieClip [n4] Frame 5
label.t = _global.nextmsg;
Symbol 201 MovieClip [n4] Frame 24
label.t = _global.nextmsg;
Symbol 201 MovieClip [n4] Frame 41
this.removeMovieClip();
Instance of Symbol 196 MovieClip in Symbol 202 MovieClip [n3] Frame 1
on (press) {
}
Symbol 202 MovieClip [n3] Frame 4
_parent.gotoAndStop("select");
Symbol 202 MovieClip [n3] Frame 5
label.t = _global.nextmsg;
Symbol 202 MovieClip [n3] Frame 24
label.t = _global.nextmsg;
Symbol 202 MovieClip [n3] Frame 41
this.removeMovieClip();
Instance of Symbol 196 MovieClip in Symbol 203 MovieClip [n1] Frame 1
on (press) {
}
Symbol 203 MovieClip [n1] Frame 4
_parent.nextFrame();
Symbol 203 MovieClip [n1] Frame 5
label.t = _global.nextmsg;
Symbol 203 MovieClip [n1] Frame 24
label.t = _global.nextmsg;
Symbol 203 MovieClip [n1] Frame 46
this.removeMovieClip();
Symbol 256 MovieClip [readygo] Frame 121
_parent.nextFrame();
Symbol 256 MovieClip [readygo] Frame 141
this.unloadMovie();
Symbol 264 MovieClip [measu] Frame 44
this.unloadMovie();
Symbol 271 MovieClip [time_ex] Frame 44
this.unloadMovie();
Symbol 357 MovieClip [end_goal] Frame 85
stop();
Instance of Symbol 196 MovieClip in Symbol 357 MovieClip [end_goal] Frame 85
on (press) {
_parent.play();
}
Symbol 357 MovieClip [end_goal] Frame 100
_parent.play();
Symbol 357 MovieClip [end_goal] Frame 101
this.unloadMovie();
Symbol 363 MovieClip [end_time] Frame 80
stop();
Instance of Symbol 196 MovieClip in Symbol 363 MovieClip [end_time] Frame 80
on (press) {
_parent.play();
}
Symbol 363 MovieClip [end_time] Frame 95
_parent.play();
Symbol 363 MovieClip [end_time] Frame 96
this.unloadMovie();
Symbol 365 MovieClip [end_lose] Frame 80
stop();
Instance of Symbol 196 MovieClip in Symbol 365 MovieClip [end_lose] Frame 80
on (press) {
_parent.play();
}
Symbol 365 MovieClip [end_lose] Frame 95
_parent.play();
Symbol 365 MovieClip [end_lose] Frame 96
this.unloadMovie();
Symbol 367 MovieClip [end_win] Frame 85
stop();
Instance of Symbol 196 MovieClip in Symbol 367 MovieClip [end_win] Frame 85
on (press) {
_parent.play();
}
Symbol 367 MovieClip [end_win] Frame 100
_parent.play();
Symbol 367 MovieClip [end_win] Frame 101
this.unloadMovie();
Symbol 374 MovieClip [p_ir_name] Frame 1
stop();
Symbol 381 MovieClip [smk] Frame 8
this.unloadMovie();
Instance of Symbol 196 MovieClip in Symbol 384 MovieClip [game_end] Frame 21
on (press) {
_parent.removeMovieClip();
}
Symbol 384 MovieClip [game_end] Frame 60
_parent.gotoAndStop("title");
Symbol 384 MovieClip [game_end] Frame 75
this.removeMovieClip();
Symbol 390 Button
on (rollOver) {
stm = "346m x 2";
stn = "Training";
stall.map.minib.removeMovieClip();
stall.map.attachMovie("cs_01m", "minib", 1);
stall.map.minib._x = 20;
stall.map.minib._y = 40;
stall.map.minib._alpha = 10;
stall.map.mini.removeMovieClip();
stall.map.attachMovie("cs_01m", "mini", 2);
stall.map._yscale = 40;
stall.map._rotation = 0;
stall._yscale = 30;
stall._xscale = 30;
_global.se_4.start();
}
on (press) {
_global.st_nm = "cs_01";
_global.p_1_s2 = 2;
_global.se_5.start();
nextFrame();
}
Symbol 391 Button
on (rollOver) {
stm = "471m x 2";
stn = "Speedway";
stall.map.minib.removeMovieClip();
stall.map.attachMovie("cs_02m", "minib", 1);
stall.map.minib._x = 20;
stall.map.minib._y = 40;
stall.map.minib._alpha = 10;
stall.map.mini.removeMovieClip();
stall.map.attachMovie("cs_02m", "mini", 2);
stall.map._yscale = 40;
stall.map._rotation = 0;
stall._xscale = 30;
stall._yscale = 30;
_global.se_4.start();
}
on (press) {
_global.st_nm = "cs_02";
_global.p_1_s2 = 3;
_global.se_5.start();
nextFrame();
}
Symbol 392 Button
on (rollOver) {
stm = "454m x 2";
stn = "T3";
stall.map.minib.removeMovieClip();
stall.map.attachMovie("cs_03m", "minib", 1);
stall.map.minib._x = 20;
stall.map.minib._y = 40;
stall.map.minib._alpha = 10;
stall.map.mini.removeMovieClip();
stall.map.attachMovie("cs_03m", "mini", 2);
stall.map._yscale = 40;
stall.map._rotation = 0;
stall._xscale = 30;
stall._yscale = 30;
_global.se_4.start();
}
on (press) {
_global.st_nm = "cs_03";
_global.p_1_s2 = 4;
_global.se_5.start();
nextFrame();
}
Symbol 393 Button
on (rollOver) {
stm = "765m x 1";
stn = "A la carte";
stall.map.minib.removeMovieClip();
stall.map.attachMovie("cs_04m", "minib", 1);
stall.map.minib._x = 20;
stall.map.minib._y = 40;
stall.map.minib._alpha = 10;
stall.map.mini.removeMovieClip();
stall.map.attachMovie("cs_04m", "mini", 2);
stall.map._yscale = 40;
stall.map._rotation = 0;
stall._xscale = 30;
stall._yscale = 30;
_global.se_4.start();
}
on (press) {
_global.st_nm = "cs_04";
_global.p_1_s2 = 5;
_global.se_5.start();
nextFrame();
}
Symbol 409 Button
on (press) {
_global.se_5.start();
_parent.gotoAndStop("title");
}
on (rollOver) {
_global.se_4.start();
}
Symbol 417 MovieClip Frame 1
function init() {
this.SendGhost_lv = null;
this.LoadGhost_lv = null;
this.SendGhost_lv = new LoadVars();
this.LoadGhost_lv = new LoadVars();
}
function LoadRankingData(couseid) {
this.SendGhost_lv.mode = "2";
this.SendGhost_lv.courseid = couseid;
this.LoadGhost_lv.onData = function (res) {
var res_datas = res.split(newline);
v_info = res;
if (res_datas[0] < 0) {
gotoAndStop (4);
return(undefined);
}
makeRanking(res);
gotoAndStop (3);
};
uri = this.url;
this.SendGhost_lv.sendAndLoad(uri, this.LoadGhost_lv, "POST");
gotoAndStop (2);
}
function makeRanking(res) {
var res_datas = res.split(newline);
var l;
var i;
var a;
l = res_datas[2];
i = 0;
while (i < l) {
a = res_datas[3 + i].split("\t");
_global.p_ir_nm[i] = a[0];
_global.p_ir_ti[i] = a[1];
_global.p_ir_hv[i] = a[2];
i++;
}
}
var SendGhost_lv;
var LoadGhost_lv;
var url = "";
if (_global.p_debug == 1) {
url = "./ghost_res.txt";
} else {
url = "./ghost.php";
}
init();
LoadRankingData(_global.st_nm);
stop();
Symbol 417 MovieClip Frame 2
stop();
Symbol 417 MovieClip Frame 3
_parent.nextFrame();
stop();
Symbol 417 MovieClip Frame 4
_parent.nextFrame();
stop();
Symbol 417 MovieClip Frame 5
_parent.nextFrame();
stop();
Symbol 417 MovieClip Frame 6
stop();
Symbol 418 Button
on (press) {
_global.se_5.start();
gotoAndStop (1);
}
on (rollOver) {
_global.se_4.start();
}
Symbol 419 MovieClip Frame 1
function toDecimal(src) {
var dic_str;
var v;
var i;
var bf;
v = Math.round((src * 100) / 20);
dic_str = new String(v);
if (dic_str.length <= 2) {
bf = "0.";
i = dic_str.length;
while (i < 2) {
bf = bf + "0";
i++;
}
dic_str = bf + dic_str;
} else {
dic_str = (dic_str.slice(0, -2) + ".") + dic_str.substr(dic_str.length - 2, 2);
}
return(dic_str);
}
var i;
var c = 0;
var t = 0;
var r;
i = 0;
while (i < 10) {
this.attachMovie("p_ir_name", "ir".concat(i.toString(), "_mc"), (10 - i) + 1);
a = eval ("ir".concat(i.toString(), "_mc"));
a._x = 200;
a._y = -100;
r = (i + 1).toString();
switch (i) {
case 0 :
r = r.concat("st");
break;
case 1 :
r = r.concat("nd");
break;
case 2 :
r = r.concat("rd");
break;
default :
r = r.concat("th");
}
a.rank_txt.text = r;
a.name_txt.text = _global.p_ir_nm[i];
a.time_txt.text = this.toDecimal(_global.p_ir_ti[i]);
a.ch_mc.attachMovie(_global.p_ir_hv[i], "ch".concat(i.toString()), i + 1);
a.ch_mc._xscale = 60;
a.ch_mc._yscale = 60;
a.ch_mc["ch".concat(i.toString())].gotoAndStop(10);
i++;
}
Instance of Symbol 373 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (enterFrame) {
var a;
if ((_parent.c == (_parent.t * 10)) && (_parent.t <= 10)) {
a = _parent["ir".concat((10 - _parent.t).toString(), "_mc")];
a.onEnterFrame = function () {
var max_y = 170;
if (this._name == "ir0_mc") {
max_y = -50;
} else if (this._name == "ir1_mc") {
max_y = 0;
} else if (this._name == "ir2_mc") {
max_y = 50;
}
if (this._x > -160) {
this._x = this._x - 40;
this._y = -100;
} else if (this._y < max_y) {
this._x = -160;
this._y = this._y + 5;
} else {
this._x = -160;
this._y = max_y;
}
};
_parent.t++;
}
_parent.c++;
}
Symbol 419 MovieClip Frame 2
stop();
Symbol 420 MovieClip [p_ranking_window] Frame 1
stop();
Instance of Symbol 385 MovieClip "stall" in Symbol 420 MovieClip [p_ranking_window] Frame 1
onClipEvent (enterFrame) {
this.map.mini._rotation = this.map.mini._rotation + 2;
this.map.minib._rotation = this.map.minib._rotation + 2;
}
Symbol 420 MovieClip [p_ranking_window] Frame 2
stop();
Symbol 420 MovieClip [p_ranking_window] Frame 3
x = _global.p_1_s2 - 1;
stall2.map.minib.removeMovieClip();
stall2.map.attachMovie(("cs_0" + x) + "m", "minib", 1);
stall2.map.minib._x = 20;
stall2.map.minib._y = 40;
stall2.map.minib._alpha = 10;
stall2.map.mini.removeMovieClip();
stall2.map.attachMovie(("cs_0" + x) + "m", "mini", 2);
stall2.map._yscale = 40;
stall2.map._rotation = 0;
stall2._xscale = 30;
stall2._yscale = 30;
stop();
Instance of Symbol 385 MovieClip "stall2" in Symbol 420 MovieClip [p_ranking_window] Frame 3
onClipEvent (enterFrame) {
this.map.mini._rotation = this.map.mini._rotation + 2;
this.map.minib._rotation = this.map.minib._rotation + 2;
}
Symbol 436 MovieClip Frame 369
_global.nextmsg = "";
_parent.attachMovie("n1", "n", 1);
stop();
Symbol 441 Button
on (press) {
_global.nextmsg = "Machine select";
attachMovie("n1", "n", 1);
_global.se_5.start();
bgm_1.start(0, 99);
}
on (rollOver) {
_global.se_4.start();
}
Symbol 447 MovieClip Frame 1
if (_parent.snd_f == 1) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 447 MovieClip Frame 2
_global.snd_a.setVolume(100);
Instance of Symbol 444 MovieClip in Symbol 447 MovieClip Frame 2
on (press) {
_parent._parent.snd_f = 0;
_parent.gotoAndStop(3);
}
Symbol 447 MovieClip Frame 3
_global.snd_a.setVolume(0);
Instance of Symbol 444 MovieClip in Symbol 447 MovieClip Frame 3
on (press) {
_parent._parent.snd_f = 1;
_parent.gotoAndStop(2);
}
Symbol 451 MovieClip Frame 1
switch (_root._quality) {
case "low" :
gotoAndStop (2);
break;
case "high" :
gotoAndStop (4);
break;
case "medium" :
default :
gotoAndStop (3);
}
Symbol 451 MovieClip Frame 2
_root._quality = "low";
Instance of Symbol 444 MovieClip in Symbol 451 MovieClip Frame 2
on (press) {
_parent.gotoAndStop(3);
}
Symbol 451 MovieClip Frame 3
_root._quality = "medium";
Instance of Symbol 444 MovieClip in Symbol 451 MovieClip Frame 3
on (press) {
_parent.gotoAndStop(4);
}
Symbol 451 MovieClip Frame 4
_root._quality = "high";
Instance of Symbol 444 MovieClip in Symbol 451 MovieClip Frame 4
on (press) {
_parent.gotoAndStop(2);
}
Symbol 452 Button
on (press) {
_global.nextmsg = "Ranking view";
attachMovie("n4", "n", 1);
_global.nextf = "ir_view";
_global.se_5.start();
bgm_2.start(0, 99);
}
on (rollOver) {
_global.se_4.start();
}
Symbol 454 MovieClip Frame 11
stop();
Symbol 467 MovieClip Frame 10
stop();
Symbol 467 MovieClip Frame 20
stop();
Symbol 467 MovieClip Frame 30
stop();
Symbol 467 MovieClip Frame 40
stop();
Symbol 467 MovieClip Frame 50
stop();
Symbol 467 MovieClip Frame 60
stop();
Symbol 468 Button
on (rollOver) {
chall.gotoAndPlay(1);
_global.se_4.start();
}
on (press) {
_global.p_1_hv = "shoboneko";
_global.nextmsg = "Course select";
attachMovie("n1", "n", 1);
_global.p_1_s1 = 1;
p_1_g = s_g[0];
p_1_s = s_s[0];
p_1_j = 8;
p_1_p = [2, 4, 6, 8, 11, 14, 17, 21, 24, 27, 30, 35, 40, 45, 50, 55, 65, 70, 75, 90, 100, 90, 85, 75, 70, 65, 60, 55, 50, 45, 40];
_global.se_5.start();
}
Symbol 469 Button
on (rollOver) {
chall.gotoAndPlay(11);
_global.se_4.start();
}
on (press) {
_global.p_1_hv = "mona";
_global.nextmsg = "Course select";
attachMovie("n1", "n", 1);
_global.p_1_s1 = 2;
p_1_g = s_g[1];
p_1_s = s_s[1];
p_1_j = 6;
p_1_p = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 24, 28, 32, 36, 40, 70, 80, 90, 95, 98, 100, 98, 95, 92, 90, 88, 86, 83, 80, 70, 50];
_global.se_5.start();
}
Symbol 470 Button
on (rollOver) {
chall.gotoAndPlay(21);
_global.se_4.start();
}
on (press) {
_global.p_1_hv = "neet";
_global.nextmsg = "Course select";
attachMovie("n1", "n", 1);
_global.p_1_s1 = 3;
p_1_g = s_g[2];
p_1_s = s_s[2];
p_1_j = 7;
p_1_p = [2, 4, 6, 8, 10, 20, 22, 26, 30, 32, 38, 45, 50, 55, 60, 62, 65, 75, 85, 85, 100, 95, 75, 55, 50, 47, 45, 40, 35, 30, 25];
_global.se_5.start();
}
Symbol 471 Button
on (rollOver) {
chall.gotoAndPlay(31);
_global.se_4.start();
}
on (press) {
_global.p_1_hv = "chahan";
_global.nextmsg = "Course select";
attachMovie("n1", "n", 1);
_global.p_1_s1 = 4;
p_1_g = s_g[3];
p_1_s = s_s[3];
p_1_j = 12;
p_1_p = [4, 9, 14, 18, 24, 30, 36, 44, 50, 60, 65, 70, 71, 72, 73, 74, 75, 76, 78, 80, 100, 90, 80, 70, 65, 60, 55, 50, 45, 40, 35];
_global.se_5.start();
}
Symbol 472 Button
on (rollOver) {
chall.gotoAndPlay(41);
_global.se_4.start();
}
on (press) {
_global.p_1_hv = "youkan";
_global.nextmsg = "Course select";
attachMovie("n1", "n", 1);
_global.p_1_s1 = 5;
p_1_g = s_g[4];
p_1_s = s_s[4];
p_1_j = 9;
p_1_p = [4, 8, 12, 16, 20, 22, 24, 26, 28, 30, 35, 40, 45, 50, 55, 60, 65, 70, 80, 90, 100, 90, 72, 66, 62, 58, 54, 50, 46, 42, 40];
_global.se_5.start();
}
Symbol 473 Button
on (rollOver) {
chall.gotoAndPlay(51);
_global.se_4.start();
}
Symbol 474 Button
on (press) {
_global.nextmsg = "";
attachMovie("n2", "n", 1);
_global.se_5.start();
}
on (rollOver) {
_global.se_4.start();
}
Symbol 487 Button
on (rollOver) {
stm = "160m x 3";
stn = "Oval";
stall.map.minib.removeMovieClip();
stall.map.attachMovie("cs_00m", "minib", 1);
stall.map.minib._x = 20;
stall.map.minib._y = 40;
stall.map.minib._alpha = 10;
stall.map.mini.removeMovieClip();
stall.map.attachMovie("cs_00m", "mini", 2);
stall.map._yscale = 40;
stall.map._rotation = 0;
stall._xscale = 30;
stall._yscale = 30;
_global.se_4.start();
}
on (press) {
_global.st_nm = "cs_00";
_global.nextmsg = "Style select";
attachMovie("n1", "n", 1);
_global.st_1_x = 0;
_global.st_1_y = -45;
_global.st_2_x = 0;
_global.st_2_y = -55;
_global.p_1_s2 = 1;
_global.cp_c = 0;
_global.cp_x = [0, 0, 0, 0, 0, 0, 0];
_global.cp_y = [50, -50, 50, -50, 50, -50, 0];
_global.cp_r = [40, 40, 40, 40, 40, 40, 0];
_global.cp_s = 2;
_global.se_5.start();
}
Symbol 488 Button
on (rollOver) {
stm = "346m x 2";
stn = "Training";
stall.map.minib.removeMovieClip();
stall.map.attachMovie("cs_01m", "minib", 1);
stall.map.minib._x = 20;
stall.map.minib._y = 40;
stall.map.minib._alpha = 10;
stall.map.mini.removeMovieClip();
stall.map.attachMovie("cs_01m", "mini", 2);
stall.map._yscale = 40;
stall.map._rotation = 0;
stall._yscale = 30;
stall._xscale = 30;
_global.se_4.start();
}
on (press) {
_global.st_nm = "cs_01";
_global.nextmsg = "Style select";
attachMovie("n1", "n", 1);
_global.st_1_x = -140;
_global.st_1_y = -110;
_global.st_2_x = -140;
_global.st_2_y = -120;
_global.p_1_s2 = 2;
_global.cp_c = 0;
_global.cp_x = [200, -100, -140, 200, -100, -140, 0];
_global.cp_y = [-105, 110, -115, -105, 110, -115, 0];
_global.cp_r = [40, 40, 40, 40, 40, 40, 0];
_global.cp_s = 3;
_global.se_5.start();
}
Symbol 489 Button
on (rollOver) {
stm = "471m x 2";
stn = "Speedway";
stall.map.minib.removeMovieClip();
stall.map.attachMovie("cs_02m", "minib", 1);
stall.map.minib._x = 20;
stall.map.minib._y = 40;
stall.map.minib._alpha = 10;
stall.map.mini.removeMovieClip();
stall.map.attachMovie("cs_02m", "mini", 2);
stall.map._yscale = 40;
stall.map._rotation = 0;
stall._xscale = 30;
stall._yscale = 30;
_global.se_4.start();
}
on (press) {
_global.st_nm = "cs_02";
_global.nextmsg = "Style select";
attachMovie("n1", "n", 1);
_global.st_1_x = 0;
_global.st_1_y = -165;
_global.st_2_x = 0;
_global.st_2_y = -175;
_global.p_1_s2 = 3;
_global.cp_c = 0;
_global.cp_x = [80, -400, 0, 80, -400, 0, 0];
_global.cp_y = [165, 10, -170, 165, 10, -170, 0];
_global.cp_r = [40, 40, 40, 40, 40, 40, 0];
_global.cp_s = 3;
_global.se_5.start();
}
Symbol 490 Button
on (rollOver) {
stm = "454m x 2";
stn = "T3";
stall.map.minib.removeMovieClip();
stall.map.attachMovie("cs_03m", "minib", 1);
stall.map.minib._x = 20;
stall.map.minib._y = 40;
stall.map.minib._alpha = 10;
stall.map.mini.removeMovieClip();
stall.map.attachMovie("cs_03m", "mini", 2);
stall.map._yscale = 40;
stall.map._rotation = 0;
stall._xscale = 30;
stall._yscale = 30;
_global.se_4.start();
}
on (press) {
_global.st_nm = "cs_03";
_global.nextmsg = "Style select";
attachMovie("n1", "n", 1);
_global.st_1_x = 0;
_global.st_1_y = -112;
_global.st_2_x = 0;
_global.st_2_y = -122;
_global.p_1_s2 = 4;
_global.cp_c = 0;
_global.cp_x = [130, -30, 0, 130, -30, 0, 0];
_global.cp_y = [20, 120, -120, 20, 120, -120, 0];
_global.cp_r = [40, 40, 40, 40, 40, 40, 0];
_global.cp_s = 3;
_global.se_5.start();
}
Symbol 491 Button
on (rollOver) {
stm = "765m x 1";
stn = "A la carte";
stall.map.minib.removeMovieClip();
stall.map.attachMovie("cs_04m", "minib", 1);
stall.map.minib._x = 20;
stall.map.minib._y = 40;
stall.map.minib._alpha = 10;
stall.map.mini.removeMovieClip();
stall.map.attachMovie("cs_04m", "mini", 2);
stall.map._yscale = 40;
stall.map._rotation = 0;
stall._xscale = 30;
stall._yscale = 30;
_global.se_4.start();
}
on (press) {
_global.st_nm = "cs_04";
_global.nextmsg = "Style select";
attachMovie("n1", "n", 1);
_global.st_1_x = -195;
_global.st_1_y = 500;
_global.st_2_x = -205;
_global.st_2_y = 505;
_global.p_1_s2 = 5;
_global.cp_c = 0;
_global.cp_x = [-635, -120, 310, 650, 0];
_global.cp_y = [-100, -68.5, 315, -80, 0];
_global.cp_r = [40, 40, 40, 40, 0];
_global.cp_s = 2;
_global.se_5.start();
}
Symbol 492 Button
on (press) {
_global.nextmsg = "Machine select";
attachMovie("n2", "n", 1);
_global.se_5.start();
}
on (rollOver) {
_global.se_4.start();
}
Symbol 496 Button
on (press) {
_global.nextmsg = "Ready ?";
attachMovie("n1", "n", 1);
_global.p_1_s3 = 1;
_global.se_5.start();
}
on (rollOver) {
msg1 = "Offline";
msg2 = "Single test drive";
_global.se_4.start();
}
Symbol 497 Button
on (press) {
_global.nextmsg = "Ready ?";
attachMovie("n1", "n", 1);
_global.p_1_s3 = 2;
_global.se_5.start();
}
on (rollOver) {
msg1 = "Offline";
msg2 = "Single test drive";
_global.se_4.start();
}
Symbol 498 Button
on (press) {
_global.nextmsg = "Ready ?";
attachMovie("n1", "n", 1);
_global.p_1_s3 = 3;
_global.se_5.start();
}
on (rollOver) {
msg1 = "Offline";
msg2 = "Single test drive";
_global.se_4.start();
}
Symbol 499 Button
on (press) {
_global.nextmsg = "Ready ?";
attachMovie("n1", "n", 1);
_global.p_1_s3 = 4;
_global.se_5.start();
}
on (rollOver) {
msg1 = "Offline";
msg2 = "Single test drive";
_global.se_4.start();
}
Symbol 500 Button
on (press) {
_global.nextmsg = "Course select";
attachMovie("n2", "n", 1);
_global.se_5.start();
}
on (rollOver) {
_global.se_4.start();
}
Symbol 506 Button
on (press) {
_global.nextmsg = "Start your engine";
attachMovie("n1", "n", 1);
_global.se_5.start();
}
on (rollOver) {
_global.se_4.start();
}
Symbol 507 Button
on (press) {
_global.nextmsg = "Machine select";
attachMovie("n3", "n", 1);
_global.se_5.start();
}
on (rollOver) {
_global.se_4.start();
}
Symbol 509 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 1
stop();
Symbol 512 Button
on (press) {
_global.nextmsg = "Style select";
attachMovie("n2", "n", 1);
_global.se_5.start();
}
on (rollOver) {
_global.se_4.start();
}
Symbol 516 MovieClip Frame 1
function init() {
this.SendGhost_lv = null;
this.LoadGhost_lv = null;
this.SendGhost_lv = new LoadVars();
this.LoadGhost_lv = new LoadVars();
_global.p_2_rs = 99999 /* 0x01869F */;
_global.p_2_name = "";
_global.p_2_hv = "";
_global.p_2_s1 = 0;
_global.p_2_rt = null;
_global.p_2_rp = null;
_global.p_2_rr = null;
_global.p_2_bx = null;
_global.p_2_by = null;
_global.p_2_rt = new Array();
_global.p_2_rp = new Array();
_global.p_2_rr = new Array();
_global.p_2_bx = new Array();
_global.p_2_by = new Array();
}
function LoadGhostData(couseid, machineid) {
this.SendGhost_lv.mode = "0";
this.SendGhost_lv.courseid = couseid;
this.SendGhost_lv.machineid = machineid;
this.LoadGhost_lv.onData = function (res) {
var res_datas = res.split(newline);
v_info = res;
if (res_datas[0] < 0) {
gotoAndStop (4);
return(undefined);
}
if (res_datas[0] == 1) {
gotoAndStop (5);
return(undefined);
}
_global.p_2_rs = res_datas[1];
_global.p_2_name = res_datas[2];
_global.p_2_hv = res_datas[3];
_global.p_2_s1 = res_datas[4];
splitdata(res_datas[5]);
if ((_global.p_debug == 2) || (_global.p_debug == 3)) {
splitdata_log(res_datas[6], 0);
splitdata_log(res_datas[7], 1);
}
gotoAndStop (3);
};
this.SendGhost_lv.sendAndLoad(this.url, this.LoadGhost_lv, "POST");
gotoAndStop (2);
}
function splitdata_log(val, f) {
var a = new Array();
var b = new Array();
var i;
var l;
a = val.split("/");
l = a.length;
i = 0;
while (i < l) {
b = a[i].split(":");
if (f == 0) {
_global.p_2_lpx[i] = b[0];
_global.p_2_lpy[i] = b[1];
_global.p_2_lpc[i] = b[2];
} else {
_global.p_2_lx[i] = b[0];
_global.p_2_ly[i] = b[1];
_global.p_2_lc[i] = b[2];
}
i++;
}
}
function splitdata(val) {
var a;
var i;
var l = (val.length / 12);
i = 0;
while (i < l) {
a = val.substr(i * 12, 12);
_global.p_2_rt[i] = decodeData(a.substr(0, 2));
_global.p_2_rp[i] = decodeData(a.substr(2, 2));
_global.p_2_rr[i] = decodeData(a.substr(4, 2)) - 180;
_global.p_2_bx[i] = decodeData(a.substr(6, 3)) - 7000;
_global.p_2_by[i] = decodeData(a.substr(9, 3)) - 7000;
i++;
}
_global.p_2_cl = 0;
a = null;
}
function decodeData(x) {
var i;
var ret;
var a;
var b;
ret = 0;
i = 0;
while (i < x.length) {
ret = ret * 70;
a = x.charCodeAt(i);
if (a <= 57) {
b = a - 47;
} else if (a <= 90) {
b = (a - 64) + 11;
} else if (a <= 125) {
b = (a - 94) + 38;
} else {
b = 0;
}
ret = ret + b;
i++;
}
return(ret);
}
var SendGhost_lv;
var LoadGhost_lv;
var url = "";
switch (_global.p_debug) {
case 0 :
url = "./ghost.php";
break;
case 1 :
url = "./ghost_req.txt";
break;
case 2 :
url = "./ghost_dbg.php";
break;
case 3 :
url = "./ghost_dbg_req.txt";
}
init();
switch (_global.p_1_s3) {
case 3 :
LoadGhostData(_global.st_nm, "max");
break;
case 4 :
LoadGhostData(_global.st_nm, _global.p_1_hv);
break;
default :
_parent.nextFrame();
}
stop();
Symbol 516 MovieClip Frame 2
stop();
Symbol 516 MovieClip Frame 3
_parent.nextFrame();
stop();
Symbol 516 MovieClip Frame 4
_parent.nextFrame();
stop();
Symbol 516 MovieClip Frame 5
_parent.nextFrame();
stop();
Symbol 516 MovieClip Frame 6
stop();
Symbol 528 MovieClip Frame 31
stop();
Symbol 532 MovieClip Frame 17
_parent.timing.gotoAndStop(1);
gotoAndStop (1);
Symbol 561 MovieClip Frame 29
stop();
Symbol 561 MovieClip Frame 59
stop();
Symbol 561 MovieClip Frame 89
stop();
Symbol 561 MovieClip Frame 119
stop();
Symbol 561 MovieClip Frame 149
stop();
Symbol 561 MovieClip Frame 179
stop();
Symbol 584 Button
on (press) {
if (playername == "774kb") {
playername = user_ent;
} else if (playername.length < 5) {
playername = playername + user_ent;
}
_global.se_5.start();
}
on (rollOver) {
_global.se_4.start();
}
Symbol 585 Button
on (press) {
if (playername.length > 0) {
playername = substring(playername, 1, playername.length - 1);
} else {
playername = "";
}
_global.se_5.start();
}
on (rollOver) {
_global.se_4.start();
}
Symbol 589 Button
on (press) {
if (user_ent != "~") {
user_ent = chr(user_ent.charCodeAt(0) + 1);
} else {
user_ent = "!";
}
_global.se_4.start();
}
on (rollOver) {
_global.se_4.start();
}
Symbol 590 Button
on (press) {
if (user_ent != "!") {
user_ent = chr(user_ent.charCodeAt(0) - 1);
} else {
user_ent = "~";
}
_global.se_4.start();
}
on (rollOver) {
_global.se_4.start();
}
Symbol 594 Button
on (press) {
_global.p_1_name = playername;
nextFrame();
_global.se_5.start();
}
on (rollOver) {
_global.se_4.start();
}
Symbol 595 Button
on (press) {
gotoAndStop (5);
_global.se_5.start();
}
on (rollOver) {
_global.se_4.start();
}
Symbol 599 MovieClip Frame 1
function init() {
this.SendGhost_lv = null;
this.LoadGhost_lv = null;
this.SendGhost_lv = new LoadVars();
this.LoadGhost_lv = new LoadVars();
}
function makeGhostData_log(lx, ly, lc, arysize) {
var bf;
var i;
bf = "";
i = 0;
while (i < arysize) {
if (i > 0) {
bf = bf + "/";
}
bf = bf.concat(lx[i].toString(), ":", ly[i].toString(), ":", lc[i].toString());
i++;
}
return(bf);
}
function makeGhostData(timing, power, angle, bx, by, arysize) {
var bf;
var i;
bf = "";
i = 0;
while (i < arysize) {
bf = bf.concat(encodeData(timing[i], 2));
bf = bf.concat(encodeData(power[i], 2));
bf = bf.concat(encodeData(angle[i] + 180, 2));
bf = bf.concat(encodeData(bx[i] + 7000, 3));
bf = bf.concat(encodeData(by[i] + 7000, 3));
i++;
}
return(bf);
}
function SendGhostData(couseid, machineid, machinenum, playername, recode) {
this.SendGhost_lv.mode = "1";
this.SendGhost_lv.courseid = couseid;
this.SendGhost_lv.machineid = machineid;
this.SendGhost_lv.machinenum = machinenum;
this.SendGhost_lv.playername = playername;
this.SendGhost_lv.recode = recode;
this.SendGhost_lv.ghostdata = this.makeGhostData(_global.p_1_rt, _global.p_1_rp, _global.p_1_rr, _global.p_1_bx, _global.p_1_by, _global.p_1_cl);
if (_global.p_debug == 2) {
this.SendGhost_lv.ghostlog = this.makeGhostData_log(_global.p_1_lpx, _global.p_1_lpy, _global.p_1_lpc, _global.p_1_cl);
this.SendGhost_lv.ghostlog2 = this.makeGhostData_log(_global.p_1_lx, _global.p_1_ly, _global.p_1_lc, _global.p_1_cl);
}
this.LoadGhost_lv.onData = function (res) {
var res_datas = res.split(newline);
v_info = res;
if (res_datas[0] < 0) {
gotoAndStop (4);
return(undefined);
}
makeRanking(res);
gotoAndStop (3);
};
if ((_global.p_debug == 1) || (_global.p_debug == 3)) {
uri = this.url;
} else {
uri = (this.url + "?") + encodeScore(recode);
}
this.SendGhost_lv.sendAndLoad(uri, this.LoadGhost_lv, "POST");
gotoAndStop (2);
}
function SendRankingData(couseid, machineid, machinenum, playername, recode) {
this.SendGhost_lv.mode = "3";
this.SendGhost_lv.courseid = couseid;
this.SendGhost_lv.machineid = machineid;
this.SendGhost_lv.machinenum = machinenum;
this.SendGhost_lv.playername = playername;
this.SendGhost_lv.recode = recode;
this.LoadGhost_lv.onData = function (res) {
var res_datas = res.split(newline);
v_info = res;
if (res_datas[0] < 0) {
gotoAndStop (4);
return(undefined);
}
makeRanking(res);
gotoAndStop (3);
};
uri = (this.url + "?") + encodeScore(recode);
this.SendGhost_lv.sendAndLoad(uri, this.LoadGhost_lv, "POST");
gotoAndStop (2);
}
function LoadRankingData(couseid) {
this.SendGhost_lv.mode = "2";
this.SendGhost_lv.courseid = couseid;
this.LoadGhost_lv.onData = function (res) {
var res_datas = res.split(newline);
v_info = res;
if (res_datas[0] < 0) {
gotoAndStop (4);
return(undefined);
}
makeRanking(res);
gotoAndStop (3);
};
uri = this.url;
this.SendGhost_lv.sendAndLoad(uri, this.LoadGhost_lv, "POST");
gotoAndStop (2);
}
function encodeData(x, l) {
var ret;
var b;
var a;
ret = "";
do {
b = x % 70;
x = (x - b) / 70;
if (b < 11) {
a = String.fromCharCode(b + 47);
} else if (b < 38) {
a = String.fromCharCode((b - 11) + 64);
} else if (b < 70) {
a = String.fromCharCode((b - 38) + 94);
} else {
a = "";
}
ret = a.concat(ret);
} while (x > 0);
if (ret.length < l) {
a = "";
i = 0;
while (i < (l - ret.length)) {
a = a.concat("/");
i++;
}
ret = a.concat(ret);
}
return(ret);
}
function encodeScore(scr) {
var rd = (int(Math.random() * 900) + 100);
var ret = "";
var v = ((int(scr) + int(rd)) + 555);
ret = rd.toString() + v.toString();
return(ret);
}
function makeRanking(res) {
var res_datas = res.split(newline);
var l;
var i;
var a;
l = res_datas[2];
i = 0;
while (i < l) {
a = res_datas[3 + i].split("\t");
_global.p_ir_nm[i] = a[0];
_global.p_ir_ti[i] = a[1];
_global.p_ir_hv[i] = a[2];
i++;
}
}
var SendGhost_lv;
var LoadGhost_lv;
var url = "";
switch (_global.p_debug) {
case 0 :
url = "./ghost.php";
break;
case 1 :
url = "./ghost_res.txt";
break;
case 2 :
url = "./ghost_dbg.php";
break;
case 3 :
url = "./ghost_res.txt";
}
init();
if (_global.p_ir_fl == 2) {
if (_global.p_1_s3 == 1) {
_parent.nextFrame();
} else {
LoadRankingData(_global.st_nm);
}
} else {
switch (_global.p_1_s3) {
case 2 :
SendRankingData(_global.st_nm, _global.p_1_hv, _global.p_1_s1, _global.p_1_name, _global.m_t);
break;
case 3 :
case 4 :
SendGhostData(_global.st_nm, _global.p_1_hv, _global.p_1_s1, _global.p_1_name, _global.m_t);
break;
default :
_parent.nextFrame();
}
}
stop();
Symbol 599 MovieClip Frame 2
stop();
Symbol 599 MovieClip Frame 3
_parent.nextFrame();
stop();
Symbol 599 MovieClip Frame 4
_parent.nextFrame();
stop();
Symbol 599 MovieClip Frame 5
_parent.nextFrame();
stop();
Symbol 599 MovieClip Frame 6
stop();
Symbol 600 Button
on (press) {
_parent.gotoAndStop("title");
_global.se_5.start();
}
on (rollOver) {
_global.se_4.start();
}
Symbol 601 MovieClip Frame 1
stop();