Frame 1
function setLang() {
if (lang == 0) {
msg0 = "English";
msg1 = "Crie um nome e senha para jogar!";
msg2 = "Redigite senha corretamente!";
msg3 = "Verificando...";
msg4 = "Novo Jogador. Redigite a senha!";
msg5 = "Jogador ja cadastrado. Senha incorreta!";
} else {
msg0 = "Portugues";
msg1 = "Create a nick and pass to play!";
msg2 = "Retype password correctly!";
msg3 = "Checking...";
msg4 = "New Player. Retype password!";
msg5 = "Player already registered. Incorrect pass!";
msg6 = "Purpose";
msg7 = "Play";
msg8 = "Credit";
}
}
function CheckPass2() {
if ((hnick.length > 0) && (hpass.length > 0)) {
if ((hpass2.length <= 0) || (hpass == hpass2)) {
loading.text = "Validating...";
usend.nic = hnick;
usend.pas = hpass;
usend.pas2 = hpass2;
usend.sendAndLoad("http://rr.site88.net/userchk.php", user, "POST");
}
} else {
gotoAndStop ("frmNick");
}
}
function loadTimer() {
var _local1 = getBytesLoaded();
loading.text = Math.round((_local1 * 100) / tot) + " %";
if (_local1 >= tot) {
clearInterval(loadTimerID);
CheckPass2();
}
}
Stage.showMenu = false;
Stage.scaleMode = "noScale";
_quality = "BEST";
var CONV = (Math.PI/180);
var cntintID;
var kbdTimerID;
var myListener = new Object();
var passtyped = 0;
lang = 1;
setLang();
var Nick;
var pId;
top = new LoadVars();
best = new LoadVars();
usend = new LoadVars();
user = new LoadVars();
user.onLoad = function (success) {
if (success) {
if (user.code > 0) {
if (passtyped > 0) {
Key.removeListener(myListener);
}
Nick = user.nick;
gotoAndPlay ("frmIni");
}
if (user.code == -1) {
help_txt.text = msg4;
}
if (user.code == -2) {
help_txt.text = msg5;
}
}
};
var tot = getBytesTotal();
loadTimerID = setInterval(loadTimer, 25);
stop();
Frame 3
function checkPass() {
if ((nick_txt.text.length <= 0) || (pass_txt.text.length <= 0)) {
help_txt.text = msg1;
return(undefined);
}
if ((pass2_txt.text.length > 0) && (pass_txt.text != pass2_txt.text)) {
help_txt.text = msg2;
return(undefined);
}
help_txt.text = msg3;
hnick = nick_txt.text;
hpass = pass_txt.text;
usend.nic = hnick;
usend.pas = hpass;
usend.pas2 = pass2_txt.text;
usend.sendAndLoad("http://rr.site88.net/userchk.php", user, "POST");
}
passtyped = 1;
nick_txt.borderColor = 3151872 /* 0x301800 */;
nick_txt.border = true;
nick_txt.backgroundColor = 16777164 /* 0xFFFFCC */;
nick_txt.background = true;
nick_txt.restrict = " a-zA-Z0-9";
nick_txt.maxChars = 10;
Selection.setFocus(nick_txt);
pass_txt.borderColor = 3151872 /* 0x301800 */;
pass_txt.border = true;
pass_txt.backgroundColor = 16777164 /* 0xFFFFCC */;
pass_txt.background = true;
pass_txt.restrict = " a-zA-Z0-9";
pass_txt.maxChars = 10;
pass_txt.password = true;
pass2_txt.borderColor = 3151872 /* 0x301800 */;
pass2_txt.border = true;
pass2_txt.backgroundColor = 16777164 /* 0xFFFFCC */;
pass2_txt.background = true;
pass2_txt.restrict = " a-zA-Z0-9";
pass2_txt.maxChars = 10;
pass2_txt.password = true;
langtxt.text = msg0;
help_txt.text = msg1;
btlang.onPress = function () {
if ((++lang) > 1) {
lang = 0;
}
setLang();
langtxt.text = msg0;
help_txt.text = msg1;
};
btsite.onPress = function () {
getURL ("http://rr.site88.net", "_blank");
};
btgoon.onPress = function () {
checkPass();
};
Key.addListener(myListener);
myListener.onKeyDown = function () {
if (Key.getAscii() == 13) {
checkPass();
}
};
stop();
Frame 5
var acCha = new Sound(mcs1);
var deCha = new Sound(mcs2);
var a0Cha = new Sound(mcs3);
var a9Cha = new Sound(mcs4);
var a5Cha = new Sound(mcs5);
var d1Cha = new Sound();
var d2Cha = new Sound();
var skCha = new Sound(mcs6);
acCha.attachSound("acSndClass");
deCha.attachSound("deSndClass");
a0Cha.attachSound("a0SndClass");
a9Cha.attachSound("a9SndClass");
a5Cha.attachSound("a5SndClass");
d1Cha.attachSound("d1SndClass");
d2Cha.attachSound("d2SndClass");
skCha.attachSound("skSndClass");
var acLen = acCha.duration;
var deLen = deCha.duration;
var acTim = 0;
var deTim = 0;
var acPos = 0;
var acSt = 0;
var sh = (new flash.display.BitmapData(2800, 1));
var shp = 0;
var bsh = (new flash.display.BitmapData(2800, 1));
var bshp = 0;
var ush = (new flash.display.BitmapData(2800, 1));
var ushp = 0;
var dsh = (new flash.display.BitmapData(2800, 1));
var dshp = 0;
var shadt = 0;
var sbshp = 0;
var sushp = 0;
var sdshp = 0;
var bm = (new flash.display.BitmapData(640, 480));
var fr = (new flash.display.BitmapData(640, 480));
var mcLoader = new MovieClipLoader();
var gbok = 0;
Frame 7
function goRoom(rId) {
pId = 1;
track = rId;
gotoAndStop ("loadtrack");
}
function goRoom(rId) {
pId = 1;
track = rId;
gotoAndStop ("loadtrack");
}
function goTop(t) {
track = t;
gotoAndStop ("top");
}
function formatDecimals(num, digits) {
if (digits <= 0) {
return(Math.round(num));
}
var _local4 = Math.pow(10, digits);
var _local2 = String(Math.round(num * _local4) / _local4);
if (_local2.indexOf(".") == -1) {
_local2 = _local2 + ".0";
}
var _local6 = _local2.split(".");
var _local3 = digits - _local6[1].length;
var _local1 = 1;
while (_local1 <= _local3) {
_local2 = _local2 + "0";
_local1++;
}
return(_local2);
}
function showBest() {
t = 1;
while (t <= 3) {
n = 0;
while (n <= 5) {
pt = eval (("best.t" + t) + n) / 1000;
if (pt <= 0) {
} else {
eval ((("t" + t) + n) + "_txt").text = formatDecimals(pt, 3);
if (n > 0) {
eval ((("n" + t) + n) + "_txt").text = eval (("best.n" + t) + n);
} else {
eval ((("n" + t) + n) + "_txt").text = hnick;
}
}
n++;
}
n = 1;
while (n <= 3) {
pt = best[("u" + t) + n] / 1000;
if (pt <= 0) {
} else {
this[(("dt" + t) + n) + "_txt"].text = formatDecimals(pt, 3);
this[(("dn" + t) + n) + "_txt"].text = best[("d" + t) + n];
}
n++;
}
t++;
}
}
function getBestTimes() {
if (gbok == 1) {
showBest();
}
gbok = 1;
best.cod = user.code;
best.ntr = 3;
best.sendAndLoad("http://rr.site88.net/mmresr.php", best, "POST");
}
track1_bt.onPress = function () {
if (gbok == 1) {
goRoom(1);
}
};
track2_bt.onPress = function () {
if (gbok == 1) {
goRoom(2);
}
};
track3_bt.onPress = function () {
if (gbok == 1) {
goRoom(3);
}
};
top1_bt.onPress = function () {
goTop(1);
};
top2_bt.onPress = function () {
goTop(2);
};
top3_bt.onPress = function () {
goTop(3);
};
best.onLoad = function (success) {
if (!success) {
return(undefined);
}
showBest();
};
getBestTimes();
stop();
Frame 9
function onLoadInit(mc) {
if (mc == rule) {
bm.draw(rule);
if (mc._width == 640) {
tloaded = tloaded | 2;
} else {
goBack();
}
} else if (mc == bestsh) {
bsh.draw(bestsh);
bshp = bestsh._width;
tloaded = tloaded | 4;
} else if (mc == usersh) {
ush.draw(usersh);
ushp = usersh._width;
tloaded = tloaded | 8;
} else if (mc == daysh) {
dsh.draw(daysh);
dshp = daysh._width;
tloaded = tloaded | 16;
} else if (mc._width == 640) {
tloaded = tloaded | 1;
} else {
goBack();
}
mc._visible = false;
if (tloaded == 31) {
goPlay();
}
}
function onLoadError(mc) {
if (mc == bestsh) {
tloaded = tloaded | 4;
}
if (mc == usersh) {
tloaded = tloaded | 8;
}
if (mc == daysh) {
tloaded = tloaded | 16;
}
if (tloaded == 31) {
goPlay();
}
}
function loadTimer() {
if (((tloaded & 3) == 3) && ((getTimer() - loadtTime) > 10000)) {
goPlay();
}
}
function goPlay() {
mcLoader.removeListener(this);
clearInterval(loadtTimerID);
gotoAndStop ("play");
}
function goBack() {
mcLoader.removeListener(this);
clearInterval(loadtTimerID);
gotoAndStop ("main");
}
var nt = 0;
while (nt < 3) {
this["track" + track]._visible = false;
this["front" + track]._visible = false;
this["front" + track]._x = 1000;
this["front" + track]._y = 1000;
nt++;
}
bshp = 0;
ushp = 0;
dshp = 0;
mcLoader.addListener(this);
var tloaded = 0;
mcLoader.loadClip((("http://rr.site88.net/shadow/t" + track) + "d.png?") + Math.random(), daysh);
if (best[("t" + track) + "1"] > 1) {
mcLoader.loadClip((((("http://rr.site88.net/shadow/t" + track) + "u") + best["c" + track]) + ".png?") + Math.random(), bestsh);
} else {
tloaded = tloaded | 4;
}
if (best[("t" + track) + "0"] > 1) {
mcLoader.loadClip((((("http://rr.site88.net/shadow/t" + track) + "u") + user.code) + ".png?") + Math.random(), usersh);
} else {
tloaded = tloaded | 8;
}
tloaded = tloaded | 2;
bm.draw(this["track" + track]);
tloaded = tloaded | 1;
this["front" + track]._x = 0;
this["front" + track]._y = 30;
this["front" + track]._visible = true;
var loadtTime = getTimer();
loadtTimerID = setInterval(loadTimer, 1000);
stop();
Frame 12
function setTrack() {
switch (track) {
case 1 :
maxTime = 20;
xi = 600;
yi = 56;
ri = 180;
pEnd = 4;
break;
case 2 :
maxTime = 40;
xi = 30;
yi = 400;
ri = 270;
pEnd = 12;
break;
case 3 :
maxTime = 50;
xi = 130;
yi = 55;
ri = 0;
pEnd = 39;
}
mtime_txt.text = maxTime + ".0";
if (pId < 7) {
eval ("ball" + pId).swapDepths(ball7);
}
}
function showCheck() {
checkp.text = (("Check:" + pPos) + "/") + pEnd;
}
function initLap() {
rastro.clear();
rastro.lineStyle(2, 4210752, 20);
pPos = 0;
pCheck = 16711935 /* 0xFF00FF */;
lapTime = getTimer();
oldt = lapTime;
showCheck();
shad._x = bsh.getPixel(0, 0);
shad._y = bsh.getPixel(1, 0);
shad._rotation = bsh.getPixel(2, 0);
sbshp = 10;
shadu._x = ush.getPixel(0, 0);
shadu._y = ush.getPixel(1, 0);
shadu._rotation = ush.getPixel(2, 0);
sushp = 10;
shadd._x = dsh.getPixel(0, 0);
shadd._y = dsh.getPixel(1, 0);
shadd._rotation = dsh.getPixel(2, 0);
sdshp = 10;
sh.setPixel(0, 0, Math.round(this["ball" + pId]._x));
sh.setPixel(1, 0, Math.round(this["ball" + pId]._y));
while (pr < 0) {
pr = pr + 360;
}
while (pr > 360) {
pr = pr - 360;
}
sh.setPixel(2, 0, Math.round(pr));
var _local2 = 3;
while (_local2 < 10) {
sh.setPixel(_local2, 0, 0);
_local2++;
}
shp = 10;
pxo = px;
pyo = py;
pro = pr;
shadt = ooldt;
check1._x = -1000;
check2._x = -1000;
}
function finishLap() {
}
function saveShadow() {
ush.draw(sh);
ushp = shp;
var _local3 = new Array();
var _local1 = 0;
while (_local1 < shp) {
var _local2 = sh.getPixel(_local1, 0).toString(16);
_local3.push(_local2);
_local1++;
}
var _local4 = new LoadVars();
_local4.cod = user.code;
_local4.tra = track;
_local4.siz = shp;
_local4.img = _local3.toString();
_local4.sendAndLoad("http://rr.site88.net/mmshaw.php", _local4, "POST");
}
function dayShadow() {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < shp) {
var _local2 = sh.getPixel(_local1, 0).toString(16);
_local3.push(_local2);
_local1++;
}
var _local4 = new LoadVars();
_local4.tra = track;
_local4.siz = shp;
_local4.img = _local3.toString();
_local4.sendAndLoad("http://rr.site88.net/mmshawd.php", _local4, "POST");
dsh.draw(sh);
dshp = shp;
}
function bestShadow() {
bsh.draw(sh);
bshp = shp;
}
function initPlayer() {
stopAllSounds();
pSpeed = 0;
px = xi;
py = yi;
pr = ri;
psx = 0;
psy = 0;
ptime_txt.text = "0.0";
showPlayer();
initLap();
}
function checkTrack() {
if (pPix == pCheck) {
pPos++;
pCheck = pCheck - 65536;
showCheck();
check2._x = check1._x;
check2._y = check1._y;
check1._x = pxco;
check1._y = pyco;
return(undefined);
}
if (pPix == 8355711) {
if (pPos == pEnd) {
ltime_txt.text = formatDecimals(pTime / 1000, 3);
if ((pTime < best[("t" + track) + "0"]) || (best[("t" + track) + "0"] == "")) {
saveShadow();
best[("t" + track) + "0"] = pTime;
}
if ((pTime < best[("t" + track) + "1"]) || (best[("t" + track) + "1"] == "")) {
bestShadow();
best[("t" + track) + "1"] = pTime;
}
if ((pTime < best[("u" + track) + "1"]) || (best[("u" + track) + "1"] == "")) {
dayShadow();
best[("u" + track) + "1"] = pTime;
}
showTimes();
savePlayerTime();
finishLap();
}
initLap();
}
}
function showPlayer() {
var _local2 = new Array();
this["ball" + pId]._x = px;
this["ball" + pId]._y = py;
this["ball" + pId]._rotation = pr;
while ((actt - shadt) >= 25) {
tmult = (actt - shadt) / 25;
dx = Math.round((px - pxo) / tmult);
dy = Math.round((py - pyo) / tmult);
dr = Math.round((pr - pro) / tmult);
pxo = pxo + dx;
pyo = pyo + dy;
pro = pro + dr;
if (dx < 0) {
dx = dx + 16;
}
if (dy < 0) {
dy = dy + 16;
}
if (dr < 0) {
dr = dr + 16;
}
sh.setPixel(shp, 0, ((dr << 8) + (dy << 4)) + dx);
shp++;
shadt = shadt + 25;
}
}
function kbdTimer() {
ooldt = oldt;
actt = getTimer();
tmult = (actt - oldt) / 25;
if (tmult >= 4) {
lapTime = lapTime + (actt - oldt);
oldt = actt;
return(undefined);
}
oldt = actt;
pTime = actt - lapTime;
pt = Math.ceil(pTime / 100);
ptime_txt.text = (Math.floor(pt / 10) + ".") + (pt % 10);
if (pTime > (maxTime * 1000)) {
initPlayer();
}
if (sbshp < bshp) {
do {
shadp = bsh.getPixel(sbshp, 0);
dx = shadp & 15;
if (dx >= 8) {
dx = dx - 16;
}
dy = (shadp >> 4) & 15;
if (dy >= 8) {
dy = dy - 16;
}
dr = shadp >> 8;
if (dr >= 8) {
dr = dr - 16;
}
shad._x = shad._x + dx;
shad._y = shad._y + dy;
shad._rotation = shad._rotation + dr;
sbshp++;
} while ((10 + (pTime / 25)) >= sbshp);
} else {
shad._x = -2000;
shad._y = -2000;
}
if (sushp < ushp) {
do {
shadp = ush.getPixel(sushp, 0);
dx = shadp & 15;
if (dx >= 8) {
dx = dx - 16;
}
dy = (shadp >> 4) & 15;
if (dy >= 8) {
dy = dy - 16;
}
dr = shadp >> 8;
if (dr >= 8) {
dr = dr - 16;
}
shadu._x = shadu._x + dx;
shadu._y = shadu._y + dy;
shadu._rotation = shadu._rotation + dr;
sushp++;
} while ((10 + (pTime / 25)) >= sushp);
} else {
shadu._x = -2000;
shadu._y = -2000;
}
if (sdshp < dshp) {
do {
shadp = dsh.getPixel(sdshp, 0);
dx = shadp & 15;
if (dx >= 8) {
dx = dx - 16;
}
dy = (shadp >> 4) & 15;
if (dy >= 8) {
dy = dy - 16;
}
dr = shadp >> 8;
if (dr >= 8) {
dr = dr - 16;
}
shadd._x = shadd._x + dx;
shadd._y = shadd._y + dy;
shadd._rotation = shadd._rotation + dr;
sdshp++;
} while ((10 + (pTime / 25)) >= sdshp);
} else {
shadd._x = -2000;
shadd._y = -2000;
}
if (acSt == 3) {
if ((getTimer() - deCha.position) > (acLen / 2)) {
a5Cha.start(0, 1000);
}
deCha.stop();
acSt = 2;
}
if ((kUp == 1) && (acSt < 1)) {
if (acSt == -1) {
acPos = acLen - deCha.position;
}
acCha.start(acPos / 1000, 1);
acTim = getTimer() - acPos;
deCha.stop();
a0Cha.stop();
a5Cha.stop();
acSt = 1;
} else if ((kUp == 1) && (acSt == 1)) {
if ((getTimer() - acTim) > ((acLen * pFrict) - 150)) {
if (pFrict == 1) {
a9Cha.start(0, 1000);
acPos = 0;
} else {
a5Cha.start(0, 1000);
acCha.stop();
acPos = acLen / 2;
}
acSt = 2;
}
}
if ((kUp == 0) && (acSt > 0)) {
if (acSt == 1) {
acPos = acLen - acCha.position;
}
deCha.start(acPos / 1000, 1);
deTim = getTimer() - acPos;
acCha.stop();
a5Cha.stop();
a9Cha.stop();
acSt = -1;
}
if ((kUp == 0) && (acSt == -1)) {
if ((getTimer() - deTim) > (acLen - 20)) {
a0Cha.start(0, 1000);
acPos = 0;
acSt = 0;
}
}
var _local2 = pr * CONV;
var _local1 = Math.sqrt((psx * psx) + (psy * psy));
if ((kUp == 1) && (_local1 < MAXSPEED)) {
accel = (ACCEL / 2) * tmult;
if ((_local1 + accel) > MAXSPEED) {
accel = MAXSPEED - _local1;
}
psx = psx + (Math.cos(_local2) * accel);
psy = psy + (Math.sin(_local2) * accel);
_local1 = Math.sqrt((psx * psx) + (psy * psy));
}
if ((kUp == 0) && (_local1 > 0)) {
accel = (ACCEL / 2) * tmult;
psx = psx - (Math.cos(_local2) * accel);
psy = psy - (Math.sin(_local2) * accel);
_local1 = Math.sqrt((psx * psx) + (psy * psy));
if (_local1 < 0.2) {
_local1 = 0;
psx = 0;
psy = 0;
}
}
if (kLeft == 1) {
pr = pr - (ANGM * tmult);
}
if (kRight == 1) {
pr = pr + (ANGM * tmult);
}
_local2 = pr * CONV;
p2xo = p2x;
p2yo = p2y;
p3xo = p3x;
p3yo = p3y;
p1x = px + (12 * Math.cos(pr * CONV));
p1y = (py + (12 * Math.sin(pr * CONV))) - 30;
p2x = px + (7 * Math.cos((pr - 135) * CONV));
p2y = (py + (7 * Math.sin((pr - 135) * CONV))) - 30;
p3x = px + (7 * Math.cos((pr + 135) * CONV));
p3y = (py + (7 * Math.sin((pr + 135) * CONV))) - 30;
pPix = bm.getPixel(p1x, p1y);
checkTrack();
pxco = pxc;
pyco = pyc;
pxc = px;
pyc = py;
pFrict = 1;
if (pPix == 24576) {
pFrict = pFrict * 0.9;
}
if (bm.getPixel(p2x, p2y) == 24576) {
pFrict = pFrict * 0.9;
}
if (bm.getPixel(p3x, p3y) == 24576) {
pFrict = pFrict * 0.9;
}
torquex = (Math.cos(_local2) * _local1) - psx;
torquey = (Math.sin(_local2) * _local1) - psy;
var _local3 = Math.sqrt((torquex * torquex) + (torquey * torquey));
var _local4 = (0.2 * tmult) * pFrict;
if ((_local3 >= (1.5 * tmult)) && (sk != 1)) {
skCha.start(0, 1000);
sk = 1;
} else if ((_local3 < (1 * tmult)) && (sk == 1)) {
skCha.stop();
sk = 0;
}
if (sk == 1) {
rastro.moveTo(p2xo, p2yo);
rastro.lineTo(p2x, p2y);
rastro.moveTo(p3xo, p3yo);
rastro.lineTo(p3x, p3y);
}
if (_local3 > _local4) {
torquex = (_local4 * torquex) / _local3;
torquey = (_local4 * torquey) / _local3;
}
psx = psx + torquex;
psy = psy + torquey;
px = px + (psx * tmult);
py = py + (psy * tmult);
showPlayer();
}
function savePlayerTime() {
sendpt = new LoadVars();
sendpt.cod = user.code;
sendpt.tra = track;
sendpt.tim = pTime;
sendpt.sendAndLoad("http://rr.site88.net/mmresw.php", sendpt, "POST");
}
function showTimes() {
rt = best[("t" + track) + "1"];
if (rt > 0) {
rtime_txt.text = formatDecimals(rt / 1000, 3);
}
rt = best[("u" + track) + "1"];
if (rt > 0) {
dtime_txt.text = formatDecimals(rt / 1000, 3);
}
rt = best[("t" + track) + "0"];
if (rt > 0) {
ytime_txt.text = formatDecimals(rt / 1000, 3);
}
}
rastro._x = 0;
rastro.lineStyle(2, 4210752, 20);
var xi = 0;
var yi = 0;
var pTime = 0;
var pPos = 0;
var pPix = 0;
var pEnd = 0;
var pCheck = 16711935;
var pFrict = 1;
var lapTime = 0;
var maxTime = 0;
var px = 0;
var py = 0;
var pr = 0;
var psx = 0;
var psy = 0;
var pxo = 0;
var pyo = 0;
var pxc = 0;
var pyc = 0;
var pxco = 0;
var pyco = 0;
var pro = 0;
var pSpeed = 0;
var MAXSPEED = 6;
var ACCEL = 0.1;
var ANGM = 3.2;
var oldt = 0;
var actt = 0;
var ooldt = 0;
var tmult = 1;
var kbdGame = new Object();
Key.addListener(kbdGame);
kbdGame.onKeyDown = function () {
var _local2 = Key.getCode();
var _local1 = Key.getAscii();
if ((_local1 >= 65) && (_local1 <= 90)) {
_local1 = _local1 | 32;
}
if ((((_local2 == 37) || (_local1 == 52)) || (_local1 == 115)) || (_local1 == 106)) {
kLeft = 1;
}
if ((((_local2 == 39) || (_local1 == 54)) || (_local1 == 102)) || (_local1 == 108)) {
kRight = 1;
}
if (((((_local2 == 38) || (_local1 == 56)) || (_local1 == 101)) || (_local1 == 105)) || (_local1 == 32)) {
kUp = 1;
}
if (((((_local2 == 40) || (_local1 == 50)) || (_local1 == 100)) || (_local1 == 107)) || (_local1 == 53)) {
kDown = 1;
}
};
kbdGame.onKeyUp = function () {
var _local2 = Key.getCode();
var _local1 = Key.getAscii();
if ((_local1 >= 65) && (_local1 <= 90)) {
_local1 = _local1 | 32;
}
if ((((_local2 == 37) || (_local1 == 52)) || (_local1 == 115)) || (_local1 == 106)) {
kLeft = 0;
}
if ((((_local2 == 39) || (_local1 == 54)) || (_local1 == 102)) || (_local1 == 108)) {
kRight = 0;
}
if (((((_local2 == 38) || (_local1 == 56)) || (_local1 == 101)) || (_local1 == 105)) || (_local1 == 32)) {
kUp = 0;
}
if (((((_local2 == 40) || (_local1 == 50)) || (_local1 == 100)) || (_local1 == 107)) || (_local1 == 53)) {
kDown = 0;
}
if (_local1 == 49) {
initPlayer();
}
};
clearInterval(kbdTimerID);
kbdTimerID = setInterval(kbdTimer, 25);
out_bt.onPress = function () {
stopAllSounds();
gotoAndStop ("main");
};
start_bt.onPress = function () {
initPlayer();
};
setTrack();
showTimes();
initPlayer();
stop();
Frame 22
function createTextBests() {
var _local3 = new TextFormat();
_local3.bold = true;
_local3.font = "Arial";
_local3.color = 65280;
_local3.align = "left";
_local3.size = 11;
var _local2 = new TextFormat();
_local2.bold = true;
_local2.font = "Arial";
_local2.color = 65280;
_local2.align = "right";
_local2.size = 12;
n = 1;
while (n <= 100) {
tfstr = ("tn" + n) + "_txt";
createTextField(tfstr, getNextHighestDepth(), 20 + (Math.floor((n - 1) / 25) * 155), 45 + (Math.floor((n - 1) % 25) * 18), 90, 18);
this[tfstr].setNewTextFormat(_local3);
this[tfstr].selectable = false;
this[tfstr].embedFonts = true;
this[tfstr].antiAliasType = "advanced";
tfstr = ("tt" + n) + "_txt";
createTextField(tfstr, getNextHighestDepth(), 111 + (Math.floor((n - 1) / 25) * 155), 45 + (Math.floor((n - 1) % 25) * 18), 45, 18);
this[tfstr].setNewTextFormat(_local2);
this[tfstr].selectable = false;
this[tfstr].embedFonts = true;
this[tfstr].antiAliasType = "advanced";
n++;
}
}
function showTopTimes() {
if (showtopenabled != 1) {
return(undefined);
}
n = 1;
while (n <= 100) {
pt = top["t" + n] / 1000;
if (pt <= 0) {
break;
}
this[("tn" + n) + "_txt"].text = (n + ") ") + top["n" + n];
this[("tt" + n) + "_txt"].text = formatDecimals(pt, 3);
n++;
}
}
function clearTextBests() {
n = 1;
while (n <= 100) {
this[("tn" + n) + "_txt"].text = "";
this[("tt" + n) + "_txt"].text = "";
n++;
}
}
function getTopTimes() {
top.tra = t;
top.sendAndLoad("http://rr.site88.net/mmtopr.php", top, "POST");
}
var t = track;
toptrack.text = t;
var showtopenabled = 1;
top.onLoad = function (success) {
if (!success) {
return(undefined);
}
showTopTimes();
};
out_bt.onPress = function () {
showtopenabled = 0;
clearTextBests();
gotoAndStop ("main");
};
if (textbests == undefined) {
createTextBests();
textbests = 1;
}
getTopTimes();
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 2
stop();