Frame 1
function ?59() {
function ?9(?1, ?2) {
return((?1 << ?2) | (?1 >>> (32 - ?2)));
}
function ?16(?1, ?4, ?5, ?6, ?7, ?3, ?8) {
return(?9(((?1 + ((?4 & ?5) | ((~?4) & ?6))) + ?7) + ?8, ?3) + ?4);
}
function ?17(?1, ?4, ?5, ?6, ?7, ?3, ?8) {
return(?9(((?1 + ((?4 & ?6) | (?5 & (~?6)))) + ?7) + ?8, ?3) + ?4);
}
function ?18(?1, ?4, ?5, ?6, ?7, ?3, ?8) {
return(?9(((?1 + ((?4 ^ ?5) ^ ?6)) + ?7) + ?8, ?3) + ?4);
}
function ?19(?1, ?4, ?5, ?6, ?7, ?3, ?8) {
return(?9(((?1 + (?5 ^ (?4 | (~?6)))) + ?7) + ?8, ?3) + ?4);
}
function ?25(?13, ?14) {
var ?1;
var ?4;
var ?5;
var ?6;
var ?7 = ?10;
Set("?1", ?11[0]);
Set("?4", ?11[1]);
Set("?5", ?11[2]);
Set("?6", ?11[3]);
Set("?12", 0);
while (?12 < 16) {
?7[?12] = ?13[(?12 * 4) + ?14] & 255;
Set("?15", 1);
while (?15 < 4) {
?7[?12] = ?7[?12] | ((?13[((?12 * 4) + ?15) + ?14] & 255) << (?15 * 8));
?15++;
}
?12++;
}
Set("?1", ?16(?1, ?4, ?5, ?6, ?7[0], 7, 3614090360));
Set("?6", ?16(?6, ?1, ?4, ?5, ?7[1], 12, 3905402710));
Set("?5", ?16(?5, ?6, ?1, ?4, ?7[2], 17, 606105819));
Set("?4", ?16(?4, ?5, ?6, ?1, ?7[3], 22, 3250441966));
Set("?1", ?16(?1, ?4, ?5, ?6, ?7[4], 7, 4118548399));
Set("?6", ?16(?6, ?1, ?4, ?5, ?7[5], 12, 1200080426));
Set("?5", ?16(?5, ?6, ?1, ?4, ?7[6], 17, 2821735955));
Set("?4", ?16(?4, ?5, ?6, ?1, ?7[7], 22, 4249261313));
Set("?1", ?16(?1, ?4, ?5, ?6, ?7[8], 7, 1770035416));
Set("?6", ?16(?6, ?1, ?4, ?5, ?7[9], 12, 2336552879));
Set("?5", ?16(?5, ?6, ?1, ?4, ?7[10], 17, 4294925233));
Set("?4", ?16(?4, ?5, ?6, ?1, ?7[11], 22, 2304563134));
Set("?1", ?16(?1, ?4, ?5, ?6, ?7[12], 7, 1804603682));
Set("?6", ?16(?6, ?1, ?4, ?5, ?7[13], 12, 4254626195));
Set("?5", ?16(?5, ?6, ?1, ?4, ?7[14], 17, 2792965006));
Set("?4", ?16(?4, ?5, ?6, ?1, ?7[15], 22, 1236535329));
Set("?1", ?17(?1, ?4, ?5, ?6, ?7[1], 5, 4129170786));
Set("?6", ?17(?6, ?1, ?4, ?5, ?7[6], 9, 3225465664));
Set("?5", ?17(?5, ?6, ?1, ?4, ?7[11], 14, 643717713));
Set("?4", ?17(?4, ?5, ?6, ?1, ?7[0], 20, 3921069994));
Set("?1", ?17(?1, ?4, ?5, ?6, ?7[5], 5, 3593408605));
Set("?6", ?17(?6, ?1, ?4, ?5, ?7[10], 9, 38016083));
Set("?5", ?17(?5, ?6, ?1, ?4, ?7[15], 14, 3634488961));
Set("?4", ?17(?4, ?5, ?6, ?1, ?7[4], 20, 3889429448));
Set("?1", ?17(?1, ?4, ?5, ?6, ?7[9], 5, 568446438));
Set("?6", ?17(?6, ?1, ?4, ?5, ?7[14], 9, 3275163606));
Set("?5", ?17(?5, ?6, ?1, ?4, ?7[3], 14, 4107603335));
Set("?4", ?17(?4, ?5, ?6, ?1, ?7[8], 20, 1163531501));
Set("?1", ?17(?1, ?4, ?5, ?6, ?7[13], 5, 2850285829));
Set("?6", ?17(?6, ?1, ?4, ?5, ?7[2], 9, 4243563512));
Set("?5", ?17(?5, ?6, ?1, ?4, ?7[7], 14, 1735328473));
Set("?4", ?17(?4, ?5, ?6, ?1, ?7[12], 20, 2368359562));
Set("?1", ?18(?1, ?4, ?5, ?6, ?7[5], 4, 4294588738));
Set("?6", ?18(?6, ?1, ?4, ?5, ?7[8], 11, 2272392833));
Set("?5", ?18(?5, ?6, ?1, ?4, ?7[11], 16, 1839030562));
Set("?4", ?18(?4, ?5, ?6, ?1, ?7[14], 23, 4259657740));
Set("?1", ?18(?1, ?4, ?5, ?6, ?7[1], 4, 2763975236));
Set("?6", ?18(?6, ?1, ?4, ?5, ?7[4], 11, 1272893353));
Set("?5", ?18(?5, ?6, ?1, ?4, ?7[7], 16, 4139469664));
Set("?4", ?18(?4, ?5, ?6, ?1, ?7[10], 23, 3200236656));
Set("?1", ?18(?1, ?4, ?5, ?6, ?7[13], 4, 681279174));
Set("?6", ?18(?6, ?1, ?4, ?5, ?7[0], 11, 3936430074));
Set("?5", ?18(?5, ?6, ?1, ?4, ?7[3], 16, 3572445317));
Set("?4", ?18(?4, ?5, ?6, ?1, ?7[6], 23, 76029189));
Set("?1", ?18(?1, ?4, ?5, ?6, ?7[9], 4, 3654602809));
Set("?6", ?18(?6, ?1, ?4, ?5, ?7[12], 11, 3873151461));
Set("?5", ?18(?5, ?6, ?1, ?4, ?7[15], 16, 530742520));
Set("?4", ?18(?4, ?5, ?6, ?1, ?7[2], 23, 3299628645));
Set("?1", ?19(?1, ?4, ?5, ?6, ?7[0], 6, 4096336452));
Set("?6", ?19(?6, ?1, ?4, ?5, ?7[7], 10, 1126891415));
Set("?5", ?19(?5, ?6, ?1, ?4, ?7[14], 15, 2878612391));
Set("?4", ?19(?4, ?5, ?6, ?1, ?7[5], 21, 4237533241));
Set("?1", ?19(?1, ?4, ?5, ?6, ?7[12], 6, 1700485571));
Set("?6", ?19(?6, ?1, ?4, ?5, ?7[3], 10, 2399980690));
Set("?5", ?19(?5, ?6, ?1, ?4, ?7[10], 15, 4293915773));
Set("?4", ?19(?4, ?5, ?6, ?1, ?7[1], 21, 2240044497));
Set("?1", ?19(?1, ?4, ?5, ?6, ?7[8], 6, 1873313359));
Set("?6", ?19(?6, ?1, ?4, ?5, ?7[15], 10, 4264355552));
Set("?5", ?19(?5, ?6, ?1, ?4, ?7[6], 15, 2734768916));
Set("?4", ?19(?4, ?5, ?6, ?1, ?7[13], 21, 1309151649));
Set("?1", ?19(?1, ?4, ?5, ?6, ?7[4], 6, 4149444226));
Set("?6", ?19(?6, ?1, ?4, ?5, ?7[11], 10, 3174756917));
Set("?5", ?19(?5, ?6, ?1, ?4, ?7[2], 15, 718787259));
Set("?4", ?19(?4, ?5, ?6, ?1, ?7[9], 21, 3951481745));
?11[0] = ?11[0] + ?1;
?11[1] = ?11[1] + ?4;
?11[2] = ?11[2] + ?5;
?11[3] = ?11[3] + ?6;
}
function ?32() {
Set("?20", (?21 = 0));
?11[0] = 1732584193 /* 0x67452301 */;
?11[1] = 4023233417;
?11[2] = 2562383102;
?11[3] = 271733878 /* 0x10325476 */;
Set("?12", 0);
while (?12 < ?22.length) {
?22[?12] = 0;
?12++;
}
}
function ?28(?4) {
var ?23 = ((?20 >>> 3) & 63);
if (4294967288 <= ?20) {
?21++;
Set("?20", ?20 - 4294967296);
}
Set("?20", ?20 + 8);
?24[?23] = ?4 & 255;
if (?23 >= 63) {
?25(?24, 0);
}
}
function ?34() {
var ?26 = new Array(8);
var ?12;
var ?15;
Set("?12", 0);
while (?12 < 4) {
?26[?12] = (?20 >>> (?12 * 8)) & 255;
?26[?12 + 4] = (?21 >>> (?12 * 8)) & 255;
?12++;
}
var ?23 = ((?20 >>> 3) & 63);
var ?27 = ((?23 < 56) ? (56 - ?23) : (120 - ?23));
?28(128);
Set("?12", 1);
while (?12 < ?27) {
?28(0);
?12++;
}
Set("?12", 0);
while (?12 < 8) {
?28(?26[?12]);
?12++;
}
Set("?12", 0);
while (?12 < 4) {
Set("?15", 0);
while (?15 < 4) {
?22[(?12 * 4) + ?15] = (?11[?12] >>> (?15 * 8)) & 255;
?15++;
}
?12++;
}
}
function ?35(?30) {
var ?29 = "0123456789abcdef";
return(?29.charAt(?30 >> 4) + ?29.charAt(?30 & 15));
}
function ?55(?33) {
var ?12;
var ?31;
?32();
Set("?12", 0);
while (?12 < ?33.length) {
?28(?33.charCodeAt(?12));
?12++;
}
?34();
Set("?12", 0);
while (?12 < 16) {
Set("?31", ?31 + ?35(?22[?12]));
?12++;
}
return(?31);
}
function ?49(?36) {
Set("?36", ?36 + "paddingsomebytes");
var ?37 = 0;
var ?12 = 0;
while (?12 < 4) {
Set("?37", ?37 + (?36.charCodeAt(?12) << (?12 * 8)));
?12++;
}
Set("?38", ?37);
(?37 = 0);
(?12 = 0);
while (?12 < 4) {
Set("?37", ?37 + (?36.charCodeAt(?12 + 4) << (?12 * 8)));
?12++;
}
Set("?39", ?37);
(?37 = 0);
(?12 = 0);
while (?12 < 4) {
Set("?37", ?37 + (?36.charCodeAt(?12 + 8) << (?12 * 8)));
?12++;
}
Set("?40", ?37);
(?37 = 0);
(?12 = 0);
while (?12 < 4) {
Set("?37", ?37 + (?36.charCodeAt(?12 + 12) << (?12 * 8)));
?12++;
}
Set("?41", ?37);
}
function ?53(?3) {
var ?42 = 0;
var ?29 = "0123456789abcdef";
var ?12 = 0;
while (?12 < 8) {
Set("?42", ?42 + (?29.indexOf(?3.charAt(?12), 0) << ((7 - ?12) * 4)));
?12++;
}
return(?42);
}
function ?54() {
Set("?43", ?44);
Set("?45", ?46);
var ?47 = 3337565984;
var ?2 = 32;
while (?2--) {
Set("?45", ?45 - ((((?43 << 4) + ?40) ^ (?43 + ?47)) ^ ((?43 >>> 5) + ?41)));
Set("?43", ?43 - ((((?45 << 4) + ?38) ^ (?45 + ?47)) ^ ((?45 >>> 5) + ?39)));
Set("?47", ?47 - 2654435769);
}
}
function ?58(?48, ?51) {
?49(?48);
var ?50 = ?51.length;
var ?42 = "";
var ?52 = (?50 & -16);
var ?12;
var ?15;
Set("?12", 0);
while (?12 < ?52) {
Set("?44", ?53(?51.substr(?12, 8)));
Set("?46", ?53(?51.substr(?12 + 8, 8)));
?54();
Set("?15", 24);
while (?15 >= 0) {
Set("?42", ?42 + String.fromCharCode((?43 >>> ?15) & 255));
Set("?15", ?15 - 8);
}
Set("?15", 24);
while (?15 >= 0) {
Set("?42", ?42 + String.fromCharCode((?45 >>> ?15) & 255));
Set("?15", ?15 - 8);
}
Set("?12", ?12 + 16);
}
return(?42);
}
var ?20;
var ?21;
var ?11 = new Array(4);
var ?24 = new Array(64);
var ?10 = new Array(16);
var ?22 = new Array(16);
var ?43 = ((?45 = (?44 = (?46 = (?38 = (?39 = (?40 = (?41 = 0))))))));
this.verifytext = function (?6, ?33) {
return(?55(?33) == ?6);
};
this.decrypttext = function (?56, ?57) {
return(?58(?57, ?56));
};
}
tevas = new ?59();
function callback() {
i++;
if ((ui != undefined) && (ui != "")) {
_root.loadInfo = true;
var users = new Array();
users = user1.split(",");
maxscore = users[0];
clearInterval(interval);
_root.user_id = ui;
_root.user_se = us;
}
if (i >= 30) {
_root.loadInfo = false;
clearInterval(interval);
_root.user_id = "err";
message._visible = true;
message.gotoAndStop(5);
}
}
System.security.allowDomain("game.kids.empas.com");
System.useCodepage = true;
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
stop();
_global.game_id = "3097";
_global.user_id = undefined;
_global.r_users = new Array();
_global.r_scoes = new Array();
_global.r_elaps = new Array();
message._visible = false;
loadInfo = false;
sn = game_id;
loadurls = tevas.decrypttext("9459b3d624362ffcfbef5f4402dfec765463a4e112fff8e51d611038f5c4d5a4c910942773dae841", "dalasjoe");
loadVariablesNum (loadurls, 0, "POST");
var i = 0;
var interval = setInterval(callback, 200);
Instance of Symbol 131 MovieClip in Frame 1
onClipEvent (load) {
flag = true;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
rate = (loaded / getTimer()) * 1000;
_parent.txtPercent = Math.round((loaded / total) * 100);
this._xscale = (loaded / total) * 100;
} else {
_parent.txtPercent = "100";
this._xscale = 100;
if (_root.loadinfo && (_root.intro_load)) {
_root.nextFrame();
}
}
}
Frame 2
function checkHit(b1, b2) {
var dx = (b1._x - b2._x);
var dy = (b1._y - b2._y);
var dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 25) {
_root.s_crash.start();
var a = Math.atan2(dy, dx);
var midx = ((b1._x + b2._x) / 2);
var midy = ((b1._y + b2._y) / 2);
var cosa = Math.cos(a);
var sina = Math.sin(a);
var offX = (cosa * 20);
var offY = (sina * 20);
b1._x = midx + offX;
b1._y = midy + offY;
speed = sina * 2;
rotation = rotation - (a * 10);
cosRot = Math.cos(rotation * (Math.PI/180));
sinRot = Math.sin(rotation * (Math.PI/180));
sM._x = (240 + midx) + random(20);
sM._y = (180 + midy) + random(40);
b2._x = midx - offX;
b2._y = midy - offY;
}
}
function checkZone() {
if (_root.map.car.hitTest(_root.map.z0)) {
_root.map.car.c++;
if (_root.map.car.c >= totallap) {
_root.map.car.removeMovieClip();
}
}
if (_root.map.car.hitTest(_root.map.z0)) {
if (z0_flag) {
if (((((z1f && (z2f)) && (z3f)) && (z4f)) && (z5f)) && (prevz == "z5")) {
z1f = false;
z2f = false;
z3f = false;
z4f = false;
z5f = false;
lap++;
if (lap >= totallap) {
_root.score = 30000 - (((parseInt(_root.timecheck.minutes) * 10000) + (parseInt(_root.timecheck.seconds) * 100)) + parseInt(_root.timecheck.milli));
_root.sc = score;
if (_root.score < 0) {
_root.score = 0;
}
playing = false;
_root.id = _root.uid;
finish.gotoAndPlay(2);
} else {
laps = lap;
}
}
prevz = "z0";
z0_flag = false;
tr = prevz;
}
} else {
z0_flag = true;
}
if (_root.map.car.hitTest(_root.map.z1)) {
if (z1_flag && (prevz == "z0")) {
prevz = "z1";
z1f = true;
z1_flag = false;
tr = prevz;
} else {
z1_flag = true;
}
} else {
z1_flag = true;
}
if (_root.map.car.hitTest(_root.map.z2)) {
if (z2_flag && (prevz == "z1")) {
prevz = "z2";
z2f = true;
z2_flag = false;
tr = prevz;
} else {
z2_flag = true;
}
} else {
z2_flag = true;
}
if (_root.map.car.hitTest(_root.map.z3)) {
if (z3_flag && (prevz == "z2")) {
prevz = "z3";
z3f = true;
z3_flag = false;
tr = prevz;
} else {
z3_flag = true;
}
} else {
z3_flag = true;
}
if (_root.map.car.hitTest(_root.map.z4)) {
if (z4_flag && (prevz == "z3")) {
prevz = "z4";
z4f = true;
z4_flag = false;
tr = prevz;
} else {
z4_flag = true;
}
} else {
z4_flag = true;
}
if (_root.map.car.hitTest(_root.map.z5)) {
if (z5_flag && (prevz == "z4")) {
prevz = "z5";
z5f = true;
z5_flag = false;
tr = prevz;
} else {
z5_flag = true;
}
} else {
z5_flag = true;
}
}
var zone_arr = new Array();
var z0_flag = true;
var z1_flag = true;
var z2_flag = true;
var z3_flag = true;
var z4_flag = true;
var z5_flag = true;
var prevz = undefined;
var totallap = 4;
laps = 1;
lap = 1;
stop();
s_run = new Sound();
s_run.attachSound("run.mp3");
s_crash = new Sound();
s_crash.attachSound("crash.wav");
Frame 3
function pathComp(p1, p2) {
return(p1.n - p2.n);
}
function createStrips() {
for (var clip in sM) {
if ((((clip.substring(0, 1) != "s") && (clip != "stripGuides")) && (clip != "fogClip")) && (clip != "nightLight")) {
sM[clip].removeMovieClip();
}
}
if (showStripGuides) {
sM.createEmptyMovieClip("stripGuides", 1000);
with (sM.stripGuides) {
lineStyle(0, 16711680, 100);
}
} else {
sM.stripGuides.removeMovieClip();
}
var averageH = ((topH + bottomH) / 2);
var maskY = 0;
var strip;
var zoneFrame = (1 + Math.max(Math.min(Math.round((-yPos) / 640), xZoneMax), 0));
stripScale = new Array();
var a = 1;
while (a <= totalHeight) {
if (showStripGuides) {
with (sM.stripGuides) {
moveTo(-255, maskY);
lineTo(255, maskY);
endFill();
}
}
if ((maskY < (totalHeight * 0.06)) && (mipMapping)) {
strip = sM.strip_q.duplicateMovieClip(a, a * 2);
} else {
strip = sM.strip.duplicateMovieClip(a, a * 2);
}
strip._y = 220;
mask = sM.attachMovie("mask", "m" + a, (a * 2) + 1);
var scale = Math.pow(a / (totalHeight / averageH), 1.5);
var height = Math.round(topH + ((bottomH - topH) * scale));
mask._height = height + 2;
mask._width = 510;
maskY = maskY + height;
mask._y = maskY;
strip.setMask(mask);
strip._rotation = rotation;
strip.m._y = xPos;
strip.m._x = yPos;
stripScale[a] = (maskY / totalHeight) * totalHeight;
strip._xscale = (strip._yscale = stripScale[a] * groundScale);
if (((maskY + (height * 2)) > totalHeight) && ((a % 2) == 0)) {
break;
}
a++;
}
map.car._y = (xPos * -1) - 40;
map.car._x = (yPos * -1) + 40;
map.car._rotation = rotation * -1;
nOfS = a;
trees = sM.createEmptyMovieClip("trees", 10000);
var i = 0;
while (i < treeCount) {
map["t" + i].height = -pathSteps[i];
if (i == 0) {
trees.attachMovie("tree5", "t" + i, i);
} else if (i == 3) {
trees.attachMovie("tree2", "t" + i, i);
} else if (i == 7) {
trees.attachMovie("tree4", "t" + i, i);
} else if (i == 10) {
trees.attachMovie("tree3", "t" + i, i);
} else {
trees.attachMovie("tree", "t" + i, i);
}
tree(i);
i++;
}
trees.attachMovie("elvis", "opp", a++);
trees.attachMovie("pete", "player", 19700);
trees.attachMovie("momo2", "opp2", a++);
trees.player._y = 45;
}
function moveOpponent() {
var x;
var y;
var r;
var a;
var o = map.opp;
var pp = path[pathPos];
var p = {x:0, y:0};
o.localToGlobal(p);
pp.m.globalToLocal(p);
if (p.y < 2) {
pp = newTarget();
}
if (int(o._rotation / 4) != int(pp.r / 4)) {
o._rotation = o._rotation + pathStep;
}
var p = {x:0, y:-5};
o.localToGlobal(p);
var c = {x:p.x, y:p.y};
map.globalToLocal(p);
o._x = p.x;
o._y = p.y;
var v = 12;
var y = -80;
var o = trees.opp;
map.car.globalToLocal(c);
if (c.y > 0) {
o._yscale = 1;
o._xscale = 1;
o._y = -500;
o._x = -500;
return(undefined);
}
var d = int(20000 - (Math.sqrt((c.x * c.x) + (c.y * c.y)) * 10));
o.swapDepths(d);
v = Math.abs(v);
d = v / (v + c.y);
o._x = ((c.x * -1) * d) * xscale;
o._y = (y * d) * yscale;
var top = (((y + o.hgt) * d) * yscale);
o._height = o._y - top;
o._xscale = o._yscale;
var b = o.getBounds(_root);
if ((b.xMin > 480) || (b.xMax < 0)) {
o._yscale = 10;
o._xscale = 10;
o._y = -500;
o._x = -500;
} else {
o.rotate(map.car, map.opp);
}
}
function moveOpponent2() {
var x;
var y;
var r;
var a;
var o = map.opp2;
var pp = path2[pathPos2];
var p = {x:0, y:0};
o.localToGlobal(p);
pp.m.globalToLocal(p);
if (p.y < 2) {
pp = newTarget2();
}
if (int(o._rotation / 4) != int(pp.r / 4)) {
o._rotation = o._rotation + pathStep2;
}
var p = {x:0, y:-7};
o.localToGlobal(p);
var c = {x:p.x, y:p.y};
map.globalToLocal(p);
o._x = p.x;
o._y = p.y;
var v = 12;
var y = -80;
var o = trees.opp2;
map.car.globalToLocal(c);
if (c.y > 0) {
o._yscale = 1;
o._xscale = 1;
o._y = -500;
o._x = -500;
return(undefined);
}
var d = int(20000 - (Math.sqrt((c.x * c.x) + (c.y * c.y)) * 10));
o.swapDepths(d);
v = Math.abs(v);
d = v / (v + c.y);
o._x = ((c.x * -1) * d) * xscale;
o._y = (y * d) * yscale;
var top = (((y + o.hgt) * d) * yscale);
o._height = o._y - top;
o._xscale = o._yscale;
var b = o.getBounds(_root);
if ((b.xMin > 480) || (b.xMax < 0)) {
o._yscale = 10;
o._xscale = 10;
o._y = -500;
o._x = -500;
} else {
o.rotate(map.car, map.opp);
}
}
function main() {
if (Math.abs(speed) > 1) {
if (srun_flag) {
_root.s_run.start(0, 100000);
srun_flag = false;
}
} else {
_root.s_run.stop("run.mp3");
srun_flag = true;
}
checkHit(map.car, map.opp);
checkHit(map.car, map.opp2);
checkZone();
if (!playing) {
if (speed > 0.2) {
speed = speed - 0.25;
trees.player._yscale = trees.player._yscale - 1.5;
trees.player._xscale = trees.player._xscale - 1.5;
} else {
playing = false;
timecheck.pause();
speed = 0.2;
rotation = rotation - 1;
trees.player._visible = false;
}
}
if (Key.isDown(37) && (_root.playing)) {
dir = dir - 1;
rotation = rotation + 3;
cosRot = Math.cos(rotation * 0.017453) / 2;
sinRot = Math.sin(rotation * 0.017453) / 2;
if (lean < 3) {
lean++;
}
} else if (Key.isDown(39) && (_root.playing)) {
dir = 1;
rotation = rotation - 3;
cosRot = Math.cos(rotation * 0.017453) / 2;
sinRot = Math.sin(rotation * 0.017453) / 2;
sM.sky._x = (3 * rotation) % 512;
if (lean > -3) {
lean--;
}
} else {
lean = lean * 0.8;
}
if ((Key.isDown(38) && (speed <= 20)) && (_root.playing)) {
speed = speed + 1;
} else if (Key.isDown(40)) {
speed = speed - 0.5;
}
if (sky) {
if (parallaxSky) {
skyOffset = skyOffset - cosRot;
sM.s1._x = ((3 * rotation) + (skyOffset * 3)) % 512;
sM.s2._x = ((3 * rotation) + (skyOffset * 2)) % 512;
sM.s3._x = ((3 * rotation) + skyOffset) % 512;
sM.s4._x = (3 * rotation) % 512;
} else if (rotation != oldR) {
sM.s1._x = (sM.s2._x = (sM.s3._x = (3 * rotation) % 512));
}
}
if ((Key.isDown(38) && (speed <= 10)) && (_root.playing)) {
speed = speed + 0.5;
} else if (Key.isDown(40)) {
speed = speed - 0.25;
} else {
speed = speed * 0.96;
}
zSpeed = zSpeed + 0.1;
groundScale = groundScale + zSpeed;
oppScale = oppScale + zSpeed;
if (groundScale >= 10) {
groundScale = 10;
jumping = false;
}
var f = undefined;
if ((Math.abs(speed) > 0.1) || (rotation != oldR)) {
if (Math.abs(speed) < 1) {
trees.player.gotoAndStop(2);
}
if (trees.player._currentframe == 2) {
trees.player.gotoAndStop(1);
}
xPos = xPos + (speed * cosRot);
yPos = yPos + (speed * sinRot);
var x = xPos;
var y = yPos;
var s = sM;
if (roadShape.hitTest(x, -y, true) || (jumping)) {
s._x = 240;
s._y = 180;
} else {
s._x = 240 + random(int(speed));
s._y = 180 + random(int(speed * 2));
speed = speed * 0.7;
}
var r = rotation;
if (r == oldR) {
var n = 1;
while (n < nOfS) {
if (n <= treeCount) {
tree(n - 1);
}
var c1 = s[n];
var m1 = c1.m;
c1._rotation = (c2._rotation = r);
m1._y = (m2._y = x);
m1._x = (m2._x = y);
n++;
}
} else {
var n = 1;
while (n < nOfS) {
if (n <= treeCount) {
tree(n - 1);
}
var c1 = s[n];
var m1 = c1.m;
c1._rotation = (c2._rotation = r);
m1._y = (m2._y = x);
m1._x = (m2._x = y);
n++;
}
}
map.car._y = x * -1;
map.car._x = y * -1;
map.car._rotation = r * -1;
trees.player.playerMove(dir);
oldRot = r;
} else {
trees.player.gotoAndStop(2);
}
fr++;
moveOpponent();
moveOpponent2();
}
function tree(n) {
var m = map["t" + n];
var t = trees["t" + n];
var p = {x:0, y:0};
var r;
var a;
var d;
var b;
var v = -15;
var top;
m.localToGlobal(p);
map.car.globalToLocal(p);
if (p.y > v) {
if (t.hidden != true) {
t._yscale = 10;
t._xscale = 10;
t._y = -500;
t._x = -500;
t.hidden = true;
}
return("");
}
d = int(20000 - (Math.sqrt((p.x * p.x) + (p.y * p.y)) * 10));
t.swapDepths(d);
t.hidden = false;
v = Math.abs(v);
d = v / (v + p.y);
var y = -80;
t._x = ((p.x * -1) * d) * xscale;
t._y = (y * d) * yscale;
top = ((y + m.hmc) * d) * yscale;
t._height = t._y - top;
t._xscale = t._yscale;
b = t.getBounds(_root);
if ((b.xMin > 480) || (b.xMax < 0)) {
if (t.hidden != true) {
t._yscale = 10;
t._xscale = 10;
t._y = -500;
t._x = -500;
t.hidden = true;
}
}
}
function newTarget() {
var x;
var y;
var p;
var d;
var a;
var r;
path[pathPos].m.c.setRGB(16711680);
if ((++pathPos) < pathCount) {
p = path[pathPos];
} else {
p = path[0];
pathPos = 0;
}
p.m.c.setRGB(65280);
x = p.x - map.opp._x;
y = p.y - map.opp._y;
d = Math.sqrt((x * x) + (y * y)) / 10;
r = Math.atan2(y, x);
a = ((r / 3.141593) * 180) + (90 - map.opp._rotation);
pathStep = pathSteps[pathPos];
return(p);
}
function newTarget2() {
var x;
var y;
var p;
var d;
var a;
var r;
path2[pathPos2].m.c.setRGB(16711680);
if ((++pathPos2) < pathCount2) {
p = path2[pathPos2];
} else {
p = path2[0];
pathPos2 = 0;
}
p.m.c.setRGB(65280);
x = p2.x - map.opp._x;
y = p2.y - map.opp._y;
d = Math.sqrt((x * x) + (y * y)) / 10;
r = Math.atan2(y, x);
a = ((r / 3.141593) * 180) + (90 - map.opp2._rotation);
pathStep2 = pathSteps2[pathPos2];
return(p);
}
function createSky() {
if (night) {
var f = 2;
} else {
var f = 1;
}
if (sky) {
sM.s1._visible = (sM.s2._visible = (sM.s3._visible = true));
sM.s1._x = (sM.s2._x = (sM.s3._x = 0));
sM.s1.gotoAndStop(f);
sM.s2.gotoAndStop(f);
sM.s3.gotoAndStop(f);
sM.noSky.gotoAndStop(1);
sM.noSky._visible = false;
} else {
sM.s1._visible = (sM.s2._visible = (sM.s3._visible = false));
sM.noSky.gotoAndStop(f);
sM.noSky._visible = true;
}
if (night) {
sM.nightLight.swapDepths(1001);
sM.nightLight._visible = true;
} else {
sM.nightLight._visible = false;
}
}
Stage.showMenu = false;
_focusrect = false;
_quality = "LOW";
sM._alpha = 0;
pathSteps = [3, -1.8, -2.4, 2, 1.7, 1.2, 1, 0.2, 0.4, 1.8, 1.7, -2, 4, 2];
pathSteps2 = [4, -2.4, -4.6, 3, 3.8, 1.8, 2, 0.2, 0.4, 3.4, 0, -3, 4.4, 2.8];
var xscale = 15;
var yscale = 2;
pathCount = 0;
pathCount2 = 0;
treeCount = 0;
path = new Array();
path2 = new Array();
xPos = 0;
yPos = 0;
var playing = true;
var srun_flag = true;
for (clip in map) {
m = map[clip];
if ((substring(m._name, 1, 1)) == "t") {
treeCount++;
m._visible = false;
}
if ((substring(m._name, 1, 1)) == "z") {
treeCount++;
m._visible = false;
}
if ((substring(m._name, 1, 1)) == "p") {
path[pathCount] = new Object();
path2[pathCount2] = new Object();
p = path[pathCount];
p2 = path2[pathCount2];
p.n = Number(substring(m._name, 2, -1));
p.m = m;
p.x = m._x;
p.y = m._y;
p.r = m._rotation;
m._visible = false;
p.m.c = new Color(p.m);
pathCount++;
p.m._visible = false;
p2.n = Number(substring(m._name, 2, -1));
p2.m = m;
p2.x = m._x;
p2.y = m._y;
p2.r = m._rotation;
p2.m.c = new Color(p.m);
pathCount2++;
p2.m._visible = false;
}
}
path.sort(pathComp);
path2.sort(pathComp);
pathPos = 0;
pathPos2 = 0;
newTarget();
newTarget2();
Instance of Symbol 197 MovieClip "roadShape" in Frame 3
onClipEvent (load) {
_visible = false;
}
Frame 4
keepFPS = false;
showFog = false;
fogAlpha = 75;
fogScale = 75;
mipMapping = true;
night = false;
parallaxSky = true;
showStripGuides = false;
sky = true;
topH = 1;
bottomH = 8;
groundScale = 10;
totalHeight = 205;
xZoneMax = 6;
createStrips(topH, bottomH, totalHeight);
createSky();
rotation = 0;
cosRot = Math.cos(rotation * (Math.PI/180)) / 2;
sinRot = Math.sin(rotation * (Math.PI/180)) / 2;
goThroughZones = 1 + xZoneMax;
Frame 5
Frame 6
Frame 7
stop();
sM._alpha = 100;
moveOpponent(map.car.opp, sM.trees.opp);
moveOpponent2();
main();
Frame 8
function callback1() {
loop_count++;
if (user1 != undefined) {
users1 = user1.split(",");
users2 = user2.split(",");
users3 = user3.split(",");
users4 = user4.split(",");
users5 = user5.split(",");
users6 = user6.split(",");
users7 = user7.split(",");
users8 = user8.split(",");
users9 = user9.split(",");
users10 = user10.split(",");
clearInterval(intervalss);
var i = 0;
while (i < 10) {
_root["us" + (i + 1)] = _root["users" + (i + 1)][2];
if (_root["users" + (i + 1)][2] == nm) {
_root["us" + (i + 1)] = ("<center><font color='#0000FF'><b>" + _root["users" + (i + 1)][2]) + "</b></font></center>";
_root["rank" + (i + 1)] = ("<center><font color='#0000FF'><b>" + _root["users" + (i + 1)][0]) + "</b></font></center>";
_root["date" + (i + 1)] = ("<center><font color='#0000FF'><b>" + _root["users" + (i + 1)][1].substring(0, 10)) + "</b></font></center>";
} else {
_root["us" + (i + 1)] = ("<center>" + _root["users" + (i + 1)][2]) + "</center>";
_root["rank" + (i + 1)] = ("<center>" + _root["users" + (i + 1)][0]) + "</center>";
_root["date" + (i + 1)] = ("<center>" + _root["users" + (i + 1)][1].substring(0, 10)) + "</center>";
}
i++;
}
_root.message._visible = false;
}
if (loop_count > 30) {
_root.message.gotoAndStop(3);
clearInterval(intervalss);
}
}
_quality = "HIGH";
stop();
_root.onEnterFrame = undefined;
_root.s_run.stop();
_root.message._visible = true;
if (doors != undefined) {
_root.doors.removeMovieClip();
}
if (howto != undefined) {
_root.howto.removeMovieClip();
}
sn = game_id;
nm = user_id;
sc = score;
var loop_count = 0;
saveurls = tevas.decrypttext("9459b3d624362ffcfbef5f4402dfec765463a4e112fff8e51d611038f5c4d5a4c910942773dae841", "dalasjoe");
matchurls = tevas.decrypttext("edd77bae0fa13f1358ce7c89814eb7df", "dalas");
if ((_url.indexOf(matchurls) >= 0) && (nm != "err")) {
loadVariablesNum (saveurls, 0, "POST");
var intervalss = setInterval(callback1, 200);
} else {
_root.message.gotoAndStop(4);
}
Symbol 6 MovieClip [tree] Frame 1
this.height = this._height;
Symbol 14 MovieClip Frame 8
gotoAndPlay (1);
Symbol 19 MovieClip Frame 4
gotoAndPlay (1);
Symbol 20 MovieClip [pete] Frame 1
stop();
Symbol 31 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 34 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 37 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 39 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 42 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 45 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 46 MovieClip [fcb_states] Frame 1
stop();
Symbol 46 MovieClip [fcb_states] Frame 2
stop();
Symbol 46 MovieClip [fcb_states] Frame 3
stop();
Symbol 46 MovieClip [fcb_states] Frame 4
stop();
Symbol 46 MovieClip [fcb_states] Frame 5
stop();
Symbol 46 MovieClip [fcb_states] Frame 6
stop();
Symbol 49 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 50 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 53 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 53 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 56 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 3
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1);
this.attachMovie("fcb_states", "fcb_states_mc", 2);
this.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
this.setChangeHandler(this.changeHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.initialValue == undefined) {
this.setCheckState(false);
} else {
this.setCheckState(this.initialValue);
}
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_CHECKBUTTON = 44;
this.STATE_SYSTEM_CHECKED = 16;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
this.setLabel(this.getLabel());
this.txtFormat(pos);
var halfLabelH = (this.fLabel_mc._height / 2);
var halfFrameH = (this.fcb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var checkWidth = this.fcb_states_mc._width;
var frame = this.fcb_states_mc;
var label = this.fLabel_mc;
var w = 0;
if (frame._width > this.width) {
w = 0;
} else {
w = this.width - frame._width;
}
this.fLabel_mc.setSize(w);
if ((pos == "right") || (pos == undefined)) {
this.labelPlacement = "right";
this.fcb_states_mc._x = 0;
this.fLabel_mc._x = checkWidth;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.fcb_states_mc._x = this.width - checkWidth;
this.txtFormat("right");
}
this.fLabel_mc._y = vertCenter;
this.fcb_hitArea_mc._y = vertCenter;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = pos)) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 0)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 0)) : undefined);
if (this.flabel_mc._height > this.height) {
super.setSize(this.width, this.flabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var hit = this.fcb_hitArea_mc;
this.hitArea = hit;
if (this.fcb_states_mc._width > w) {
hit._width = this.fcb_states_mc._width;
} else {
hit._width = w;
}
hit._visible = false;
if (arguments.length > 1) {
hit._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
this.setLabel(this.getLabel());
this.setLabelPlacement(this.labelPlacement);
if (this.fcb_states_mc._height < this.flabel_mc.labelField._height) {
super.setSize(w, this.flabel_mc.labelField._height);
}
this.setHitArea(this.width, this.height);
this.setLabelPlacement(this.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this._width + 6, this._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
this.pressFocus();
_root.focusRect.removeMovieClip();
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedPress");
} else {
states.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
this.fcb_states_mc.gotoAndStop("up");
this.setValue(!this.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedEnabled");
} else {
states.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedEnabled");
} else {
states.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedPress");
} else {
states.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
if (checkedValue || (checkedValue == undefined)) {
this.setCheckState(checkedValue);
} else if (checkedValue == false) {
this.setCheckState(checkedValue);
}
this.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var states = this.fcb_states_mc;
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (checkedValue || (checkedValue == undefined)) {
states.gotoAndStop("checkedEnabled");
this.enabled = true;
this.checked = true;
} else {
states.gotoAndStop("up");
this.enabled = true;
this.checked = false;
}
} else {
this.flabel_mc.setEnabled(false);
if (checkedValue || (checkedValue == undefined)) {
states.gotoAndStop("checkedDisabled");
this.enabled = false;
this.checked = true;
} else {
states.gotoAndStop("uncheckedDisabled");
this.enabled = false;
this.checked = false;
this.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
if ((enable == true) || (enable == undefined)) {
this.enable = true;
Super.setEnabled(true);
} else {
this.enable = false;
Super.setEnabled(false);
}
this.setCheckState(this.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FCheckBoxClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FCheckBoxClass.prototype.setTextColor = function (color) {
this.fLabel_mc.labelField.textColor = color;
};
FCheckBoxClass.prototype.myOnKeyDown = function () {
if (((Key.getCode() == 32) && (this.pressOnce == undefined)) && (this.enabled == true)) {
this.setValue(!this.getValue());
this.pressOnce = true;
}
};
FCheckBoxClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.pressOnce = undefined;
}
};
FCheckBoxClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_CHECKBUTTON);
};
FCheckBoxClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FCheckBoxClass.prototype.get_accState = function (childId) {
if (this.master.getValue()) {
return(this.master.STATE_SYSTEM_CHECKED);
}
return(0);
};
FCheckBoxClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getValue()) {
return("UnCheck");
}
return("Check");
};
FCheckBoxClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 63 MovieClip [instructions] Frame 1
kL = {};
kL.onKeyDown = function () {
Key.removeListener(kL);
_root.instr.removeMovieClip();
};
Key.addListener(kL);
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
stop();
Symbol 78 MovieClip [momo2] Frame 1
function rotate(car, opp) {
var opr = opp._rotation;
var crr = car._rotation;
var rot = (opr - crr);
if (rot < 0) {
rot = 360 + rot;
}
if ((rot >= 0) && (rot < 20)) {
this.inside.gotoAndStop(1);
} else if ((rot >= 20) && (rot < 65)) {
this.inside.gotoAndStop(1);
} else if ((rot >= 65) && (rot < 110)) {
this.inside.gotoAndStop(1);
} else if ((rot >= 110) && (rot < 155)) {
this.inside.gotoAndStop(2);
} else if ((rot >= 1) && (rot < 200)) {
this.inside.gotoAndStop(2);
} else if ((rot >= 200) && (rot < 245)) {
this.inside.gotoAndStop(2);
} else if ((rot >= 245) && (rot < 290)) {
this.inside.gotoAndStop(1);
} else if ((rot >= 290) && (rot < 335)) {
this.inside.gotoAndStop(1);
} else if ((rot >= 335) && (rot < 360)) {
this.inside.gotoAndStop(1);
}
}
this.hgt = this._height;
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 94 MovieClip [elvis] Frame 1
function rotate(car, opp) {
var opr = opp._rotation;
var crr = car._rotation;
var rot = (opr - crr);
if (rot < 0) {
rot = 360 + rot;
}
if ((rot >= 0) && (rot < 20)) {
this.inside.gotoAndStop(1);
} else if ((rot >= 20) && (rot < 65)) {
this.inside.gotoAndStop(1);
} else if ((rot >= 65) && (rot < 110)) {
this.inside.gotoAndStop(1);
} else if ((rot >= 110) && (rot < 155)) {
this.inside.gotoAndStop(2);
} else if ((rot >= 1) && (rot < 200)) {
this.inside.gotoAndStop(2);
} else if ((rot >= 200) && (rot < 245)) {
this.inside.gotoAndStop(2);
} else if ((rot >= 245) && (rot < 290)) {
this.inside.gotoAndStop(1);
} else if ((rot >= 290) && (rot < 335)) {
this.inside.gotoAndStop(1);
} else if ((rot >= 335) && (rot < 360)) {
this.inside.gotoAndStop(1);
}
}
this.hgt = this._height;
stop();
Symbol 109 MovieClip Frame 7
stop();
_parent.m.gotoAndPlay(1);
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 7
stop();
_parent.h2_light.gotoAndPlay(2);
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 9
stop();
_parent.s.gotoAndPlay(2);
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 10
stop();
_parent.p.gotoAndPlay(2);
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 10
stop();
_parent.a.gotoAndPlay(2);
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 34
stop();
_parent.present.gotoAndPlay(2);
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 20
_root.intro_load = true;
stop();
Symbol 150 Button
on (release) {
_root.interval = setInterval(_root.callback1, 200);
_root.loop_count = 0;
this.gotoAndStop(1);
}
Symbol 151 Button
on (release) {
getURL (_root.burl, "_top");
}
Symbol 153 Button
on (release) {
_root.sound_base.start();
getURL ("http://kids.empas.com", "_blank");
}
Symbol 154 Button
on (release) {
getURL (_root.burl, "_top");
}
Symbol 156 Button
on (release) {
_root.sound_base.start();
getURL (_root.burl, "_top");
}
Symbol 157 Button
on (release) {
_root.sound_base.start();
_root.nextFrame();
}
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 2
stop();
Symbol 159 MovieClip Frame 3
stop();
Symbol 163 Button
on (release) {
gotoAndPlay (3);
}
Symbol 195 MovieClip Frame 1
strip_q._visible = false;
strip_h._visible = false;
strip._visible = false;
Symbol 205 MovieClip Frame 1
this.hmc = 700;
Symbol 224 Button
on (release, keyPress "<Enter>") {
_root.e_time = getTimer() - _root.s_time;
id = input_id;
pass = input_pass.text;
loginurls = "../include/login_ok.php";
loadVariablesNum (loginurls, 0, "POST");
_root.rdy = "";
intervalss2 = setInterval(callback3, 200);
}
Symbol 225 Button
on (release) {
getURL ("javascript:window.location.reload()", "_self");
}
Symbol 226 Button
on (release) {
_root.gotoAndStop("end");
}
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 74
stop();
Symbol 241 MovieClip Frame 1
function restartTimer() {
hours = "00";
minutes = "00";
seconds = "00";
milli = "00";
buttonPressTime = (getTimer() / 1000) - pauseLength;
pause();
}
function pause() {
pauseTime = getTimer() / 1000;
timing = false;
}
function unpause() {
unpauseTime = getTimer() / 1000;
pauseLength = (unpauseTime - pauseTime) + pauseLength;
timing = true;
}
this.onEnterFrame = function () {
totalTime = (getTimer() / 1000) - pauseLength;
goTime = totalTime - buttonPressTime;
if (timing && (_root.playing)) {
hours = Math.floor(goTime / 3600);
minutes = Math.floor(((goTime / 3600) - hours) * 60);
seconds = Math.floor(((((goTime / 3600) - hours) * 60) - minutes) * 60);
milli = Math.floor((gotime - ((seconds + (minutes * 60)) + (hours * 3600))) * 100);
if (seconds < 10) {
seconds = "0" + seconds;
}
if (minutes < 10) {
minutes = "0" + minutes;
}
if (hours < 10) {
hours = "0" + hours;
}
if (milli < 10) {
milli = "0" + milli;
}
}
};
reset();
restartTimer();
Symbol 267 MovieClip Frame 91
stop();
this._visible = false;
_root.playing = true;
_root.onEnterFrame = _root.main;
_root.timecheck.unpause();
Symbol 312 Button
on (release) {
getURL ("http://kids.empas.com/event/rd.html?http://game.kids.empas.com/flash.html?t=game&s=puzzle&n=3097", "_top");
}