Frame 1
version = "";
appdir = "";
fscommand ("flashstudio.appdir", "appdir");
ip = 0;
fscommand ("flashstudio.getipaddress", "ip");
Frame 2
LOADBAR._xscale = (getBytesLoaded() / getBytesTotal()) * 100;
play();
Frame 3
if (((!getBytesLoaded()) + 100) >= getBytesTotal()) {
prevFrame();
}
Frame 4
function toHex(n) {
c1 = HexValues[Math.floor(n / 16)];
c2 = HexValues[n % 16];
return(c1 add c2);
}
function fromHex(n) {
var _local1 = 0;
while (_local1 < HexValues.length) {
if (n.charAt(0) == HexValues[_local1]) {
n1 = _local1 * 16;
}
_local1++;
}
_local1 = 0;
while (_local1 < HexValues.length) {
if (n.charAt(1) == HexValues[_local1]) {
n2 = _local1;
}
_local1++;
}
return(n1 + n2);
}
HexValues = new Array();
HexValues.push("0");
HexValues.push("1");
HexValues.push("2");
HexValues.push("3");
HexValues.push("4");
HexValues.push("5");
HexValues.push("6");
HexValues.push("7");
HexValues.push("8");
HexValues.push("9");
HexValues.push("A");
HexValues.push("B");
HexValues.push("C");
HexValues.push("D");
HexValues.push("E");
HexValues.push("F");
HexValues.push("E");
Frame 5
function NewGame(name, typ) {
player = new Object();
car = new Array();
player.name = name;
player.typ = typ;
player.car = -1;
player.ccrp = EncodeMoney();
player.wins = 0;
player.loss = 0;
player.tlevel = 0;
player.slevel = 1;
player.tstatus = "";
var _local1 = 0;
while (_local1 < TOURNEY.length) {
player.tstatus = player.tstatus + "0";
_local1++;
}
}
function NewArcGame(name) {
player = new Object();
car = new Array();
player.name = name;
player.typ = "Arcade";
player.car = -1;
player.wins = 0;
player.loss = 0;
player.level = 1;
player.rep = 0;
player.pp = 6;
}
function prompt(t, tt) {
_root.attachMovie("PROMPT", "_prompt", 200);
_root._prompt.t = t;
_root._prompt.tt = tt;
}
function gotoMainMenu() {
gotoAndPlay (843);
}
function viewCar(v) {
_root.attachMovie("VIEWCAR", "_viewcar", 66);
_root._viewcar.playcar = v;
}
function viewCar2(v) {
_root.attachMovie("CARVIEW", "_viewcar", 66);
_root._viewcar.carobj = v;
_root._viewcar._x = _root._viewcar._x + 400;
temp = new Object();
BuyCar(temp, v);
_root._viewcar.plycar = temp;
}
function paintCar(v) {
_root.attachMovie("PAINTCAR", "_paintcar", 66);
_root._paintcar.playcar = v;
}
function editCar(v) {
_root.attachMovie("EDITCAR", "_editcar", 66);
_root._editcar.playcar = v;
}
function race(obj1, obj2, typ1, typ2, rew, los, maxd) {
calcSpecs(obj1);
_root.attachMovie("RACE", "_race", 66);
var _local2 = _root._race;
_local2._x = _local2._x + 400;
_local2.obj1 = obj1;
_local2.obj2 = obj2;
_local2.typ1 = typ1;
_local2.typ2 = typ2;
_local2.rew = rew;
_local2.los = los;
_local2.maxdistance = maxd;
}
function CrazyCab(obj1) {
_root.attachMovie("CRZCAB", "_race", 66);
var _local2 = _root._race;
_local2.obj1 = obj1;
}
function exteriorShop(v) {
_root.attachMovie("EXTERIORSHOP", "_shop", 66);
_root._shop.plycar = v;
}
function interiorShop(v) {
_root.attachMovie("INTERIORSHOP", "_shop", 66);
_root._shop.plycar = v;
_root._shop._x = _root._shop._x + 400;
}
function engineShop(v) {
_root.attachMovie("ENGINESHOP", "_shop", 66);
_root._shop.plycar = v;
}
function gameStatus() {
_root.attachMovie("STATUS", "_shop", 66);
}
function ladder() {
_root.attachMovie("LADDER", "_shop", 66);
}
function partsShop(v) {
_root.attachMovie("PARTSSHOP", "_shop", 66);
_root._shop.plycar = v;
}
function maintainShop(v) {
_root.attachMovie("MAINTENANCE", "_shop", 66);
_root._shop.plycar = v;
}
function carShow(v) {
_root.attachMovie("CARSHOW", "_shop", 66);
_root._shop.plycar = v;
_root._shop._x = _root._shop._x + 400;
}
function OnlineMyAccount() {
_root.attachMovie("MyAccount", "_shop", 66);
}
function OnlineCarShow() {
_root.attachMovie("ONLINESHOW", "_shop", 66);
}
function tuneCar(v) {
_root.attachMovie("TUNING", "_tune", 66);
_root._tune.plycar = v;
}
function clearPopUps() {
_root.createEmptyMovieClip("BLANK", 66);
_root.createEmptyMovieClip("BLANK", 65);
}
function buyItem(playcar, i, pcnt) {
playcar[i] = playcar[i] * (1 + (pcnt / 100));
playcar.WT = playcar.ENGWT + playcar.FRAWT;
}
function sellCar(n) {
_root.Buy(-Math.round(car[n].CW * 0.3));
if (n != 0) {
_root.car = _root.car.slice(0, n).concat(_root.car.slice(n + 1));
} else {
_root.car = _root.car.slice(1);
}
}
function Garage() {
_root.attachMovie("GARAGE", "_garage", 65);
}
function BuyEngine(playcar, enginenum) {
playcar.CW = playcar.CW - (ENG[playcar.engnum].CW / 3);
var _local2 = 0;
while (_local2 < 5) {
playcar[STATS[_local2]] = ENG[enginenum][STATS[_local2]];
_local2++;
}
playcar.OIL = 0;
playcar.ENGWT = ENG[enginenum].ENGWT;
playcar.WT = playcar.ENGWT + playcar.FRAWT;
playcar.engnum = enginenum;
playcar.CW = playcar.CW + (ENG[enginenum].CW / 3);
playcar.UPGRADE = new Array();
_local2 = 0;
while (_local2 <= 35) {
playcar.UPGRADE[_local2] = 0;
_local2++;
}
_local2 = 0;
while (_local2 <= UPGRADEMAX) {
if (playcar.UPGRADE[_local2] == undefined) {
playcar.UPGRADE[_local2] = 0;
}
_local2++;
}
_local2 = 0;
while (_local2 <= TUNE.length) {
playcar[TUNE[_local2]] = 1;
_local2++;
}
}
function BuyCar(playcar, carbuy, enginenum) {
if (enginenum != undefined) {
BuyEngine(playcar, enginenum);
} else {
BuyEngine(playcar, carbuy.engnum);
}
playcar.NAME = carbuy.NAME;
playcar.FULLNAME = carbuy.FULLNAME;
playcar.CLASS = carbuy.CLASS;
playcar.FRAWT = carbuy.FRAWT;
playcar.FR = carbuy.FR;
playcar.LD = 100;
playcar.QL = 100;
playcar.WT = playcar.ENGWT + playcar.FRAWT;
playcar.CW = (carbuy.CW * 0.33) + (ENG[enginenum].CW * 0.33);
var _local1 = 0;
while (_local1 < ATTRIB.length) {
playcar[ATTRIB[_local1]] = 1;
_local1++;
}
playcar._decalword = "";
_local1 = 0;
while (_local1 < COLS.length) {
playcar[COLS[_local1]] = {rb:0, bb:0, gb:0};
_local1++;
}
playcar.rideheight = 0;
playcar.windowtint = 100;
playcar.lsize = 100;
playcar.rsize = 100;
playcar.pwsize = 5;
playcar.phsize = 5;
playcar.rimcols = {rb:-50, gb:-50, bb:-50};
playcar.NAME = carbuy.NAME;
playcar.NOS = 0;
playcar.OIL = 0;
playcar.NRES = 0;
if (player.typ == "Arcade") {
_local1 = 26;
while (_local1 <= 30) {
playcar.UPGRADE[_local1] = 1;
_local1++;
}
playcar.NOS = 100;
playcar.OIL = 0;
playcar.NRES = 7;
}
}
function calcSpecs(carp) {
hp = ENG[carp.engnum].HP;
tq = ENG[carp.engnum].TQ;
wt = ENG[carp.engnum].ENGWT;
cl = ENG[carp.engnum].CL;
cw = (ENG[carp.engnum].CW / 3) + (_root[carp.NAME].CW / 3);
if (carp.CLASS == 3) {
pcnt = 0.8;
} else {
pcnt = 1;
}
var _local2 = 0;
while (_local2 <= UPGRADEMAX) {
if (UPGRADELIST[_local2].upHP != undefined) {
hp = hp * (1 + (((PERFMANU[carp.UPGRADE[_local2]].hp * UPGRADELIST[_local2].upHP) / 100) * pcnt));
tq = tq * (1 + (((PERFMANU[carp.UPGRADE[_local2]].tq * UPGRADELIST[_local2].upTQ) / 100) * pcnt));
cl = cl * (1 + (((PERFMANU[carp.UPGRADE[_local2]].cl * UPGRADELIST[_local2].upCL) / 100) * pcnt));
wt = wt * (1 + (((PERFMANU[carp.UPGRADE[_local2]].wt * UPGRADELIST[_local2].upWT) / 100) * pcnt));
cw = cw + ((UPGRADELIST[_local2].cost * PERFMANU[car.UPGRADE[_local2]].c) / 3);
}
_local2++;
}
carp.HP = hp;
carp.TQ = tq;
carp.CL = cl;
carp.ENGWT = wt;
carp.WT = carp.ENGWT + carp.FRAWT;
carp.CW = cw;
}
function BuyIntPart(p) {
var _local4 = UPGRADELIST[p].i;
var _local5 = UPGRADELIST[p].cost;
_root.Buy(UPGRADELIST[p].cost);
var _local2 = car[player.car];
_local2.CW = _local2.CW - ((INTMANU[_local2.UPGRADE[_local4]].c * UPGRADELIST[p].cost) / 3);
_local2.CW = _local2.CW + ((INTMANU[m].c * UPGRADELIST[p].cost) / 3);
_local2.CW = Math.ceil(_local2.CW);
_local2.UPGRADE[_local4] = UPGRADELIST[p].val;
}
function BuySoundPart(m, p) {
var _local4 = UPGRADELIST[p].i;
var _local6 = UPGRADELIST[p].cost;
_root.Buy(UPGRADELIST[p].cost * SNDMANU[m].c);
var _local2 = car[player.car];
_local2.LD = _local2.LD * Math.pow(1 + ((SNDMANU[_local2.UPGRADE[_local4]].ld * UPGRADELIST[p].upLD) / 100), -1);
_local2.QL = _local2.QL * Math.pow(1 + ((SNDMANU[_local2.UPGRADE[_local4]].ql * UPGRADELIST[p].upQL) / 100), -1);
_local2.WT = _local2.WT * Math.pow(1 + ((SNDMANU[_local2.UPGRADE[_local4]].wt * UPGRADELIST[p].upWT) / 100), -1);
_local2.CW = _local2.CW - ((SNDMANU[_local2.UPGRADE[_local4]].c * UPGRADELIST[p].cost) / 3);
_local2.CW = _local2.CW + ((SNDMANU[m].c * UPGRADELIST[p].cost) / 3);
_local2.CW = Math.ceil(_local2.CW);
_local2.UPGRADE[_local4] = m;
_local2.LD = _local2.LD * (1 + ((SNDMANU[m].ld * UPGRADELIST[p].upLD) / 100));
_local2.QL = _local2.QL * (1 + ((SNDMANU[m].ql * UPGRADELIST[p].upQL) / 100));
_local2.WT = _local2.WT * (1 + ((SNDMANU[m].wt * UPGRADELIST[p].upWT) / 100));
}
function BuyPart(m, p) {
var _local4 = UPGRADELIST[p].i;
var _local6 = UPGRADELIST[p].cost;
_root.Buy(UPGRADELIST[p].cost * PERFMANU[m].c);
var _local2 = car[player.car];
_local2.HP = _local2.HP * Math.pow(1 + ((PERFMANU[_local2.UPGRADE[_local4]].hp * UPGRADELIST[p].upHP) / 100), -1);
_local2.TQ = _local2.TQ * Math.pow(1 + ((PERFMANU[_local2.UPGRADE[_local4]].tq * UPGRADELIST[p].upTQ) / 100), -1);
_local2.CL = _local2.CL * Math.pow(1 + ((PERFMANU[_local2.UPGRADE[_local4]].cl * UPGRADELIST[p].upCL) / 100), -1);
_local2.WT = _local2.WT * Math.pow(1 + ((PERFMANU[_local2.UPGRADE[_local4]].wt * UPGRADELIST[p].upWT) / 100), -1);
_local2.CW = _local2.CW - ((PERFMANU[_local2.UPGRADE[_local4]].c * UPGRADELIST[p].cost) / 3);
_local2.CW = _local2.CW + ((PERFMANU[m].c * UPGRADELIST[p].cost) / 3);
_local2.CW = Math.ceil(_local2.CW);
_local2.UPGRADE[_local4] = m;
trace(_local2.UPGRADE[_local4]);
_local2.HP = _local2.HP * (1 + ((PERFMANU[m].hp * UPGRADELIST[p].upHP) / 100));
_local2.TQ = _local2.TQ * (1 + ((PERFMANU[m].tq * UPGRADELIST[p].upTQ) / 100));
_local2.CL = _local2.CL * (1 + ((PERFMANU[m].cl * UPGRADELIST[p].upCL) / 100));
_local2.WT = _local2.WT * (1 + ((PERFMANU[m].wt * UPGRADELIST[p].upWT) / 100));
calcSpecs(_local2);
}
function AddCar(carwon) {
n = car.length;
car[n] = new Object();
CarEq(car[n], carwon);
}
function CarEq(obj1, obj2) {
var _local3 = 0;
while (_local3 < STATS.length) {
obj1[STATS[_local3]] = obj2[STATS[_local3]];
_local3++;
}
_local3 = 0;
while (_local3 < ATTRIB.length) {
obj1[ATTRIB[_local3]] = obj2[ATTRIB[_local3]];
_local3++;
}
_local3 = 0;
while (_local3 < COLS.length) {
obj1[COLS[_local3]] = obj2[COLS[_local3]];
_local3++;
}
_local3 = 0;
while (_local3 < PROP.length) {
obj1[PROP[_local3]] = obj2[PROP[_local3]];
_local3++;
}
obj1.UPGRADE = new Array();
_local3 = 0;
while (_local3 <= UPGRADEMAX) {
obj1.UPGRADE[_local3] = obj2.UPGRADE[_local3];
_local3++;
}
_local3 = 0;
while (_local3 <= TUNE.length) {
obj1[TUNE[_local3]] = obj2[TUNE[_local3]];
_local3++;
}
}
function EncodeMoney() {
ouy = 0;
temp = String(player.cash);
var _local1 = 0;
while (_local1 < temp.length) {
ouy = ouy + Number(temp.charAt(_local1));
_local1++;
}
ouy = ouy * temp.length;
return(ouy);
}
function Hacker() {
player.ccrp = EncodeMoney();
}
function Buy(cost) {
if (player.typ != "Arcade") {
if (player.ccrp == EncodeMoney()) {
player.cash = player.cash - cost;
player.cash = Math.round(player.cash);
player.ccrp = EncodeMoney();
} else {
Hacker();
}
}
}
function applyColor(oj, co) {
oj.framecols.rb = co.rb;
oj.framecols.gb = co.gb;
oj.framecols.bb = co.bb;
oj.bkitcols.rb = co.rb;
oj.bkitcols.gb = co.gb;
oj.bkitcols.bb = co.bb;
oj.fkitcols.rb = co.rb;
oj.fkitcols.gb = co.gb;
oj.fkitcols.bb = co.bb;
oj.skitcols.rb = co.rb;
oj.skitcols.gb = co.gb;
oj.skitcols.bb = co.bb;
oj.wingcols.rb = co.rb;
oj.wingcols.gb = co.gb;
oj.wingcols.bb = co.bb;
oj.hoodcols.rb = co.rb;
oj.hoodcols.gb = co.gb;
oj.hoodcols.bb = co.bb;
oj.windowcols.rb = -255;
oj.windowcols.gb = -255;
oj.windowcols.bb = -255;
oj.decalwordcols.rb = -255;
oj.decalwordcols.gb = -255;
oj.decalwordcols.bb = -255;
}
function StartEq(a, b) {
return(a.slice(0, b.length) == b);
}
function genOpp(carname, opcar, ratio) {
m = ratio / MAXUP;
BuyCar(opcar, _root[carname]);
var _local3 = 0;
while (_local3 <= Math.ceil(m * UPGRADEMAX)) {
opcar.UPGRADE[_local3] = 7;
_local3++;
}
calcSpecs(opcar);
_local3 = 0;
while (_local3 < ATTRIB.length) {
opcar[ATTRIB[_local3]] = Math.ceil(Math.random() * _root[opcar.name].MAX_BKIT);
_local3++;
}
opcar._decalword = "";
opcar.NOS = 100;
COL = COLARRAY[Math.floor(Math.random() * COLOURARRAY.length)];
opcar.decalcols.rb = COL.rb;
opcar.decalcols.gb = COL.gb;
opcar.decalcols.bb = COL.bb;
COL = COLARRAY[Math.floor(Math.random() * COLARRAY.length)];
applyColor(opcar, COL);
opcar.hoodcols.rb = -200;
opcar.hoodcols.gb = -200;
opcar.hoodcols.bb = -200;
trace(opcar.CLASS);
}
function genOpp2(carname, opcar, engup) {
genOpp(carname, opcar, engup);
}
function SaveGame(plyr, cararr) {
myLoadVars = new LoadVars();
myLoadVars.plyname = plyr.name;
myLoadVars.plytyp = plyr.typ;
myLoadVars.plycar = plyr.car;
myLoadVars.plycash = plyr.cash;
myLoadVars.plyccrp = plyr.ccrp;
myLoadVars.plywin = plyr.wins;
myLoadVars.plylos = plyr.loss;
myLoadVars.tlvl = plyr.tlevel;
myLoadVars.slvl = plyr.slevel;
myLoadVars.tsta = plyr.tstatus;
myLoadVars.carnum = car.length;
filecontent = unescape(myLoadVars.toString()) add "&";
var _local1 = 0;
while (_local1 < cararr.length) {
var _local3 = 0;
while (_local3 < STATS.length) {
filecontent = filecontent + ((((("c" add _local1) add STATS[_local3]) add "=") add cararr[_local1][STATS[_local3]]) add "&");
_local3++;
}
_local3 = 0;
while (_local3 < ATTRIB.length) {
filecontent = filecontent + ((((("c" add _local1) add ATTRIB[_local3]) add "=") add cararr[_local1][ATTRIB[_local3]]) add "&");
_local3++;
}
_local3 = 0;
while (_local3 < COLS.length) {
filecontent = filecontent + (((((("c" add _local1) add COLS[_local3]) add "rb") add "=") add cararr[_local1][COLS[_local3]].rb) add "&");
filecontent = filecontent + (((((("c" add _local1) add COLS[_local3]) add "gb") add "=") add cararr[_local1][COLS[_local3]].gb) add "&");
filecontent = filecontent + (((((("c" add _local1) add COLS[_local3]) add "bb") add "=") add cararr[_local1][COLS[_local3]].bb) add "&");
_local3++;
}
trace("PROP = " + PROP);
_local3 = 0;
while (_local3 < PROP.length) {
filecontent = filecontent + ((((("c" add _local1) add PROP[_local3]) add "=") add cararr[_local1][PROP[_local3]]) add "&");
_local3++;
}
_local3 = 0;
while (_local3 <= UPGRADEMAX) {
filecontent = filecontent + (((((("c" add _local1) add "UPGRADE") add _local3) add "=") add cararr[_local1].UPGRADE[_local3]) add "&");
_local3++;
}
_local3 = 0;
while (_local3 < TUNE.length) {
filecontent = filecontent + ((((("c" add _local1) add TUNE[_local3]) add "=") add cararr[_local1][TUNE[_local3]]) add "&");
_local3++;
}
_local1++;
}
if (pc) {
filedir = ((appdir add "\\SAVE\\") add plyr.name) add ".drs";
fscommand ("flashstudio.savetofile", "filedir,filecontent");
} else {
myLSO = SharedObject.getLocal("DragRacerOnlineData");
myLSO.data.filecontent = filecontent;
}
trace(filecontent);
return(filecontent);
}
function LoadVar(bigstr, str) {
index = (bigstr.indexOf(str add "=") + str.length) + 1;
index2 = bigstr.indexOf("&", index);
subst = bigstr.substring(index, index2);
if (((String(Number(subst)) == Number.NaN.toString()) || (str == "tsta")) || (str == "u")) {
} else {
subst = Number(subst);
}
return(subst);
}
function LoadGame(fc) {
player = new Object();
car = new Array();
_root.attachMovie("LOADGAME", "popup", 66);
}
function LoadPlayer(fc, PLAYER2) {
PLAYER2.name = LoadVar(fc, "plyname");
PLAYER2.typ = LoadVar(fc, "plytyp");
PLAYER2.car = LoadVar(fc, "plycar");
PLAYER2.cash = LoadVar(fc, "plycash");
PLAYER2.ccrp = LoadVar(fc, "plyccrp");
PLAYER2.carnum = LoadVar(fc, "carnum");
PLAYER2.wins = LoadVar(fc, "plywin");
PLAYER2.loss = LoadVar(fc, "plylos");
PLAYER2.tlevel = LoadVar(fc, "tlvl");
PLAYER2.slevel = LoadVar(fc, "slvl");
PLAYER2.tstatus = LoadVar(fc, "tsta");
}
function LoadCar(fc, CAR2, PLAYER2, c) {
CAR2[c] = new Object();
var _local4 = 0;
while (_local4 < STATS.length) {
CAR2[c][STATS[_local4]] = LoadVar(fc, ("c" + c) + STATS[_local4]);
_local4++;
}
_local4 = 0;
while (_local4 < ATTRIB.length) {
CAR2[c][ATTRIB[_local4]] = LoadVar(fc, ("c" + c) + ATTRIB[_local4]);
_local4++;
}
_local4 = 0;
while (_local4 < COLS.length) {
CAR2[c][COLS[_local4]] = new Object();
CAR2[c][COLS[_local4]].rb = LoadVar(fc, (("c" + c) + COLS[_local4]) + "rb");
CAR2[c][COLS[_local4]].gb = LoadVar(fc, (("c" + c) + COLS[_local4]) + "gb");
CAR2[c][COLS[_local4]].bb = LoadVar(fc, (("c" + c) + COLS[_local4]) + "bb");
_local4++;
}
_local4 = 0;
while (_local4 < PROP.length) {
CAR2[c][PROP[_local4]] = LoadVar(fc, ("c" + c) + PROP[_local4]);
_local4++;
}
CAR2[c].UPGRADE = new Array();
_local4 = 0;
while (_local4 <= UPGRADEMAX) {
CAR2[c].UPGRADE[_local4] = LoadVar(fc, (("c" + c) + "UPGRADE") + _local4);
trace(CAR2[c].UPGRADE[_local4]);
_local4++;
}
_local4 = 0;
while (_local4 < TUNE.length) {
CAR2[c][TUNE[_local4]] = LoadVar(fc, ("c" + c) + TUNE[_local4]);
_local4++;
}
calcSpecs(CAR2[c]);
}
function encodeCar(carobj) {
calcSpecs(carobj);
ret = "s=";
var _local2 = 0;
while (_local2 < STATS.length) {
tmp = Math.round(carobj[STATS[_local2]]);
if (String(tmp) == Number.NaN.toString()) {
tmp = carobj[STATS[_local2]];
}
ret = ret + tmp;
if (_local2 != (STATS.length - 1)) {
ret = ret + ",";
}
_local2++;
}
ret = ret + "&a=";
_local2 = 0;
while (_local2 < ATTRIB.length) {
ret = ret + carobj[ATTRIB[_local2]];
if (_local2 != (ATTRIB.length - 1)) {
ret = ret + ",";
}
_local2++;
}
ret = ret + "&c=";
_local2 = 0;
while (_local2 < COLS.length) {
ret = ret + toHex(Math.abs(carobj[COLS[_local2]].rb));
ret = ret + toHex(Math.abs(carobj[COLS[_local2]].gb));
ret = ret + toHex(Math.abs(carobj[COLS[_local2]].bb));
if (_local2 != (COLS.length - 1)) {
ret = ret + ",";
}
_local2++;
}
ret = ret + "&p=";
_local2 = 0;
while (_local2 < PROP.length) {
ret = ret + carobj[PROP[_local2]];
if (_local2 != (PROP.length - 1)) {
ret = ret + ",";
}
_local2++;
}
ret = ret + "&u=";
_local2 = 0;
while (_local2 <= UPGRADEMAX) {
ret = ret + carobj.UPGRADE[_local2].toString();
_local2++;
}
ret = ret + "&";
trace("---");
trace(ret);
trace("---\n");
return(ret);
}
function decodeCar(fc) {
cro = new Object();
var _local8 = LoadVar(fc, "s");
sarr = new Array();
sarr = _local8.split(",");
var _local1 = 0;
while (_local1 < sarr.length) {
cro[STATS[_local1]] = sarr[_local1];
_local1++;
}
var _local9 = LoadVar(fc, "a");
aarr = new Array();
aarr = _local9.split(",");
_local1 = 0;
while (_local1 < aarr.length) {
cro[ATTRIB[_local1]] = aarr[_local1];
_local1++;
}
BuyCar(cro, cro.NAME, cro.engnum);
_local8 = LoadVar(fc, "s");
sarr = new Array();
sarr = _local8.split(",");
_local1 = 0;
while (_local1 < sarr.length) {
cro[STATS[_local1]] = sarr[_local1];
_local1++;
}
_local9 = LoadVar(fc, "a");
aarr = new Array();
aarr = _local9.split(",");
_local1 = 0;
while (_local1 < aarr.length) {
cro[ATTRIB[_local1]] = aarr[_local1];
_local1++;
}
var _local7 = LoadVar(fc, "c");
carr = new Array();
carr = _local7.split(",");
_local1 = 0;
while (_local1 < carr.length) {
crb = -fromHex(carr[_local1].charAt(0) add carr[_local1].charAt(1));
cgb = -fromHex(carr[_local1].charAt(2) add carr[_local1].charAt(3));
cbb = -fromHex(carr[_local1].charAt(4) add carr[_local1].charAt(5));
cro[COLS[_local1]] = {rb:crb, gb:cgb, bb:cbb};
_local1++;
}
var _local10 = LoadVar(fc, "p");
parr = new Array();
parr = _local10.split(",");
_local1 = 0;
while (_local1 < parr.length) {
cro[PROP[_local1]] = parr[_local1];
_local1++;
}
var _local2 = LoadVar(fc, "u");
cro.UPGRADE = new Array();
_local1 = 0;
while (_local1 < _local2.length) {
cro.UPGRADE.push(_local2.charAt(_local1));
_local1++;
}
cro.frameangle = Number(cro.frameangle);
cro.rideheight = Number(cro.rideheight);
return(cro);
}
function BuildCar(view, rootmc, stagemc) {
_root[rootmc][stagemc].attachMovie(view.NAME, "CAR", 2);
_root[rootmc][stagemc].attachMovie("NEON", "NEON", 1);
_root[rootmc][stagemc].CAR.frame.gotoAndStop(view._frame);
_root[rootmc][stagemc].CAR.base.gotoAndStop(view._base);
_root[rootmc][stagemc].CAR.fkit.gotoAndStop(view._fkit);
_root[rootmc][stagemc].CAR.skit.gotoAndStop(view._skit);
_root[rootmc][stagemc].CAR.bkit.gotoAndStop(view._bkit);
_root[rootmc][stagemc].CAR.light.gotoAndStop(view._light);
_root[rootmc][stagemc].CAR.hood.gotoAndStop(view._hood);
_root[rootmc][stagemc].CAR.window.gotoAndStop(view._window);
_root[rootmc][stagemc].CAR.wing.gotoAndStop(view._wing);
_root[rootmc][stagemc].CAR.decal.gotoAndStop(view._decal);
if (view._decalword != "") {
_root[rootmc][stagemc].CAR.decalword.loadMovie(view._decalword);
}
_root[rootmc][stagemc].CAR.lwheel.gotoAndStop(view._wheel);
_root[rootmc][stagemc].CAR.rwheel.gotoAndStop(view._wheel);
_root[rootmc][stagemc].CAR.interior.gotoAndStop(view._interior);
_root[rootmc][stagemc].CAR.exhaust.gotoAndStop(view._exhaust);
COLOUR = new Color(_root[rootmc][stagemc].CAR.frame);
COLOUR.setTransform(view.framecols);
COLOUR = new Color(_root[rootmc][stagemc].CAR.interior.COL);
COLOUR.setTransform(view.neoncols);
COLOUR = new Color(_root[rootmc][stagemc].CAR.fkit);
COLOUR.setTransform(view.fkitcols);
COLOUR = new Color(_root[rootmc][stagemc].CAR.skit);
COLOUR.setTransform(view.skitcols);
COLOUR = new Color(_root[rootmc][stagemc].CAR.bkit);
COLOUR.setTransform(view.bkitcols);
COLOUR = new Color(_root[rootmc][stagemc].CAR.hood);
COLOUR.setTransform(view.hoodcols);
COLOUR = new Color(_root[rootmc][stagemc].CAR.window);
COLOUR.setTransform(view.windowcols);
COLOUR = new Color(_root[rootmc][stagemc].CAR.wing);
COLOUR.setTransform(view.wingcols);
COLOUR = new Color(_root[rootmc][stagemc].CAR.decal);
COLOUR.setTransform(view.decalcols);
COLOUR = new Color(_root[rootmc][stagemc].NEON);
COLOUR.setTransform(view.decalwordcols);
COLOUR = new Color(_root[rootmc][stagemc].CAR.lwheel.COL);
COLOUR.setTransform(view.rimcols);
COLOUR = new Color(_root[rootmc][stagemc].CAR.rwheel.COL);
COLOUR.setTransform(view.rimcols);
COLOUR = new Color(_root[rootmc][stagemc].CAR.lcaliper.CALIPER);
COLOUR.setTransform(view.calcols);
COLOUR = new Color(_root[rootmc][stagemc].CAR.rcaliper.CALIPER);
COLOUR.setTransform(view.calcols);
_root[rootmc][stagemc].CAR._rotation = view.frameangle;
with (_root[rootmc][stagemc]) {
ldiff = CAR.frame._x - CAR.lwheel._x;
rdiff = CAR.frame._x - CAR.rwheel._x;
CAR.lwheel._y = CAR.lwheel._y + (Math.tan((CAR._rotation * Math.PI) / 180) * ldiff);
CAR.rwheel._y = CAR.rwheel._y + (Math.tan((CAR._rotation * Math.PI) / 180) * rdiff);
CAR.lcaliper._y = CAR.lcaliper._y + (Math.tan((CAR._rotation * Math.PI) / 180) * ldiff);
CAR.rcaliper._y = CAR.rcaliper._y + (Math.tan((CAR._rotation * Math.PI) / 180) * rdiff);
}
_root[rootmc][stagemc].CAR.window._alpha = view.windowtint;
_root[rootmc][stagemc].CAR._y = _root[rootmc][stagemc].CAR._y - view.rideheight;
_root[rootmc][stagemc].CAR.lwheel._y = _root[rootmc][stagemc].CAR.lwheel._y + view.rideheight;
_root[rootmc][stagemc].CAR.lcaliper._y = _root[rootmc][stagemc].CAR.lcaliper._y + view.rideheight;
_root[rootmc][stagemc].CAR.rwheel._y = _root[rootmc][stagemc].CAR.rwheel._y + view.rideheight;
_root[rootmc][stagemc].CAR.rcaliper._y = _root[rootmc][stagemc].CAR.rcaliper._y + view.rideheight;
_root[rootmc][stagemc].CAR.lwheel._xscale = view.lsize;
_root[rootmc][stagemc].CAR.lcaliper._xscale = view.lsize;
_root[rootmc][stagemc].CAR.rwheel._xscale = view.rsize;
_root[rootmc][stagemc].CAR.rcaliper._xscale = view.rsize;
_root[rootmc][stagemc].CAR.lwheel._yscale = view.lsize;
_root[rootmc][stagemc].CAR.lcaliper._yscale = view.lsize;
_root[rootmc][stagemc].CAR.rwheel._yscale = view.rsize;
_root[rootmc][stagemc].CAR.rcaliper._yscale = view.rsize;
diff = _root[rootmc][stagemc].CAR.rwheel._height - _root[rootmc][stagemc].CAR.lwheel._height;
_root[rootmc][stagemc].CAR.lwheel.TIRE.gotoAndStop(view.phsize);
_root[rootmc][stagemc].CAR.rwheel.TIRE.gotoAndStop(view.pwsize);
if (diff < 0) {
_root[rootmc][stagemc].CAR.rwheel._y = _root[rootmc][stagemc].CAR.rwheel._y - diff;
_root[rootmc][stagemc].CAR.rcaliper._y = _root[rootmc][stagemc].CAR.rcaliper._y - diff;
} else if (diff > 0) {
_root[rootmc][stagemc].CAR.lwheel._y = _root[rootmc][stagemc].CAR.lwheel._y + diff;
_root[rootmc][stagemc].CAR.lcaliper._y = _root[rootmc][stagemc].CAR.lcaliper._y + diff;
}
_root[rootmc][stagemc].NEON._y = _root[rootmc][stagemc].NEON._y + (_root[rootmc][stagemc].CAR.lwheel._y - _root[rootmc][stagemc].CAR.frame._y);
_root[rootmc][stagemc].NEON._x = _root[rootmc][stagemc].NEON._x - (_root[rootmc][stagemc].CAR._width / 2);
_root[rootmc][stagemc].NEON._width = _root[rootmc][stagemc].CAR._width;
_root[rootmc][stagemc].CAR.interior.wheel.gotoAndStop(view.UPGRADE[63] + 1);
_root[rootmc][stagemc].CAR.decal._alpha = 90;
if (view._wheeliebar != 2) {
_root[rootmc][stagemc].CAR.WHEELIEBAR._visible = false;
}
if (view._rollcage != 2) {
_root[rootmc][stagemc].CAR.ROLLCAGE1._visible = false;
_root[rootmc][stagemc].CAR.ROLLCAGE2._visible = false;
}
_root[rootmc][stagemc].CAR.exhaust.NOS._visible = false;
}
mk = 0;
mse = new Object();
mse.onMouseDown = function () {
mk = 1;
};
mse.onMouseUp = function () {
mk = 0;
};
Mouse.addListener(mse);
CarClasses = new Array();
CarClasses[1] = "C";
CarClasses[2] = "S";
CarClasses[3] = "R";
CarClasses[4] = "GT";
CARSCEND = 1;
tourneynum = 0;
MAXWT = 3000;
MAXFR = 20;
MAXDAM = 100;
CARS = new Array();
STATS = new Array();
STATS.push("HP");
STATS.push("TQ");
STATS.push("ENGNAME");
STATS.push("ENGWT");
STATS.push("CL");
STATS.push("CW");
STATS.push("NAME");
STATS.push("FRAWT");
STATS.push("FULLNAME");
STATS.push("FR");
STATS.push("CLASS");
STATS.push("WT");
STATS.push("LD");
STATS.push("QL");
ATTRIB = new Array();
COST = new Array();
ATTRIB.push("_frame");
COST.push(0);
ATTRIB.push("_base");
COST.push(0);
ATTRIB.push("_light");
COST.push(100);
ATTRIB.push("_decal");
COST.push(100);
ATTRIB.push("_decalword");
COST.push(100);
ATTRIB.push("_fkit");
COST.push(500);
ATTRIB.push("_skit");
COST.push(500);
ATTRIB.push("_bkit");
COST.push(500);
ATTRIB.push("_hood");
COST.push(500);
ATTRIB.push("_window");
COST.push(0);
ATTRIB.push("_wheel");
COST.push(50);
ATTRIB.push("_interior");
COST.push(1000);
ATTRIB.push("_wing");
COST.push(400);
ATTRIB.push("_exhaust");
COST.push(100);
ATTRIB.push("_rollcage");
COST.push(500);
ATTRIB.push("_wheeliebar");
COST.push(100);
COLS = new Array();
COLS.push("framecols");
COLS.push("rimcols");
COLS.push("fkitcols");
COLS.push("skitcols");
COLS.push("bkitcols");
COLS.push("wingcols");
COLS.push("hoodcols");
COLS.push("windowcols");
COLS.push("calcols");
COLS.push("neoncols");
COLS.push("decalcols");
COLS.push("decalwordcols");
PROP = new Array();
PROP.push("rideheight");
PROP.push("frameangle");
PROP.push("windowtint");
PROP.push("lsize");
PROP.push("rsize");
PROP.push("pwsize");
PROP.push("phsize");
PROP.push("engnum");
PROP.push("NOS");
PROP.push("OIL");
PROP.push("NRES");
TUNE = new Array();
TUNE.push("GEAR1");
TUNE.push("GEAR2");
TUNE.push("GEAR3");
TUNE.push("GEAR4");
TUNE.push("GEAR5");
TUNE.push("GEAR6");
TUNE.push("BOOST");
TUNE.push("AIRINTAKE");
TUNE.push("CAMADJUST");
Frame 6
CIVIC = new Object();
CIVIC.CLASS = 1;
CIVIC.FULLNAME = "Honda\u00AE Civic\u2122";
CIVIC.FRAWT = 1000;
CIVIC.FR = 12;
CIVIC.CW = 21000;
CIVIC.NAME = "CIVIC";
CIVIC.NAME = "CIVIC";
_root.attachMovie(CIVIC.NAME, "carTemp", 1);
_root.carTemp._x = -400;
CIVIC.MAX_BKIT = _root.carTemp.bkit._totalframes;
CIVIC.MAX_DECAL = _root.carTemp.decal._totalframes;
CIVIC.MAX_FKIT = _root.carTemp.fkit._totalframes;
CIVIC.MAX_HOOD = _root.carTemp.hood._totalframes;
CIVIC.MAX_INTERIOR = _root.carTemp.interior._totalframes;
CIVIC.MAX_LIGHT = _root.carTemp.light._totalframes;
CIVIC.MAX_SKIT = _root.carTemp.skit._totalframes;
CIVIC.MAX_WING = _root.carTemp.wing._totalframes;
CIVIC.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
MAX_EXHAUST = _root.carTemp.exhaust._totalframes;
CARS.push("CIVIC");
Frame 7
CIVICHB = new Object();
CIVICHB.CLASS = 1;
CIVICHB.FULLNAME = "Honda\u00AE Civic\u2122";
CIVICHB.FRAWT = 1000;
CIVICHB.FR = 12;
CIVICHB.CW = 21000;
CIVICHB.NAME = "CIVICHB";
CIVICHB.NAME = "CIVICHB";
_root.attachMovie(CIVICHB.NAME, "carTemp", 1);
_root.carTemp._x = -400;
CIVICHB.MAX_BKIT = _root.carTemp.bkit._totalframes;
CIVICHB.MAX_DECAL = _root.carTemp.decal._totalframes;
CIVICHB.MAX_FKIT = _root.carTemp.fkit._totalframes;
CIVICHB.MAX_HOOD = _root.carTemp.hood._totalframes;
CIVICHB.MAX_INTERIOR = _root.carTemp.interior._totalframes;
CIVICHB.MAX_LIGHT = _root.carTemp.light._totalframes;
CIVICHB.MAX_SKIT = _root.carTemp.skit._totalframes;
CIVICHB.MAX_WING = _root.carTemp.wing._totalframes;
CIVICHB.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
MAX_EXHAUST = _root.carTemp.exhaust._totalframes;
CARS.push("CIVICHB");
Frame 8
SENTRA = new Object();
SENTRA.CLASS = 1;
SENTRA.FULLNAME = "Nissan\u00AE Sentra\u2122";
SENTRA.FRAWT = 1000;
SENTRA.FR = 12;
SENTRA.CW = 17000;
SENTRA.NAME = "SENTRA";
SENTRA.NAME = "SENTRA";
_root.attachMovie(SENTRA.NAME, "carTemp", 1);
_root.carTemp._x = -400;
SENTRA.MAX_BKIT = _root.carTemp.bkit._totalframes;
SENTRA.MAX_DECAL = _root.carTemp.decal._totalframes;
SENTRA.MAX_FKIT = _root.carTemp.fkit._totalframes;
SENTRA.MAX_HOOD = _root.carTemp.hood._totalframes;
SENTRA.MAX_INTERIOR = _root.carTemp.interior._totalframes;
SENTRA.MAX_LIGHT = _root.carTemp.light._totalframes;
SENTRA.MAX_SKIT = _root.carTemp.skit._totalframes;
SENTRA.MAX_WING = _root.carTemp.wing._totalframes;
SENTRA.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
MAX_EXHAUST = _root.carTemp.exhaust._totalframes;
CARS.push("SENTRA");
Frame 9
PROTEGE = new Object();
PROTEGE.CLASS = 1;
PROTEGE.FULLNAME = "Mazda\u00AE Protege\u2122";
PROTEGE.FRAWT = 1000;
PROTEGE.FR = 12;
PROTEGE.CW = 17000;
PROTEGE.NAME = "PROTEGE";
PROTEGE.NAME = "PROTEGE";
_root.attachMovie(PROTEGE.NAME, "carTemp", 1);
_root.carTemp._x = -400;
PROTEGE.MAX_BKIT = _root.carTemp.bkit._totalframes;
PROTEGE.MAX_DECAL = _root.carTemp.decal._totalframes;
PROTEGE.MAX_FKIT = _root.carTemp.fkit._totalframes;
PROTEGE.MAX_HOOD = _root.carTemp.hood._totalframes;
PROTEGE.MAX_INTERIOR = _root.carTemp.interior._totalframes;
PROTEGE.MAX_LIGHT = _root.carTemp.light._totalframes;
PROTEGE.MAX_SKIT = _root.carTemp.skit._totalframes;
PROTEGE.MAX_WING = _root.carTemp.wing._totalframes;
PROTEGE.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
MAX_EXHAUST = _root.carTemp.exhaust._totalframes;
CARS.push("PROTEGE");
Frame 10
CRX = new Object();
CRX.CLASS = 1;
CRX.FULLNAME = "Honda\u00AE CRX\u2122";
CRX.FRAWT = 900;
CRX.FR = 15;
CRX.CW = 18000;
CRX.NAME = "CRX";
_root.attachMovie(CRX.NAME, "carTemp", 1);
_root.carTemp._x = -400;
CRX.MAX_BKIT = _root.carTemp.bkit._totalframes;
CRX.MAX_DECAL = _root.carTemp.decal._totalframes;
CRX.MAX_FKIT = _root.carTemp.fkit._totalframes;
CRX.MAX_HOOD = _root.carTemp.hood._totalframes;
CRX.MAX_INTERIOR = _root.carTemp.interior._totalframes;
CRX.MAX_LIGHT = _root.carTemp.light._totalframes;
CRX.MAX_SKIT = _root.carTemp.skit._totalframes;
CRX.MAX_WING = _root.carTemp.wing._totalframes;
CRX.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("CRX");
Frame 11
ACCORD = new Object();
ACCORD.CLASS = 1;
ACCORD.FULLNAME = "Honda\u00AE Accord\u2122";
ACCORD.FRAWT = 1000;
ACCORD.FR = 10;
ACCORD.CW = 29000;
ACCORD.NAME = "ACCORD";
ACCORD.NAME = "ACCORD";
_root.attachMovie(ACCORD.NAME, "carTemp", 1);
_root.carTemp._x = -400;
ACCORD.MAX_BKIT = _root.carTemp.bkit._totalframes;
ACCORD.MAX_DECAL = _root.carTemp.decal._totalframes;
ACCORD.MAX_FKIT = _root.carTemp.fkit._totalframes;
ACCORD.MAX_HOOD = _root.carTemp.hood._totalframes;
ACCORD.MAX_INTERIOR = _root.carTemp.interior._totalframes;
ACCORD.MAX_LIGHT = _root.carTemp.light._totalframes;
ACCORD.MAX_SKIT = _root.carTemp.skit._totalframes;
ACCORD.MAX_WING = _root.carTemp.wing._totalframes;
ACCORD.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("ACCORD");
Frame 12
CELICA = new Object();
CELICA.CLASS = 1;
CELICA.FULLNAME = "Toyota\u00AE Celica\u2122";
CELICA.FRAWT = 900;
CELICA.FR = 9;
CELICA.CW = 24000;
CELICA.NAME = "CELICA";
CELICA.NAME = "CELICA";
_root.attachMovie(CELICA.NAME, "carTemp", 1);
_root.carTemp._x = -400;
CELICA.MAX_BKIT = _root.carTemp.bkit._totalframes;
CELICA.MAX_DECAL = _root.carTemp.decal._totalframes;
CELICA.MAX_FKIT = _root.carTemp.fkit._totalframes;
CELICA.MAX_HOOD = _root.carTemp.hood._totalframes;
CELICA.MAX_INTERIOR = _root.carTemp.interior._totalframes;
CELICA.MAX_LIGHT = _root.carTemp.light._totalframes;
CELICA.MAX_SKIT = _root.carTemp.skit._totalframes;
CELICA.MAX_WING = _root.carTemp.wing._totalframes;
CELICA.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("CELICA");
Frame 13
MR2 = new Object();
MR2.CLASS = 1;
MR2.FULLNAME = "Toyota\u00AE MR2\u2122";
MR2.FRAWT = 1000;
MR2.FR = 9;
MR2.CW = 24000;
MR2.NAME = "MR2";
MR2.NAME = "MR2";
_root.attachMovie(MR2.NAME, "carTemp", 1);
_root.carTemp._x = -400;
MR2.MAX_BKIT = _root.carTemp.bkit._totalframes;
MR2.MAX_DECAL = _root.carTemp.decal._totalframes;
MR2.MAX_FKIT = _root.carTemp.fkit._totalframes;
MR2.MAX_HOOD = _root.carTemp.hood._totalframes;
MR2.MAX_INTERIOR = _root.carTemp.interior._totalframes;
MR2.MAX_LIGHT = _root.carTemp.light._totalframes;
MR2.MAX_SKIT = _root.carTemp.skit._totalframes;
MR2.MAX_WING = _root.carTemp.wing._totalframes;
MR2.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("MR2");
Frame 14
JETTA = new Object();
JETTA.CLASS = 1;
JETTA.FULLNAME = "Volkswagen\u00AE Jetta\u2122";
JETTA.FRAWT = 1100;
JETTA.FR = 11;
JETTA.CW = 26000;
JETTA.NAME = "JETTA";
JETTA.NAME = "JETTA";
_root.attachMovie(JETTA.NAME, "carTemp", 1);
_root.carTemp._x = -400;
JETTA.MAX_BKIT = _root.carTemp.bkit._totalframes;
JETTA.MAX_DECAL = _root.carTemp.decal._totalframes;
JETTA.MAX_FKIT = _root.carTemp.fkit._totalframes;
JETTA.MAX_HOOD = _root.carTemp.hood._totalframes;
JETTA.MAX_INTERIOR = _root.carTemp.interior._totalframes;
JETTA.MAX_LIGHT = _root.carTemp.light._totalframes;
JETTA.MAX_SKIT = _root.carTemp.skit._totalframes;
JETTA.MAX_WING = _root.carTemp.wing._totalframes;
JETTA.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("JETTA");
Frame 15
PRELUDE = new Object();
PRELUDE.CLASS = 1;
PRELUDE.FULLNAME = "Honda\u00AE Prelude\u2122";
PRELUDE.FRAWT = 1000;
PRELUDE.FR = 10;
PRELUDE.CW = 20000;
PRELUDE.NAME = "PRELUDE";
PRELUDE.NAME = "PRELUDE";
_root.attachMovie(PRELUDE.NAME, "carTemp", 1);
_root.carTemp._x = -400;
PRELUDE.MAX_BKIT = _root.carTemp.bkit._totalframes;
PRELUDE.MAX_DECAL = _root.carTemp.decal._totalframes;
PRELUDE.MAX_FKIT = _root.carTemp.fkit._totalframes;
PRELUDE.MAX_HOOD = _root.carTemp.hood._totalframes;
PRELUDE.MAX_INTERIOR = _root.carTemp.interior._totalframes;
PRELUDE.MAX_LIGHT = _root.carTemp.light._totalframes;
PRELUDE.MAX_SKIT = _root.carTemp.skit._totalframes;
PRELUDE.MAX_WING = _root.carTemp.wing._totalframes;
PRELUDE.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("PRELUDE");
Frame 16
INTEGRA = new Object();
INTEGRA.CLASS = 1;
INTEGRA.FULLNAME = "Acura\u00AE Integra\u2122";
INTEGRA.FRAWT = 1000;
INTEGRA.FR = 10;
INTEGRA.CW = 22000;
INTEGRA.NAME = "INTEGRA";
INTEGRA.NAME = "INTEGRA";
_root.attachMovie(INTEGRA.NAME, "carTemp", 1);
_root.carTemp._x = -400;
INTEGRA.MAX_BKIT = _root.carTemp.bkit._totalframes;
INTEGRA.MAX_DECAL = _root.carTemp.decal._totalframes;
INTEGRA.MAX_FKIT = _root.carTemp.fkit._totalframes;
INTEGRA.MAX_HOOD = _root.carTemp.hood._totalframes;
INTEGRA.MAX_INTERIOR = _root.carTemp.interior._totalframes;
INTEGRA.MAX_LIGHT = _root.carTemp.light._totalframes;
INTEGRA.MAX_SKIT = _root.carTemp.skit._totalframes;
INTEGRA.MAX_WING = _root.carTemp.wing._totalframes;
INTEGRA.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("INTEGRA");
Frame 17
S2000 = new Object();
S2000.CLASS = 1;
S2000.FULLNAME = "Honda\u00AE S2000\u2122";
S2000.FRAWT = 1000;
S2000.FR = 10;
S2000.CW = 22000;
S2000.NAME = "S2000";
S2000.NAME = "S2000";
_root.attachMovie(S2000.NAME, "carTemp", 1);
_root.carTemp._x = -400;
S2000.MAX_BKIT = _root.carTemp.bkit._totalframes;
S2000.MAX_DECAL = _root.carTemp.decal._totalframes;
S2000.MAX_FKIT = _root.carTemp.fkit._totalframes;
S2000.MAX_HOOD = _root.carTemp.hood._totalframes;
S2000.MAX_INTERIOR = _root.carTemp.interior._totalframes;
S2000.MAX_LIGHT = _root.carTemp.light._totalframes;
S2000.MAX_SKIT = _root.carTemp.skit._totalframes;
S2000.MAX_WING = _root.carTemp.wing._totalframes;
S2000.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("S2000");
Frame 18
GOLF = new Object();
GOLF.CLASS = 1;
GOLF.FULLNAME = "Volkswagen\u00AE GTi\u2122";
GOLF.FRAWT = 1000;
GOLF.FR = 12;
GOLF.CW = 20000;
GOLF.NAME = "GOLF";
GOLF.NAME = "GOLF";
_root.attachMovie(GOLF.NAME, "carTemp", 1);
_root.carTemp._x = -400;
GOLF.MAX_BKIT = _root.carTemp.bkit._totalframes;
GOLF.MAX_DECAL = _root.carTemp.decal._totalframes;
GOLF.MAX_FKIT = _root.carTemp.fkit._totalframes;
GOLF.MAX_HOOD = _root.carTemp.hood._totalframes;
GOLF.MAX_INTERIOR = _root.carTemp.interior._totalframes;
GOLF.MAX_LIGHT = _root.carTemp.light._totalframes;
GOLF.MAX_SKIT = _root.carTemp.skit._totalframes;
GOLF.MAX_WING = _root.carTemp.wing._totalframes;
GOLF.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("GOLF");
Frame 19
RSX = new Object();
RSX.CLASS = 1;
RSX.FULLNAME = "Acura\u00AE RSX\u2122";
RSX.FRAWT = 1000;
RSX.FR = 10;
RSX.CW = 26000;
RSX.NAME = "RSX";
RSX.NAME = "RSX";
_root.attachMovie(RSX.NAME, "carTemp", 1);
_root.carTemp._x = -400;
RSX.MAX_BKIT = _root.carTemp.bkit._totalframes;
RSX.MAX_DECAL = _root.carTemp.decal._totalframes;
RSX.MAX_FKIT = _root.carTemp.fkit._totalframes;
RSX.MAX_HOOD = _root.carTemp.hood._totalframes;
RSX.MAX_INTERIOR = _root.carTemp.interior._totalframes;
RSX.MAX_LIGHT = _root.carTemp.light._totalframes;
RSX.MAX_SKIT = _root.carTemp.skit._totalframes;
RSX.MAX_WING = _root.carTemp.wing._totalframes;
RSX.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("RSX");
Frame 20
TSX = new Object();
TSX.CLASS = 1;
TSX.FULLNAME = "Acura\u00AE TSX\u2122";
TSX.FRAWT = 1000;
TSX.FR = 10;
TSX.CW = 26000;
TSX.NAME = "TSX";
TSX.NAME = "TSX";
_root.attachMovie(TSX.NAME, "carTemp", 1);
_root.carTemp._x = -400;
TSX.MAX_BKIT = _root.carTemp.bkit._totalframes;
TSX.MAX_DECAL = _root.carTemp.decal._totalframes;
TSX.MAX_FKIT = _root.carTemp.fkit._totalframes;
TSX.MAX_HOOD = _root.carTemp.hood._totalframes;
TSX.MAX_INTERIOR = _root.carTemp.interior._totalframes;
TSX.MAX_LIGHT = _root.carTemp.light._totalframes;
TSX.MAX_SKIT = _root.carTemp.skit._totalframes;
TSX.MAX_WING = _root.carTemp.wing._totalframes;
TSX.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("TSX");
Frame 21
SX24092 = new Object();
SX24092.CLASS = 1;
SX24092.FULLNAME = "Nissan\u00AE 240SX\u2122";
SX24092.FRAWT = 1000;
SX24092.FR = 10;
SX24092.CW = 24000;
SX24092.NAME = "SX24092";
SX24092.NAME = "SX24092";
_root.attachMovie(SX24092.NAME, "carTemp", 1);
_root.carTemp._x = -400;
SX24092.MAX_BKIT = _root.carTemp.bkit._totalframes;
SX24092.MAX_DECAL = _root.carTemp.decal._totalframes;
SX24092.MAX_FKIT = _root.carTemp.fkit._totalframes;
SX24092.MAX_HOOD = _root.carTemp.hood._totalframes;
SX24092.MAX_INTERIOR = _root.carTemp.interior._totalframes;
SX24092.MAX_LIGHT = _root.carTemp.light._totalframes;
SX24092.MAX_SKIT = _root.carTemp.skit._totalframes;
SX24092.MAX_WING = _root.carTemp.wing._totalframes;
SX24092.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("SX24092");
Frame 22
SX240 = new Object();
SX240.CLASS = 1;
SX240.FULLNAME = "Nissan\u00AE 240SX\u2122";
SX240.FRAWT = 1000;
SX240.FR = 10;
SX240.CW = 24000;
SX240.NAME = "SX240";
SX240.NAME = "SX240";
_root.attachMovie(SX240.NAME, "carTemp", 1);
_root.carTemp._x = -400;
SX240.MAX_BKIT = _root.carTemp.bkit._totalframes;
SX240.MAX_DECAL = _root.carTemp.decal._totalframes;
SX240.MAX_FKIT = _root.carTemp.fkit._totalframes;
SX240.MAX_HOOD = _root.carTemp.hood._totalframes;
SX240.MAX_INTERIOR = _root.carTemp.interior._totalframes;
SX240.MAX_LIGHT = _root.carTemp.light._totalframes;
SX240.MAX_SKIT = _root.carTemp.skit._totalframes;
SX240.MAX_WING = _root.carTemp.wing._totalframes;
SX240.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("SX240");
Frame 23
IMPREZAWRX = new Object();
IMPREZAWRX.CLASS = 2;
IMPREZAWRX.FULLNAME = "Subaru\u00AE Impreza WRX\u2122";
IMPREZAWRX.FRAWT = 1000;
IMPREZAWRX.FR = 10;
IMPREZAWRX.CW = 30000;
IMPREZAWRX.NAME = "IMPREZAWRX";
IMPREZAWRX.NAME = "IMPREZAWRX";
_root.attachMovie(IMPREZAWRX.NAME, "carTemp", 1);
_root.carTemp._x = -400;
IMPREZAWRX.MAX_BKIT = _root.carTemp.bkit._totalframes;
IMPREZAWRX.MAX_DECAL = _root.carTemp.decal._totalframes;
IMPREZAWRX.MAX_FKIT = _root.carTemp.fkit._totalframes;
IMPREZAWRX.MAX_HOOD = _root.carTemp.hood._totalframes;
IMPREZAWRX.MAX_INTERIOR = _root.carTemp.interior._totalframes;
IMPREZAWRX.MAX_LIGHT = _root.carTemp.light._totalframes;
IMPREZAWRX.MAX_SKIT = _root.carTemp.skit._totalframes;
IMPREZAWRX.MAX_WING = _root.carTemp.wing._totalframes;
IMPREZAWRX.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("IMPREZAWRX");
Frame 24
IMPREZASTI = new Object();
IMPREZASTI.CLASS = 2;
IMPREZASTI.FULLNAME = "Subaru\u00AE Impreza WRX STI\u2122";
IMPREZASTI.FRAWT = 1000;
IMPREZASTI.FR = 10;
IMPREZASTI.CW = 30000;
IMPREZASTI.NAME = "IMPREZASTI";
IMPREZASTI.NAME = "IMPREZASTI";
_root.attachMovie(IMPREZASTI.NAME, "carTemp", 1);
_root.carTemp._x = -400;
IMPREZASTI.MAX_BKIT = _root.carTemp.bkit._totalframes;
IMPREZASTI.MAX_DECAL = _root.carTemp.decal._totalframes;
IMPREZASTI.MAX_FKIT = _root.carTemp.fkit._totalframes;
IMPREZASTI.MAX_HOOD = _root.carTemp.hood._totalframes;
IMPREZASTI.MAX_INTERIOR = _root.carTemp.interior._totalframes;
IMPREZASTI.MAX_LIGHT = _root.carTemp.light._totalframes;
IMPREZASTI.MAX_SKIT = _root.carTemp.skit._totalframes;
IMPREZASTI.MAX_WING = _root.carTemp.wing._totalframes;
IMPREZASTI.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("IMPREZASTI");
Frame 25
ECLIPSE94 = new Object();
ECLIPSE94.CLASS = 2;
ECLIPSE94.FULLNAME = "Mitsubishi\u00AE Eclipse\u2122";
ECLIPSE94.FRAWT = 1000;
ECLIPSE94.FR = 9;
ECLIPSE94.CW = 24000;
ECLIPSE94.NAME = "ECLIPSE94";
ECLIPSE94.NAME = "ECLIPSE94";
_root.attachMovie(ECLIPSE94.NAME, "carTemp", 1);
_root.carTemp._x = -400;
ECLIPSE94.MAX_BKIT = _root.carTemp.bkit._totalframes;
ECLIPSE94.MAX_DECAL = _root.carTemp.decal._totalframes;
ECLIPSE94.MAX_FKIT = _root.carTemp.fkit._totalframes;
ECLIPSE94.MAX_HOOD = _root.carTemp.hood._totalframes;
ECLIPSE94.MAX_INTERIOR = _root.carTemp.interior._totalframes;
ECLIPSE94.MAX_LIGHT = _root.carTemp.light._totalframes;
ECLIPSE94.MAX_SKIT = _root.carTemp.skit._totalframes;
ECLIPSE94.MAX_WING = _root.carTemp.wing._totalframes;
ECLIPSE94.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("ECLIPSE94");
Frame 26
ECLIPSE98 = new Object();
ECLIPSE98.CLASS = 2;
ECLIPSE98.FULLNAME = "Mitsubishi\u00AE Eclipse\u2122";
ECLIPSE98.FRAWT = 1000;
ECLIPSE98.FR = 9;
ECLIPSE98.CW = 26000;
ECLIPSE98.NAME = "ECLIPSE98";
ECLIPSE98.NAME = "ECLIPSE98";
_root.attachMovie(ECLIPSE98.NAME, "carTemp", 1);
_root.carTemp._x = -400;
ECLIPSE98.MAX_BKIT = _root.carTemp.bkit._totalframes;
ECLIPSE98.MAX_DECAL = _root.carTemp.decal._totalframes;
ECLIPSE98.MAX_FKIT = _root.carTemp.fkit._totalframes;
ECLIPSE98.MAX_HOOD = _root.carTemp.hood._totalframes;
ECLIPSE98.MAX_INTERIOR = _root.carTemp.interior._totalframes;
ECLIPSE98.MAX_LIGHT = _root.carTemp.light._totalframes;
ECLIPSE98.MAX_SKIT = _root.carTemp.skit._totalframes;
ECLIPSE98.MAX_WING = _root.carTemp.wing._totalframes;
ECLIPSE98.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("ECLIPSE98");
Frame 27
LANCER8 = new Object();
LANCER8.CLASS = 2;
LANCER8.FULLNAME = "Mitsubishi\u00AE Lancer Evolution VIII\u2122";
LANCER8.FRAWT = 1000;
LANCER8.FR = 9;
LANCER8.CW = 26000;
LANCER8.NAME = "LANCER8";
LANCER8.NAME = "LANCER8";
_root.attachMovie(LANCER8.NAME, "carTemp", 1);
_root.carTemp._x = -400;
LANCER8.MAX_BKIT = _root.carTemp.bkit._totalframes;
LANCER8.MAX_DECAL = _root.carTemp.decal._totalframes;
LANCER8.MAX_FKIT = _root.carTemp.fkit._totalframes;
LANCER8.MAX_HOOD = _root.carTemp.hood._totalframes;
LANCER8.MAX_INTERIOR = _root.carTemp.interior._totalframes;
LANCER8.MAX_LIGHT = _root.carTemp.light._totalframes;
LANCER8.MAX_SKIT = _root.carTemp.skit._totalframes;
LANCER8.MAX_WING = _root.carTemp.wing._totalframes;
LANCER8.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("LANCER8");
Frame 28
MUSTANG = new Object();
MUSTANG.CLASS = 2;
MUSTANG.FULLNAME = "Ford\u00AE Mustang\u2122";
MUSTANG.FRAWT = 1200;
MUSTANG.FR = 10;
MUSTANG.CW = 39000;
MUSTANG.NAME = "MUSTANG";
MUSTANG.NAME = "MUSTANG";
_root.attachMovie(MUSTANG.NAME, "carTemp", 1);
_root.carTemp._x = -400;
MUSTANG.MAX_BKIT = _root.carTemp.bkit._totalframes;
MUSTANG.MAX_DECAL = _root.carTemp.decal._totalframes;
MUSTANG.MAX_FKIT = _root.carTemp.fkit._totalframes;
MUSTANG.MAX_HOOD = _root.carTemp.hood._totalframes;
MUSTANG.MAX_INTERIOR = _root.carTemp.interior._totalframes;
MUSTANG.MAX_LIGHT = _root.carTemp.light._totalframes;
MUSTANG.MAX_SKIT = _root.carTemp.skit._totalframes;
MUSTANG.MAX_WING = _root.carTemp.wing._totalframes;
MUSTANG.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("MUSTANG");
Frame 29
CAMARO91 = new Object();
CAMARO91.CLASS = 2;
CAMARO91.FULLNAME = "Chevrolet\u00AE Camaro\u2122";
CAMARO91.FRAWT = 1200;
CAMARO91.FR = 10;
CAMARO91.CW = 39000;
CAMARO91.NAME = "CAMARO91";
CAMARO91.NAME = "CAMARO91";
_root.attachMovie(CAMARO91.NAME, "carTemp", 1);
_root.carTemp._x = -400;
CAMARO91.MAX_BKIT = _root.carTemp.bkit._totalframes;
CAMARO91.MAX_DECAL = _root.carTemp.decal._totalframes;
CAMARO91.MAX_FKIT = _root.carTemp.fkit._totalframes;
CAMARO91.MAX_HOOD = _root.carTemp.hood._totalframes;
CAMARO91.MAX_INTERIOR = _root.carTemp.interior._totalframes;
CAMARO91.MAX_LIGHT = _root.carTemp.light._totalframes;
CAMARO91.MAX_SKIT = _root.carTemp.skit._totalframes;
CAMARO91.MAX_WING = _root.carTemp.wing._totalframes;
CAMARO91.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("CAMARO91");
Frame 30
N300ZX = new Object();
N300ZX.CLASS = 2;
N300ZX.FULLNAME = "Nissan\u00AE 300ZX\u2122";
N300ZX.FRAWT = 1100;
N300ZX.FR = 8;
N300ZX.CW = 23000;
N300ZX.NAME = "N300ZX";
_root.attachMovie(N300ZX.NAME, "carTemp", 1);
_root.carTemp._x = -400;
N300ZX.MAX_BKIT = _root.carTemp.bkit._totalframes;
N300ZX.MAX_DECAL = _root.carTemp.decal._totalframes;
N300ZX.MAX_FKIT = _root.carTemp.fkit._totalframes;
N300ZX.MAX_HOOD = _root.carTemp.hood._totalframes;
N300ZX.MAX_INTERIOR = _root.carTemp.interior._totalframes;
N300ZX.MAX_LIGHT = _root.carTemp.light._totalframes;
N300ZX.MAX_SKIT = _root.carTemp.skit._totalframes;
N300ZX.MAX_WING = _root.carTemp.wing._totalframes;
N300ZX.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("N300ZX");
Frame 31
RX7 = new Object();
RX7.CLASS = 2;
RX7.FULLNAME = "Mazda\u00AE RX7\u2122";
RX7.FRAWT = 1100;
RX7.FR = 8;
RX7.CW = 23000;
RX7.NAME = "RX7";
_root.attachMovie(RX7.NAME, "carTemp", 1);
_root.carTemp._x = -400;
RX7.MAX_BKIT = _root.carTemp.bkit._totalframes;
RX7.MAX_DECAL = _root.carTemp.decal._totalframes;
RX7.MAX_FKIT = _root.carTemp.fkit._totalframes;
RX7.MAX_HOOD = _root.carTemp.hood._totalframes;
RX7.MAX_INTERIOR = _root.carTemp.interior._totalframes;
RX7.MAX_LIGHT = _root.carTemp.light._totalframes;
RX7.MAX_SKIT = _root.carTemp.skit._totalframes;
RX7.MAX_WING = _root.carTemp.wing._totalframes;
RX7.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("RX7");
Frame 32
IS300 = new Object();
IS300.CLASS = 2;
IS300.FULLNAME = "Lexus\u00AE IS300\u2122";
IS300.FRAWT = 1100;
IS300.FR = 8;
IS300.CW = 35000;
IS300.NAME = "IS300";
_root.attachMovie(IS300.NAME, "carTemp", 1);
_root.carTemp._x = -400;
IS300.MAX_BKIT = _root.carTemp.bkit._totalframes;
IS300.MAX_DECAL = _root.carTemp.decal._totalframes;
IS300.MAX_FKIT = _root.carTemp.fkit._totalframes;
IS300.MAX_HOOD = _root.carTemp.hood._totalframes;
IS300.MAX_INTERIOR = _root.carTemp.interior._totalframes;
IS300.MAX_LIGHT = _root.carTemp.light._totalframes;
IS300.MAX_SKIT = _root.carTemp.skit._totalframes;
IS300.MAX_WING = _root.carTemp.wing._totalframes;
IS300.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("IS300");
Frame 33
STEALTH = new Object();
STEALTH.CLASS = 2;
STEALTH.FULLNAME = "Dodge\u00AE Stealth\u2122";
STEALTH.FRAWT = 1050;
STEALTH.FR = 9;
STEALTH.CW = 42000;
STEALTH.NAME = "STEALTH";
_root.attachMovie(STEALTH.NAME, "carTemp", 1);
_root.carTemp._x = -400;
STEALTH.MAX_BKIT = _root.carTemp.bkit._totalframes;
STEALTH.MAX_DECAL = _root.carTemp.decal._totalframes;
STEALTH.MAX_FKIT = _root.carTemp.fkit._totalframes;
STEALTH.MAX_HOOD = _root.carTemp.hood._totalframes;
STEALTH.MAX_INTERIOR = _root.carTemp.interior._totalframes;
STEALTH.MAX_LIGHT = _root.carTemp.light._totalframes;
STEALTH.MAX_SKIT = _root.carTemp.skit._totalframes;
STEALTH.MAX_WING = _root.carTemp.wing._totalframes;
STEALTH.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("STEALTH");
Frame 34
GT3000 = new Object();
GT3000.CLASS = 2;
GT3000.FULLNAME = "Mitsubishi\u00AE 3000GT\u2122";
GT3000.FRAWT = 950;
GT3000.FR = 9;
GT3000.CW = 36000;
GT3000.NAME = "GT3000";
_root.attachMovie(GT3000.NAME, "carTemp", 1);
_root.carTemp._x = -400;
GT3000.MAX_BKIT = _root.carTemp.bkit._totalframes;
GT3000.MAX_DECAL = _root.carTemp.decal._totalframes;
GT3000.MAX_FKIT = _root.carTemp.fkit._totalframes;
GT3000.MAX_HOOD = _root.carTemp.hood._totalframes;
GT3000.MAX_INTERIOR = _root.carTemp.interior._totalframes;
GT3000.MAX_LIGHT = _root.carTemp.light._totalframes;
GT3000.MAX_SKIT = _root.carTemp.skit._totalframes;
GT3000.MAX_WING = _root.carTemp.wing._totalframes;
GT3000.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("GT3000");
Frame 35
S4 = new Object();
S4.CLASS = 2;
S4.FULLNAME = "Audi\u00AE RS4\u2122";
S4.FRAWT = 1300;
S4.FR = 9;
S4.CW = 50000;
S4.NAME = "S4";
S4.NAME = "S4";
_root.attachMovie(S4.NAME, "carTemp", 1);
_root.carTemp._x = -400;
S4.MAX_BKIT = _root.carTemp.bkit._totalframes;
S4.MAX_DECAL = _root.carTemp.decal._totalframes;
S4.MAX_FKIT = _root.carTemp.fkit._totalframes;
S4.MAX_HOOD = _root.carTemp.hood._totalframes;
S4.MAX_INTERIOR = _root.carTemp.interior._totalframes;
S4.MAX_LIGHT = _root.carTemp.light._totalframes;
S4.MAX_SKIT = _root.carTemp.skit._totalframes;
S4.MAX_WING = _root.carTemp.wing._totalframes;
S4.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("S4");
Frame 36
CAMARO = new Object();
CAMARO.CLASS = 2;
CAMARO.FULLNAME = "Chevrolet\u00AE Camaro\u2122";
CAMARO.FRAWT = 1700;
CAMARO.FR = 13;
CAMARO.CW = 30000;
CAMARO.NAME = "CAMARO";
_root.attachMovie(CAMARO.NAME, "carTemp", 1);
_root.carTemp._x = -400;
CAMARO.MAX_BKIT = _root.carTemp.bkit._totalframes;
CAMARO.MAX_DECAL = _root.carTemp.decal._totalframes;
CAMARO.MAX_FKIT = _root.carTemp.fkit._totalframes;
CAMARO.MAX_HOOD = _root.carTemp.hood._totalframes;
CAMARO.MAX_INTERIOR = _root.carTemp.interior._totalframes;
CAMARO.MAX_LIGHT = _root.carTemp.light._totalframes;
CAMARO.MAX_SKIT = _root.carTemp.skit._totalframes;
CAMARO.MAX_WING = _root.carTemp.wing._totalframes;
CAMARO.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("CAMARO");
Frame 37
SUPRA = new Object();
SUPRA.CLASS = 2;
SUPRA.FULLNAME = "Toyota\u00AE Supra\u2122";
SUPRA.FRAWT = 1000;
SUPRA.FR = 9;
SUPRA.CW = 30000;
SUPRA.NAME = "SUPRA";
_root.attachMovie(SUPRA.NAME, "carTemp", 1);
_root.carTemp._x = -400;
SUPRA.MAX_BKIT = _root.carTemp.bkit._totalframes;
SUPRA.MAX_DECAL = _root.carTemp.decal._totalframes;
SUPRA.MAX_FKIT = _root.carTemp.fkit._totalframes;
SUPRA.MAX_HOOD = _root.carTemp.hood._totalframes;
SUPRA.MAX_INTERIOR = _root.carTemp.interior._totalframes;
SUPRA.MAX_LIGHT = _root.carTemp.light._totalframes;
SUPRA.MAX_SKIT = _root.carTemp.skit._totalframes;
SUPRA.MAX_WING = _root.carTemp.wing._totalframes;
SUPRA.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("SUPRA");
Frame 38
SKYLINER33 = new Object();
SKYLINER33.CLASS = 2;
SKYLINER33.FULLNAME = "Nissan\u00AE Skyline R33\u2122";
SKYLINER33.FRAWT = 1100;
SKYLINER33.FR = 8;
SKYLINER33.CW = 30000;
SKYLINER33.NAME = "SKYLINER33";
_root.attachMovie(SKYLINER33.NAME, "carTemp", 1);
_root.carTemp._x = -400;
SKYLINER33.MAX_BKIT = _root.carTemp.bkit._totalframes;
SKYLINER33.MAX_DECAL = _root.carTemp.decal._totalframes;
SKYLINER33.MAX_FKIT = _root.carTemp.fkit._totalframes;
SKYLINER33.MAX_HOOD = _root.carTemp.hood._totalframes;
SKYLINER33.MAX_INTERIOR = _root.carTemp.interior._totalframes;
SKYLINER33.MAX_LIGHT = _root.carTemp.light._totalframes;
SKYLINER33.MAX_SKIT = _root.carTemp.skit._totalframes;
SKYLINER33.MAX_WING = _root.carTemp.wing._totalframes;
SKYLINER33.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("SKYLINER33");
Frame 39
MUSTANG05 = new Object();
MUSTANG05.CLASS = 2;
MUSTANG05.FULLNAME = "Ford\u00AE Mustang GT\u2122";
MUSTANG05.FRAWT = 1200;
MUSTANG05.FR = 10;
MUSTANG05.CW = 39000;
MUSTANG05.NAME = "MUSTANG05";
MUSTANG05.NAME = "MUSTANG05";
_root.attachMovie(MUSTANG05.NAME, "carTemp", 1);
_root.carTemp._x = -400;
MUSTANG05.MAX_BKIT = _root.carTemp.bkit._totalframes;
MUSTANG05.MAX_DECAL = _root.carTemp.decal._totalframes;
MUSTANG05.MAX_FKIT = _root.carTemp.fkit._totalframes;
MUSTANG05.MAX_HOOD = _root.carTemp.hood._totalframes;
MUSTANG05.MAX_INTERIOR = _root.carTemp.interior._totalframes;
MUSTANG05.MAX_LIGHT = _root.carTemp.light._totalframes;
MUSTANG05.MAX_SKIT = _root.carTemp.skit._totalframes;
MUSTANG05.MAX_WING = _root.carTemp.wing._totalframes;
MUSTANG05.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("MUSTANG05");
Frame 40
CUDA = new Object();
CUDA.CLASS = 2;
CUDA.FULLNAME = "Plymouth\u00AE Barracuda\u2122";
CUDA.FRAWT = 1600;
CUDA.FR = 12;
CUDA.CW = 50000;
CUDA.NAME = "CUDA";
_root.attachMovie(CUDA.NAME, "carTemp", 1);
_root.carTemp._x = -400;
CUDA.MAX_BKIT = _root.carTemp.bkit._totalframes;
CUDA.MAX_DECAL = _root.carTemp.decal._totalframes;
CUDA.MAX_FKIT = _root.carTemp.fkit._totalframes;
CUDA.MAX_HOOD = _root.carTemp.hood._totalframes;
CUDA.MAX_INTERIOR = _root.carTemp.interior._totalframes;
CUDA.MAX_LIGHT = _root.carTemp.light._totalframes;
CUDA.MAX_SKIT = _root.carTemp.skit._totalframes;
CUDA.MAX_WING = _root.carTemp.wing._totalframes;
CUDA.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("CUDA");
Frame 41
SKYLINER34 = new Object();
SKYLINER34.CLASS = 2;
SKYLINER34.FULLNAME = "Nissan\u00AE Skyline R34\u2122";
SKYLINER34.FRAWT = 1100;
SKYLINER34.FR = 8;
SKYLINER34.CW = 35000;
SKYLINER34.NAME = "SKYLINER34";
_root.attachMovie(SKYLINER34.NAME, "carTemp", 1);
_root.carTemp._x = -400;
SKYLINER34.MAX_BKIT = _root.carTemp.bkit._totalframes;
SKYLINER34.MAX_DECAL = _root.carTemp.decal._totalframes;
SKYLINER34.MAX_FKIT = _root.carTemp.fkit._totalframes;
SKYLINER34.MAX_HOOD = _root.carTemp.hood._totalframes;
SKYLINER34.MAX_INTERIOR = _root.carTemp.interior._totalframes;
SKYLINER34.MAX_LIGHT = _root.carTemp.light._totalframes;
SKYLINER34.MAX_SKIT = _root.carTemp.skit._totalframes;
SKYLINER34.MAX_WING = _root.carTemp.wing._totalframes;
SKYLINER34.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("SKYLINER34");
Frame 42
G35 = new Object();
G35.CLASS = 2;
G35.FULLNAME = "Infiniti\u00AE G35\u2122";
G35.FRAWT = 1100;
G35.FR = 8;
G35.CW = 40000;
G35.NAME = "G35";
_root.attachMovie(G35.NAME, "carTemp", 1);
_root.carTemp._x = -400;
G35.MAX_BKIT = _root.carTemp.bkit._totalframes;
G35.MAX_DECAL = _root.carTemp.decal._totalframes;
G35.MAX_FKIT = _root.carTemp.fkit._totalframes;
G35.MAX_HOOD = _root.carTemp.hood._totalframes;
G35.MAX_INTERIOR = _root.carTemp.interior._totalframes;
G35.MAX_LIGHT = _root.carTemp.light._totalframes;
G35.MAX_SKIT = _root.carTemp.skit._totalframes;
G35.MAX_WING = _root.carTemp.wing._totalframes;
G35.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("G35");
Frame 43
CHARGER = new Object();
CHARGER.CLASS = 2;
CHARGER.FULLNAME = "Dodge\u00AE Charger\u2122";
CHARGER.FRAWT = 1600;
CHARGER.FR = 12;
CHARGER.CW = 50000;
CHARGER.NAME = "CHARGER";
_root.attachMovie(CHARGER.NAME, "carTemp", 1);
_root.carTemp._x = -400;
CHARGER.MAX_BKIT = _root.carTemp.bkit._totalframes;
CHARGER.MAX_DECAL = _root.carTemp.decal._totalframes;
CHARGER.MAX_FKIT = _root.carTemp.fkit._totalframes;
CHARGER.MAX_HOOD = _root.carTemp.hood._totalframes;
CHARGER.MAX_INTERIOR = _root.carTemp.interior._totalframes;
CHARGER.MAX_LIGHT = _root.carTemp.light._totalframes;
CHARGER.MAX_SKIT = _root.carTemp.skit._totalframes;
CHARGER.MAX_WING = _root.carTemp.wing._totalframes;
CHARGER.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("CHARGER");
Frame 44
CORVETTE = new Object();
CORVETTE.CLASS = 2;
CORVETTE.FULLNAME = "Chevrolet\u00AE Corvette\u2122";
CORVETTE.FRAWT = 1400;
CORVETTE.FR = 11;
CORVETTE.CW = 50000;
CORVETTE.NAME = "CORVETTE";
_root.attachMovie(CORVETTE.NAME, "carTemp", 1);
_root.carTemp._x = -400;
CORVETTE.MAX_BKIT = _root.carTemp.bkit._totalframes;
CORVETTE.MAX_DECAL = _root.carTemp.decal._totalframes;
CORVETTE.MAX_FKIT = _root.carTemp.fkit._totalframes;
CORVETTE.MAX_HOOD = _root.carTemp.hood._totalframes;
CORVETTE.MAX_INTERIOR = _root.carTemp.interior._totalframes;
CORVETTE.MAX_LIGHT = _root.carTemp.light._totalframes;
CORVETTE.MAX_SKIT = _root.carTemp.skit._totalframes;
CORVETTE.MAX_WING = _root.carTemp.wing._totalframes;
CORVETTE.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("CORVETTE");
Frame 45
CORVETTEZ06 = new Object();
CORVETTEZ06.CLASS = 2;
CORVETTEZ06.FULLNAME = "Chevrolet\u00AE Corvette Z06\u2122";
CORVETTEZ06.FRAWT = 1200;
CORVETTEZ06.FR = 11;
CORVETTEZ06.CW = 50000;
CORVETTEZ06.NAME = "CORVETTEZ06";
_root.attachMovie(CORVETTEZ06.NAME, "carTemp", 1);
_root.carTemp._x = -400;
CORVETTEZ06.MAX_BKIT = _root.carTemp.bkit._totalframes;
CORVETTEZ06.MAX_DECAL = _root.carTemp.decal._totalframes;
CORVETTEZ06.MAX_FKIT = _root.carTemp.fkit._totalframes;
CORVETTEZ06.MAX_HOOD = _root.carTemp.hood._totalframes;
CORVETTEZ06.MAX_INTERIOR = _root.carTemp.interior._totalframes;
CORVETTEZ06.MAX_LIGHT = _root.carTemp.light._totalframes;
CORVETTEZ06.MAX_SKIT = _root.carTemp.skit._totalframes;
CORVETTEZ06.MAX_WING = _root.carTemp.wing._totalframes;
CORVETTEZ06.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("CORVETTEZ06");
Frame 46
COBRA = new Object();
COBRA.CLASS = 2;
COBRA.FULLNAME = "Shelby\u00AE Mustang\u2122";
COBRA.FRAWT = 1700;
COBRA.FR = 11;
COBRA.CW = 50000;
COBRA.NAME = "COBRA";
_root.attachMovie(COBRA.NAME, "carTemp", 1);
_root.carTemp._x = -400;
COBRA.MAX_BKIT = _root.carTemp.bkit._totalframes;
COBRA.MAX_DECAL = _root.carTemp.decal._totalframes;
COBRA.MAX_FKIT = _root.carTemp.fkit._totalframes;
COBRA.MAX_HOOD = _root.carTemp.hood._totalframes;
COBRA.MAX_INTERIOR = _root.carTemp.interior._totalframes;
COBRA.MAX_LIGHT = _root.carTemp.light._totalframes;
COBRA.MAX_SKIT = _root.carTemp.skit._totalframes;
COBRA.MAX_WING = _root.carTemp.wing._totalframes;
COBRA.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("COBRA");
Frame 47
GTO = new Object();
GTO.CLASS = 2;
GTO.FULLNAME = "Pontiac\u00AE GTO\u2122";
GTO.FRAWT = 1700;
GTO.FR = 11;
GTO.CW = 50000;
GTO.NAME = "GTO";
_root.attachMovie(GTO.NAME, "carTemp", 1);
_root.carTemp._x = -400;
GTO.MAX_BKIT = _root.carTemp.bkit._totalframes;
GTO.MAX_DECAL = _root.carTemp.decal._totalframes;
GTO.MAX_FKIT = _root.carTemp.fkit._totalframes;
GTO.MAX_HOOD = _root.carTemp.hood._totalframes;
GTO.MAX_INTERIOR = _root.carTemp.interior._totalframes;
GTO.MAX_LIGHT = _root.carTemp.light._totalframes;
GTO.MAX_SKIT = _root.carTemp.skit._totalframes;
GTO.MAX_WING = _root.carTemp.wing._totalframes;
GTO.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("GTO");
Frame 48
BMWM3 = new Object();
BMWM3.CLASS = 2;
BMWM3.FULLNAME = "BMW\u00AE M3 CSL\u2122";
BMWM3.FRAWT = 1100;
BMWM3.FR = 8;
BMWM3.CW = 70000 /* 0x011170 */;
BMWM3.NAME = "BMWM3";
_root.attachMovie(BMWM3.NAME, "carTemp", 1);
_root.carTemp._x = -400;
BMWM3.MAX_BKIT = _root.carTemp.bkit._totalframes;
BMWM3.MAX_DECAL = _root.carTemp.decal._totalframes;
BMWM3.MAX_FKIT = _root.carTemp.fkit._totalframes;
BMWM3.MAX_HOOD = _root.carTemp.hood._totalframes;
BMWM3.MAX_INTERIOR = _root.carTemp.interior._totalframes;
BMWM3.MAX_LIGHT = _root.carTemp.light._totalframes;
BMWM3.MAX_SKIT = _root.carTemp.skit._totalframes;
BMWM3.MAX_WING = _root.carTemp.wing._totalframes;
BMWM3.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("BMWM3");
Frame 49
M5 = new Object();
M5.CLASS = 2;
M5.FULLNAME = "BMW\u00AE M5\u2122";
M5.FRAWT = 1100;
M5.FR = 8;
M5.CW = 70000 /* 0x011170 */;
M5.NAME = "M5";
_root.attachMovie(M5.NAME, "carTemp", 1);
_root.carTemp._x = -400;
M5.MAX_BKIT = _root.carTemp.bkit._totalframes;
M5.MAX_DECAL = _root.carTemp.decal._totalframes;
M5.MAX_FKIT = _root.carTemp.fkit._totalframes;
M5.MAX_HOOD = _root.carTemp.hood._totalframes;
M5.MAX_INTERIOR = _root.carTemp.interior._totalframes;
M5.MAX_LIGHT = _root.carTemp.light._totalframes;
M5.MAX_SKIT = _root.carTemp.skit._totalframes;
M5.MAX_WING = _root.carTemp.wing._totalframes;
M5.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("M5");
Frame 50
XK8 = new Object();
XK8.CLASS = 2;
XK8.FULLNAME = "Jaguar\u00AE XK8\u2122";
XK8.FRAWT = 800;
XK8.FR = 7;
XK8.CW = 85000 /* 0x014C08 */;
XK8.NAME = "XK8";
_root.attachMovie(XK8.NAME, "carTemp", 1);
_root.carTemp._x = -400;
XK8.MAX_BKIT = _root.carTemp.bkit._totalframes;
XK8.MAX_DECAL = _root.carTemp.decal._totalframes;
XK8.MAX_FKIT = _root.carTemp.fkit._totalframes;
XK8.MAX_HOOD = _root.carTemp.hood._totalframes;
XK8.MAX_INTERIOR = _root.carTemp.interior._totalframes;
XK8.MAX_LIGHT = _root.carTemp.light._totalframes;
XK8.MAX_SKIT = _root.carTemp.skit._totalframes;
XK8.MAX_WING = _root.carTemp.wing._totalframes;
XK8.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("XK8");
Frame 51
SPYDER = new Object();
SPYDER.CLASS = 3;
SPYDER.FULLNAME = "Maserati\u00AE Spyder GT\u2122";
SPYDER.FRAWT = 800;
SPYDER.FR = 7;
SPYDER.CW = 85000 /* 0x014C08 */;
SPYDER.NAME = "SPYDER";
_root.attachMovie(SPYDER.NAME, "carTemp", 1);
_root.carTemp._x = -400;
SPYDER.MAX_BKIT = _root.carTemp.bkit._totalframes;
SPYDER.MAX_DECAL = _root.carTemp.decal._totalframes;
SPYDER.MAX_FKIT = _root.carTemp.fkit._totalframes;
SPYDER.MAX_HOOD = _root.carTemp.hood._totalframes;
SPYDER.MAX_INTERIOR = _root.carTemp.interior._totalframes;
SPYDER.MAX_LIGHT = _root.carTemp.light._totalframes;
SPYDER.MAX_SKIT = _root.carTemp.skit._totalframes;
SPYDER.MAX_WING = _root.carTemp.wing._totalframes;
SPYDER.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("SPYDER");
Frame 52
CLK = new Object();
CLK.CLASS = 3;
CLK.FULLNAME = "Mercedes\u00AE SL55 AMG\u2122";
CLK.FRAWT = 1100;
CLK.FR = 8;
CLK.CW = 130000 /* 0x01FBD0 */;
CLK.NAME = "CLK";
_root.attachMovie(CLK.NAME, "carTemp", 1);
_root.carTemp._x = -400;
CLK.MAX_BKIT = _root.carTemp.bkit._totalframes;
CLK.MAX_DECAL = _root.carTemp.decal._totalframes;
CLK.MAX_FKIT = _root.carTemp.fkit._totalframes;
CLK.MAX_HOOD = _root.carTemp.hood._totalframes;
CLK.MAX_INTERIOR = _root.carTemp.interior._totalframes;
CLK.MAX_LIGHT = _root.carTemp.light._totalframes;
CLK.MAX_SKIT = _root.carTemp.skit._totalframes;
CLK.MAX_WING = _root.carTemp.wing._totalframes;
CLK.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("CLK");
Frame 53
Z8 = new Object();
Z8.CLASS = 3;
Z8.FULLNAME = "BMW\u00AE Z8\u2122";
Z8.FRAWT = 1100;
Z8.FR = 8;
Z8.CW = 130000 /* 0x01FBD0 */;
Z8.NAME = "Z8";
_root.attachMovie(Z8.NAME, "carTemp", 1);
_root.carTemp._x = -400;
Z8.MAX_BKIT = _root.carTemp.bkit._totalframes;
Z8.MAX_DECAL = _root.carTemp.decal._totalframes;
Z8.MAX_FKIT = _root.carTemp.fkit._totalframes;
Z8.MAX_HOOD = _root.carTemp.hood._totalframes;
Z8.MAX_INTERIOR = _root.carTemp.interior._totalframes;
Z8.MAX_LIGHT = _root.carTemp.light._totalframes;
Z8.MAX_SKIT = _root.carTemp.skit._totalframes;
Z8.MAX_WING = _root.carTemp.wing._totalframes;
Z8.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("Z8");
Frame 54
MODENA = new Object();
MODENA.CLASS = 3;
MODENA.FULLNAME = "Ferrari\u00AE 360 Modena\u2122";
MODENA.FRAWT = 1100;
MODENA.FR = 8;
MODENA.CW = 130000 /* 0x01FBD0 */;
MODENA.NAME = "MODENA";
_root.attachMovie(MODENA.NAME, "carTemp", 1);
_root.carTemp._x = -400;
MODENA.MAX_BKIT = _root.carTemp.bkit._totalframes;
MODENA.MAX_DECAL = _root.carTemp.decal._totalframes;
MODENA.MAX_FKIT = _root.carTemp.fkit._totalframes;
MODENA.MAX_HOOD = _root.carTemp.hood._totalframes;
MODENA.MAX_INTERIOR = _root.carTemp.interior._totalframes;
MODENA.MAX_LIGHT = _root.carTemp.light._totalframes;
MODENA.MAX_SKIT = _root.carTemp.skit._totalframes;
MODENA.MAX_WING = _root.carTemp.wing._totalframes;
MODENA.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("MODENA");
Frame 55
VANQUISH = new Object();
VANQUISH.CLASS = 3;
VANQUISH.FULLNAME = "Aston-Martin\u00AE Vanquish\u2122";
VANQUISH.FRAWT = 1100;
VANQUISH.FR = 8;
VANQUISH.CW = 130000 /* 0x01FBD0 */;
VANQUISH.NAME = "VANQUISH";
_root.attachMovie(VANQUISH.NAME, "carTemp", 1);
_root.carTemp._x = -400;
VANQUISH.MAX_BKIT = _root.carTemp.bkit._totalframes;
VANQUISH.MAX_DECAL = _root.carTemp.decal._totalframes;
VANQUISH.MAX_FKIT = _root.carTemp.fkit._totalframes;
VANQUISH.MAX_HOOD = _root.carTemp.hood._totalframes;
VANQUISH.MAX_INTERIOR = _root.carTemp.interior._totalframes;
VANQUISH.MAX_LIGHT = _root.carTemp.light._totalframes;
VANQUISH.MAX_SKIT = _root.carTemp.skit._totalframes;
VANQUISH.MAX_WING = _root.carTemp.wing._totalframes;
VANQUISH.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("VANQUISH");
Frame 56
VIPERGTSR = new Object();
VIPERGTSR.CLASS = 3;
VIPERGTSR.FULLNAME = "Dodge\u00AE Competition Viper GTS/R\u2122";
VIPERGTSR.FRAWT = 1200;
VIPERGTSR.FR = 5;
VIPERGTSR.CW = 250000 /* 0x03D090 */;
VIPERGTSR.NAME = "VIPERGTSR";
_root.attachMovie(VIPERGTSR.NAME, "carTemp", 1);
_root.carTemp._x = -400;
VIPERGTSR.MAX_BKIT = _root.carTemp.bkit._totalframes;
VIPERGTSR.MAX_DECAL = _root.carTemp.decal._totalframes;
VIPERGTSR.MAX_FKIT = _root.carTemp.fkit._totalframes;
VIPERGTSR.MAX_HOOD = _root.carTemp.hood._totalframes;
VIPERGTSR.MAX_INTERIOR = _root.carTemp.interior._totalframes;
VIPERGTSR.MAX_LIGHT = _root.carTemp.light._totalframes;
VIPERGTSR.MAX_SKIT = _root.carTemp.skit._totalframes;
VIPERGTSR.MAX_WING = _root.carTemp.wing._totalframes;
VIPERGTSR.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("VIPERGTSR");
Frame 57
COUNTACH = new Object();
COUNTACH.CLASS = 3;
COUNTACH.FULLNAME = "Lamborghini\u00AE Countach\u2122";
COUNTACH.FRAWT = 1200;
COUNTACH.FR = 5;
COUNTACH.CW = 145000 /* 0x023668 */;
COUNTACH.NAME = "COUNTACH";
_root.attachMovie(COUNTACH.NAME, "carTemp", 1);
_root.carTemp._x = -400;
COUNTACH.MAX_BKIT = _root.carTemp.bkit._totalframes;
COUNTACH.MAX_DECAL = _root.carTemp.decal._totalframes;
COUNTACH.MAX_FKIT = _root.carTemp.fkit._totalframes;
COUNTACH.MAX_HOOD = _root.carTemp.hood._totalframes;
COUNTACH.MAX_INTERIOR = _root.carTemp.interior._totalframes;
COUNTACH.MAX_LIGHT = _root.carTemp.light._totalframes;
COUNTACH.MAX_SKIT = _root.carTemp.skit._totalframes;
COUNTACH.MAX_WING = _root.carTemp.wing._totalframes;
COUNTACH.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("COUNTACH");
Frame 58
F50 = new Object();
F50.CLASS = 3;
F50.FULLNAME = "Ferrari\u00AE F50\u2122";
F50.FRAWT = 900;
F50.FR = 4;
F50.CW = 450000 /* 0x06DDD0 */;
F50.NAME = "F50";
_root.attachMovie(F50.NAME, "carTemp", 1);
_root.carTemp._x = -400;
F50.MAX_BKIT = _root.carTemp.bkit._totalframes;
F50.MAX_DECAL = _root.carTemp.decal._totalframes;
F50.MAX_FKIT = _root.carTemp.fkit._totalframes;
F50.MAX_HOOD = _root.carTemp.hood._totalframes;
F50.MAX_INTERIOR = _root.carTemp.interior._totalframes;
F50.MAX_LIGHT = _root.carTemp.light._totalframes;
F50.MAX_SKIT = _root.carTemp.skit._totalframes;
F50.MAX_WING = _root.carTemp.wing._totalframes;
F50.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("F50");
Frame 59
XJ220 = new Object();
XJ220.CLASS = 3;
XJ220.FULLNAME = "Jaguar\u00AE XJ220\u2122";
XJ220.FRAWT = 900;
XJ220.FR = 4;
XJ220.CW = 450000 /* 0x06DDD0 */;
XJ220.NAME = "XJ220";
_root.attachMovie(XJ220.NAME, "carTemp", 1);
_root.carTemp._x = -400;
XJ220.MAX_BKIT = _root.carTemp.bkit._totalframes;
XJ220.MAX_DECAL = _root.carTemp.decal._totalframes;
XJ220.MAX_FKIT = _root.carTemp.fkit._totalframes;
XJ220.MAX_HOOD = _root.carTemp.hood._totalframes;
XJ220.MAX_INTERIOR = _root.carTemp.interior._totalframes;
XJ220.MAX_LIGHT = _root.carTemp.light._totalframes;
XJ220.MAX_SKIT = _root.carTemp.skit._totalframes;
XJ220.MAX_WING = _root.carTemp.wing._totalframes;
XJ220.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("XJ220");
Frame 60
MURCIELAGO = new Object();
MURCIELAGO.CLASS = 3;
MURCIELAGO.FULLNAME = "Lamborghini\u00AE Murcielago\u2122";
MURCIELAGO.FRAWT = 900;
MURCIELAGO.FR = 4;
MURCIELAGO.CW = 450000 /* 0x06DDD0 */;
MURCIELAGO.NAME = "MURCIELAGO";
_root.attachMovie(MURCIELAGO.NAME, "carTemp", 1);
_root.carTemp._x = -400;
MURCIELAGO.MAX_BKIT = _root.carTemp.bkit._totalframes;
MURCIELAGO.MAX_DECAL = _root.carTemp.decal._totalframes;
MURCIELAGO.MAX_FKIT = _root.carTemp.fkit._totalframes;
MURCIELAGO.MAX_HOOD = _root.carTemp.hood._totalframes;
MURCIELAGO.MAX_INTERIOR = _root.carTemp.interior._totalframes;
MURCIELAGO.MAX_LIGHT = _root.carTemp.light._totalframes;
MURCIELAGO.MAX_SKIT = _root.carTemp.skit._totalframes;
MURCIELAGO.MAX_WING = _root.carTemp.wing._totalframes;
MURCIELAGO.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("MURCIELAGO");
Frame 61
CARRERAGT = new Object();
CARRERAGT.CLASS = 3;
CARRERAGT.FULLNAME = "Porsche\u00AE Carrera GT\u2122";
CARRERAGT.FRAWT = 800;
CARRERAGT.FR = 3;
CARRERAGT.CW = 600000 /* 0x0927C0 */;
CARRERAGT.NAME = "CARRERAGT";
_root.attachMovie(CARRERAGT.NAME, "carTemp", 1);
_root.carTemp._x = -400;
CARRERAGT.MAX_BKIT = _root.carTemp.bkit._totalframes;
CARRERAGT.MAX_DECAL = _root.carTemp.decal._totalframes;
CARRERAGT.MAX_FKIT = _root.carTemp.fkit._totalframes;
CARRERAGT.MAX_HOOD = _root.carTemp.hood._totalframes;
CARRERAGT.MAX_INTERIOR = _root.carTemp.interior._totalframes;
CARRERAGT.MAX_LIGHT = _root.carTemp.light._totalframes;
CARRERAGT.MAX_SKIT = _root.carTemp.skit._totalframes;
CARRERAGT.MAX_WING = _root.carTemp.wing._totalframes;
CARRERAGT.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("CARRERAGT");
Frame 62
SALEEN = new Object();
SALEEN.CLASS = 3;
SALEEN.FULLNAME = "Saleen\u00AE S7\u2122";
SALEEN.FRAWT = 800;
SALEEN.FR = 3;
SALEEN.CW = 1000000 /* 0x0F4240 */;
SALEEN.NAME = "SALEEN";
_root.attachMovie(SALEEN.NAME, "carTemp", 1);
_root.carTemp._x = -400;
SALEEN.MAX_BKIT = _root.carTemp.bkit._totalframes;
SALEEN.MAX_DECAL = _root.carTemp.decal._totalframes;
SALEEN.MAX_FKIT = _root.carTemp.fkit._totalframes;
SALEEN.MAX_HOOD = _root.carTemp.hood._totalframes;
SALEEN.MAX_INTERIOR = _root.carTemp.interior._totalframes;
SALEEN.MAX_LIGHT = _root.carTemp.light._totalframes;
SALEEN.MAX_SKIT = _root.carTemp.skit._totalframes;
SALEEN.MAX_WING = _root.carTemp.wing._totalframes;
SALEEN.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("SALEEN");
Frame 63
MCLAREN = new Object();
MCLAREN.CLASS = 3;
MCLAREN.FULLNAME = "McLaren\u00AE F1\u2122";
MCLAREN.FRAWT = 800;
MCLAREN.FR = 3;
MCLAREN.CW = 1000000 /* 0x0F4240 */;
MCLAREN.NAME = "MCLAREN";
_root.attachMovie(MCLAREN.NAME, "carTemp", 1);
_root.carTemp._x = -400;
MCLAREN.MAX_BKIT = _root.carTemp.bkit._totalframes;
MCLAREN.MAX_DECAL = _root.carTemp.decal._totalframes;
MCLAREN.MAX_FKIT = _root.carTemp.fkit._totalframes;
MCLAREN.MAX_HOOD = _root.carTemp.hood._totalframes;
MCLAREN.MAX_INTERIOR = _root.carTemp.interior._totalframes;
MCLAREN.MAX_LIGHT = _root.carTemp.light._totalframes;
MCLAREN.MAX_SKIT = _root.carTemp.skit._totalframes;
MCLAREN.MAX_WING = _root.carTemp.wing._totalframes;
MCLAREN.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
CARS.push("MCLAREN");
Frame 64
TEFLON = new Object();
TEFLON.CLASS = 2;
TEFLON.FULLNAME = "Fantom";
TEFLON.FRAWT = 800;
TEFLON.FR = 3;
TEFLON.CW = 1000;
TEFLON.NAME = "TEFLON";
_root.attachMovie(TEFLON.NAME, "carTemp", 1);
_root.carTemp._x = -400;
TEFLON.MAX_BKIT = _root.carTemp.bkit._totalframes;
TEFLON.MAX_DECAL = _root.carTemp.decal._totalframes;
TEFLON.MAX_FKIT = _root.carTemp.fkit._totalframes;
TEFLON.MAX_HOOD = _root.carTemp.hood._totalframes;
TEFLON.MAX_INTERIOR = _root.carTemp.interior._totalframes;
TEFLON.MAX_LIGHT = _root.carTemp.light._totalframes;
TEFLON.MAX_SKIT = _root.carTemp.skit._totalframes;
TEFLON.MAX_WING = _root.carTemp.wing._totalframes;
TEFLON.MAX_WHEEL = _root.carTemp.lwheel._totalframes;
Frame 65
function CheatGame() {
player.tlevel = 0;
player.slevel = CARS.length;
player.tstatus = "";
var _local1 = 0;
while (_local1 < TOURNEY.length) {
player.tstatus = player.tstatus + "1";
_local1++;
}
}
_root.carTemp.removeMovieClip();
CCLASSCAR = new Array();
SCLASSCAR = new Array();
RCLASSCAR = new Array();
var i = 0;
while (i < CARS.length) {
if (_root[CARS[i]].CLASS == 1) {
CCLASSCAR.push(CARS[i]);
} else if (_root[CARS[i]].CLASS == 2) {
SCLASSCAR.push(CARS[i]);
} else {
RCLASSCAR.push(CARS[i]);
}
_root[CARS[i]].MAX_WHEELIEBAR = 2;
_root[CARS[i]].MAX_ROLLCAGE = 2;
_root[CARS[i]].MAX_WHEEL = _root[CARS[i]].MAX_WHEEL - 2;
i++;
}
Frame 66
UPGRADELIST = new Array();
UPGRADEDESC = new Array();
UPGRADELIST.push({name:"Drivetrain", type:"Drivetrain", cost:2000, upCL:500, upTQ:10, upHP:10, upWT:10, pr:undefined, i:0});
UPGRADELIST.push({name:"Boost Controller", type:"Computer", cost:6000, upCL:0, upTQ:0, upHP:0, upWT:0, pr:undefined, i:1});
UPGRADELIST.push({name:"ECU Chip Upgrade", type:"Computer", cost:500, upCL:0, upTQ:10, upHP:10, upWT:5, pr:undefined, i:2});
UPGRADELIST.push({name:"Ignition Upgrade", type:"Ignition", cost:320, upCL:0, upTQ:10, upHP:10, upWT:0, pr:undefined, i:3});
UPGRADELIST.push({name:"Hot Wires", type:"Ignition", cost:120, upCL:0, upTQ:5, upHP:5, upWT:0, pr:undefined, i:4});
UPGRADELIST.push({name:"Racing Spark Plugs", type:"Ignition", cost:50, upCL:0, upTQ:2, upHP:2, upWT:0, pr:undefined, i:5});
UPGRADELIST.push({name:"Cam Gears", type:"Engine", cost:120, upCL:0, upTQ:5, upHP:5, upWT:0, pr:undefined, i:6});
UPGRADELIST.push({name:"Head Work", type:"Engine", cost:220, upCL:0, upTQ:7, upHP:7, upWT:0, pr:undefined, i:7});
UPGRADELIST.push({name:"High-Comp Pistons", type:"Engine", cost:1500, upCL:0, upTQ:15, upHP:15, upWT:10, pr:undefined, i:8});
UPGRADELIST.push({name:"High-Flow Fuel Injectors", type:"Fuel", cost:240, upCL:0, upTQ:10, upHP:10, upWT:10, pr:undefined, i:9});
UPGRADELIST.push({name:"Oil Cooler", cost:750, type:"Fuel", upCL:0, upTQ:15, upHP:15, upWT:15, pr:undefined, i:10});
UPGRADELIST.push({name:"Fuel Pump", cost:500, type:"Fuel", upCL:0, upTQ:15, upHP:15, upWT:15, pr:undefined, i:11});
UPGRADELIST.push({name:"Exhaust Kit", type:"Exhaust", cost:50, upCL:0, upTQ:5, upHP:0, upWT:2, pr:undefined, i:12});
UPGRADELIST.push({name:"Catalytic Convertor", type:"Exhaust", cost:300, upCL:0, upTQ:0, upHP:10, upWT:2, pr:undefined, i:13});
UPGRADELIST.push({name:"Exhaust Header Upgrade", type:"Exhaust", cost:100, upCL:0, upTQ:0, upHP:5, upWT:2, pr:undefined, i:14});
UPGRADELIST.push({name:"Racing Exhaust Tip", type:"Exhaust", cost:50, upCL:0, upTQ:10, upHP:0, upWT:2, pr:undefined, i:15});
UPGRADELIST.push({name:"High-Boost Pulley", type:"Induction", cost:305, upCL:0, upTQ:15, upHP:15, upWT:5, pr:undefined, i:16});
UPGRADELIST.push({name:"Sequential Blow-Off Valves", type:"Induction", cost:600, upCL:0, upTQ:15, upHP:15, upWT:10, pr:19, i:17});
UPGRADELIST.push({name:"Intercooler", cost:1000, type:"Induction", upCL:0, upTQ:12, upHP:12, upWT:12, pr:undefined, i:18});
UPGRADELIST.push({name:"Turbo/Supercharger", type:"Supercharger", cost:4000, upCL:0, upTQ:50, upHP:40, upWT:40, pr:undefined, i:19});
UPGRADELIST.push({name:"Turbo Upgrade", type:"Supercharger", cost:1000, upCL:0, upTQ:10, upHP:10, upWT:10, pr:19, i:20});
UPGRADELIST.push({name:"Air Filter", type:"Intake", cost:35, upCL:0, upTQ:7, upHP:7, upWT:10, pr:undefined, i:21});
UPGRADELIST.push({name:"Cold-Air Intake", type:"Intake", cost:180, upCL:0, upTQ:5, upHP:5, upWT:5, pr:undefined, i:22});
UPGRADELIST.push({name:"Coilovers Upgrade", type:"Suspension", cost:350, upCL:0, upTQ:10, upHP:10, upWT:10, pr:undefined, i:23});
UPGRADELIST.push({name:"Performance Springs", type:"Suspension", cost:180, upCL:0, upTQ:5, upHP:5, upWT:5, pr:undefined, i:24});
UPGRADELIST.push({name:"Optimized Drag Tires", type:"Tires", cost:100, upCL:0, upTQ:0, upHP:0, upWT:-5, pr:undefined, i:25});
UPGRADELIST.push({name:"Nitrous Kit", type:"Nitrous", cost:1000, upCL:0, upTQ:0, upHP:0, upWT:0, pr:undefined, i:26});
UPGRADELIST.push({name:"Dual-Port Nitrous Kit", type:"Nitrous", cost:2000, upCL:0, upTQ:0, upHP:0, upWT:0, pr:26, i:27});
UPGRADELIST.push({name:"Nitrous Reserve (Max : 1)", type:"Nitrous", cost:2000, upCL:0, upTQ:0, upHP:0, upWT:5, pr:26, i:28});
UPGRADELIST.push({name:"Nitrous Reserve (Max : 5)", type:"Nitrous", cost:4000, upCL:0, upTQ:0, upHP:0, upWT:5, pr:28, i:29});
UPGRADELIST.push({name:"Nitrous Reserve (Max : 7)", type:"Nitrous", cost:6000, upCL:0, upTQ:0, upHP:0, upWT:7, pr:29, i:30});
UPGRADELIST.push({name:"Weight Stage 1", type:"Weight", cost:1000, upCL:0, upTQ:0, upHP:0, upWT:-5, pr:undefined, i:31});
UPGRADELIST.push({name:"Weight Stage 2", type:"Weight", cost:2000, upCL:0, upTQ:0, upHP:0, upWT:-10, pr:31, i:32});
UPGRADELIST.push({name:"Weight Stage 3", type:"Weight", cost:4000, upCL:0, upTQ:0, upHP:0, upWT:-20, pr:32, i:33});
UPGRADELIST.push({name:"Weight Stage 4", type:"Weight", cost:8000, upCL:0, upTQ:0, upHP:0, upWT:-30, pr:33, i:34});
UPGRADELIST.push({name:"Weight Stage 5", type:"Weight", cost:16000, upCL:0, upTQ:0, upHP:0, upWT:-40, pr:34, i:35});
ENGINEUPGRADES = UPGRADELIST.length;
UPGRADELIST.push({name:"Subwoofer", type:"Sound:Subwoofers", cost:1000, LD:1000, QL:500, upWT:20, pr:undefined, i:59});
UPGRADELIST.push({name:"3\" Speakers", type:"Sound:Speakers", cost:200, upLD:250, upQL:500, upWT:5, pr:undefined, i:40});
UPGRADELIST.push({name:"6\" Speakers", type:"Sound:Speakers", cost:300, upLD:500, upQL:100, upWT:10, pr:undefined, i:40});
UPGRADEDESC[40] = "Speakers";
UPGRADELIST.push({name:"Tweeters", type:"Sound:Speakers", cost:500, upLD:0, upQL:100, upWT:5, pr:undefined, i:41});
UPGRADELIST.push({name:"Amplifier", type:"Sound:Signal", cost:1000, upLD:60, upQL:60, upWT:10, pr:undefined, i:42});
UPGRADELIST.push({name:"Equalizer", type:"Sound:Signal", cost:600, upLD:30, upQL:30, upWT:10, pr:undefined, i:43});
UPGRADELIST.push({name:"Crossover", type:"Sound:Signal", cost:200, upLD:30, upQL:30, upWT:10, pr:undefined, i:44});
UPGRADELIST.push({name:"Line Driver", type:"Sound:Signal", cost:200, upLD:30, upQL:30, upWT:10, pr:undefined, i:45});
UPGRADELIST.push({name:"Speaker Wiring", type:"Sound:Wiring", cost:200, upLD:20, upQL:20, upWT:0, pr:undefined, i:46});
UPGRADELIST.push({name:"Wiring Kit", type:"Sound:Wiring", cost:50, upLD:20, upQL:20, upWT:0, pr:undefined, i:47});
UPGRADELIST.push({name:"Battery", type:"Sound:Wiring", cost:50, upLD:20, upQL:20, upWT:0, pr:undefined, i:48});
UPGRADELIST.push({name:"Fuse", type:"Sound:Wiring", cost:30, upLD:20, upQL:20, upWT:0, pr:undefined, i:49});
UPGRADELIST.push({name:"Fuse Distribution Blocks", type:"Sound:Wiring", cost:60, upLD:20, upQL:20, upWT:0, pr:undefined, i:50});
UPGRADELIST.push({name:"Head Unit", type:"Sound:Head Unit", cost:1000, upLD:10, upQL:10, upWT:1, pr:undefined, i:51});
UPGRADELIST.push({name:"SI System", type:"Sound:Upgrades", cost:500, upLD:5, upQL:5, upWT:0, pr:undefined, i:52});
UPGRADELIST.push({name:"SI Upgrade", type:"Sound:Upgrades", cost:500, upLD:5, upQL:5, upWT:0, pr:52, i:53});
UPGRADELIST.push({name:"Multiple Digital Circuitry", type:"Sound:Wiring", cost:500, upLD:5, upQL:5, upWT:1, pr:undefined, i:54});
UPGRADELIST.push({name:"Iranium Tip Digital Cables", type:"Sound:Wiring", cost:500, upLD:5, upQL:5, upWT:1, pr:undefined, i:55});
UPGRADELIST.push({name:"Power Supply", type:"Sound:Wiring", cost:500, upLD:5, upQL:5, upWT:1, pr:undefined, i:56});
UPGRADELIST.push({name:"6 CD Stacker", type:"Sound:Upgrades", cost:100, upLD:0, upQL:0, upWT:1, pr:undefined, i:57});
UPGRADELIST.push({name:"Cleaned Sound Ports", type:"Sound:Upgrades", cost:100, upLD:2, upQL:2, upWT:0, pr:undefined, i:58});
UPGRADELIST.push({name:"TV", type:"Interior:A/V", cost:500, val:1, pr:undefined, i:60});
UPGRADELIST.push({name:"DVD Player", type:"Interior:A/V", cost:200, val:1, pr:60, i:61});
UPGRADELIST.push({name:"Gaming Console", type:"Interior:A/V", cost:400, val:1, pr:60, i:62});
UPGRADEDESC[63] = "Steering Wheel";
UPGRADEDESC[64] = "Shifter Knob";
UPGRADEDESC[65] = "Petals";
UPGRADEDESC[66] = "Gauges";
INTMODS = new Object();
INTMODS.STEERING = new Array();
INTMODS.STEERING.push("Stock Steering Wheel");
INTMODS.STEERING.push("Blue Racing Wheel");
INTMODS.STEERING.push("Red Racing Wheel");
INTMODS.STEERING.push("Green Racing Wheel");
INTMODS.STEERING.push("Orange Racing Wheel");
INTMODS.STEERING.push("Yellow Racing Wheel");
INTMODS.STEERING.push("White Racing Wheel");
INTMODS.STEERING.push("Black Racing Wheel");
INTMODS.STEERING.push("Fuzzy Racing Wheel");
INTMODS.PETAL = new Array();
INTMODS.PETAL.push("Stock Petals");
INTMODS.PETAL.push("Metal Petals");
INTMODS.PETAL.push("Gold Petals");
INTMODS.KNOB = new Array();
INTMODS.KNOB.push("Stock Knob");
INTMODS.KNOB.push("Neon Green Knob");
INTMODS.KNOB.push("Neon Blue Knob");
INTMODS.KNOB.push("Neon Red Knob");
INTMODS.KNOB.push("Neon Orange Knob");
INTMODS.KNOB.push("Smiley Knob");
INTMODS.KNOB.push("Phantom Knob");
INTMODS.KNOB.push("Nuke Knob");
INTMODS.SEAT = new Array();
INTMODS.SEAT.push("Stock Seats");
INTMODS.SEAT.push("Color Leather Seats");
INTMODS.SEAT.push("Black Racing Seats");
INTMODS.SEAT.push("White Racing Seats");
INTMODS.SEAT.push("2-Seater Racing Seats");
INTMODS.GAUGE = new Array();
INTMODS.GAUGE.push("Red (Stock)");
INTMODS.GAUGE.push("Yellow");
INTMODS.GAUGE.push("Blue");
INTMODS.GAUGE.push("Green");
INTMODS.GAUGE.push("White");
var i = 0;
while (i < UPGRADELIST.length) {
if (UPGRADEDESC[UPGRADELIST[i].i] == undefined) {
UPGRADEDESC[UPGRADELIST[i].i] = UPGRADELIST[i].name;
}
i++;
}
PERFMANU = new Array();
PERFMANU.push({name:"Stock", hp:0, tq:0, cl:0, wt:0, c:0});
PERFMANU.push({name:"ACME", hp:0.4, tq:0.4, cl:0.5, wt:0.2, c:0.5});
PERFMANU.push({name:"FRP", hp:0.5, tq:0.5, cl:0.5, wt:0.3, c:1});
PERFMANU.push({name:"Mirage", hp:0.4, tq:0.6, cl:0.5, wt:0.3, c:1});
PERFMANU.push({name:"Vector", hp:0.6, tq:0.4, cl:0.5, wt:0.3, c:1});
PERFMANU.push({name:"Reddy", hp:0.7, tq:0.7, cl:0.5, wt:0.5, c:1});
PERFMANU.push({name:"TPR", hp:0.8, tq:0.6, cl:0.5, wt:0.5, c:1});
PERFMANU.push({name:"Impulse", hp:0.9, tq:0.9, cl:1, wt:0.6, c:5, pr:20});
PERFMANU.push({name:"SVA Tuning", hp:1, tq:0.9, cl:1, wt:1, c:5, pr:20});
PERFMANU.push({name:"DRacer GT", hp:0.8, tq:1, cl:1, wt:0.6, c:5, pr:20});
PERFMANU.push({name:"Teflon", hp:1, tq:1, cl:1, wt:0.5, c:5, pr:999});
SNDMANU = new Array();
SNDMANU.push({name:"Stock", ld:0, ql:0, wt:0, c:0});
SNDMANU.push({name:"JVL", ld:1, ql:1, wt:0.3, c:1});
SNDMANU.push({name:"Volt", ld:2, ql:4, wt:0.5, c:1.5});
SNDMANU.push({name:"SLAM", ld:4, ql:2, wt:2, c:3});
INTMANU = new Array();
INTMANU.push({name:"Stock", c:0});
INTMANU.push({name:"Videovox", c:1});
INTUPGRADE = new Array();
INTUPGRADE.push("A/V");
SNDUPGRADE = new Array();
SNDUPGRADE.push("Subwoofers");
SNDUPGRADE.push("Speakers");
SNDUPGRADE.push("Signal");
SNDUPGRADE.push("Wiring");
SNDUPGRADE.push("Head Unit");
SNDUPGRADE.push("Upgrades");
PERFUPGRADE = new Array();
PERFUPGRADE.push("Drivetrain");
PERFUPGRADE.push("Computer");
PERFUPGRADE.push("Ignition");
PERFUPGRADE.push("Engine");
PERFUPGRADE.push("Fuel");
PERFUPGRADE.push("Exhaust");
PERFUPGRADE.push("Induction");
PERFUPGRADE.push("Supercharger");
PERFUPGRADE.push("Intake");
PERFUPGRADE.push("Suspension");
PERFUPGRADE.push("Tires");
PERFUPGRADE.push("Nitrous");
PERFUPGRADE.push("Weight");
UPGRADEMAX = UPGRADEDESC.length - 1;
MAXUP = 1.5;
tMAXUP = 0;
var i = 0;
while (i < UPGRADELIST.length) {
tMAXUP = tMAXUP + UPGRADELIST[i].upHP;
i++;
}
tMAXUP = tMAXUP / 100;
var i = 0;
while (i < UPGRADELIST.length) {
UPGRADELIST[i].upHP = UPGRADELIST[i].upHP * (MAXUP / tMAXUP);
UPGRADELIST[i].upTQ = UPGRADELIST[i].upTQ * (MAXUP / tMAXUP);
UPGRADELIST[i].upCL = UPGRADELIST[i].upCL * (MAXUP / tMAXUP);
UPGRADELIST[i].upWT = UPGRADELIST[i].upWT * (MAXUP / tMAXUP);
i++;
}
HP = 100;
var i = 0;
while (i < UPGRADELIST.length) {
HP = HP * (1 + (UPGRADELIST[i].upHP / 100));
i++;
}
MAXUP = (HP / 100) * 0.9;
trace(MAXUP);
Frame 67
MAXENGINES = 1;
ENG = new Array();
ENG.push({CLASS:3, ENGNAME:"V12 DOHC 4 Valves / Cyl", HP:455, TQ:370, ENGWT:470, TYP:3, CL:1, DAMINC:1, CW:6500});
COUNTACH.engnum = ENG.length - 1;
ENG.push({CLASS:3, ENGNAME:"Longitudinal Front Engine V10 OHV 2 Valves/Cyl", HP:520, TQ:540, ENGWT:470, TYP:3, CL:1, DAMINC:1, CW:6500});
VIPERGTSR.engnum = ENG.length - 1;
ENG.push({CLASS:2, ENGNAME:"LS6 V8 2 Valves / Cyl", HP:385, TQ:385, TYP:3, ENGWT:470, CL:1, DAMINC:1, CW:6500});
CORVETTEZ06.engnum = ENG.length - 1;
ENG.push({CLASS:1, ENGNAME:"All Alumunum Inline-4 DOHC 4 V/Cyl", HP:150, TQ:130, TYP:1, ENGWT:470, CL:1, DAMINC:1, CW:6500});
SENTRA.engnum = ENG.length - 1;
ENG.push({CLASS:2, ENGNAME:"5.0L V8 DOHC SMPI 32 valve engine", HP:400, TQ:370, TYP:3, ENGWT:500, CL:1, DAMINC:1, CW:8000});
M5.engnum = ENG.length - 1;
ENG.push({CLASS:1, ENGNAME:"All Alumunum Inline-4 DOHC 4 V/Cyl", HP:160, TQ:120, TYP:1, ENGWT:500, CL:1, DAMINC:1, CW:8000});
CIVIC.engnum = ENG.length - 1;
CIVICHB.engnum = ENG.length - 1;
CRX.engnum = ENG.length - 1;
ENG.push({CLASS:1, ENGNAME:"All Alumunum Inline-4 DOHC 4 V/Cyl", HP:240, TQ:160, TYP:1, ENGWT:500, CL:1, DAMINC:1, CW:8000});
S2000.engnum = ENG.length - 1;
ENG.push({CLASS:2, ENGNAME:"3.0L Inline-6 24V", HP:225, TQ:214, TYP:1, ENGWT:300, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:2, ENGNAME:"Cast Iron Block Water Cooled S54 Inline-6", HP:360, TQ:273, TYP:1, ENGWT:250, CL:1, DAMINC:1, CW:8000});
BMWM3.engnum = ENG.length - 1;
ENG.push({CLASS:3, ENGNAME:"5.4L SOHC Supercharged V8", HP:493, TQ:500, TYP:3, ENGWT:250, CL:1, DAMINC:1, CW:8000});
CLK.engnum = ENG.length - 1;
ENG.push({CLASS:2, ENGNAME:"2.6L Biturbo V6", HP:320, TQ:324, TYP:3, ENGWT:250, CL:1, DAMINC:1, CW:8000});
S4.engnum = ENG.length - 1;
ENG.push({CLASS:1, ENGNAME:"16-Valve Inline 4-Cylinder", HP:163, TQ:155, TYP:1, ENGWT:212, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:3, ENGNAME:"V8 4 Valves/Cyl", HP:399, TQ:369, TYP:3, ENGWT:484, CL:1, DAMINC:1, CW:8000});
Z8.engnum = ENG.length - 1;
ENG.push({CLASS:3, ENGNAME:"V8 4 Valves/Cyl", HP:300, TQ:310, TYP:3, ENGWT:484, CL:1, DAMINC:1, CW:8000});
MUSTANG.engnum = ENG.length - 1;
MUSTANG05.engnum = ENG.length - 1;
ENG.push({CLASS:2, ENGNAME:"V6 DOHC 4 Valves/Cyl", HP:250, TQ:236, TYP:3, ENGWT:200, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:3, ENGNAME:"All Aluminum Flat-6 Twin Turbo", HP:700, TQ:550, TYP:2, ENGWT:235, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:3, ENGNAME:"All Aluminum Water Cooled V10", HP:612, TQ:435, TYP:3, ENGWT:235, CL:1, DAMINC:1, CW:8000});
CARRERAGT.engnum = ENG.length - 1;
ENG.push({CLASS:3, ENGNAME:"70/2 60\u00B0 V12 Chain-DOHC CVI Valve Timing", HP:668, TQ:520, TYP:3, ENGWT:235, CL:1, DAMINC:1, CW:8000});
MCLAREN.engnum = ENG.length - 1;
ENG.push({CLASS:3, ENGNAME:"Flat-6 DOHC 4 Valves/Cyl", HP:420, TQ:413, TYP:2, ENGWT:267, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:3, ENGNAME:"DOHC V12 4Valve/Cyl", HP:580, TQ:479, TYP:3, ENGWT:500, CL:1, DAMINC:1, CW:8000});
SALEEN.engnum = ENG.length - 1;
ENG.push({CLASS:1, ENGNAME:"Variable Valve Control Inline-4", HP:158, TQ:129, TYP:1, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:3, ENGNAME:"All-Alloy DOHC 48 valve V12", HP:460, TQ:400, TYP:3, ENGWT:500, CL:1, DAMINC:1, CW:8000});
VANQUISH.engnum = ENG.length - 1;
ENG.push({CLASS:2, ENGNAME:"4 ValveCyl 90\u00B0 V8", HP:400, TQ:275.6, TYP:3, ENGWT:500, CL:1, DAMINC:1, CW:8000});
MODENA.engnum = ENG.length - 1;
ENG.push({CLASS:3, ENGNAME:"Longitudinal 65\u00B0 V12 Nodular Cast Iron Crankcase ", HP:520, TQ:347, TYP:3, ENGWT:500, CL:1, DAMINC:1, CW:8000});
F50.engnum = ENG.length - 1;
ENG.push({CLASS:3, ENGNAME:"DOHC 48 Valve 60\u00B0 V12", HP:550, TQ:525, ENGWT:500, TYP:3, CL:1, DAMINC:1, CW:8000});
MURCIELAGO.engnum = ENG.length - 1;
ENG.push({CLASS:3, ENGNAME:"5.7L V10 68\u00B0 4V Heads Longitudinal Layout", HP:605, TQ:435, ENGWT:500, TYP:3, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:1, ENGNAME:"1.8L DOHC 16V 4Cyl with VVTL-i", HP:180, TQ:130, TYP:1, ENGWT:500, CL:1, DAMINC:1, CW:8000});
CELICA.engnum = ENG.length - 1;
ENG.push({CLASS:1, ENGNAME:"1.8L DOHC 16V EFI 4Cyl with VVT-i", HP:138, TQ:125, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:1, ENGNAME:"Inline-4 with Port Injection", HP:150, TQ:150, TYP:1, ENGWT:500, CL:1, DAMINC:1, CW:8000});
MR2.engnum = ENG.length - 1;
ENG.push({CLASS:2, ENGNAME:"Twin Turbo Inline-6 DOHC 4 Valves / Cyl", HP:320, TQ:315, TYP:1, ENGWT:500, CL:1, DAMINC:1, CW:8000});
SUPRA.engnum = ENG.length - 1;
ENG.push({CLASS:2, ENGNAME:"Aluminum Alloy V6 SOHC 24-Valve", HP:210, TYP:3, TQ:205, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ECLIPSE94.engnum = ENG.length - 1;
ECLIPSE98.engnum = ENG.length - 1;
ENG.push({CLASS:1, ENGNAME:"16V DOHC 4Cyl", HP:210, TQ:214, TYP:3, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:2, ENGNAME:"3.0L TwinTurbo Intercooled V6", HP:315, TQ:315, TYP:3, ENGWT:500, CL:1, DAMINC:1, CW:8000});
GT3000.engnum = ENG.length - 1;
STEALTH.engnum = ENG.length - 1;
ENG.push({CLASS:2, ENGNAME:"2.0L DOHC 16 valve", HP:271, TQ:273, TYP:1, ENGWT:500, CL:1, DAMINC:1, CW:8000});
LANCER8.engnum = ENG.length - 1;
ENG.push({CLASS:1, ENGNAME:"2.0 Liter DOHC 16-Valve Inline 4-Cylinder", HP:134, TQ:132, TYP:1, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:2, ENGNAME:"Horizontally Opposed 4-cylinder Die-Cast Cylinder Heads", HP:227, TQ:217, ENGWT:500, TYP:2, CL:1, DAMINC:1, CW:8000});
IMPREZAWRX.engnum = ENG.length - 1;
IMPREZASTI.engnum = ENG.length - 1;
ENG.push({CLASS:2, ENGNAME:"Horizontally Opposed 4-cylinder Intercooled High-Boost Turbo", HP:300, TQ:300, TYP:2, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:2, ENGNAME:"3.0L Twin-Cam 24-Valve Inline 6 Engine", HP:215, TQ:218, TYP:1, ENGWT:500, CL:1, DAMINC:1, CW:8000});
IS300.engnum = ENG.length - 1;
ENG.push({CLASS:2, ENGNAME:"4.3L DOHC 90\u00BA V8 Engine", HP:300, TQ:325, TYP:3, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:2, ENGNAME:"3.5L V6 DOHC 4 Valves/Cyl with CVTCS", HP:280, TQ:270, TYP:3, ENGWT:500, CL:1, DAMINC:1, CW:8000});
G35.engnum = ENG.length - 1;
ENG.push({CLASS:1, ENGNAME:"1.3L RENESIS 2-Rotor 6-Intake-Port Rotary Engine", HP:238, TQ:159, TYP:2, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:2, ENGNAME:"Wankel Rotary", HP:255, TQ:216, TYP:2, ENGWT:500, CL:1, DAMINC:1, CW:8000});
RX7.engnum = ENG.length - 1;
ENG.push({CLASS:2, ENGNAME:"13B-REW Double Rotary", HP:255, TQ:216, TYP:2, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:2, ENGNAME:"Twin Turbo Inline-6 DOHC 4 Valves / Cyl", HP:276, TQ:199, TYP:1, ENGWT:500, CL:1, DAMINC:1, CW:8000});
SKYLINER33.engnum = ENG.length - 1;
ENG.push({CLASS:2, PARTNO:"Skyline R34 GT-R Nur", ENGNAME:"N1 Inline-6 DOHC Front Longitudinal", HP:280, TYP:1, TQ:289, ENGWT:500, CL:1, DAMINC:1, CW:8000});
SKYLINER34.engnum = ENG.length - 1;
ENG.push({CLASS:2, PARTNO:"300ZX", ENGNAME:"Turbocharged V6 DOHC 4 Valves/Cyl", HP:300, TYP:3, TQ:283, ENGWT:500, CL:1, DAMINC:1, CW:8000});
N300ZX.engnum = ENG.length - 1;
ENG.push({CLASS:2, PARTNO:"Midas", ENGNAME:"DOHC 48 Valve 60\u00B0 V12", HP:400, TYP:3, TQ:350, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:2, PARTNO:"SuperStreet", ENGNAME:"Flat-6 DOHC 4 Valves/Cyl", HP:350, TYP:2, TQ:400, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:2, PARTNO:"Zulu", ENGNAME:"V6 DOHC 4 Valves/Cyl", TYP:3, HP:380, TYP:3, TQ:380, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:2, PARTNO:"CUDA", ENGNAME:"OHV V8", TYP:3, HP:205, TQ:285, ENGWT:500, CL:1, DAMINC:1, CW:8000});
CAMARO91.engnum = ENG.length - 1;
ENG.push({CLASS:2, PARTNO:"CUDA", ENGNAME:"426 Hemi", TYP:3, HP:300, TQ:300, ENGWT:500, CL:1, DAMINC:1, CW:8000});
CUDA.engnum = ENG.length - 1;
CORVETTE.engnum = ENG.length - 1;
CHARGER.engnum = ENG.length - 1;
COBRA.engnum = ENG.length - 1;
CAMARO.engnum = ENG.length - 1;
GTO.engnum = ENG.length - 1;
ENG.push({CLASS:1, PARTNO:"240SX", ENGNAME:"DOHC 2.4L Inline-4", HP:155, TYP:1, TQ:160, ENGWT:500, CL:1, DAMINC:1, CW:8000});
SX240.engnum = ENG.length - 1;
SX24092.engnum = ENG.length - 1;
ENG.push({CLASS:1, PARTNO:"Accord", ENGNAME:"2.4L Inline-4 16-Valve DOHC", HP:155, TYP:1, TQ:160, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ACCORD.engnum = ENG.length - 1;
ENG.push({CLASS:1, PARTNO:"GTi", ENGNAME:"6-Cylinder 15\u00B0 V", TYP:3, HP:195, TQ:195, ENGWT:500, CL:1, DAMINC:1, CW:8000});
GOLF.engnum = ENG.length - 1;
JETTA.engnum = ENG.length - 1;
ENG.push({CLASS:1, PARTNO:"GTi", TYP:1, ENGNAME:"6-Cylinder 15\u00B0 V", HP:250, TQ:200, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:1, PARTNO:"GTi", ENGNAME:"Aluminum Alloy Inline 4 DOHC 16-Valve", HP:200, TYP:1, TQ:230, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:1, PARTNO:"GTi", ENGNAME:"DOHC 1.8L Inline 4", HP:210, TYP:1, TQ:220, ENGWT:500, CL:1, DAMINC:1, CW:8000});
ENG.push({CLASS:1, PARTNO:"B18C5", ENGNAME:"DOHC 1.8L Inline 4", HP:195, TYP:1, TQ:135, ENGWT:500, CL:1, DAMINC:1, CW:8000});
INTEGRA.engnum = ENG.length - 1;
ENG.push({CLASS:1, ENGNAME:"FSD 2.0L DOHC 16-valve Inline-4", HP:130, TYP:1, TQ:135, ENGWT:500, CL:1, DAMINC:1, CW:8000});
PROTEGE.engnum = ENG.length - 1;
ENG.push({CLASS:1, ENGNAME:"Aluminum Alloy Inline 4 DOHC 16-Valve", HP:195, TYP:1, TQ:200, ENGWT:500, CL:1, DAMINC:1, CW:8000});
PRELUDE.engnum = ENG.length - 1;
ENG.push({CLASS:3, ENGNAME:"4.2L V8 32V Twin DOHC Front/Longitudinal", HP:390, TYP:3, TQ:330, ENGWT:500, CL:1, DAMINC:1, CW:8000});
SPYDER.engnum = ENG.length - 1;
ENG.push({CLASS:1, ENGNAME:"2.4L 16V DOHC Inline-4", HP:200, TYP:1, TQ:166, ENGWT:470, CL:1, DAMINC:1, CW:6500});
TSX.engnum = ENG.length - 1;
ENG.push({CLASS:2, ENGNAME:"V8 DOHC 4 V/C", HP:290, TYP:3, TQ:190, ENGWT:470, CL:1, DAMINC:1, CW:6500});
XK8.engnum = ENG.length - 1;
ENG.push({CLASS:3, ENGNAME:"Twin Turbo V6 DOHC 4 V/C", HP:542, TQ:475, ENGWT:470, TYP:3, CL:1, DAMINC:1, CW:6500});
XJ220.engnum = ENG.length - 1;
ENG.push({CLASS:1, ENGNAME:"W12", HP:1000, TQ:1000, TYP:3, ENGWT:470, CL:1, DAMINC:1, CW:6500, dontpost:true});
TEFLON.engnum = ENG.length - 1;
ENG.push({CLASS:1, ENGNAME:"16V DOHC 2.0L Inline-4", HP:200, TYP:1, TQ:142, ENGWT:470, CL:1, DAMINC:1, CW:6500});
RSX.engnum = ENG.length - 1;
MAXHP1 = 0;
MAXTQ1 = 0;
MAXWT1 = 0;
MAXHP2 = 0;
MAXTQ2 = 0;
MAXWT2 = 0;
MAXHP3 = 0;
MAXTQ3 = 0;
MAXWT3 = 0;
var i = 0;
while (i < ENG.length) {
if (ENG[i].HP > this["MAXHP" add ENG[i].CLASS]) {
this["MAXHP" add ENG[i].CLASS] = ENG[i].HP;
}
if (ENG[i].TQ > this["MAXTQ" add ENG[i].CLASS]) {
this["MAXTQ" add ENG[i].CLASS] = ENG[i].TQ;
}
ENG[i].ENGWT = Math.round(200 + (((ENG[i].HP + ENG[i].TQ) / 1000) * 300));
ENG[i].CW = Math.round(Math.pow(ENG[i].HP, 1.4) + Math.pow(ENG[i].TQ, 1.5));
if (ENG[i].ENGWT > this["MAXWT" add ENG[i].CLASS]) {
this["MAXWT" add ENG[i].CLASS] = ENG[i].ENGWT;
}
i++;
}
Frame 68
EXTBRAND = new Array();
EXTBRAND.push("Stock");
EXTBRAND.push("Stock");
EXTBRAND.push("TRD");
EXTBRAND.push("Advan");
EXTBRAND.push("C-West");
EXTBRAND.push("Razo");
ATTRIB_FULL = new Array();
ATTRIB_FULL.push("Frame");
ATTRIB_FULL.push("Base");
ATTRIB_FULL.push("Light Kit");
ATTRIB_FULL.push("Decal");
ATTRIB_FULL.push("Race Team Sticker");
ATTRIB_FULL.push("Front Lip Bodykit");
ATTRIB_FULL.push("Side Skirt Bodykit");
ATTRIB_FULL.push("Back Lip Bodykit");
ATTRIB_FULL.push("Hood");
ATTRIB_FULL.push("Window");
ATTRIB_FULL.push("Rims");
ATTRIB_FULL.push("Interior Seats");
ATTRIB_FULL.push("Wing");
ATTRIB_FULL.push("Exhaust Tip");
RIMS_FULL = new Array();
RIMS_FULL.push("Zigen");
RIMS_FULL.push("Akuza");
RIMS_FULL.push("Antera");
RIMS_FULL.push("ATS");
RIMS_FULL.push("Club Linea");
RIMS_FULL.push("Enkei");
RIMS_FULL.push("Fittipaldi");
RIMS_FULL.push("Fondimetal");
RIMS_FULL.push("G-Games");
RIMS_FULL.push("MB Motor");
RIMS_FULL.push("Nakayama");
RIMS_FULL.push("Privat");
RIMS_FULL.push("Rage");
RIMS_FULL.push("Rozzi");
RIMS_FULL.push("TSW");
RIMS_FULL.push("VOXX");
RIMS_FULL.push("Zigen");
RIMS_FULL.push("Akuza");
RIMS_FULL.push("Antera");
RIMS_FULL.push("ATS");
RIMS_FULL.push("Club Linea");
RIMS_FULL.push("Enkei");
RIMS_FULL.push("Fittipaldi");
RIMS_FULL.push("Fondimetal");
RIMS_FULL.push("G-Games");
RIMS_FULL.push("MB Motor");
RIMS_FULL.push("Nakayama");
RIMS_FULL.push("Privat");
RIMS_FULL.push("Rage");
RIMS_FULL.push("Rozzi");
RIMS_FULL.push("TSW");
RIMS_FULL.push("VOXX");
Frame 69
if (id != undefined) {
gotoAndStop (928);
}
Frame 70
filename0 = appdir add "\\DROLogin.drd";
content0 = "CREATE";
fscommand ("flashstudio.loadfromfile", "filename0,content0");
filename = appdir add "\\TextSettings.drd";
content = "fontt=arial&col=black&style=";
fscommand ("flashstudio.loadfromfile", "filename,content");
filename2 = appdir add "\\ControlSettings.drd";
content2 = "111";
fscommand ("flashstudio.loadfromfile", "filename2,content2");
filename3 = appdir add "\\Settings.drd";
content3 = "mode=directx&x=640&y=480&";
fscommand ("flashstudio.loadfromfile", "filename3,content3");
filename4 = appdir add "\\bkup.bat";
content4 = "";
fscommand ("flashstudio.loadfromfile", "filename4,content4");
Frame 71
function weAreConnected(success, error) {
if (success) {
gotoAndStop ("Login");
} else {
msg.text = error;
}
}
function login(username, password) {
if ((username.length > 2) && (username.length < 12)) {
es.login(username, password);
gotoAndStop ("Waiting");
}
}
function loggedIn(success, error) {
if (success) {
trace("Logged In");
joinLobby();
} else {
msg.text = error;
}
}
function joinLobby() {
gotoAndPlay ("chat");
}
function roomJoined(results, myRoom) {
if (results.success) {
gotoAndStop ("Chat");
} else {
msg.text = results.error;
}
}
function ConstructES(ip, port) {
es = new ElectroServerAS();
es.setIP(ip);
es.setPort(port);
es.onConnect = weAreConnected;
es.loggedIn = loggedIn;
es.roomJoined = roomJoined;
gotoAndStop ("Connecting");
}
Types = new Array();
Types.push("Ricer");
Types.push("Tuner");
Types.push("Moderator");
BasePort = 4000;
_global.WddxRecordset = function () {
this.preserveFieldCase = true;
if (typeof(wddxRecordsetExtensions) == "object") {
for (esprop in wddxRecordsetExtensions) {
this[esprop] = wddxRecordsetExtensions[esprop];
}
}
if (arguments.length > 0) {
if (typeof((val = arguments[0].valueOf())) == "boolean") {
this.preserveFieldCase = arguments[0];
} else {
var _local7 = arguments[0];
var _local6 = 0;
if (arguments.length > 1) {
if (typeof((val = arguments[1].valueOf())) == "boolean") {
this.preserveFieldCase = arguments[1];
} else {
_local6 = arguments[1];
if (arguments.length > 2) {
this.preserveFieldCase = arguments[2];
}
}
}
var _local4 = 0;
while (_local4 < _local7.length) {
var _local5 = new Array(_local6);
var _local3 = 0;
while (_local3 < _local6) {
_local5[_local3] = null;
_local3++;
}
this[(this.preserveFieldCase ? (_local7[_local4]) : (_local7[_local4].toLowerCase()))] = _local5;
_local4++;
}
}
}
};
wddxRecordset.prototype.duplicate = function () {
copy = new WddxRecordset();
for (i in this) {
if (i.toUpper() == "PRESERVEFIELDCASE") {
copy[i] = this[i];
} else if (this[i].isColumn()) {
copy.addColumn(i);
for (j in this[i]) {
copy.setField(j, i, this.getField(j, i));
}
}
}
return(copy);
};
WddxRecordset.prototype.isColumn = function (name) {
return((typeof(this[name]) == "object") && (name.indexOf("_private_") == -1));
};
WddxRecordset.prototype.getRowCount = function () {
var _local2 = 0;
for (col in this) {
if (this.isColumn(col)) {
_local2 = this[col].length;
break;
}
}
return(_local2);
};
WddxRecordset.prototype.addColumn = function (name) {
var _local4 = this.getRowCount();
var _local3 = new Array(_local4);
var _local2 = 0;
while (_local2 < _local4) {
_local3[_local2] = null;
_local2++;
}
this[(this.preserveFieldCase ? (name) : (name.toLowerCase()))] = _local3;
};
WddxRecordset.prototype.addRows = function (n) {
for (col in this) {
if (this.isColumn(col)) {
var _local3 = this[col].length;
var _local2 = _local3;
while (_local2 < (_local3 + n)) {
this[col][_local2] = "";
_local2++;
}
}
}
};
WddxRecordset.prototype.getField = function (row, col) {
return(this[(this.preserveFieldCase ? (col) : (col.toLowerCase()))][row]);
};
WddxRecordset.prototype.setField = function (row, col, value) {
this[(this.preserveFieldCase ? (col) : (col.toLowerCase()))][row] = value;
};
WddxRecordset.prototype.wddxSerialize = function (serializer, node) {
var _local7 = "";
var _local8 = new Array();
var _local4 = 0;
for (col in this) {
if (this.isColumn(col)) {
_local8[_local4++] = col;
if (_local7.length > 0) {
_local7 = _local7 + ",";
}
_local7 = _local7 + col;
}
}
var _local9 = this.getRowCount();
node.appendChild(new XML().createElement("recordset"));
node.lastChild.attributes.rowCount = _local9;
node.lastChild.attributes.fieldNames = _local7;
var _local3 = true;
_local4 = 0;
while (_local3 && (_local4 < _local8.length)) {
var _local5 = _local8[_local4];
node.lastChild.appendChild(new XML().createElement("field"));
node.lastChild.lastChild.attributes.name = _local5;
var _local2 = 0;
while (_local3 && (_local2 < _local9)) {
_local3 = serializer.serializeValue(this[_local5][_local2], node.lastChild.lastChild);
_local2++;
}
_local4++;
}
return(_local3);
};
_global.Wddx = function () {
var _local5 = new Object();
var _local7 = new Object();
var _local4 = new Object();
var _local6 = new Object();
var _local2 = 0;
while (_local2 < 256) {
if ((((_local2 < 32) && (_local2 != 9)) && (_local2 != 10)) && (_local2 != 13)) {
var _local3 = _local2.toString(16);
if (_local3.length == 1) {
_local3 = "0" + _local3;
}
_local5[_local2] = ("<char code='" + _local3) + "'/>";
_local4[_local2] = "";
} else if (_local2 < 128) {
_local5[_local2] = chr(_local2);
_local4[_local2] = chr(_local2);
} else {
_local5[_local2] = ("&#x" + _local2.toString(16)) + ";";
_local7[("&#x" + _local2.toString(16)) + ";"] = chr(_local2);
_local4[_local2] = ("&#x" + _local2.toString(16)) + ";";
_local6[("&#x" + _local2.toString(16)) + ";"] = chr(_local2);
}
_local2++;
}
_local5[60] = "<";
_local5[62] = ">";
_local5[38] = "&";
_local7["<"] = "<";
_local7[">"] = ">";
_local7["&"] = "&";
_local4[60] = "<";
_local4[62] = ">";
_local4[38] = "&";
_local4[39] = "'";
_local4[34] = """;
_local6["<"] = "<";
_local6[">"] = ">";
_local6["&"] = "&";
_local6["'"] = "'";
_local6["""] = "\"";
this.et = _local5;
this.at = _local4;
this.atRev = _local6;
this.etRev = _local7;
var _local8 = new Date().getTimezoneOffset();
if (_local8 >= 0) {
this.timezoneString = "-";
} else {
this.timezoneString = "+";
}
this.timezoneString = this.timezoneString + ((Math.floor(Math.abs(_local8) / 60) + ":") + (Math.abs(_local8) % 60));
this.preserveVarCase = true;
this.useTimezoneInfo = true;
};
Wddx.prototype.serialize = function (rootObj) {
delete this.wddxPacket;
var _local2 = new XML();
this.packet = new XML();
this.packet.appendChild(_local2.createElement("wddxPacket"));
this.wddxPacket = this.packet.firstChild;
this.wddxPacket.attributes.version = "1.0";
this.wddxPacket.appendChild(_local2.createElement("header"));
this.wddxPacket.appendChild(_local2.createElement("data"));
if (this.serializeValue(rootObj, this.wddxPacket.childNodes[1])) {
return(this.packet);
}
return(null);
};
Wddx.prototype.serializeValue = function (obj, node) {
var _local4 = true;
var _local6 = obj.valueOf();
var _local8 = null;
var _local7 = new XML();
if (obj == null) {
node.appendChild(_local7.createElement("null"));
} else if (typeof(_local6) == "string") {
this.serializeString(_local6, node);
} else if (typeof(_local6) == "number") {
if (typeof(obj.getTimezoneOffset) == "function") {
if (this.useTimeZoneInfo) {
_local8 = this.timezoneString;
}
node.appendChild(_local7.createElement("dateTime"));
node.lastChild.appendChild(_local7.createTextNode(((((((((((obj.getFullYear() + "-") + (obj.getMonth() + 1)) + "-") + obj.getDate()) + "T") + obj.getHours()) + ":") + obj.getMinutes()) + ":") + obj.getSeconds()) + _local8));
} else {
node.appendChild(new XML().createElement("number"));
node.lastChild.appendChild(new XML().createTextNode(_local6));
}
} else if (typeof(_local6) == "boolean") {
node.appendChild(_local7.createElement("boolean"));
node.lastChild.attributes.value = _local6;
} else if (typeof(obj) == "object") {
if (typeof(obj.wddxSerialize) == "function") {
_local4 = obj.wddxSerialize(this, node);
} else if ((typeof(obj.join) == "function") && (typeof(obj.reverse) == "function")) {
node.appendChild(_local7.createElement("array"));
node.lastChild.attributes.length = obj.length;
var _local3 = 0;
while (_local4 && (_local3 < obj.length)) {
_local4 = this.serializeValue(obj[_local3], node.lastChild);
_local3++;
}
} else {
node.appendChild(_local7.createElement("struct"));
if (typeof(obj.wddxSerializationType) == "string") {
node.lastChild.attributes.type = obj.wddxSerializationType;
}
for (esprop in obj) {
if (esprop != "wddxSerializationType") {
_local4 = this.serializeVariable(esprop, obj[esprop], node.lastChild);
if (!_local4) {
break;
}
}
}
}
} else {
_local4 = false;
}
return(_local4);
};
Wddx.prototype.serializeVariable = function (name, obj, node) {
var _local2 = true;
var _local3 = new XML();
if (typeof(obj) != "function") {
node.appendChild(_local3.createElement("var"));
node.lastChild.attributes.name = (this.preserveVarCase ? (this.serializeAttr(name)) : (this.serializeAttr(name.toLowerCase())));
_local2 = this.serializeValue(obj, node.lastChild);
}
return(_local2);
};
Wddx.prototype.serializeString = function (s, node) {
var _local5;
var _local7 = new XML();
var _local6 = s.length;
node.appendChild(_local7.createElement("string"));
var _local2 = 0;
while (_local2 < _local6) {
var _local4 = substring(s, _local2 + 1, 1);
_local5 = _local5 + this.et[ord(substring(s, _local2 + 1, 1))];
_local2++;
}
node.lastChild.appendChild(_local7.createTextNode(_local5));
};
Wddx.prototype.serializeAttr = function (s) {
var _local3;
var _local4 = s.length;
var _local2 = 0;
while (_local2 < _local4) {
_local3 = _local3 + this.at[ord(substring(s, _local2 + 1, 1))];
_local2++;
}
return(_local3);
};
Wddx.prototype.deserialize = function (wddxPacket) {
if (typeof(wddxPacket) != "object") {
wddxPacket = new XML(wddxPacket);
}
var _local5 = new XML();
var _local4 = new Array();
var _local2;
var _local6 = new Object();
while (wddxPacket.nodeName == null) {
wddxPacket = wddxPacket.firstChild;
}
_local5 = wddxPacket;
if (_local5.nodeName.toLowerCase() == "wddxpacket") {
_local4 = _local5.childNodes;
_local2 = 0;
while ((_local4[_local2].nodeName.toLowerCase() != "data") && (_local2 < _local4.length)) {
_local2++;
}
if (_local2 < _local4.length) {
_local6 = this.deserializeNode(_local4[_local2].firstChild);
return(_local6);
}
return(null);
}
return(null);
};
Wddx.prototype.deserializeNode = function (node) {
nodeType = node.nodeName.toLowerCase();
if (nodeType == "number") {
var _local6 = node.firstChild.nodeValue;
return(Number(_local6));
}
if (nodeType == "boolean") {
var _local6 = String(node.attributes.value).toLowerCase() == "true";
return(_local6);
}
if (nodeType == "string") {
if (node.childNodes.length > 1) {
var _local6 = "";
var _local4 = 0;
_local4 = 0;
while (_local4 < node.childNodes.length) {
if (node.childNodes[_local4].nodeType == 3) {
_local6 = _local6 + this.deserializeString(node.childNodes[_local4].nodeValue);
} else if (node.childNodes[_local4].nodeName == "char") {
_local6 = _local6 + chr(parseInt(node.childNodes[_local4].attributes.code, 16));
}
_local4++;
}
} else {
var _local6 = this.deserializeString(node.firstChild.nodeValue);
}
return(_local6);
}
if (nodeType == "array") {
var _local6 = new Array();
temp = 0;
var _local4 = 0;
while (_local4 < node.attributes.length) {
_local6[_local4] = this.deserializeNode(node.childNodes[_local4].cloneNode(true));
_local4++;
}
return(_local6);
}
if (nodeType == "datetime") {
var _local8 = node.firstChild.nodeValue;
var _local12 = _local8.indexOf("T");
var _local7 = _local8.indexOf("+");
var _local9 = new Array();
var _local11 = new Array();
var _local10 = new Array();
var _local6 = new Date();
if (_local7 == -1) {
_local7 = _local8.lastIndexOf("-");
if (_local7 < _local12) {
_local7 = -1;
}
}
_local9 = _local8.slice(0, _local12).split("-");
_local11 = _local8.slice(_local12 + 1, _local7).split(":");
_local10 = _local8.slice(_local7).split(":");
_local6.setFullYear(parseInt(_local9[0]), parseInt(_local9[1]) - 1, parseInt(_local9[2]));
_local6.setHours(parseInt(_local11[0]), parseInt(_local11[1]));
if (_local7 != -1) {
tzOffset = (parseInt(_local10[0]) * 60) + parseInt(_local10[1]);
_local6.setMinutes(_local6.getMinutes() - (_local6.getTimezoneOffset() + tzOffset));
}
return(_local6);
}
if (nodeType == "struct") {
var _local6 = new Object();
var _local4 = 0;
while (_local4 < node.childNodes.length) {
if (node.childNodes[_local4].nodeName.toLowerCase() == "var") {
_local6[this.deserializeAttr(node.childNodes[_local4].attributes.name)] = this.deserializeNode(node.childNodes[_local4].firstChild);
}
_local4++;
}
return(_local6);
}
if (nodeType == "recordset") {
var _local6 = new WddxRecordset(node.attributes.fieldNames.split(",").reverse(), parseInt(node.attributes.rowCount));
var _local4 = node.childNodes.length - 1;
while (_local4 >= 0) {
if (node.childNodes[_local4].nodeName.toLowerCase() == "field") {
var _local5 = this.deserializeAttr(node.childNodes[_local4].attributes.name);
_local6[_local5].wddxSerializationType = "field";
var _local3 = node.childNodes[_local4].childNodes.length - 1;
while (_local3 >= 0) {
_local6[_local5][_local3] = new Object();
tempObj = this.deserializeNode(node.childNodes[_local4].childNodes[_local3]);
_local6.setField(_local3, _local5, tempObj);
_local3--;
}
}
_local4--;
}
return(_local6);
}
};
Wddx.prototype.deserializeAttr = function (attr) {
var _local7 = attr.length;
var _local3 = 0;
var _local2;
var _local6 = "";
while (_local3 < _local7) {
_local2 = substring(attr, _local3 + 1, 1);
if (_local2 == "&") {
var _local4 = _local2;
do {
_local2 = substring(attr, _local3 + 1, 1);
_local4 = _local4 + _local2;
_local3++;
} while (_local2 != ";");
_local6 = _local6 + this.atRev[_local4];
} else {
_local6 = _local6 + _local2;
}
_local3++;
}
return(_local6);
};
Wddx.prototype.deserializeString = function (str) {
var _local7 = str.length;
var _local3 = 0;
var _local2;
var _local6 = "";
while (_local3 < _local7) {
_local2 = substring(str, _local3 + 1, 1);
if (_local2 == "&") {
var _local4 = _local2;
do {
_local3++;
_local2 = substring(str, _local3 + 1, 1);
_local4 = _local4 + _local2;
} while (_local2 != ";");
_local6 = _local6 + this.etRev[_local4];
} else {
_local6 = _local6 + _local2;
}
_local3++;
}
return(_local6);
};
ElectroServerAS = function () {
_global.ElectroServer = this;
this.user = new Object();
this.isConnected = false;
this.nodeNameList = {Users:true, Zones:true, UserVariables:true, RoomVariables:true, Rooms:true, Variables:true, BannedUsers:true, Plugins:true, Moderators:true, Words:true, RootWords:true, Templates:true};
};
ElectroServerAS.prototype.onFirstConnect = function (success) {
if (!success) {
var _local2 = "Was not able to connect to the server.";
this.where.isConnected = false;
this.where.onConnect(success, _local2);
}
};
ElectroServerAS.prototype.pluginRequest = function (plugin, method, parameters) {
var _local5 = "ExecutePlugin";
var _local2 = "<Variables />";
if (parameters != undefined) {
_local2 = "<Variables>";
for (var _local3 in parameters) {
_local2 = _local2 + (((("<Variable><Name>" + _local3) + "</Name><Value>") + parameters[_local3]) + "</Value></Variable>");
}
_local2 = _local2 + "</Variables>";
}
parameters = (((("<Plugin>" + plugin) + "</Plugin><Method>") + method) + "</Method>") + _local2;
this.send(_local5, parameters);
};
ElectroServerAS.prototype.terminateHere = function (xml) {
return((xml.childNodes[0].hasChildNodes() ? false : true));
};
ElectroServerAS.prototype.xmlReceived = function (data) {
trace("-----incomming----");
trace(data);
var _local3 = data.firstChild.childNodes;
var _local6 = _local3[0].firstChild.nodeValue.toLowerCase();
var _local5 = _local3[1].childNodes;
var _local4 = new Object();
var _local2 = this.where;
_local2.parseParameters(_local5, _local4, _local2);
_local2.applyAction(_local6, _local4, _local2);
};
ElectroServerAS.prototype.isArrayNodeName = function (nodeName, where) {
if (where.nodeNameList[nodeName]) {
return(true);
}
return(false);
};
ElectroServerAS.prototype.parseParameters = function (info, parentOb, where) {
var _local6 = 0;
while (_local6 < info.length) {
var _local2 = info[_local6];
var _local9 = where.terminateHere(_local2);
var _local11 = _local2.nodeName;
if (parentOb instanceof Array) {
var _local7 = new Object();
parentOb.push(_local7);
_local7 = parentOb[parentOb.length - 1];
} else {
parentOb[_local11] = new Object();
var _local7 = parentOb[_local11];
}
for (var _local12 in _local2.attributes) {
if (_local7.attributes == undefined) {
_local7.attributes = new Object();
}
var _local1 = _local2.attributes[_local12];
if (!isNaN(_local1)) {
_local1 = Number(_local1);
}
if (_local1.toLowerCase() == "true") {
_local1 = true;
} else if (_local1.toLowerCase() == "false") {
_local1 = false;
}
_local7.attributes[_local12] = _local1;
}
if (where.isArrayNodeName(_local11, where)) {
_local7[_local11] = new Array();
var _local7 = _local7[_local11];
}
if (_local9) {
var _local3 = _local2.firstChild.nodeValue;
if ((!isNaN(_local3, where)) && (_local3 != undefined)) {
_local3 = Number(_local3);
}
_local7.value = _local3;
} else {
_local11 = _local2.nodeName;
var _local8 = _local2.childNodes;
where.parseParameters(_local8, _local7, where, arrOb);
}
_local6++;
}
};
ElectroServerAS.prototype.login = function (username, password) {
this.user.username = username;
if (password == undefined) {
password = "";
}
this.user.password = password;
this.username = this.user.username;
this.password = this.user.password;
var _local4 = "Login";
var _local2 = ((("<Name>" + this.user.username) + "</Name><Password>") + this.user.password) + "</Password><UserVariables/>";
this.send(_local4, _local2);
};
ElectroServerAS.prototype.loadConfiguration = function () {
var _local3 = "LoadConfiguration";
var _local2 = "";
this.send(_local3, _local2);
};
ElectroServerAS.prototype.adminLogin = function (username, password) {
this.user.username = username;
if (password == undefined) {
password = "";
}
this.user.password = password;
this.username = this.user.username;
this.password = this.user.password;
var _local4 = "AdminLogin";
var _local2 = ((("<Name>" + this.user.username) + "</Name><Password>") + this.user.password) + "</Password>";
this.send(_local4, _local2);
};
ElectroServerAS.prototype.deleteRoomVariable = function (name) {
var _local3 = "DeleteRoomVariable";
var _local2 = ("<RoomVariable ><Name>" + name) + "</Name></RoomVariable>";
this.send(_local3, _local2);
};
ElectroServerAS.prototype.changeRoomDetail = function (detail, value) {
var _local10 = "ChangeRoomDetails";
var _local5;
var _local3;
detail = detail.toLowerCase();
var _local6 = "";
if (detail == "description") {
_local5 = "ChangeDescription";
_local3 = "Description";
value.attributes.isGameRoom = true;
var _local8 = new WDDX();
var _local9 = ("<![CDATA[" + _local8.serialize(value)) + "]]>";
} else if (detail == "updatable") {
_local5 = "ChangeUpdatable";
_local3 = "Updatable";
var _local9 = value;
} else if (detail == "hidden") {
_local5 = "ChangeVisibility";
_local3 = "Hidden";
var _local9 = value;
} else if (detail == "capacity") {
_local5 = "ChangeCapacity";
filed = "Capacity";
if ((value == undefined) || (value == 0)) {
value = -1;
}
var _local9 = value;
} else if (detail == "password") {
_local5 = "ChangePasswordProtected";
_local3 = "Password";
var _local9 = value;
if (value == undefined) {
value = "";
}
if (value.length >= 1) {
var _local11 = true;
} else {
var _local11 = false;
}
_local6 = ("<IsProtected>" + _local11) + "</IsProtected>";
}
var _local7 = ((((((((("<MinorAction>" + _local5) + "</MinorAction>") + _local6) + "<") + _local3) + ">") + _local9) + "</") + _local3) + ">";
this.send(_local10, _local7);
};
ElectroServerAS.prototype.kick = function (name, reason) {
if (reason == undefined) {
reason = "";
}
var _local4 = "ModeratorCommand";
var _local2 = ((("<MinorAction>Kick</MinorAction><UserName>" + name) + "</UserName><Reason>") + reason) + "</Reason>";
this.send(_local4, _local2);
};
ElectroServerAS.prototype.ban = function (name, reason, expires) {
if (reason == undefined) {
reason = "";
}
if (expires == undefined) {
expires = "-1";
}
var _local5 = "ModeratorCommand";
var _local2 = ((((("<MinorAction>Ban</MinorAction><UserName>" + name) + "</UserName><Reason>") + reason) + "</Reason><Expires>") + expires) + "</Expires>";
this.send(_local5, _local2);
};
ElectroServerAS.prototype.createUserVariable = function (name, value) {
var _local3 = "UpdateUserVariable";
var _local2 = ((("<MinorAction>Create</MinorAction><Name>" + name) + "</Name><Data>") + value) + "</Data>";
this.send(_local3, _local2);
};
ElectroServerAS.prototype.updateUserVariable = function (name, value) {
var _local3 = "UpdateUserVariable";
var _local2 = ((("<MinorAction>Update</MinorAction><Name>" + name) + "</Name><Data>") + value) + "</Data>";
this.send(_local3, _local2);
};
ElectroServerAS.prototype.deleteUserVariable = function (name) {
var _local3 = "DeleteUserVariable";
var _local2 = ("<UserVariable><Name>" + name) + "</Name></UserVariable>";
this.send(_local3, _local2);
};
ElectroServerAS.prototype.createUserVariable = function (name, value) {
var _local3 = "UpdateUserVariable";
var _local2 = ((("<MinorAction>Create</MinorAction><Name>" + name) + "</Name><Data>") + value) + "</Data>";
this.send(_local3, _local2);
};
ElectroServerAS.prototype.createRoomVariable = function (ob) {
var _local3 = ob.name;
var _local6 = ob.data;
var _local4 = ob.persistent;
var _local2 = ob.locked;
if (_local4 == undefined) {
_local4 = false;
}
if (_local2 == undefined) {
_local2 = false;
}
if (this.zone.myRoom.roomVariables[_local3] == undefined) {
var _local8 = "CreateRoomVariable";
var _local7 = ((((((("<RoomVariable Persistent=\"" + _local4) + "\" Locked=\"") + _local2) + "\" ><Name>") + _local3) + "</Name><Data><![CDATA[") + _local6) + "]]></Data></RoomVariable>";
} else {
var _local8 = "UpdateRoomVariable";
var _local7 = ((((("<RoomVariable Locked=\"" + _local2) + "\" ><Name>") + _local3) + "</Name><Data><![CDATA[") + _local6) + "]]></Data></RoomVariable>";
}
this.send(_local8, _local7);
};
ElectroServerAS.prototype.send = function (action, parameters) {
var _local2 = ((("<XmlDoc><Action>" + action) + "</Action><Parameters>") + parameters) + "</Parameters></XmlDoc>";
trace("---out going----");
trace(_local2);
this.server.send(_local2);
};
ElectroServerAS.prototype.close = function () {
this.server.close();
this.onClose(false);
};
ElectroServerAS.prototype.serverClosedConnection = function () {
this.where.onClose(true);
};
ElectroServerAS.prototype.connect = function (ip, port) {
if (ip != undefined) {
this.setIP(ip);
}
if (port != undefined) {
this.setPort(port);
}
this.connected = false;
this.server = new XMLSocket();
this.server.where = this;
this.server.onConnect = this.onFirstConnect;
this.server.onXML = this.xmlReceived;
this.server.onClose = this.serverClosedConnection;
this.server.connect(this.ip, this.port);
};
ElectroServerAS.prototype.setIP = function (ip) {
this.ip = ip;
};
ElectroServerAS.prototype.getIP = function () {
return(this.ip);
};
ElectroServerAS.prototype.setPort = function (port) {
this.port = port;
};
ElectroServerAS.prototype.getPort = function () {
return(this.port);
};
ElectroServerAS.prototype.getZone = function () {
return(this.zone);
};
ElectroServerAS.prototype.joinGame = function (room, password, type, zone) {
type = type.toLowerCase();
if ((type == "player") || (type == undefined)) {
var _local3 = true;
} else if (type == "spectator") {
var _local3 = false;
}
this.joinRoom(room, password, zone, _local3);
this.inGame = true;
};
ElectroServerAS.prototype.joinRoom = function (room, password, zone, numbered) {
var _local5 = "JoinRoom";
if (numbered == undefined) {
numbered = true;
}
if (password == undefined) {
password = "";
}
if (zone == undefined) {
zone = this.zone.name;
}
this.pendingRoom = room;
this.inGame = false;
this.creatingRoom = false;
var _local2 = ((((((("<Zone><Name>" + zone) + "</Name><Room><Name>") + room) + "</Name><Password>") + password) + "</Password><Numbered>") + numbered) + "</Numbered></Room></Zone>";
this.send(_local5, _local2);
};
ElectroServerAS.prototype.sendMessage = function (type, message, users, variables) {
type = type.toLowerCase();
if ((type == "public") || (type == "all")) {
this.sendPublicMessage(message, users);
} else if (type == "private") {
this.sendPrivateMessage(message, users, variables);
}
};
ElectroServerAS.prototype.sendPublicMessage = function (message, variables) {
var _local8 = "SendPublicMessage";
var _local4 = "";
for (var _local6 in variables) {
var _local2 = _local6;
var _local3 = variables[_local6];
_local4 = _local4 + (((("<Variable><Name>" + _local2) + "</Name><Data><![CDATA[") + _local3) + "]]></Data></Variable>");
}
if (_local4 != "") {
_local4 = ("<Variables>" + _local4) + "</Variables>";
} else {
_local4 = "<Variables />";
}
var _local7 = (("<Message><![CDATA[" + message) + "]]></Message>") + _local4;
this.send(_local8, _local7);
};
ElectroServerAS.prototype.sendPrivateMessage = function (message, users, variables) {
var _local11 = "SendPrivateMessage";
var _local8 = "<Users>";
var _local9 = 0;
while (_local9 < users.length) {
var _local4 = users[_local9];
_local8 = _local8 + (("<User>" + _local4) + "</User>");
_local9++;
}
_local8 = _local8 + "</Users>";
var _local5 = "";
for (_local9 in variables) {
var _local2 = _local9;
var _local3 = variables[_local9];
_local5 = _local5 + (((("<Variable><Name>" + _local2) + "</Name><Data><![CDATA[") + _local3) + "]]></Data></Variable>");
}
if (_local5 != "") {
_local5 = ("<Variables>" + _local5) + "</Variables>";
} else {
_local5 = "<Variables />";
}
var _local10 = (((_local8 + "<Message>") + message) + "</Message>") + _local5;
this.send(_local11, _local10);
};
ElectroServerAS.prototype.cancelChallenge = function () {
this.challenging = false;
delete this.opponent;
var _local2 = new Object();
_local2.action = "challengecancelled";
this.sendMove(who, _local2);
};
ElectroServerAS.prototype.sendChallenge = function (who, game) {
var _local2 = new Object();
_local2.action = "challenge";
_local2.game = game;
this.challenging = true;
this.opponent = who;
this.sendMove(who, _local2);
};
ElectroServerAS.prototype.sendAutoDecline = function (who) {
var _local2 = new Object();
_local2.action = "autodecline";
this.sendMove(who, _local2);
};
ElectroServerAS.prototype.sendDecline = function (who) {
var _local2 = new Object();
_local2.action = "decline";
this.sendMove(who, _local2);
};
ElectroServerAS.prototype.sendMove = function (who, ob) {
var _local8 = new WDDX();
var _local6 = _local8.serialize(ob);
if (who.toLowerCase() == "all") {
var _local9 = "SendPublicMessage";
var _local7 = ("<Message><![CDATA[" + _local6) + "]]></Message><Variables><Variable><Name>Action</Name><Data>Move</Data></Variable><Variable><Name>MoveType</Name><Data>Public</Data></Variable></Variables>";
} else {
var _local9 = "SendPrivateMessage";
var _local4 = who;
var _local5 = "<Users>";
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5 = _local5 + (("<User>" + _local3) + "</User>");
_local2++;
}
_local5 = _local5 + "</Users>";
var _local7 = ((_local5 + "<Message><![CDATA[") + _local6) + "]]></Message><Variables><Variable><Name>Action</Name><Data>Move</Data></Variable><Variable><Name>MoveType</Name><Data>Public</Data></Variable></Variables>";
}
this.send(_local9, _local7);
};
ElectroServerAS.prototype.getRoomList = function () {
return(this.zone.rooms);
};
ElectroServerAS.prototype.getRoom = function () {
return(this.zone.myRoom);
};
ElectroServerAS.prototype.getUserList = function () {
return(this.zone.users);
};
ElectroServerAS.prototype.createGameRoom = function (roomOb) {
if (roomOb.attributes == undefined) {
roomOb.attributes = new Object();
}
roomOb.attributes.isGameRoom = true;
roomOb.updatable = false;
roomOb.numbered = true;
this.createRoom(roomOb);
};
ElectroServerAS.prototype.createRoom = function (roomOb, auto_join) {
if ((auto_join == undefined) || (auto_join == "true")) {
auto_join = true;
} else {
auto_join = false;
}
this.auto_join = auto_join;
var _local34 = "CreateRoom";
var _local24 = roomOb.password;
var _local22 = roomOb.userVariablesEnabled;
var _local28 = roomOb.hidden;
var _local19 = roomOb.zone;
var _local30 = roomOb.roomName;
var _local26 = roomOb.numbered;
var _local25 = roomOb.capacity;
var _local27 = roomOb.description;
var _local14 = roomOb.roomVariables;
var _local29 = roomOb.updatable;
var _local13 = roomOb.plugins;
var _local20 = new Object();
var _local23 = roomOb.FloodingFilterEnabled;
_local20.description = _local27;
if (roomOb.attributes != undefined) {
_local20.attributes = roomOb.attributes;
}
var _local32 = new WDDX();
var _local33 = _local32.serialize(_local20);
if (_local19 == undefined) {
_local19 = this.zone.name;
}
if (_local23 == undefined) {
_local23 = true;
}
if (_local29 == undefined) {
_local29 = true;
}
if (_local28 == undefined) {
_local28 = false;
}
if (_local25 == undefined) {
_local25 = -1;
}
if (_local26 == undefined) {
_local26 = false;
}
if (_local27 == undefined) {
_local27 = "";
}
if (_local24 == undefined) {
_local24 = "";
}
if (_local22 == undefined) {
_local22 = false;
}
if (_local14 == undefined) {
var _local18 = "<RoomVariables/>";
} else {
var _local18 = "<RoomVariables>";
var _local8 = 0;
while (_local8 < _local14.length) {
var _local3 = _local14[_local8];
var _local9 = _local3.persistent;
var _local7 = _local3.locked;
var _local11 = _local3.name;
var _local12 = _local3.data;
if (_local9 == undefined) {
_local9 = false;
}
if (_local7 == undefined) {
_local7 = false;
}
var _local4 = ((("<RoomVariable Persistent=\"" + _local9) + "\" Locked=\"") + _local7) + "\">";
_local4 = _local4 + (("<Name>" + _local11) + "</Name>");
_local4 = _local4 + (("<Data><![CDATA[" + _local12) + "]]></Data>");
_local4 = _local4 + "</RoomVariable>";
_local18 = _local18 + _local4;
_local8++;
}
_local18 = _local18 + "</RoomVariables>";
}
if (_local13 == undefined) {
var _local17 = "<Plugins />";
} else {
var _local17 = "<Plugins>";
var _local8 = 0;
while (_local8 < _local13.length) {
var _local10 = _local13[_local8];
var _local11 = _local10.name;
var _local2 = _local10.variables;
if (_local2 == undefined) {
var _local6 = "<Variables />";
} else {
var _local6 = "<Variables>";
for (var _local16 in _local2) {
var _local5 = _local2[_local16];
_local6 = _local6 + (((("<Variable><Name>" + _local16) + "</Name><Value>") + _local5) + "</Value></Variable>");
}
_local6 = _local6 + "</Variables>";
}
_local17 = _local17 + (((("<Plugin><Name>" + _local11) + "</Name>") + _local6) + "</Plugin>");
_local8++;
}
_local17 = _local17 + "</Plugins>";
}
var _local31 = (((((((((((((((((((((("<Zone><Name>" + _local19) + "</Name><Room Updatable=\"") + _local29) + "\" Hidden=\"") + _local28) + "\" Numbered=\"") + _local26) + "\" FloodingFilterEnabled=\"") + _local23) + "\" UserVariablesEnabled=\"") + _local22) + "\"><Name>") + _local30) + "</Name><Password>") + _local24) + "</Password><Description><![CDATA[") + _local33) + "]]></Description><Capacity>") + _local25) + "</Capacity>") + _local18) + _local17) + "</Room></Zone>";
this.joiningRoom = true;
this.pendingRoom = _local30;
this.pendingZone = _local19;
this.creatingRoom = true;
this.send(_local34, _local31);
};
ElectroServerAS.prototype.getUser = function () {
return(this.myUser);
};
ElectroServerAS.prototype.getRoomVariables = function () {
return(this.zone.myRoom.roomVariables);
};
ElectroServerAS.prototype.parseConfig = function (config, where) {
XML.prototype.ignoreWhite = true;
var _local2 = new XML(config);
var _local1 = new Object();
where.parseParameters(_local2.firstChild.childNodes, _local1, where);
where.configurationLoaded(_local1);
};
ElectroServerAS.prototype.applyAction = function (action, params, where) {
if (action == "connectionresponse") {
if (params.result.value == "Accepted") {
where.connected = true;
where.onConnect(true);
where.isConnected = true;
} else {
trace("Connection failure!!!!!!!!!!!!!!!!!!!!!!!!");
var _local37 = params.reason.value;
where.isConnected = false;
where.onConnect(false, _local37);
}
} else if (action == "loginresponse") {
if (params.result.value == "accepted") {
where.loggedin(true);
} else {
var _local37 = params.reason.value;
where.loggedin(false, _local37);
}
} else if (action == "createroom") {
if (params.result.value != "Success") {
var _local37 = params.Reason.value;
if (where.auto_join) {
where.joinRoom(where.pendingRoom, "", where.pendingZone);
} else {
where.roomCreated(false, _local37);
}
}
} else if (action == "loadconfiguration") {
var _local33 = params.numberOfPackets.value;
var _local22 = params.packetNumber.value;
var _local25 = params.packetData.value;
if (_local22 == "1") {
where.configXML = _local25;
} else {
where.configXML = where.configXML + _local25;
}
if (_local22 == _local33) {
where.parseConfig(where.configXML, where);
}
} else if (action == "joinroom") {
if (params.result.value == "Success") {
var _local19 = where.pendingRoom;
var _local15 = where.zone.rooms;
var _local17 = 0;
while (_local17 < _local15.length) {
var _local11 = _local15[_local17];
if (_local11.name.value == _local19) {
where.zone.myRoom = _local11;
var _local4 = params.roomVariables.roomVariables;
where.zone.myRoom.roomVariables = new Object();
var _local5 = 0;
while (_local5 < _local4.length) {
var _local16 = _local4[_local5].name.value;
var _local28 = _local4[_local5].data.value;
where.zone.myRoom.roomVariables[_local16] = _local28;
_local5++;
}
where.roomVariablesUpdated("all", where.zone.myRoom.roomVariables);
break;
}
_local17++;
}
if (where.creatingRoom) {
where.roomCreated(true);
whre.creatingRoom = false;
}
where.roomJoined({success:true}, where.zone.myRoom);
delete where.pendingRoom;
where.joiningRoom = false;
where.zone.users = params.users.users;
_local17 = 0;
while (_local17 < where.zone.users.length) {
var _local6 = where.zone.users[_local17];
var _local7 = _local6.Name.value;
_local6.label = _local7;
if (_local7 == where.username) {
where.myUser = _local6;
if (_local6.assignedNumber.value == 0) {
_local6.isGameMaster = true;
}
break;
}
_local17++;
}
where.userListUpdated(where.zone.users, "all");
} else {
var _local37 = params.reason.value;
where.roomJoined({success:false, error:_local37});
}
} else if (action == "renumberusers") {
var _local10 = where.zone.users;
var _local17 = 0;
while (_local17 < params.users.users.length) {
var _local18 = params.users.users[_local17].name.value;
var _local5 = 0;
while (_local5 < _local10.length) {
if (_local18 == _local10[_local5].name.value) {
_local10[_local5].AssignedNumber.value = params.users.users[_local17].AssignedNumber.value;
_local10[_local5].isGameMaster = false;
}
_local5++;
}
if (where.getUser().assignedNumber.value == 0) {
where.getUser().isGameMaster = true;
}
_local17++;
}
if (where.myUser.assignednumber.value == 0) {
where.isGameMaster = true;
} else {
where.isGameMaster = false;
}
where.usersRenumbered(_local10);
} else if (action == "sendprivatemessage") {
var _local23 = params.message.value;
var _local24 = params.user.value;
var _local9 = new Object();
var _local17 = 0;
while (_local17 < params.variables.variables.length) {
var _local16 = params.variables.variables[_local17].name.value;
var _local28 = params.variables.variables[_local17].data.value;
_local9[_local16] = _local28;
_local17++;
}
if (_local9.action.toLowerCase() == "move") {
var _local34 = _local23;
var _local35 = new WDDX();
var _local29 = _local35.deserialize(_local34);
if (_local29.action == "challenge") {
var _local26 = _local29.game;
if ((where.challenging || where.inGame) || where.respondingToChallenge) {
where.sendAutoDecline(_local24, _local26);
} else {
where.opponent = _local24;
where.respondingToChallenge = true;
where.challengeReceived(_local24, _local26);
}
} else if (_local29.action == "autodecline") {
where.challenging = false;
delete where.opponent;
where.challengeDeclined(true);
} else if (_local29.action == "decline") {
where.challenging = false;
delete where.opponent;
where.challengeDeclined(false);
} else if (_local29.action == "challengecancelled") {
where.respondingToChallenge = false;
delete where.opponent;
where.challengeCancelled();
} else if (_local29.action == "challengeaccepted") {
where.respondingToChallenge = false;
where.challengeAccepted();
} else {
where.moveReceived("private", _local29, _local24);
}
} else {
where.messageReceived("private", _local23, _local24, _local9);
}
} else if (action == "sendpublicmessage") {
var _local23 = params.message.value;
var _local24 = params.user.value;
var _local9 = new Object();
var _local17 = 0;
while (_local17 < params.variables.variables.length) {
var _local16 = params.variables.variables[_local17].name.value;
var _local28 = params.variables.variables[_local17].data.value;
_local9[_local16] = _local28;
_local17++;
}
if (_local9.action.toLowerCase() == "move") {
var _local34 = _local23;
var _local35 = new WDDX();
var _local29 = _local35.deserialize(_local34);
where.moveReceived("public", _local29, _local24);
} else {
where.messageReceived("public", _local23, _local24, _local9);
}
} else if (action == "roomlist") {
where.zone = new Object();
var _local27 = where.zone;
_local27.numUsers = Number(params.zone.attributes.users);
_local27.name = params.zone.name.value;
_local27.rooms = params.zone.rooms.rooms;
var _local17 = 0;
while (_local17 < _local27.rooms.length) {
var _local8 = _local27.rooms[_local17].Name.value;
_local27.rooms[_local17].label = _local8;
zon.rooms[_local17].iconAlignment = "right";
var _local30 = _local27.rooms[_local17].description.value;
if (_local30.length > 2) {
var _local35 = new WDDX();
var _local29 = _local35.deserialize(_local30);
} else {
var _local29 = new Object();
}
_local27.rooms[_local17].description = _local29;
_local17++;
}
where.zoneChanged(_local27.name);
where.roomListUpdated(where.zone.rooms, "all");
} else if (action == "updateuserlist") {
var _local21 = params.minorAction.value.toLowerCase();
if (_local21 == "userjoined") {
var _local10 = where.zone.users;
var _local6 = params.user;
_local6.label = _local6.Name.value;
_local10.push(_local6);
where.userListUpdated(where.zone.users, "userjoined", _local6.name.value);
} else if (_local21 == "userleft") {
var _local10 = where.zone.users;
var _local6 = params.user;
var _local18 = _local6.name.value;
if (_local18 == where.opponent) {
where.challenging = false;
delete where.opponent;
where.challengeDeclined(true);
}
var _local17 = 0;
while (_local17 < _local10.length) {
var _local16 = _local10[_local17].name.value;
if (_local18 == _local16) {
_local10.splice(_local17, 1);
break;
}
_local17++;
}
where.userListUpdated(where.zone.users, "userleft", _local6.name.value);
}
} else if (action == "updateuservariable") {
var _local10 = where.zone.users;
var _local29 = params.UserVariable;
var _local20 = _local29.User.value;
var _local28 = _local29.Data.value;
var _local16 = _local29.Name.value;
var _local17 = 0;
while (_local17 < _local10.length) {
var _local12 = _local10[_local17].Name.value;
if (_local20 == _local12) {
var _local6 = _local10[_local17];
var _local13 = typeof(_local6[_local16]);
if (_local13.toString() == "undefined") {
_local6[_local16] = _local28;
where.userVariableUpdated(_local6, "created", _local16);
} else {
_local6[_local16] = _local28;
where.userVariableUpdated(_local6, "updated", _local16);
}
break;
}
_local17++;
}
} else if (action == "deleteuservariable") {
var _local10 = where.zone.users;
var _local29 = params.UserVariable;
var _local20 = _local29.User.value;
var _local16 = _local29.Name.value;
var _local17 = 0;
while (_local17 < _local10.length) {
var _local12 = _local10[_local17].Name.value;
if (_local20 == _local12) {
var _local6 = _local10[_local17];
delete _local6[_local16];
where.userVariableUpdated(_local6, "deleted", _local16);
break;
}
_local17++;
}
} else if (action == "sendpluginmessage") {
var _local31 = params.user.value;
var _local32 = params.message.value;
var _local9 = params.variables.variables;
var _local29 = new Object();
var _local17 = 0;
while (_local17 < _local9.length) {
var _local16 = _local9[_local17].name.value;
var _local28 = _local9[_local17].data.value;
_local29[_local16] = _local28;
_local17++;
}
where.pluginMessageReceived(_local31, _local32, _local29);
} else if (action == "updateroomvariable") {
var _local21 = params.minorAction.value.toLowerCase();
if (_local21 == "create") {
var _local16 = params.roomVariable.name.value;
var _local28 = params.roomVariable.data.value;
where.zone.myRoom.roomVariables[_local16] = _local28;
where.roomVariablesUpdated("created", where.zone.myRoom.roomVariables, _local16);
} else if (_local21 == "update") {
var _local16 = params.roomVariable.name.value;
var _local28 = params.roomVariable.data.value;
where.zone.myRoom.roomVariables[_local16] = _local28;
where.roomVariablesUpdated("updated", where.zone.myRoom.roomVariables, _local16);
} else if (_local21 == "delete") {
var _local16 = params.roomVariable.name.value;
delete where.zone.myRoom.roomVariables[_local16];
where.roomVariablesUpdated("deleted", where.zone.myRoom.roomVariables, _local16);
}
} else if (action == "updateroomlist") {
var _local21 = params.minorAction.value.toLowerCase();
var _local27 = where.zone;
_local27.numUsers = Number(params.zone.attributes.users);
where.zoneUpdated(_local27.numUsers);
var _local3 = params.zone.rooms.rooms[0];
if (_local21 == "changeroomdetails") {
var _local5 = 0;
while (_local5 < where.zone.rooms.length) {
var _local11 = where.zone.rooms[_local5];
var _local8 = _local3.name.value;
if (_local11.name.value == _local8) {
for (var _local17 in _local3) {
_local11[_local17] = _local3[_local17];
}
_local11.label = _local8;
_local11.iconAlignment = "right";
var _local30 = _local3.description.value;
if (_local30.length > 2) {
var _local35 = new WDDX();
var _local29 = _local35.deserialize(_local30);
} else {
var _local29 = new Object();
}
_local11.description = _local29;
break;
}
_local5++;
}
where.roomListUpdated(where.zone.rooms, "roomupdated", _local11);
} else if (_local21 == "createroom") {
var _local11 = _local3;
_local11.label = _local11.Name.value;
_local11.iconAlignment = "right";
var _local30 = _local11.description.value;
var _local35 = new WDDX();
var _local29 = _local35.deserialize(_local30);
_local11.description = _local29;
where.zone.rooms.push(_local11);
where.roomListUpdated(where.zone.rooms, "roomcreated", _local11);
} else if (_local21 == "deleteroom") {
var _local5 = 0;
while (_local5 < where.zone.rooms.length) {
var _local11 = where.zone.rooms[_local5];
if (_local11.name.value == _local3.name.value) {
var _local16 = _local3.name.value;
where.zone.rooms.splice(_local5, 1);
break;
}
_local5++;
}
where.roomListUpdated(where.zone.rooms, "roomdeleted", _local16);
}
}
};
OnlineServers = new Array();
OnlineServers.push({name:"US West", owner:"UrbanFrog.com", ip:"64.91.236.141", port:"1024"});
OnlineServers.push({name:"US East", owner:"UrbanFrog.com", ip:"64.91.236.16", port:"1024"});
Frame 72
RADIO = new Array();
RADIO.push({name:"C-F Radio", url:"http://204.210.146.145:8000"});
RADIO.push({name:"Radiostorm.com", url:"http://64.236.34.141:80/stream/1011"});
RADIO.push({name:"XTC Radio", url:"http://205.188.234.161:8020"});
RADIO.push({name:"Pirate Radio", url:"http://66.28.242.246:8926"});
RADIO.push({name:"Idealsound.ca", url:"http://205.188.234.65:8016"});
Frame 73
TOURNEY = new Array();
TOURNEY.push({name:"Sunday C Class Cup", class:1, carwin:"CIVIC", manureq:undefined, firstplace:250, secondplace:100, location:"Brantford, Canada", difficulty:0, distance:400, races:3});
TOURNEY.push({name:"Ontario C Tuning Tourney", class:1, carwin:"SENTRA", manureq:undefined, firstplace:300, secondplace:200, location:"Cambridge, Canada", difficulty:0, distance:750, races:3});
TOURNEY.push({name:"Common Class Cup", class:1, carwin:"PROTEGE", manureq:undefined, firstplace:300, secondplace:200, location:"Bedrock, California", difficulty:0, distance:400, races:3});
TOURNEY.push({name:"Ricers, Ricers, Ricers!", class:1, carwin:"CIVICHB", manureq:undefined, firstplace:300, secondplace:200, location:"Waterloo, Canada", difficulty:0, distance:400, races:4});
TOURNEY.push({name:"Honda Exclusive C-Class Tourney", class:1, carwin:"PRELUDE", manureq:"Honda", firstplace:500, secondplace:100, location:"Toronto, Canada", difficulty:1, distance:400, races:6, pr:[0, 1, 2, 3]});
TOURNEY.push({name:"The Fast and Furious C Class Tourney", class:1, carwin:"CIVIC", manureq:undefined, firstplace:500, secondplace:0, location:"Detroit, USA", difficulty:1, distance:400, races:6, pr:[0, 1, 2, 3]});
TOURNEY.push({name:"Endurance Drag", class:1, carwin:"CELICA", manureq:undefined, firstplace:3000, secondplace:800, location:"Roswell, USA", difficulty:1, distance:1000, races:3, pr:[0, 1, 2, 3]});
TOURNEY.push({name:"Eau de Source Racing Comp", class:1, carwin:"MR2", manureq:undefined, firstplace:800, secondplace:400, location:"Montreal, Canada", difficulty:1, distance:400, races:5, pr:[0, 1, 2, 3]});
TOURNEY.push({name:"Common Class National Cup", class:1, carwin:"INTEGRA", manureq:undefined, firstplace:2000, secondplace:100, location:"Washington DC, USA", difficulty:1, distance:400, races:10, pr:[5, 6, 7]});
TOURNEY.push({name:"The Quarter Mile", class:2, carwin:"IMPREZASTI", manureq:undefined, firstplace:1500, secondplace:0, location:"San Diego, USA", difficulty:0, distance:400, races:6, pr:[8]});
TOURNEY.push({name:"Nissan 400m", class:1, carwin:"SX240", manureq:"Nissan", firstplace:1600, secondplace:800, location:"Edinburgh, Scotland", difficulty:1, distance:400, races:6, pr:[8]});
TOURNEY.push({name:"Auzzy Mile", class:1, carwin:"CIVICHB", manureq:undefined, firstplace:800, secondplace:400, location:"Brisbane, Austrailia", difficulty:1, distance:1700, races:4, pr:[8]});
TOURNEY.push({name:"Volkswagen Circuit", class:1, carwin:"JETTA", manureq:"Volkswagen", firstplace:1000, secondplace:100, location:"Los Angeles, USA", difficulty:1, distance:800, races:6, pr:[8]});
TOURNEY.push({name:"Mountain Trial", class:1, carwin:"GOLF", manureq:undefined, firstplace:1500, secondplace:0, location:"Banff, Canada", difficulty:1, distance:400, races:10, pr:[11]});
TOURNEY.push({name:"Compact Tuner Challenge", class:1, carwin:"CRX", manureq:undefined, firstplace:1600, secondplace:800, location:"Coachella Valley, USA", difficulty:2, distance:400, races:6, pr:[13]});
TOURNEY.push({name:"Toyota Common Classic", class:1, carwin:"CELICA", manureq:"Toyota", firstplace:1200, secondplace:400, location:"Ottawa, Canada", difficulty:2, distance:400, races:10, pr:[13]});
TOURNEY.push({name:"Hi-Rev C Tuners", class:1, carwin:"S2000", manureq:undefined, firstplace:1600, secondplace:1200, location:"Chicago, USA", difficulty:2, distance:400, races:10, pr:[13]});
TOURNEY.push({name:"Cityscape Speedway", class:1, carwin:"ECLIPSE98", manureq:undefined, firstplace:1600, secondplace:1200, location:"Chicago, USA", difficulty:2, distance:400, races:10, pr:[13]});
TOURNEY.push({name:"Mazda Common Cup", class:1, carwin:"PROTEGE", manureq:"Mazda", firstplace:1600, secondplace:1200, location:"Chicago, USA", difficulty:2, distance:400, races:10, pr:[13]});
TOURNEY.push({name:"Canada C Nationals", class:1, carwin:"N300ZX", manureq:undefined, firstplace:1600, secondplace:1200, location:"Collingwood, Canada", difficulty:2, distance:400, races:10, pr:[14, 16, 17]});
TOURNEY.push({name:"American C Nationals", class:1, carwin:"INTEGRA", manureq:undefined, firstplace:1600, secondplace:1200, location:"Atlanta, USA", difficulty:3, distance:400, races:10, pr:[19]});
TOURNEY.push({name:"Japan C Nationals", class:1, carwin:"SX240", manureq:undefined, firstplace:1600, secondplace:1200, location:"Tokyo, Japan", difficulty:3, distance:400, races:10, pr:[19]});
TOURNEY.push({name:"German C Nationals", class:1, carwin:"JETTA", manureq:undefined, firstplace:1600, secondplace:1200, location:"Hamburg, Germany", difficulty:3, distance:400, races:10, pr:[19]});
TOURNEY.push({name:"Race Wars - C Class", class:1, carwin:"SKYLINER34", manureq:undefined, firstplace:5000, secondplace:1200, location:"???", difficulty:5, distance:400, races:10, pr:[21, 22, 23, 20]});
TOURNEY.push({name:"Sports Car Tournament", class:2, carwin:"ECLIPSE94", manureq:undefined, firstplace:1500, secondplace:0, location:"San Simeon, USA", difficulty:1, distance:400, races:6, pr:[9]});
TOURNEY.push({name:"Mitsubishi Madness", class:2, carwin:"GT3000", manureq:"Mitsubishi", firstplace:1500, secondplace:0, location:"San Simeon, USA", difficulty:1, distance:400, races:3, pr:[9]});
TOURNEY.push({name:"Collector Championships", class:2, carwin:"CUDA", manureq:undefined, firstplace:1500, secondplace:0, location:"Chicago, USA", difficulty:2, distance:400, races:5, pr:[24]});
TOURNEY.push({name:"Dodge Drag Championships", class:2, carwin:"CHARGER", manureq:"Dodge", firstplace:1500, secondplace:0, location:"New York City, USA", difficulty:2, distance:600, races:5, pr:[26]});
TOURNEY.push({name:"Chevrolet Drag Championships", class:2, carwin:"CORVETTEZ", manureq:"Chevrolet", firstplace:1500, secondplace:0, location:"New York City, USA", difficulty:2, distance:600, races:5, pr:[26]});
TOURNEY.push({name:"Coachella Valley Championships", class:2, carwin:"STEALTH", manureq:undefined, firstplace:1500, secondplace:0, location:"Coachella Valley, USA", difficulty:2, distance:600, races:5, pr:[26]});
TOURNEY.push({name:"Canada S Nationals", class:2, carwin:"SKYLINER34", manureq:undefined, firstplace:1600, secondplace:1200, location:"Edmonton, Canada", difficulty:4, distance:400, races:10, pr:[29]});
TOURNEY.push({name:"American S Nationals", class:2, carwin:"GTO", manureq:undefined, firstplace:1600, secondplace:1200, location:"Atlanta, USA", difficulty:5, distance:400, races:10, pr:[30]});
TOURNEY.push({name:"Japan S Nationals", class:2, carwin:"SUPRA", manureq:undefined, firstplace:1600, secondplace:1200, location:"Tokyo, Japan", difficulty:5, distance:400, races:10, pr:[30]});
TOURNEY.push({name:"German S Nationals", class:2, carwin:"M5", manureq:undefined, firstplace:1600, secondplace:1200, location:"Stuttgard, Germany", difficulty:5, distance:400, races:10, pr:[30]});
TOURNEY.push({name:"Race Wars - S Class", class:2, carwin:"VIPERGTSR", manureq:undefined, firstplace:5000, secondplace:1200, location:"???", difficulty:5, distance:400, races:10, pr:[31, 32, 33]});
TOURNEY.push({name:"Exotic Autos Tournament", class:3, carwin:"COUNTACH", manureq:undefined, firstplace:1500, secondplace:0, location:"Corleone, Italy", difficulty:3, distance:400, races:6, pr:[27]});
TOURNEY.push({name:"R Class Cup", class:3, carwin:"Modena", manureq:undefined, firstplace:1500, secondplace:0, location:"Inverness, Scotland", difficulty:4, distance:400, races:3, pr:[35]});
TOURNEY.push({name:"Collector Championships", class:3, carwin:"CLK", manureq:undefined, firstplace:1500, secondplace:0, location:"Chicago, USA", difficulty:4, distance:400, races:5, pr:[36]});
TOURNEY.push({name:"Ferrari Tuner Drag Championships", class:3, carwin:"MODENA", manureq:"Ferrari", firstplace:1500, secondplace:0, location:"New York City, USA", difficulty:4, distance:600, races:5, pr:[37]});
TOURNEY.push({name:"Porsche Drag Championships", class:3, carwin:"GT1", manureq:"Porsche", firstplace:1500, secondplace:0, location:"Stuttgard, Germany", difficulty:4, distance:600, races:5, pr:[37]});
TOURNEY.push({name:"Coachella Valley Championships", class:3, carwin:"Z8", manureq:undefined, firstplace:1500, secondplace:0, location:"Coachella Valley, USA", difficulty:4, distance:600, races:5, pr:[37]});
TOURNEY.push({name:"Canada R Nationals", class:3, carwin:"MODENA", manureq:undefined, firstplace:1600, secondplace:1200, location:"Edmonton, Canada", difficulty:4, distance:400, races:10, pr:[41]});
TOURNEY.push({name:"American R Nationals", class:3, carwin:"VIPERGTSR", manureq:undefined, firstplace:1600, secondplace:1200, location:"Atlanta, USA", difficulty:5, distance:400, races:10, pr:[41]});
TOURNEY.push({name:"Japan R Nationals", class:3, carwin:"MURCIELAGO", manureq:undefined, firstplace:1600, secondplace:1200, location:"Tokyo, Japan", difficulty:5, distance:400, races:10, pr:[41]});
TOURNEY.push({name:"German R Nationals", class:3, carwin:"M5", manureq:undefined, firstplace:1600, secondplace:1200, location:"Stuttgard, Germany", difficulty:5, distance:400, races:10, pr:[41]});
TOURNEY.push({name:"Race Wars - R Class", class:3, carwin:"SALEEN", manureq:undefined, firstplace:5000, secondplace:1200, location:"???", difficulty:5, distance:400, races:10, pr:[42, 43, 44]});
TOURNEY.push({name:"International GT Championships", class:4, carwin:"MCLAREN", manureq:undefined, firstplace:5000, secondplace:1200, location:"???", difficulty:5, distance:400, races:20, pr:[45, 23, 34]});
var i = 0;
while (i < TOURNEY.length) {
var t = TOURNEY[i];
t.firstplace = t.distance + (((t.difficulty * 100) * t.races) * t.class);
t.secondplace = Math.ceil(t.firstplace * 0.33);
i++;
}
Frame 74
COLARRAY = new Array();
COLARRAY.push({rb:0, gb:0, bb:0});
COLARRAY.push({rb:-200, gb:-200, bb:-200});
COLARRAY.push({rb:-100, gb:-100, bb:-100});
COLARRAY.push({rb:-50, gb:-50, bb:-50});
COLARRAY.push({rb:-150, gb:-150, bb:-150});
COLARRAY.push({rb:-75, gb:-255, bb:-255});
COLARRAY.push({rb:-255, gb:-255, bb:-75});
COLARRAY.push({rb:-255, gb:-75, bb:-255});
COLARRAY.push({rb:0, gb:-255, bb:-255});
COLARRAY.push({rb:-255, gb:0, bb:-255});
COLARRAY.push({rb:-255, gb:-255, bb:0});
COLARRAY.push({rb:0, gb:-155, bb:-155});
COLARRAY.push({rb:-155, gb:0, bb:-155});
COLARRAY.push({rb:-155, gb:-155, bb:0});
COLARRAY.push({rb:0, gb:0, bb:-255});
COLARRAY.push({rb:-255, gb:0, bb:0});
COLARRAY.push({rb:0, gb:-255, bb:0});
Frame 75
ArcadeStory = new Array();
ArcadeStory.push();
ArcadeStory.push("s=160,120,All Alumunum Inline-4 DOHC 4 V/Cyl,284,1,7844,CIVICHB,1000,Honda\u00AE Civic\u2122,12,1,1284,100,100&a=1,1,1,4,,2,2,2,3,1,11,5,2,1,2,1&c=5BFFFF,323232,5BFFFF,C8C8C8,C8C8C8,5BFFFF,C8C8C8,FFFFFF,000000,000000,383838,FFFFFF&p=-6,,100,100,100,5,5,5,0,0,0&u=0000000000000000000000000000000000000000000000000000000000000000000&");
ArcadeStory.push("s=150,150,Inline-4 with Port Injection,290,1,8983,MR2,1000,Toyota\u00AE MR2\u2122,9,1,1290,100,100&a=1,1,4,4,,3,3,4,2,1,12,5,2,5,2,1&c=FFEB9B,323232,FFEB9B,FFEB9B,FFEB9B,FFEB9B,FFEB9B,FFFFFF,000000,000000,FF7300,FFFFFF&p=-8,,100,100,100,5,5,27,0,0,0&u=0000000000000000000000000000000000000000000000000000000000000000000&");
ArcadeStory.push("s=200,166,2.4L 16V DOHC Inline-4,310,1,9935,TSX,1000,Acura\u00AE TSX\u2122,10,1,1310,100,100&a=1,1,4,3,,1,2,2,3,1,11,5,3,1,2,1&c=808080,AFAFAF,808080,808080,808080,808080,FFFFFF,FFFFFF,5BFFFF,000000,5BFFFF,5BFFFF&p=-11,,100,100,100,5,5,60,0,0,0&u=0000000000000000000000000000000000000000000000000000000000000000000&");
ArcadeStory.push("s=210,205,Aluminum Alloy V6 SOHC 24-Valve,325,1,10239,ECLIPSE98,1000,Mitsubishi\u00AE Eclipse\u2122,9,2,1325,100,100&a=1,1,1,3,,3,2,3,3,1,8,5,3,3,2,1&c=FF23FF,323232,FF23FF,FF23FF,FF23FF,FF23FF,AFAFAF,FFFFFF,FF00FF,9B9B00,9B9B00,FFFFFF&p=-5,0,205,100,100,5,5,29,0,0,0&u=0000000000000000000000000000000000000000000000000000000000000000000&");
ArcadeStory.push("s=205,285,OHV V8,347,1,15178,CAMARO91,1200,Chevrolet\u00AE Camaro\u2122,10,2,1547,100,100&a=1,1,1,3,,1,2,2,2,1,14,5,2,2,2,1&c=C8C8C8,323232,C8C8C8,C8C8C8,C8C8C8,C8C8C8,C8C8C8,FFFFFF,000000,5BFFFF,5BFFFF,FFFFFF&p=-10,-0.6,175,100,100,5,5,48,0,3,0&u=0000000000000000000000000000000000000000000000000000000000000000000&");
ArcadeStory.push("s=300,283,Turbocharged V6 DOHC 4 Valves/Cyl,375,1,10233,N300ZX,1100,Nissan\u00AE 300ZX\u2122,8,2,1475,100,100&a=1,1,1,2,,2,2,1,2,1,11,5,5,3,2,1&c=0069FF,323232,0069FF,C8C8C8,C8C8C8,383838,AFAFAF,FFFFFF,0069FF,0069FF,D7D7D7,FFFFFF&p=-6,,160,93,93,5,5,44,0,0,0&u=0000000000000000000000000000000000000000000000000000000000000000000&");
ArcadeStory.push("s=320,315,Twin Turbo Inline-6 DOHC 4 Valves / Cyl,391,1,12935,SUPRA,1000,Toyota\u00AE Supra\u2122,9,2,1391,100,100&a=1,1,1,3,,3,3,3,2,1,21,5,4,3,2,1&c=5BFFFF,808080,5BFFFF,5BFFFF,AFAFAF,5BFFFF,C8C8C8,FFFFFF,000000,AFAFAF,AFAFAF,FFFFFF&p=-7,,205,100,100,5,5,28,0,0,0&u=0000000000000000000000000000000000000000000000000000000000000000000&");
ArcadeStory.push("s=300,300,426 Hemi,380,1,19378,CUDA,1600,Plymouth\u00AE Barracuda\u2122,12,2,1980,100,100&a=1,1,1,2,,1,1,1,3,1,2,2,2,2,2,1&c=79BB20,323232,C8C8C8,79BB20,C8C8C8,C8C8C8,AFAFAF,FFFFFF,79BB20,79BB20,D7D7D7,FFFFFF&p=-7,,100,100,100,5,5,49,0,0,0&u=0000000000000000000000000000000000000000000000000000000000000000000&");
ArcadeStory.push("s=280,289,N1 Inline-6 DOHC Front Longitudinal,371,1,14193,SKYLINER34,1100,Nissan\u00AE Skyline R34\u2122,8,2,1471,100,100&a=1,1,2,5,,2,3,3,3,1,12,5,2,2,2,1&c=FFFF69,323232,FFFF69,FFFF69,FFFF69,FFFF69,AFAFAF,FFFFFF,000000,808080,808080,FFFFFF&p=-7,,100,100,100,5,5,43,0,0,0&u=0000000000000000000000000000000000000000000000000000000000000000000&");
ArcadeStory.push("s=300,300,426 Hemi,380,1,19378,COBRA,1700,Shelby\u00AE Mustang\u2122,11,2,2080,100,100&a=1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1&c=C8C8C8,323232,C8C8C8,C8C8C8,C8C8C8,C8C8C8,C8C8C8,FFFFFF,000000,000000,000000,FFFFFF&p=-8,,100,100,100,5,5,49,0,0,0&u=0000000000000000000000000000000000000000000000000000000000000000000&");
ArcadeStory.push("s=160,120,All Alumunum Inline-4 DOHC 4 V/Cyl,284,1,7844,SALEEN,1000,Honda\u00AE Civic\u2122,12,1,1284,100,100&a=1,1,1,4,,2,2,2,3,1,11,5,2,1,2,1&c=5BFFFF,323232,5BFFFF,C8C8C8,C8C8C8,5BFFFF,C8C8C8,FFFFFF,000000,000000,383838,FFFFFF&p=-6,,100,100,100,5,5,5,0,0,0&u=0000000000000000000000000000000000000000000000000000000000000000000&");
Frame 91
Options = new Object();
if (content2.charAt(0) == 1) {
Options.gearsh = false;
} else {
Options.gearsh = true;
}
if (content2.charAt(1) == 1) {
Options.clutch = false;
} else {
Options.clutch = true;
}
if (content2.charAt(2) == 1) {
Options.nogas = false;
} else {
Options.nogas = true;
}
TextForm = new Object();
TextForm.font = LoadVar(content, "fontt");
TextForm.textColor = LoadVar(content, "col");
TextForm.style = LoadVar(content, "style");
ViewSett = new Object();
ViewSett.mode = LoadVar(content3, "mode");
ViewSett.x = LoadVar(content3, "x");
ViewSett.y = LoadVar(content3, "y");
xRes = String(ViewSett.x);
yRes = String(ViewSett.y);
colorDepth = "24";
output = ((xRes add yRes) add colorDepth) add mode;
version = content4;
Frame 92
if (ip == 0) {
pc = false;
} else {
pc = true;
}
trace(pc);
if (ViewSett.mode == "directx") {
fscommand ("fullscreen");
fscommand ("flashstudio.setdxres", "xRes,yRes,colorDepth");
fscommand ("flashstudio.maximize");
}
Instance of Symbol 3619 MovieClip in Frame 749
//component parameters
onClipEvent (initialize) {
colordefondo = "0099ff";
alfafondo = 98.504837291117;
colortitulo = "ffffff";
colortexto = 10101;
globotitulo2 = "Example text";
parrafo = "// Paste this code in a button.\ron (rollOver) {\r globitotexto = \"example text\";\r}\ron (rollOut) {\r //essential to make the tip invisible again.\r globitotexto = \"\";\r}";
}
Frame 760
stop();
Frame 768
stop();
Frame 769
gotoAndPlay (843);
Frame 770
filelist = "unclepeanuts.drs";
savedir = appdir add "\\SAVE\\";
fscommand ("flashstudio.getfilelist", "savedir,\"*.drs\",filelist");
Frame 778
if (pc) {
SaveFiles = new Array();
s = 0;
f = 0;
fscommand ("flashstudio.savetofile", ("\"" add appdir) add "\\accounts.drd \",filelist");
i = 0;
while (i <= 500) {
f = _root.filelist.indexOf(".drs", s) + 4;
SaveFiles.push(_root.filelist.slice(s, f));
s = f + 2;
if (f >= (_root.filelist.length - 4)) {
break;
}
i++;
}
} else {
myLSO = SharedObject.getLocal("DragRacerOnlineData");
if (myLSO.data.filecontent == undefined) {
_root.prompt("Oops!", "No Saved Game");
gotoAndPlay (749);
} else {
filecontent = myLSO.data.filecontent;
gotoAndPlay ("continue2");
}
}
LIST.Construct("SAVELIST", 4);
var i = 0;
while (i < _root.SaveFiles.length) {
temp = new Object();
temp.gamename = SaveFiles[i].slice(0, SaveFiles[i].indexOf(".drs"));
temp.name = SaveFiles[i];
LIST.addItem(temp);
i++;
}
stop();
Frame 779
play();
Frame 804
LoadGame(filecontent);
Frame 808
if (goOnline) {
gotoAndPlay ("dragraceronline");
} else {
gotoAndPlay (843);
}
Frame 810
MenuD = new Array();
MenuD.push({n:"Buy Car", f:"BuyCar"});
if (_root.player.car != -1) {
MenuD.push({n:"Change Cars", f:"ArcadeGarage"});
MenuD.push({n:"Customize", f:"CUSTOM"});
MenuD.push({n:"Performance", f:"ArcadePerf"});
MenuD.push({n:"Race", f:"ArcadeRace"});
}
stop();
Instance of Symbol 3619 MovieClip in Frame 810
//component parameters
onClipEvent (initialize) {
colordefondo = "0099ff";
alfafondo = 98.504837291117;
colortitulo = "ffffff";
colortexto = 10101;
globotitulo2 = "Example text";
parrafo = "// Paste this code in a button.\ron (rollOver) {\r globitotexto = \"example text\";\r}\ron (rollOut) {\r //essential to make the tip invisible again.\r globitotexto = \"\";\r}";
}
Frame 812
MenuD = new Array();
MenuD.push({n:"Exterior", f:"ArcadeExterior"});
MenuD.push({n:"Interior", f:"ArcadeInterior"});
MenuD.push({n:"Paint", f:"ArcadePaint"});
MenuD.push({n:"Edit", f:"ArcadeEdit"});
stop();
Frame 814
stop();
Frame 815
stop();
Frame 817
stop();
Frame 820
stop();
Frame 821
SHOP.plycar = car[player.car];
Frame 823
stop();
Frame 824
INTERIOR.plycar = car[player.car];
Frame 826
stop();
Frame 827
PAINT.playcar = car[player.car];
Frame 829
stop();
Frame 830
EDIT.playcar = car[player.car];
Frame 832
stop();
Frame 833
function Update() {
perfpoints.text = player.pp;
var _local2 = 0;
while (_local2 < (INDEXES.length - 1)) {
var _local3 = car[player.car].UPGRADE[INDEXES[_local2]];
if (_local3 == 0) {
this["T" add _local2].text = 0;
} else if (_local3 == 1) {
this["T" add _local2].text = 1;
} else if (_local3 == 5) {
this["T" add _local2].text = 2;
} else if (_local3 == 7) {
this["T" add _local2].text = 3;
this["U" add _local2]._visible = false;
}
if (player.pp <= 0) {
player.pp = 0;
this["U" add _local2]._visible = false;
}
_local2++;
}
}
function UpStat(b) {
if (player.pp > 0) {
player.pp--;
player.rep = player.rep - 1000;
num = Number(this["T" + b].text);
trace(num);
var _local2 = INDEXES[b];
while (_local2 < INDEXES[b + 1]) {
car[player.car].UPGRADE[_local2] = UPVALS[num + 1];
calcSpecs(car[player.car]);
_local2++;
}
Update();
}
}
player.pp = Math.floor(player.rep / 1000);
UPVALS = new Array();
UPVALS.push(0);
UPVALS.push(1);
UPVALS.push(5);
UPVALS.push(7);
INDEXES = new Array();
INDEXES.push(0);
INDEXES.push(1);
INDEXES.push(3);
INDEXES.push(6);
INDEXES.push(9);
INDEXES.push(12);
INDEXES.push(16);
INDEXES.push(19);
INDEXES.push(21);
INDEXES.push(23);
INDEXES.push(25);
INDEXES.push(31);
INDEXES.push(36);
Update();
Frame 835
stop();
Frame 836
LIST.removeAll();
var i = 0;
while (i < _root.CARS.length) {
LIST.addItem(_root[CARS[i]].FULLNAME, i);
i++;
}
LIST.setSelectedIndex(0);
DIFF = new Array();
DIFF[0] = "Stock";
DIFF[1] = "Ricer";
DIFF[2] = "Tuner";
DIFF[3] = "Pro Tuner";
DIFF[4] = "Drag Racer";
maxy = -171;
D.knob._y = D.knob.top;
DF.knob._y = DF.knob.top;
distance.text = 400;
difficulty.text = DIFF[0];
Instance of Symbol 849 MovieClip [FListBoxSymbol] "LIST" in Frame 836
//component parameters
onClipEvent (initialize) {
selectMultiple = false;
changeHandler = "";
}
Frame 837
play();
distance.text = 400 + Math.floor((D.knob._y / maxy) * 1100);
difficulty.text = DIFF[Math.floor((DF.knob._y / maxy) * 4)];
Frame 838
prevFrame();
Frame 839
oppcar = new Object();
CarEq(oppcar, decodeCar(ArcadeStory[player.level - 1]));
oppcar.HP = car[player.car].HP * (0.6 + ((player.level / 10) * 0.1));
oppcar.TQ = car[player.car].TQ * (0.6 + ((player.level / 10) * 0.1));
oppcar.WT = car[player.car].WT;
oppcar.CL = car[player.car].CL * (0.6 + ((player.level / 10) * 0.1));
Frame 840
stop();
Frame 843
stop();
BGIMAGE.loadScrollContent(appdir add "IMGS/bg2.jpg");
Instance of Symbol 1443 MovieClip [FScrollPaneSymbol] "BGIMAGE" in Frame 843
//component parameters
onClipEvent (initialize) {
scrollContent = "";
hScroll = "false";
vScroll = "false";
dragContent = false;
}
Instance of Symbol 3619 MovieClip in Frame 843
//component parameters
onClipEvent (initialize) {
colordefondo = "0099ff";
alfafondo = 98.504837291117;
colortitulo = "ffffff";
colortexto = 10101;
globotitulo2 = "Example text";
parrafo = "// Paste this code in a button.\ron (rollOver) {\r globitotexto = \"example text\";\r}\ron (rollOut) {\r //essential to make the tip invisible again.\r globitotexto = \"\";\r}";
}
Instance of Symbol 3619 MovieClip in Frame 843
//component parameters
onClipEvent (initialize) {
colordefondo = "0099ff";
alfafondo = 98.504837291117;
colortitulo = "ffffff";
colortexto = 10101;
globotitulo2 = "Example text";
parrafo = "// Paste this code in a button.\ron (rollOver) {\r globitotexto = \"example text\";\r}\ron (rollOut) {\r //essential to make the tip invisible again.\r globitotexto = \"\";\r}";
}
Frame 849
stop();
BGIMAGE.loadScrollContent(appdir add "IMGS/bg3.jpg");
Frame 855
stop();
BGIMAGE.loadScrollContent(appdir add "IMGS/bg4.jpg");
Frame 861
stop();
BGIMAGE.loadScrollContent(appdir add "IMGS/bg5.jpg");
Frame 867
stop();
BGIMAGE.loadScrollContent(appdir add "IMGS/bg6.jpg");
Frame 873
stop();
function difsetup(n) {
var _local2 = 1;
while (_local2 <= 5) {
_root["d" add _local2].gotoAndStop(1);
_local2++;
}
_local2 = 1;
while (_local2 <= n) {
_root["d" add _local2].gotoAndStop(2);
_local2++;
}
}
function onChangeList(i) {
tourneynum = i;
name = _root.TOURNEY[i].name;
firstplace = _root.TOURNEY[i].firstplace add "Cr";
secondplace = _root.TOURNEY[i].secondplace add "Cr";
location = _root.TOURNEY[i].location;
races = _root.TOURNEY[i].races;
difsetup(_root.TOURNEY[i].difficulty);
}
tmi = _root.TOURNEY.length;
startDrag ("dragControl", true);
setProperty("nav", _x , -2000);
setProperty("nav", _xscale , "100");
setProperty("nav", _yscale , "100");
stop();
Frame 879
stop();
Frame 880
stop();
Frame 881
racenum = 0;
Frame 882
racenum++;
tourneyname = TOURNDATA.NAME;
oppcar = new Object();
tclass = CarClasses[TOURNDATA.class];
df = (1 + Math.min(TOURNDATA.difficulty, 4)) / 5;
do {
n = Math.floor(Math.random() * Math.ceil(_root[tclass add "CLASSCAR"].length * df));
if (TOURNDATA.manureq == undefined) {
break;
}
} while ((TOURNDATA.manureq == undefined) || (StartEq(_root[tclass + "CLASSCAR"][n].FULLNAME, TOURNDATA.manureq)));
genOpp2(_root[tclass + "CLASSCAR"][n], oppcar, (TOURNDATA.difficulty / 5) * MAXUP);
oppname = oppcar.FULLNAME;
oppengname = oppcar.ENGNAME;
racenumb = (racenum add "/") add TOURNDATA.races;
stop();
Frame 883
gotoAndPlay ("tnext");
Frame 884
player.tlevel++;
gotoAndPlay ("race");
Frame 885
player.tstatus = (player.tstatus.slice(0, tourneynum) + "1") + player.tstatus.slice(tourneynum + 1);
trace(player.tstatus);
gotoAndPlay ("ladder");
Frame 888
stop();
Instance of Symbol 1443 MovieClip [FScrollPaneSymbol] "BGIMAGE" in Frame 888
//component parameters
onClipEvent (initialize) {
scrollContent = "";
hScroll = "false";
vScroll = "false";
dragContent = false;
}
Instance of Symbol 3619 MovieClip in Frame 888
//component parameters
onClipEvent (initialize) {
colordefondo = "0099ff";
alfafondo = 98.504837291117;
colortitulo = "ffffff";
colortexto = 10101;
globotitulo2 = "Example text";
parrafo = "// Paste this code in a button.\ron (rollOver) {\r globitotexto = \"example text\";\r}\ron (rollOut) {\r //essential to make the tip invisible again.\r globitotexto = \"\";\r}";
}
Frame 894
connected = false;
_root.ConstructES(OnlineServers[0].ip, OnlineServers[0].port);
Frame 895
es.connect();
msg.text = "Connecting To Server...";
stop();
Frame 903
if (Account.type < 2) {
Login(Account.alias);
} else {
Login(Account.alias, "42588491");
}
msg.text = "Connected, Logging In...";
Frame 909
msg.text = "Logging Into Server...";
Frame 916
function startUp() {
trace("Create Variables");
es.createUserVariable("id", Account.id);
es.createUserVariable("ip", ip);
es.createUserVariable("car", _root.car[player.car].FULLNAME);
es.createUserVariable("cardt", OnlineCarData);
}
function OnlineUpdateCar() {
es.createUserVariable("car", _root.car[player.car].FULLNAME);
OnlineCarData = encodeCar(_root.car[_root.player.car]);
es.createUserVariable("cardt", OnlineCarData);
p1car.text = ((((car[player.car].FULLNAME + " (") + _root.car[player.car].HP) + "/") + _root.car[player.car].TQ) + ")";
}
function sendChatMsg() {
var _local2 = msgBox.text;
if ((_local2.indexOf("<") != -1) || (_local2.indexOf("<") != -1)) {
_root.prompt("", "< and > cannot be used in chat");
return(false);
}
if ((_local2 != undefined) && (_local2 != "")) {
if (Account.type > 0) {
if (TextForm.style == "b") {
_local2 = ("<b>" + _local2) + "</b>";
} else if (TextForm.style == "i") {
_local2 = ("<i>" + _local2) + "</i>";
}
}
es.sendMessage("public", _local2);
msgBox.text = "";
}
}
function gotMessage(type, message, from) {
if ((message.slice(0, "#chlng:".length) == "#chlng:") && (type == "private")) {
challengeRecieved(message.slice("#chlng:".length), from);
} else if (message == "!chlng:false") {
challengeDeclined();
} else if (message == "!chlng:true") {
challengeAccepted(from);
} else if (message == "!chlng:canc") {
challengeCancel();
} else if (message == "!updateinfo") {
trace("!updateinfo!");
startUp();
} else if (message == "!quitrace") {
joinLobby();
} else if (message == "#prce:true") {
p2ready = true;
RaceUpdate();
} else if (message == "#prce:false") {
p2ready = false;
RaceUpdate();
} else if (type == "public") {
chatHistory = chatHistory + (((from + ": ") + message) + "<br>");
} else if (type == "private") {
chatHistory = chatHistory + (((("<i>" + from) + " [private]: ") + message) + "<br></i>");
}
chatBox.htmlText = chatHistory;
bar.setScrollPosition(chatBox.maxscroll);
}
function challengeRecieved(message, from) {
showPopUp("challenge", message, from);
}
function challengeDeclined() {
showPopUp("error", "Challenge Declined");
}
function challengeAccepted(from) {
showPopUp("accept");
}
function challengeCancel() {
popup.gotoAndStop(1);
}
function showRooms() {
zoneUpdated(es.getZone().numUsers);
popup.Update();
}
function showUsers() {
userlist = es.getUserList();
OnlineUsers = new Object();
var _local6 = new Array();
var _local2 = 0;
while (_local2 < userlist.length) {
var _local1 = userlist[_local2];
var _local4 = _local1.name.value;
OnlineUsers[_local4] = userlist[_local2];
var _local3 = new Object();
var _local5 = _local4;
_local3.label = _local5;
_local3.data = _local1;
_local6.push(_local3);
if (_local1.id == undefined) {
es.sendMessage("private", "!updateinfo", [_local1.name.value]);
}
_local2++;
}
userListBox.setDataProvider(_local6);
}
function zoneUpdated(num) {
usersInZone.text = num;
}
function roomClicked() {
showPopUp("Join Room");
}
function newRoom() {
showPopUp("New Room");
}
function userClicked(data) {
var _local1 = userListBox.getSelectedItem().data;
for (i in _local1) {
trace((i + " = ") + _local1[i]);
}
if (_local1.id == undefined) {
es.sendMessage("private", "!updateinfo", [_local1.name.value]);
showPopUp("error", "User(s) needed to be updated,\nTry Again");
} else if ((es.getUser().attributes.moderator == true) || (Account.type > 1)) {
showPopUp("moderator", username, _local1);
} else {
showPopUp("private", username, _local1);
}
}
function showPopUp(action, info, info2) {
if (action == "Join Room") {
if (popup.roomOb.attributes.IsPasswordProtected) {
var _local6 = "Join Room2";
} else {
var _local6 = action;
}
popup.gotoAndStop(_local6);
} else if (action == "error") {
popup.gotoAndStop("Error");
popup.error.text = info;
} else if (action == "New Room") {
popup.gotoAndStop(action);
} else if (action == "private") {
popup.username = info;
popup.userob = info2;
popup.gotoAndStop(action);
} else if (action == "moderator") {
popup.username = info;
popup.userob = info2;
popup.gotoAndStop(action);
} else if (action == "select") {
popup.gotoAndStop("Select");
} else if (action == "challenge") {
popup.gotoAndStop("Recieved");
popup.ChallengeInfo = info;
var _local2 = es.getUserList();
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].name.value == info2) {
popup.userob = _local2[_local1];
break;
}
_local1++;
}
} else if (action == "accept") {
popup.gotoAndStop("Accepted");
popup.Challenger = info2;
}
}
function roomJoined(results, myRoom) {
if (!results.success) {
showPopup("error", results.error);
} else {
if (joiningGame) {
joiningGame = false;
gotoAndStop ("PreRace");
}
room.text = es.getRoom().name.value;
}
trace("Room Joined");
}
OnlineCarData = encodeCar(_root.car[_root.player.car]);
startUp();
es.userVariableUpdated = function (user, type, name) {
showUsers();
};
chatHistory = "";
room.text = es.getRoom().name.value;
es.messageReceived = gotMessage;
es.roomListUpdated = showRooms;
es.userListUpdated = showUsers;
es.roomJoined = roomJoined;
showRooms();
showUsers();
showPopUp("select");
stop();
connected = true;
Instance of Symbol 849 MovieClip [FListBoxSymbol] "userListBox" in Frame 916
//component parameters
onClipEvent (initialize) {
selectMultiple = false;
changeHandler = "userClicked";
}
Instance of Symbol 842 MovieClip [FScrollBarSymbol] "bar" in Frame 916
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "chatBox";
horizontal = false;
}
Frame 922
function sendStartMove() {
var _local1 = new Object();
_local1.action = "gotogame";
es.sendMove("all", _local1);
}
function moveReceived(type, ob, from) {
var _local2 = ob.action.toLowerCase();
if (RaceDataUpdate) {
RaceTempTime = Number(ob.action);
} else if (_local2 == "gotogame") {
_root.race(car[player.car], decodeCar(OnlineChallenger.cardt), 1, 5, {cr:0, ca:false, tar:"chat"}, {cr:0, ca:false, tar:"chat"}, 400);
}
}
function RaceUpdate() {
MASK._visible = ready;
if (ready) {
p1stat.gotoAndStop(2);
} else {
p1stat.gotoAndStop(1);
}
if (p2ready) {
p2stat.gotoAndStop(2);
} else {
p2stat.gotoAndStop(1);
}
if (ready && (p2ready)) {
sendStartMove();
}
p2name.text = OnlineChallenger.name.value;
oppcar = new Object();
CarEq(oppcar, decodeCar(OnlineChallenger.cardt));
p2car.text = ((((OnlineChallenger.car + " (") + oppcar.HP) + "/") + oppcar.TQ) + ")";
p1name.text = Account.alias;
}
RaceDataUpdate = false;
RaceTempTime = "";
p2ready = false;
ready = false;
RaceUpdate();
OnlineUpdateCar();
es.moveReceived = moveReceived;
if (pendingMoves.length > 0) {
var i = 0;
while (i < pendingMoves.length) {
var moveOb = pendingMoves[i];
moveReceived(moveOb.type, moveOb.ob, moveOb, from);
i++;
}
}
stop();
Instance of Symbol 842 MovieClip [FScrollBarSymbol] "bar2" in Frame 922
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "chatBox";
horizontal = false;
}
Frame 928
DATA = new LoadVars();
DATA.onLoad = function (sucess) {
trace(sucess);
for (i in DATA) {
trace((i + " = ") + DATA[i]);
}
viewCar(DecodeCar(((((((((("s=" + DATA.s) + "&p=") + DATA.p) + "&a=") + DATA.a) + "&c=") + DATA.c) + "&u=") + DATA.u) + "&"));
};
DATA.load("http://dragraceronline.net/PHP/getcardat.php?id=" + carshowid);
stop();
Frame 938
gotoAndStop (928);
Symbol 14 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 16 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 19 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 21 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 24 MovieClip [Defaults] Frame 1
#initclip 1
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 25 MovieClip [UIObjectExtensions] Frame 1
#initclip 2
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 26 MovieClip [UIObject] Frame 1
#initclip 3
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 29 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 30 MovieClip [FocusRect] Frame 1
#initclip 4
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 31 MovieClip [FocusManager] Frame 1
#initclip 5
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 32 MovieClip [UIComponentExtensions] Frame 1
#initclip 6
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 33 MovieClip [UIComponent] Frame 1
#initclip 7
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 34 MovieClip [SimpleButton] Frame 1
#initclip 8
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 35 MovieClip [Border] Frame 1
#initclip 9
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 36 MovieClip [RectBorder] Frame 1
#initclip 10
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 37 MovieClip [ButtonSkin] Frame 1
#initclip 11
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 38 MovieClip [Button] Frame 1
#initclip 12
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 34 MovieClip [SimpleButton] in Symbol 38 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 39 MovieClip [CustomBorder] Frame 1
#initclip 13
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 51 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 53 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 64 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 66 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 73 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 94 MovieClip [BtnDownArrow] Frame 1
#initclip 14
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 95 MovieClip [BtnUpArrow] Frame 1
#initclip 15
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 97 MovieClip [HScrollBar] Frame 1
#initclip 16
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 38 MovieClip [Button] in Symbol 97 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 34 MovieClip [SimpleButton] in Symbol 97 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 98 MovieClip [VScrollBar] Frame 1
#initclip 17
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 38 MovieClip [Button] in Symbol 98 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 34 MovieClip [SimpleButton] in Symbol 98 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 99 MovieClip [View] Frame 1
#initclip 18
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 100 MovieClip [ScrollView] Frame 1
#initclip 19
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 97 MovieClip [HScrollBar] in Symbol 100 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 98 MovieClip [VScrollBar] in Symbol 100 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 101 MovieClip [Modal] Frame 1
#initclip 20
mx.skins.SkinElement.registerElement("Modal");
#endinitclip
Symbol 108 MovieClip [TitleBackground] Frame 1
#initclip 21
_global.mx.skins.TitleBackground = function () {
this.constructObject();
};
_global.mx.skins.TitleBackground.prototype = new mx.skins.CustomBorder();
_global.mx.skins.TitleBackground.prototype.className = "TitleBackground";
_global.mx.skins.TitleBackground.symbolName = "TitleBackground";
_global.mx.skins.TitleBackground.symbolOwner = _global.mx.skins.TitleBackground;
_global.mx.skins.TitleBackground.prototype.leftSkin = "TitleLeft";
_global.mx.skins.TitleBackground.prototype.middleSkin = "TitleMiddle";
_global.mx.skins.TitleBackground.prototype.rightSkin = "TitleRight";
_global.mx.skins.SkinElement.registerElement("TitleBackground", _global.mx.skins.TitleBackground);
_global.mx.skins.SkinElement.registerElement("TitleLeft");
_global.mx.skins.SkinElement.registerElement("TitleMiddle");
_global.mx.skins.SkinElement.registerElement("TitleRight");
_global.mx.skins.TitleBackground.prototype.init = function () {
super.init();
};
#endinitclip
Symbol 117 MovieClip [WindowAssets] Frame 1
#initclip 22
mx.containers.Window.prototype.titleStyleDeclaration = "windowStyles";
#endinitclip
Symbol 118 MovieClip [Window] Frame 1
#initclip 23
Object.registerClass("Window", mx.containers.Window);
#endinitclip
stop();
Instance of Symbol 12 MovieClip [BoundingBox] "boundingBox_mc" in Symbol 118 MovieClip [Window] Frame 1
/* no clip actions */
Instance of Symbol 34 MovieClip [SimpleButton] in Symbol 118 MovieClip [Window] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 151 MovieClip [DataProvider] Frame 1
#initclip 24
Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider);
#endinitclip
stop();
Symbol 152 MovieClip [DataSelector] Frame 1
#initclip 25
Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector);
#endinitclip
stop();
Symbol 153 MovieClip [SelectableRow] Frame 1
#initclip 26
Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow);
#endinitclip
stop();
Symbol 154 MovieClip [ScrollSelectList] Frame 1
#initclip 27
Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList);
#endinitclip
stop();
Symbol 155 MovieClip [List] Frame 1
#initclip 28
Object.registerClass("List", mx.controls.List);
#endinitclip
stop();
Symbol 161 MovieClip [TextArea] Frame 1
#initclip 29
Object.registerClass("TextArea", mx.controls.TextArea);
#endinitclip
stop();
Symbol 162 MovieClip [AlertAssets] Frame 1
#initclip 30
mx.controls.Alert.titleStyleDeclaration = "windowStyles";
#endinitclip
Symbol 163 MovieClip [Alert] Frame 1
#initclip 31
Object.registerClass("Alert", mx.controls.Alert);
#endinitclip
stop();
Instance of Symbol 118 MovieClip [Window] in Symbol 163 MovieClip [Alert] Frame 2
//component parameters
onClipEvent (initialize) {
closeButton = false;
contentPath = "";
title = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
skinCloseDisabled = "CloseButtonDisabled";
skinCloseDown = "CloseButtonDown";
skinCloseOver = "CloseButtonOver";
skinCloseUp = "CloseButtonUp";
skinTitleBackground = "TitleBackground";
titleStyleDeclaration = "";
}
Instance of Symbol 161 MovieClip [TextArea] in Symbol 163 MovieClip [Alert] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
html = false;
text = "";
wordWrap = false;
maxChars = null;
restrict = "null";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 38 MovieClip [Button] in Symbol 163 MovieClip [Alert] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 169 MovieClip [AccordionHeaderSkin] Frame 1
#initclip 32
Object.registerClass("AccordionHeaderSkin", mx.skins.halo.AccordionHeaderSkin);
#endinitclip
Symbol 170 MovieClip [AccordionHeader] Frame 1
#initclip 33
Object.registerClass("AccordionHeader", mx.containers.accordionclasses.AccordionHeader);
#endinitclip
stop();
Instance of Symbol 38 MovieClip [Button] in Symbol 170 MovieClip [AccordionHeader] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 171 MovieClip [Accordion] Frame 1
#initclip 34
Object.registerClass("Accordion", mx.containers.Accordion);
#endinitclip
stop();
Symbol 175 Button
on (press) {
startDrag ("", false, left, top, right, bottom);
SliderDrag = true;
_root.SliderDrag = true;
}
on (release) {
stopDrag();
_parent._parent.updateScroll();
SliderDrag = false;
_root.SliderDrag = false;
}
Instance of Symbol 176 MovieClip "knob" in Symbol 177 MovieClip [FADER] Frame 1
onClipEvent (load) {
top = 0 + _y;
bottom = (100 + _y) - _height;
left = _x;
right = _x;
}
Symbol 185 MovieClip [FLabelSymbol] Frame 1
#initclip 40
_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 _local2 = this.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
this.labelField.embedFonts = _local2;
}
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 _local2 = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
this.setColor(_local2);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 188 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 188 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 188 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 189 MovieClip [FUIComponentSymbol] Frame 1
#initclip 35
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 _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
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 _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
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, _local4);
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 _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((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 || (!_local16)) {
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 _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
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 _local3 = new Color(skinMCRef);
_local3.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 _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 202 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 212 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 221 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 222 MovieClip [UpArrow] Frame 1
stop();
Symbol 222 MovieClip [UpArrow] Frame 2
stop();
Symbol 222 MovieClip [UpArrow] Frame 3
stop();
Symbol 229 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 237 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 242 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 243 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 251 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 259 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 267 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 268 MovieClip [DownArrow] Frame 1
stop();
Symbol 268 MovieClip [DownArrow] Frame 2
stop();
Symbol 268 MovieClip [DownArrow] Frame 3
stop();
Symbol 277 MovieClip Frame 14
gotoAndPlay (4);
Symbol 371 MovieClip Frame 1
play();
Symbol 371 MovieClip Frame 8
play();
Symbol 371 MovieClip Frame 29
gotoAndPlay (8);
Symbol 394 MovieClip Frame 8
play();
Symbol 394 MovieClip Frame 39
gotoAndPlay (8);
Symbol 414 MovieClip Frame 1
stop();
Symbol 423 MovieClip Frame 1
stop();
Symbol 491 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 494 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 497 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 499 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 502 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(disabled_mc, "foregroundDisabled");
Symbol 505 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(dot_mc, "radioDot");
Symbol 506 MovieClip [frb_states] Frame 1
stop();
Symbol 506 MovieClip [frb_states] Frame 2
stop();
Symbol 506 MovieClip [frb_states] Frame 3
stop();
Symbol 506 MovieClip [frb_states] Frame 4
stop();
Symbol 506 MovieClip [frb_states] Frame 5
stop();
Symbol 514 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 517 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 520 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 522 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 525 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 528 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 529 MovieClip [fcb_states] Frame 1
stop();
Symbol 529 MovieClip [fcb_states] Frame 2
stop();
Symbol 529 MovieClip [fcb_states] Frame 3
stop();
Symbol 529 MovieClip [fcb_states] Frame 4
stop();
Symbol 529 MovieClip [fcb_states] Frame 5
stop();
Symbol 529 MovieClip [fcb_states] Frame 6
stop();
Symbol 530 MovieClip [FUIComponentSymbol] Frame 1
#initclip 36
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 _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
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 _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
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, _local4);
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 _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((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 || (!_local16)) {
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 _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
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 _local3 = new Color(skinMCRef);
_local3.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 _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 538 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 546 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 554 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 555 MovieClip [UpArrow] Frame 1
stop();
Symbol 555 MovieClip [UpArrow] Frame 2
stop();
Symbol 555 MovieClip [UpArrow] Frame 3
stop();
Symbol 560 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 566 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 570 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 571 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 579 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 587 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 595 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 596 MovieClip [DownArrow] Frame 1
stop();
Symbol 596 MovieClip [DownArrow] Frame 2
stop();
Symbol 596 MovieClip [DownArrow] Frame 3
stop();
Symbol 599 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 599 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 599 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 601 MovieClip [FLabelSymbol] Frame 1
#initclip 37
_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 _local2 = this.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
this.labelField.embedFonts = _local2;
}
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 _local2 = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
this.setColor(_local2);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 612 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 612 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 615 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 45
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 _local8 = this.fLabel_mc._height / 2;
var _local7 = this.fcb_states_mc._height / 2;
var _local5 = _local7 - _local8;
var _local6 = this.fcb_states_mc._width;
var _local4 = this.fcb_states_mc;
var _local9 = this.fLabel_mc;
var _local2 = 0;
if (_local4._width > this.width) {
_local2 = 0;
} else {
_local2 = this.width - _local4._width;
}
this.fLabel_mc.setSize(_local2);
if ((pos == "right") || (pos == undefined)) {
this.labelPlacement = "right";
this.fcb_states_mc._x = 0;
this.fLabel_mc._x = _local6;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.fcb_states_mc._x = this.width - _local6;
this.txtFormat("right");
}
this.fLabel_mc._y = _local5;
this.fcb_hitArea_mc._y = _local5;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var _local3 = this.textStyle;
var _local4 = this.styleTable;
_local3.align = ((_local4.textAlign.value == undefined) ? ((_local3.align = pos)) : undefined);
_local3.leftMargin = ((_local4.textLeftMargin.value == undefined) ? ((_local3.leftMargin = 0)) : undefined);
_local3.rightMargin = ((_local4.textRightMargin.value == undefined) ? ((_local3.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 _local3 = this.fcb_hitArea_mc;
this.hitArea = _local3;
if (this.fcb_states_mc._width > w) {
_local3._width = this.fcb_states_mc._width;
} else {
_local3._width = w;
}
_local3._visible = false;
if (arguments.length > 1) {
_local3._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 _local3 = this.fcb_states_mc;
if (this.getValue()) {
_local3.gotoAndStop("checkedPress");
} else {
_local3.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
this.fcb_states_mc.gotoAndStop("up");
this.setValue(!this.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var _local2 = this.fcb_states_mc;
if (this.getValue()) {
_local2.gotoAndStop("checkedEnabled");
} else {
_local2.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var _local2 = this.fcb_states_mc;
if (this.getValue()) {
_local2.gotoAndStop("checkedEnabled");
} else {
_local2.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var _local2 = this.fcb_states_mc;
if (this.getValue()) {
_local2.gotoAndStop("checkedPress");
} else {
_local2.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 _local2 = this.fcb_states_mc;
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (checkedValue || (checkedValue == undefined)) {
_local2.gotoAndStop("checkedEnabled");
this.enabled = true;
this.checked = true;
} else {
_local2.gotoAndStop("up");
this.enabled = true;
this.checked = false;
}
} else {
this.flabel_mc.setEnabled(false);
if (checkedValue || (checkedValue == undefined)) {
_local2.gotoAndStop("checkedDisabled");
this.enabled = false;
this.checked = true;
} else {
_local2.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 622 Button
on (release) {
this.removeMovieClip();
}
Symbol 627 Button
on (release) {
fscommand ("flashstudio.exec", "\"Settings.exe\"");
}
Symbol 632 Button
on (release) {
_quality = "low";
}
Symbol 636 Button
on (release) {
_quality = "medium";
}
Symbol 640 Button
on (release) {
_quality = "high";
}
Symbol 642 MovieClip [OPTIONS] Frame 1
function screenChange() {
_root.Options.gearsh = gearsh.getValue();
_root.Options.clutch = clutch.getValue();
_root.Options.nogas = nogas.getValue();
}
gearsh.setValue(_root.Options.gearsh);
clutch.setValue(_root.Options.clutch);
nogas.setValue(_root.Options.nogas);
gearsh.setChangeHandler("screenChange");
clutch.setChangeHandler("screenChange");
nogas.setChangeHandler("screenChange");
stop();
Instance of Symbol 615 MovieClip [FCheckBoxSymbol] "gearsh" in Symbol 642 MovieClip [OPTIONS] Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = false;
labelPlacement = "right";
changeHandler = "";
}
Instance of Symbol 615 MovieClip [FCheckBoxSymbol] "clutch" in Symbol 642 MovieClip [OPTIONS] Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = false;
labelPlacement = "right";
changeHandler = "";
}
Instance of Symbol 615 MovieClip [FCheckBoxSymbol] "nogas" in Symbol 642 MovieClip [OPTIONS] Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = false;
labelPlacement = "right";
changeHandler = "";
}
Symbol 722 Button
on (release) {
if (_root.carshowdat == undefined) {
this.removeMovieClip();
}
}
Symbol 727 Button
on (release) {
gotoAndPlay ("engine");
}
Symbol 728 Button
on (release) {
gotoAndPlay ("exterior");
}
Symbol 730 Button
on (release) {
gotoAndPlay ("interior");
}
Symbol 732 Button
on (release) {
gotoAndPlay ("sound");
}
Symbol 734 Button
on (release) {
gotoAndPlay ("specs");
}
Symbol 747 Button
on (release) {
gotoAndPlay ("view");
}
Symbol 838 MovieClip [FListItemSymbol] Frame 1
#initclip 57
function FListItemClass() {
this.init();
}
FListItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FListItemSymbol", FListItemClass);
#endinitclip
Symbol 841 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 842 MovieClip [FScrollBarSymbol] Frame 1
#initclip 48
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local2 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local2, this.textField.maxhscroll));
} else {
var _local2 = this.textField.scroll;
var _local3 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local3, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local2, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 843 MovieClip [DataProviderSymbol] Frame 1
#initclip 38
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
this.items = new Array();
this.uniqueID = 0;
this.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local2 = {event:"updateAll"};
viewRef.modelChanged(_local2);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
if (index < this.getLength()) {
this.items.splice(index, 0, "tmp");
}
this.items[index] = new Object();
if (typeof(value) == "object") {
this.items[index] = value;
} else {
this.items[index].label = value;
}
this.items[index].__ID__ = this.uniqueID++;
var _local4 = {event:"addRows", firstRow:index, lastRow:index};
this.updateViews(_local4);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var _local4 = this.items[index];
this.items.splice(index, 1);
var _local3 = {event:"deleteRows", firstRow:index, lastRow:index};
this.updateViews(_local3);
return(_local4);
};
DataProviderClass.prototype.removeAll = function () {
this.items = new Array();
this.updateViews({event:"deleteRows", firstRow:0, lastRow:this.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
if ((index < 0) || (index >= this.getLength())) {
return(undefined);
}
var _local3 = this.getItemID(index);
if (typeof(itemObj) == "object") {
this.items[index] = itemObj;
} else {
this.items[index].label = itemObj;
}
this.items[index].__ID__ = _local3;
this.updateViews({event:"updateRows", firstRow:index, lastRow:index});
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
this.items.sortOn(fieldName);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = 0;
while (_local2 < this.views.length) {
this.views[_local2].modelChanged(eventObj);
_local2++;
}
};
#endinitclip
Symbol 844 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 52
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
if (this._name != "itemAsset") {
this.highlighted = false;
this.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
this.displayContent(itmObj, selected);
if ((this.highlighted != selected) || ((this.controller.focused != this.oldFocus) && (selected))) {
this.setHighlighted(selected);
}
this.oldFocus = this.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var _local2 = -16384;
this.width = width;
this.layoutContent(width);
this.attachMovie("FHighlightSymbol", "highlight_mc", _local2);
this.highlight_mc._x = 0.5;
this.highlight_mc._width = width - 0.5;
this.highlight_mc._height = height;
this.highlight_mc.controller = this;
this.highlight_mc._alpha = 0;
this.highlight_mc.trackAsMenu = true;
this.highlight_mc.onPress = function () {
if (this.controller.enable) {
this.controller.controller.clickHandler(this.controller.itemNum);
}
};
this.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
this.highlight_mc.useHandCursor = false;
this.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
this.enable = enabledFlag;
this.fLabel_mc.setEnabled(enabledFlag);
this.highlight_mc.gotoAndStop((enabledFlag ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
this.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:this.controller});
this.fLabel_mc._x = 2;
this.fLabel_mc._y = 0;
this.fLabel_mc.setSize(width - 2);
this.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var _local2 = "";
if (itmObj.label != undefined) {
_local2 = itmObj.label;
} else if (typeof(itmObj) == "object") {
for (var _local4 in itmObj) {
if (_local4 != "__ID__") {
_local2 = (itmObj[_local4] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 2);
} else {
_local2 = itmObj;
}
if (this.fLabel_mc.labelField.text != _local2) {
this.fLabel_mc.setLabel(_local2);
}
var _local5 = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (_local5 == undefined) {
_local5 = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(_local5);
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
fade = this.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!flag)) {
this.highlight_mc._alpha = (flag ? 100 : 0);
delete this.onEnterFrame;
} else {
this.fadeN = fade;
this.fadeX = 1;
this.highLight_mc._alpha = 20;
this.onEnterFrame = function () {
this.highLight_mc._alpha = (60 * Math.sqrt((this.fadeX++) / this.fadeN)) + 40;
if (this.fadeX > this.fadeN) {
delete this.onEnterFrame;
}
};
}
this.highlighted = flag;
};
#endinitclip
Symbol 845 MovieClip [FSelectableListSymbol] Frame 1
#initclip 43
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
super.init();
this.enable = true;
this.selected = new Array();
this.topDisplayed = (this.numDisplayed = 0);
this.lastSelected = 0;
this.tabChildren = false;
if (this._name != undefined) {
this.dataProvider = new DataProviderClass();
this.dataProvider.addView(this);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
if ((index < 0) || (!this.enable)) {
return(undefined);
}
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
if (!this.enable) {
return(undefined);
}
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndex();
var _local2 = this.getItemAt(index);
this.dataProvider.removeItemAt(index);
return(_local2);
};
FSelectableListClass.prototype.removeAll = function () {
this.dataProvider.removeAll();
};
FSelectableListClass.prototype.replaceItemAt = function (index, newLabel, newData) {
this.dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
};
FSelectableListClass.prototype.sortItemsBy = function (fieldName, order) {
this.lastSelID = this.dataProvider.getItemID(this.lastSelected);
this.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
for (var _local3 in this.selected) {
var _local2 = this.selected[_local3].sIndex;
if (_local2 != undefined) {
return(_local2);
}
}
};
FSelectableListClass.prototype.getSelectedItem = function () {
return(this.getItemAt(this.getSelectedIndex()));
};
FSelectableListClass.prototype.getItemAt = function (index) {
return(this.dataProvider.getItemAt(index));
};
FSelectableListClass.prototype.getEnabled = function () {
return(this.enable);
};
FSelectableListClass.prototype.getValue = function () {
var _local2 = this.getSelectedItem();
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
if (((index >= 0) && (index < this.getLength())) && (this.enable)) {
this.clearSelected();
this.selectItem(index, true);
this.lastSelected = index;
this.invalidate("updateControl");
if (flag != false) {
this.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
this.setScrollPosition(0);
this.clearSelected();
if (obj instanceof Array) {
this.dataProvider = new DataProviderClass();
var _local2 = 0;
while (_local2 < obj.length) {
var _local4 = ((typeof(obj[_local2]) == "string") ? ({label:obj[_local2]}) : (obj[_local2]));
this.dataProvider.addItem(_local4);
_local2++;
}
} else {
this.dataProvider = obj;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
this.tmpPos = this.getScrollPosition();
this.itemSymbol = linkID;
this.invalidate("setSize");
this.setScrollPosition(this.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
this.cleanUI();
super.setEnabled(enabledFlag);
this.enable = enabledFlag;
this.boundingBox_mc.gotoAndStop((this.enable ? "enabled" : "disabled"));
var _local4 = Math.min(this.numDisplayed, this.getLength());
var _local3 = 0;
while (_local3 < _local4) {
this.container_mc[("fListItem" + _local3) + "_mc"].setEnabled(this.enable);
_local3++;
}
if (this.enable) {
this.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var _local2 = 0;
while (_local2 < this.numDisplayed) {
this.container_mc[("fListItem" + _local2) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + _local2), this.isSelected(this.topDisplayed + _local2));
_local2++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
super.setSize(w, h);
this.boundingBox_mc._xscale = (this.boundingBox_mc._yscale = 100);
this.boundingBox_mc._xscale = (this.width * 100) / this.boundingBox_mc._width;
this.boundingBox_mc._yscale = (this.height * 100) / this.boundingBox_mc._height;
var _local3 = 0;
while (_local3 < this.numDisplayed) {
this.container_mc.attachMovie(this.itemSymbol, ("fListItem" + _local3) + "_mc", 10 + _local3, {controller:this, itemNum:_local3});
var _local4 = this.container_mc[("fListItem" + _local3) + "_mc"];
var _local5 = ((this.scrollOffset == undefined) ? 0 : (this.scrollOffset));
_local4.setSize(this.width - _local5, this.itmHgt);
_local4._y = (this.itmHgt - 2) * _local3;
_local3++;
}
this.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var _local4 = eventObj.firstRow;
var _local6 = eventObj.lastRow;
var _local8 = eventObj.event;
if (_local8 == "addRows") {
for (var _local2 in this.selected) {
if ((this.selected[_local2].sIndex != undefined) && (this.selected[_local2].sIndex >= _local4)) {
this.selected[_local2].sIndex = this.selected[_local2].sIndex + ((_local6 - _local4) + 1);
this.setSelectedIndex(this.selected[_local2].sIndex, false);
}
}
} else if (_local8 == "deleteRows") {
if (_local4 == _local6) {
var _local5 = _local4;
if (this.selectHolder == _local5) {
this.selectionDeleted = true;
}
if (((this.topDisplayed + this.numDisplayed) >= this.getLength()) && (this.topDisplayed > 0)) {
this.topDisplayed--;
if (this.selectionDeleted && ((_local5 - 1) >= 0)) {
this.setSelectedIndex(_local5 - 1, false);
}
} else if (this.selectionDeleted) {
var _local7 = this.getLength();
if (((_local5 == (_local7 - 1)) && (_local7 > 1)) || (_local5 > (_local7 / 2))) {
this.setSelectedIndex(_local5 - 1, false);
} else {
this.setSelectedIndex(_local5, false);
}
}
for (var _local2 in this.selected) {
if (this.selected[_local2].sIndex > _local4) {
this.selected[_local2].sIndex--;
}
}
} else {
this.clearSelected();
this.topDisplayed = 0;
}
} else if (_local8 == "sort") {
var _local7 = this.getLength();
var _local2 = 0;
while (_local2 < _local7) {
if (this.isSelected(_local2)) {
var _local3 = this.dataProvider.getItemID(_local2);
if (_local3 == this.lastSelID) {
this.lastSelected = _local2;
}
this.selected[String(_local3)].sIndex = _local2;
}
_local2++;
}
}
this.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
this.attachMovie(this.itemSymbol, "tmpItem_mc", 0, {controller:this});
this.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
this.itmHgt = this.tmpItem_mc._height;
this.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
if (selectedFlag && (!this.isSelected(index))) {
this.selected[String(this.dataProvider.getItemID(index))] = {sIndex:index};
} else if (!selectedFlag) {
delete this.selected[String(this.dataProvider.getItemID(index))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
for (var _local3 in this.selected) {
var _local2 = this.selected[_local3].sIndex;
if (((_local2 != undefined) && (this.topDisplayed <= _local2)) && (_local2 < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (_local2 - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(_local2), false);
}
}
delete this.selected;
this.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var _local2 = this.topDisplayed + itemNum;
if (this.getItemAt(_local2 == undefined)) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
this.clearSelected();
this.selectItem(_local2, true);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(_local2), this.isSelected(_local2));
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var _local3 = this.getSelectedIndex();
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(this.getLength() - 1, _local2);
if (_local2 == _local3) {
return(undefined);
}
if ((_local3 < this.topDisplayed) || (_local3 >= (this.topDisplayed + this.numDisplayed))) {
this.setScrollPosition(_local3);
}
if ((_local2 >= (this.topDisplayed + this.numDisplayed)) || (_local2 < this.topDisplayed)) {
this.setScrollPosition(this.topDisplayed + incr);
}
this.selectionHandler(_local2 - this.topDisplayed);
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
this.focusRect.removeMovieClip();
if (!this.focused) {
this.pressFocus();
}
this.selectionHandler(itmNum);
this.onMouseUp = this.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
if (this.changeFlag) {
this.executeCallBack();
}
this.changeFlag = false;
this.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
var _local3 = 0;
while (_local3 < this.numDisplayed) {
this.container_mc[("fListItem" + _local3) + "_mc"].highlight_mc.gotoAndStop("enabled");
_local3++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
super.myOnKillFocus();
var _local3 = 0;
while (_local3 < this.numDisplayed) {
this.container_mc[("fListItem" + _local3) + "_mc"].highlight_mc.gotoAndStop("unfocused");
_local3++;
}
};
#endinitclip
Instance of Symbol 843 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 845 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 844 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 845 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 846 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 50
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
if (this.enable) {
pos = Math.min(pos, this.getLength() - this.numDisplayed);
pos = Math.max(pos, 0);
this.scrollBar_mc.setScrollPosition(pos);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
this.permaScrollBar = !flag;
this.setSize(this.width, this.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var _local3 = this.getScrollPosition();
super.setSize(w, h);
if (this.scrollBar_mc != undefined) {
this.removed = true;
}
this.scrollBar_mc = undefined;
this.initScrollBar();
this.setScrollPosition(_local3);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
if ((!this.permaScrollBar) && (this.getLength() <= this.numDisplayed)) {
if (this.removed) {
this.scrollBar_mc.removeMovieClip();
this.scrollBar_mc = undefined;
this.scrollOffset = undefined;
this.invalidate("setSize");
}
} else {
if (this.scrollBar_mc == undefined) {
this.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:this.styleTable});
this.scrollBar_mc = this.container_mc.scrollBar_mc;
this.scrollBar_mc.setChangeHandler("scrollHandler", this);
this.scrollBar_mc.setSize(this.height);
this.scrollBar_mc._x = this.width - this.scrollBar_mc._width;
this.scrollBar_mc._y = 0;
this.scrollBar_mc.setLargeScroll(this.numDisplayed - 1);
this.scrollOffset = this.scrollBar_mc._width;
this.invalidate("setSize");
}
this.scrollBar_mc.setScrollProperties(this.numDisplayed, 0, this.getLength() - this.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var _local2 = scrollBar.getScrollPosition();
this.topDisplayed = _local2;
if (this.lastPosition != _local2) {
this.updateControl();
}
this.lastPosition = _local2;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
super.clickHandler(itmNum);
if ((this.dragScrolling == undefined) && (this.scrollBar_mc != undefined)) {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
clearInterval(this.dragScrolling);
if (this.container_mc._ymouse < 0) {
this.setScrollPosition(this.getScrollPosition() - 1);
this.selectionHandler(0);
this.scrollInterval = Math.max(25, (-23.8 * (-this.container_mc._ymouse)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else if (this.container_mc._ymouse > ((this.itmHgt - 2) * this.numDisplayed)) {
this.setScrollPosition(this.getScrollPosition() + 1);
this.selectionHandler(this.numDisplayed - 1);
this.scrollInterval = Math.max(25, (-23.8 * Math.abs((this.container_mc._ymouse - ((this.itmHgt - 2) * this.numDisplayed)) - 2)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
if (this.focused) {
this.keyCodes = new Array(40, 38, 34, 33, 36, 35);
this.keyIncrs = new Array(1, -1, this.numDisplayed - 1, -(this.numDisplayed - 1), -this.getLength(), this.getLength());
var _local2 = 0;
while (_local2 < this.keyCodes.length) {
if (Key.isDown(this.keyCodes[_local2])) {
this.moveSelBy(this.keyIncrs[_local2]);
return(undefined);
}
_local2++;
}
this.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var _local2 = Key.getAscii();
if ((_local2 >= 33) && (_local2 <= 126)) {
this.findString(String.fromCharCode(_local2));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
return(undefined);
}
var _local4 = this.getSelectedIndex();
var _local6 = 0;
var _local2 = _local4 + 1;
while (_local2 != _local4) {
var _local3 = this.getItemAt(_local2).label.substring(0, str.length);
if ((str == _local3) || (str.toUpperCase() == _local3.toUpperCase())) {
_local6 = _local2 - _local4;
break;
}
if (_local2 >= (this.getLength() - 1)) {
_local2 = -1;
}
_local2++;
}
if (_local6 != 0) {
this.moveSelBy(_local6);
}
};
#endinitclip
Instance of Symbol 842 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 846 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 845 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 846 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 849 MovieClip [FListBoxSymbol] Frame 1
#initclip 58
function FListBoxClass() {
this.itemSymbol = "FListItemSymbol";
this.init();
this.permaScrollBar = true;
var _local2 = 0;
while (_local2 < this.labels.length) {
this.addItem(this.labels[_local2], this.data[_local2]);
_local2++;
}
this.boundingBox_mc.gotoAndStop(1);
this.width = this._width;
this.height = this._height;
this._yscale = (this._xscale = 100);
this.setSize(this.width, this.height);
if (this.changeHandler.length > 0) {
this.setChangeHandler(this.changeHandler);
}
}
FListBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FListBoxSymbol", FListBoxClass);
FListBoxClass.prototype.getSelectedIndices = function () {
var _local2 = new Array();
for (var _local3 in this.selected) {
_local2.push(this.selected[_local3].sIndex);
}
return(((_local2.length > 0) ? (_local2) : undefined));
};
FListBoxClass.prototype.getSelectedItems = function () {
var _local3 = this.getSelectedIndices();
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _local3.length) {
_local4.push(this.getItemAt(_local3[_local2]));
_local2++;
}
return(((_local4.length > 0) ? (_local4) : undefined));
};
FListBoxClass.prototype.getSelectMultiple = function () {
return(this.selectMultiple);
};
FListBoxClass.prototype.getRowCount = function () {
return(this.numDisplayed);
};
FListBoxClass.prototype.setSelectedIndices = function (indexArray) {
this.clearSelected();
var _local2 = 0;
while (_local2 < indexArray.length) {
this.selectItem(indexArray[_local2], true);
_local2++;
}
this.updateControl();
};
FListBoxClass.prototype.setSelectMultiple = function (flag) {
this.selectMultiple = flag;
};
FListBoxClass.prototype.setRowCount = function (count) {
var _local2 = (count * (this.itmHgt - 2)) + 2;
this.setSize(this.width, _local2);
};
FListBoxClass.prototype.setWidth = function (wdt) {
this.setSize(wdt, this.height);
};
FListBoxClass.prototype.setSize = function (w, h) {
if (!this.enable) {
return(undefined);
}
w = Math.max(w, 20);
h = Math.max(h, 40);
this.container_mc.removeMovieClip();
this.container_mc = this.createEmptyMovieClip("container", 3);
this.measureItmHgt();
this.numDisplayed = Math.floor(h / (this.itmHgt - 2));
this.height = (this.numDisplayed * (this.itmHgt - 2)) + 2;
super.setSize(w, this.height);
};
FListBoxClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndices();
return(super.removeItemAt(index));
};
FListBoxClass.prototype.selectionHandler = function (itemNum) {
if (this.clickFilter) {
var _local3 = this.topDisplayed + itemNum;
if (this.getItemAt(_local3) == undefined) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
if (((!this.selectMultiple) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
this.clearSelected();
this.selectItem(_local3, true);
this.lastSelected = _local3;
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(_local3), this.isSelected(_local3));
} else if (Key.isDown(16) && (this.selectMultiple)) {
if (this.lastSelected == -1) {
this.lastSelected = _local3;
}
var _local4 = ((this.lastSelected < _local3) ? 1 : -1);
this.clearSelected();
var _local2 = this.lastSelected;
while (_local2 != _local3) {
this.selectItem(_local2, true);
if ((_local2 >= this.topDisplayed) && (_local2 < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (_local2 - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(_local2), this.isSelected(_local2));
}
_local2 = _local2 + _local4;
}
this.selectItem(_local3, true);
this.container_mc[("fListItem" + (_local3 - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(_local3), this.isSelected(_local3));
} else if (key.isDown(17)) {
var _local6 = this.isSelected(_local3);
if (!this.selectMultiple) {
this.clearSelected();
}
if (!((!this.selectMultiple) && (_local6))) {
this.selectItem(_local3, !_local6);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + itemNum), this.isSelected(this.topDisplayed + itemNum));
}
this.lastSelected = _local3;
}
} else {
this.clickFilter = true;
}
};
FListBoxClass.prototype.moveSelBy = function (itemNum) {
super.moveSelBy(itemNum);
this.releaseHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 846 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 849 MovieClip [FListBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 858 MovieClip Frame 1
stop();
Symbol 861 MovieClip Frame 2
stop();
Symbol 878 Button
on (release) {
this._visible = false;
}
Symbol 919 MovieClip Frame 1
stop();
Symbol 923 Button
on (release) {
_parent._parent.attachMovie("BRAND_DESC", "popup", 666);
_parent._parent.popup.gotoAndStop(this._currentframe);
}
Symbol 948 MovieClip Frame 1
stop();
Symbol 949 MovieClip Frame 1
function Update(i) {
PLY = _root.player;
CAR = _root.car[PLY.car];
name = _root.UPGRADEDESC[i];
manu = _root.PERFMANU[CAR.UPGRADE[i]].name;
BRAND.gotoAndStop(CAR.UPGRADE[i] + 1);
m = _root.PERFMANU[CAR.UPGRADE[i]];
p = _root.UPGRADELIST[i];
upHP = ((("+" + Math.round((m.hp * (p.upHP / 100)) * 100)) + "% (") + Math.round((m.hp * (p.upHP / 100)) * _root.ENG[CAR.engnum].HP)) + "HP)";
upTQ = ((("+" + Math.round((m.tq * (p.upTQ / 100)) * 100)) + "% (") + Math.round((m.tq * (p.upTQ / 100)) * _root.ENG[CAR.engnum].TQ)) + "TQ)";
upWT = ((("+" + Math.round((m.wt * (p.upWT / 100)) * 100)) + "% (") + Math.round((m.wt * (p.upWT / 100)) * _root.ENG[CAR.engnum].WT)) + "WT)";
upCL = ((("+" + Math.round((m.cl * (p.upCL / 100)) * 100)) + "% (") + Math.round((m.cl * (p.upCL / 100)) * _root.ENG[CAR.engnum].CL)) + "CL)";
PARTPIC.gotoAndStop(_root.UPGRADELIST[i].type);
}
Update(0);
stop();
Symbol 950 MovieClip [VIEWCAR] Frame 1
_root.BuildCar(playcar, this._name, "VIEWCAR");
VIEWCAR._xscale = 150;
VIEWCAR._yscale = 150;
stop();
Symbol 950 MovieClip [VIEWCAR] Frame 3
var i = 0;
while (i < _root.STATS.length) {
this[_root.STATS[i]] = Math.round(playcar[_root.STATS[i]]);
if (String(this[_root.STATS[i]]) == Number.NaN.toString()) {
this[_root.STATS[i]] = playcar[_root.STATS[i]];
}
i++;
}
_root.BuildCar(playcar, this._name, "VIEWCAR");
VIEWCAR._xscale = 60;
VIEWCAR._yscale = 60;
if (playcar.OIL == undefined) {
playcar.OIL = 0;
}
OILLVL.gotoAndStop(Math.ceil(playcar.OIL / 4) + 1);
NOS.BAR._xscale = playcar.NOS;
NRES = playcar.NRES;
stop();
Symbol 950 MovieClip [VIEWCAR] Frame 4
prevFrame();
Symbol 950 MovieClip [VIEWCAR] Frame 5
var i = 0;
while (i < _root.STATS.length) {
this[_root.STATS[i]] = Math.round(playcar[_root.STATS[i]]);
if (String(this[_root.STATS[i]]) == Number.NaN.toString()) {
this[_root.STATS[i]] = playcar[_root.STATS[i]];
}
i++;
}
var i = 0;
while (i < _root.ATTRIB.length) {
this[_root.ATTRIB[i]] = (_root.EXTBRAND[playcar[_root.ATTRIB[i]]] add " ") add _root.ATTRIB_FULL[i];
i++;
}
_wheel = _root.RIMS_FULL[playcar._wheel] add " Rims";
_root.BuildCar(playcar, this._name, "VIEWCAR");
VIEWCAR._xscale = 60;
VIEWCAR._yscale = 60;
stop();
Symbol 950 MovieClip [VIEWCAR] Frame 7
steering = _root.INTMODS.STEERING[playcar.UPGRADE[63]];
shifter = _root.INTMODS.KNOB[playcar.UPGRADE[64]];
petal = _root.INTMODS.PETAL[playcar.UPGRADE[65]];
interior = _root.INTMODS.SEAT[playcar._interior - 1];
gauge = _root.INTMODS.GAUGE[playcar.UPGRADE[66]];
_root.BuildCar(playcar, this._name, "VIEWCAR");
VIEWCAR._xscale = 60;
VIEWCAR._yscale = 60;
tv = "";
if (playcar.UPGRADE[60] > 0) {
tv = tv + "In-Car TV";
}
if (playcar.UPGRADE[61] > 0) {
tv = tv + ", DVD Player";
}
if (playcar.UPGRADE[62] > 0) {
tv = tv + ", Gaming Console";
}
stop();
Symbol 950 MovieClip [VIEWCAR] Frame 9
var i = 0;
while (i < _root.STATS.length) {
this[_root.STATS[i]] = Math.round(playcar[_root.STATS[i]]);
if (String(this[_root.STATS[i]]) == Number.NaN.toString()) {
this[_root.STATS[i]] = playcar[_root.STATS[i]];
}
i++;
}
var i = 40;
while (i <= 59) {
this["up" add i] = (_root.SNDMANU[playcar.UPGRADE[i]].name add " ") add _root.UPGRADEDESC[i];
i++;
}
stop();
Symbol 950 MovieClip [VIEWCAR] Frame 11
function onChange() {
PARTVIEW.Update(LIST.getSelectedItem().data);
PARTVIEW._visible = true;
}
var i = 0;
while (i < _root.STATS.length) {
this[_root.STATS[i]] = Math.round(playcar[_root.STATS[i]]);
if (String(this[_root.STATS[i]]) == Number.NaN.toString()) {
this[_root.STATS[i]] = playcar[_root.STATS[i]];
}
i++;
}
ENGINEVIEW.gotoAndStop(_root.ENG[playcar.engnum].TYP);
var i = 0;
while (i < 40) {
if (playcar.UPGRADE[i] != 0) {
ENGINEVIEW["up" add i].gotoAndStop(2);
LIST.addItem((_root.PERFMANU[playcar.UPGRADE[i]].name add " ") add _root.UPGRADEDESC[i], i);
} else {
ENGINEVIEW["up" add i].gotoAndStop(1);
}
i++;
}
LIST.setChangeHandler("onChange");
PARTVIEW._visible = false;
stop();
Instance of Symbol 849 MovieClip [FListBoxSymbol] "LIST" in Symbol 950 MovieClip [VIEWCAR] Frame 11
//component parameters
onClipEvent (initialize) {
selectMultiple = false;
changeHandler = "";
}
Symbol 955 Button
on (press) {
startDrag ("", false, left, top, right, bottom);
dragging = true;
_root.dragging = true;
}
on (release) {
stopDrag();
_parent._parent.plycar[_parent._name] = (this._y / -171) * 2;
dragging = false;
_root.dragging = false;
}
Instance of Symbol 956 MovieClip "knob" in Symbol 957 MovieClip Frame 1
onClipEvent (load) {
top = 0;
bottom = -171;
left = _x;
right = _x;
}
Symbol 960 Button
on (release) {
snd = new Sound(_root);
snd.attachSound("edit.wav");
snd.start();
this.removeMovieClip();
}
Symbol 971 MovieClip [TUNING] Frame 1
stop();
var i = 0;
while (i <= _root.TUNE.length) {
this[_root.TUNE[i]].knob._y = (plycar[_root.TUNE[i]] / 2) * -171;
i++;
}
Symbol 1012 Button
on (release) {
this.removeMovieClip();
}
Symbol 1037 MovieClip Frame 1
HPBAR._xscale = (hp / MAXHP) * 100;
TQBAR._xscale = (tq / MAXTQ) * 100;
WTBAR._xscale = (wt / MAXWT) * 100;
trace(MAXWT);
Symbol 1037 MovieClip Frame 2
stop();
Symbol 1038 Button
on (release) {
if (_root.player.cash >= COST) {
snd = new Sound(_root);
snd.attachSound("edit.wav");
snd.start();
_root.Buy(COST);
_root.BuyEngine(_root.car[_root.player.car], n);
_root.prompt("", "Engine Installed");
} else {
_root.prompt("", "Not Enough Cash!");
}
}
Symbol 1040 Button
on (release) {
this.removeMovieClip();
}
Symbol 1044 MovieClip [ENGINESHOP] Frame 1
function onChangeList(component) {
n = ENGINELIST.getSelectedItem().data;
var _local3 = 0;
while (_local3 < 5) {
this[_root.STATS[_local3]] = _root.ENG[n][_root.STATS[_local3]];
_local3++;
}
COST = _root.ENG[n].CW;
SPECS.hp = HP;
SPECS.tq = TQ;
SPECS.wt = ENGWT;
SPECS.MAXHP = _root["MAXHP" add _root.ENG[n].CLASS];
SPECS.MAXTQ = _root["MAXTQ" add _root.ENG[n].CLASS];
SPECS.MAXWT = _root["MAXWT" add _root.ENG[n].CLASS];
SPECS.gotoAndPlay(1);
}
ENGINELIST.removeAll();
var i = 0;
while (i < _root.ENG.length) {
if ((_root.ENG[i].CLASS == _root.car[_root.player.car].CLASS) && (_root.ENG[i].dontpost != true)) {
ENGINELIST.addItem(_root.ENG[i].ENGNAME, i);
}
i++;
}
ENGINELIST.setSelectedIndex(0);
n = ENGINELIST.getSelectedItem().data;
ENGINELIST.setChangeHandler("onChangeList");
stop();
Instance of Symbol 849 MovieClip [FListBoxSymbol] "ENGINELIST" in Symbol 1044 MovieClip [ENGINESHOP] Frame 1
//component parameters
onClipEvent (initialize) {
selectMultiple = false;
changeHandler = "";
}
Symbol 1064 MovieClip Frame 1
stop();
Symbol 1064 MovieClip Frame 4
gotoAndPlay ("red");
Symbol 1064 MovieClip Frame 14
gotoAndPlay ("red2");
Symbol 1083 MovieClip Frame 1
stop();
Symbol 1109 MovieClip Frame 1
stop();
Symbol 1119 MovieClip Frame 81
_parent.burnout = true;
_root.play();
Symbol 1122 Button
on (keyPress "<Up>") {
temp_gear = Player[0].rdata.g + 1;
}
on (keyPress "<Down>") {
temp_gear = Player[0].rdata.g - 1;
}
on (keyPress "n") {
StartNOS(Player[0]);
}
Symbol 1124 MovieClip Frame 1
engine = new Sound();
engine.attachSound("eng90");
engine.start(0, 1);
Symbol 1124 MovieClip Frame 2
engine.stop("eng90");
obj = _parent.Player[0].rdata;
engine.attachSound("eng90");
engine.start((obj.v / obj.TopSpeed[obj.g]) * 9, 99);
Symbol 1124 MovieClip Frame 4
gotoAndPlay ("start");
Symbol 1124 MovieClip Frame 5
engine.stop("eng90");
trace("stop");
stop();
Symbol 1124 MovieClip Frame 6
stop();
Symbol 1130 Button
on (release) {
if (CRWON.getValue()) {
_root.Buy(-rew.cr);
}
if (CARWO.getValue() && ((rew.ca != undefined) && (rew.ca != false))) {
_root.AddCar(rew.ca);
}
if (rew.other != undefined) {
e = rew.other.slice(0, rew.other.indexOf(":"));
_root.player[e] = _root.player[e] + Number(rew.other.slice(rew.other.indexOf(":") + 1));
if (rew.other == "level:1") {
_root.player.pp = _root.player.pp + 3;
}
}
_root.gotoAndPlay(rew.tar);
this.removeMovieClip();
}
Symbol 1141 Button
on (release) {
submit._visible = false;
DATA = new LoadVars();
DATA.onLoad = function () {
_root.prompt("Your time has been sent", "Your time has been sent");
};
DATA.load((((((("http://dragraceronline.net/PHP/submittime.php?n=" + _root.player.name) + "&t=") + ftime) + "&c=") + Player[0].stats.CLASS) + "&v=") + Player[0].stats.NAME);
}
Symbol 1146 Button
on (release) {
trace(los.tar);
_root.gotoAndPlay(los.tar);
this.removeMovieClip();
}
Symbol 1217 MovieClip [RACE] Frame 1
function timeFormat(ms) {
if ((ms % 60) < 10) {
return((Math.floor(ms / 60) add ":0") add (ms % 60));
}
return((Math.floor(ms / 60) add ":") add (ms % 60));
}
function StartNOS(_racer, n) {
_racer.rdata.n = 20;
}
function NOS(_racer) {
if ((_racer.stats.NOS <= 5) && (_racer.stats.NRES > 0)) {
_racer.stats.NOS = 100;
_racer.stats.NRES--;
}
if ((_racer.stats.NOS - 2) > 0) {
_racer.stats.NOS = _racer.stats.NOS - 2;
getAccel(_racer);
if ((_racer.rdata.g >= 4) && ((_racer.rdata.v / _racer.rdata.TopSpeed[_racer.rdata.g]) > 0.4)) {
if (_racer.stats.UPGRADE[27]) {
_racer.rdata.a = _racer.rdata.a * 4;
} else {
_racer.rdata.a = _racer.rdata.a * 2;
}
} else {
_racer.rdata.a = _racer.rdata.a * 0.9;
}
}
}
function getAcceler(g, _stats) {
if ((_stats["GEAR" add g] == 2) || (_stats["GEAR" add g] == 0)) {
_stats["GEAR" add g] = 1;
}
f = ((((_stats.TQ + tqbonus) - _stats.FR) - frbonus) / Math.pow(1.5, g * 2)) * (2 - _stats["GEAR" add g]);
return((f * 0.9) / (_stats.WT * wtbonus));
}
function getAccel(racer) {
racer.rdata.a = racer.rdata.Accel[racer.rdata.g];
if ((racer.rdata.v / racer.rdata.TopSpeed[racer.rdata.g]) < 0.7) {
racer.rdata.a = racer.rdata.a / (racer.stats.CAMADJUST + 1);
} else if ((racer.rdata.v / racer.rdata.TopSpeed[racer.rdata.g]) > 0.9) {
racer.rdata.a = racer.rdata.a / 2;
} else {
racer.rdata.a = racer.rdata.a * racer.stats.CAMADJUST;
}
racer.rdata.a = racer.rdata.a * 2;
}
function race(racer) {
if (burnout && (racer.typ == 1)) {
if (Key.isDown(32)) {
P1.CAR.lwheel.gotoAndStop(_root.CIVIC.MAX_WHEEL + 2);
ReColor(P1, Player[0]);
ReColor(P2, Player[1]);
burnout = true;
getAccel(racer);
racer.rdata.v = racer.rdata.v + (((racer.rdata.a * 100) / 60) * 1.7);
if (racer.rdata.v >= racer.rdata.TopSpeed[racer.rdata.g]) {
racer.rdata.v = racer.rdata.TopSpeed[racer.rdata.g] * 0.9;
}
bn--;
if (bn <= 0) {
ReColor(P1, Player[0]);
burnout = false;
}
racer.rdata.d = racer.rdata.d + (racer.rdata.v * 0.03);
} else {
P1.CAR.lwheel.gotoAndStop(Player[0].stats._wheel);
ReColor(P1, Player[0]);
ReColor(P2, Player[1]);
burnout = false;
race(racer);
}
} else if (racer.typ != 5) {
if ((Key.isDown(32) && (racer.typ == 1)) || (racer.typ == 2)) {
if (racer.rdata.n <= 0) {
getAccel(racer);
} else {
NOS(racer);
racer.rdata.n--;
}
} else {
racer.rdata.a = -0.006 + (racer.stats.CL / 1000);
}
if ((racer.typ == 2) && (racer.rdata.n <= 0)) {
if (Player[1].rdata.d > Player[0].rdata.d) {
Player[1].rdata.a = Player[1].rdata.a * 0.5;
} else {
Player[1].rdata.a = Player[1].rdata.a * 1.5;
}
}
racer.rdata.v = racer.rdata.v + (((racer.rdata.a * 1000) / 60) * 1.7);
if (racer.rdata.v < 0) {
racer.rdata.v = 0;
}
if (racer.rdata.v >= racer.rdata.TopSpeed[racer.rdata.g]) {
racer.rdata.v = racer.rdata.TopSpeed[racer.rdata.g] * 0.9;
}
if ((racer.typ == 2) && ((racer.rdata.v / racer.rdata.TopSpeed[racer.rdata.g]) >= (0.8 + df))) {
GearUp(racer);
}
if (((((racer.typ == 2) && (racer.rdata.g > 2)) && (racer.rdata.n <= 0)) && (typ1 != "a")) && (df > 0.03)) {
StartNOS(racer);
}
racer.rdata.tops = Math.max(racer.rdata.tops, racer.rdata.v);
racer.rdata.d = racer.rdata.d + (racer.rdata.v * 0.03);
}
}
function GearUp(racer) {
if (((!_root.Options.clutch) || (Key.isDown(17))) || (racer.typ != 1)) {
if (((!_root.Options.nogas) || (!Key.isDown(32))) || (racer.typ != 1)) {
if ((racer.rdata.g++) >= 6) {
racer.rdata.g = 6;
}
}
}
}
function GearDown(racer) {
if (((!_root.Options.clutch) || (Key.isDown(17))) || (racer.typ != 1)) {
if (((!_root.Options.nogas) || (!Key.isDown(32))) || (racer.typ != 1)) {
if ((racer.rdata.g--) <= 1) {
racer.rdata.g = 1;
}
}
}
}
function initrace(racer, stats) {
if (racer.typ != 5) {
racer.stats = stats;
racer.rdata = new Object();
racer.rdata.tops = 0;
frbonus = Math.round(racer.stats.AIRINTAKE * 2.5);
hpbonus = Math.round(racer.stats.BOOST * 10) - 10;
tqbonus = Math.round(racer.stats.BOOST * 10) - 25;
if (stats.WT > 2000) {
wtbonus = 1.15;
} else if (stats.WT > 1700) {
wtbonus = 1.1;
} else {
wtbonus = 1;
}
racer.rdata.v = 0;
racer.rdata.a = 0;
racer.rdata.d = 0;
racer.rdata.g = 1;
racer.rdata.n = 0;
racer.rdata.Accel = new Array();
var _local3 = 1;
while (_local3 <= 6) {
racer.rdata.Accel[_local3] = getAcceler(_local3, racer.stats);
_local3++;
}
racer.rdata.TopSpeed = new Array();
racer.rdata.TopSpeed[0] = 0;
racer.rdata.TopSpeed[1] = 15 * stats.GEAR1;
racer.rdata.TopSpeed[2] = (Math.round(25 + (((Math.sqrt(stats.HP + hpbonus) * 6) / 25) * 4)) * stats.GEAR2) * 0.9;
racer.rdata.TopSpeed[3] = (Math.round(25 + (((Math.sqrt(stats.HP + hpbonus) * 6) / 25) * 9)) * stats.GEAR3) * 0.8;
racer.rdata.TopSpeed[4] = (Math.round(25 + (((Math.sqrt(stats.HP + hpbonus) * 6) / 25) * 16)) * stats.GEAR4) * 0.9;
racer.rdata.TopSpeed[5] = (Math.round(25 + (((Math.sqrt(stats.HP + hpbonus) * 6) / 25) * 25)) * stats.GEAR5) * 0.9;
racer.rdata.TopSpeed[6] = (Math.round(25 + (((Math.sqrt(stats.HP + hpbonus) * 6) / 25) * 36)) * stats.GEAR6) * 0.8;
racer.rdata.temp = Math.round(((2 - racer.stats.AIRINTAKE) * 10) + (racer.stats.BOOST * 40));
racer.rdata.ctemp = racer.rdata.temp;
if (racer.typ == 2) {
if (racer.stats.HP > 2000) {
df = 0.1;
} else if (racer.stats.HP > 1000) {
df = 0.07;
} else if (racer.stats.HP > 600) {
df = 0.06;
} else if (racer.stats.HP > 300) {
df = 0.04;
} else {
df = 0;
}
}
} else {
_root.RaceDataUpdate = true;
_root.RaceTempDistance = 0;
Player[1].rdata = new Object();
Player[1].rdata.d = _root.RaceTempDistance;
}
}
frames = 0;
startTime = getTimer();
mseconds = 0;
seconds = 0;
if (obj1 == undefined) {
_root.prompt("", "Race Error!\nYour Car Was Absent!");
this.removeMovieClip();
}
numplayers = 2;
raceresult = undefined;
burnout = true;
blur = false;
temp_gear = 1;
gear = 1;
initx = joystick._x;
inity = joystick._y;
tension = 0.5;
decay = 0.5;
if (typ1 == "a") {
gotoAndStop ("analyze");
}
Instance of Symbol 1048 MovieClip "BG2" in Symbol 1217 MovieClip [RACE] Frame 1
onClipEvent (load) {
BG1.loadScrollContent(appdir add "IMGS/race.jpg");
BG2.loadScrollContent(appdir add "IMGS/race.jpg");
}
Symbol 1217 MovieClip [RACE] Frame 2
function ReColor(CARMCPL, PLYDAT) {
COLOUR = new Color(CARMCPL.CAR.lwheel.COL);
COLOUR.setTransform(PLYDAT.stats.rimcols);
COLOUR = new Color(CARMCPL.CAR.rwheel.COL);
COLOUR.setTransform(PLYDAT.stats.rimcols);
}
function UpdateHUD() {
HUD.v = Math.round(Player[0].rdata.v) add "mph";
HUD.ts = Player[0].rdata.TopSpeed[Player[0].rdata.g];
HUD.a = Player[0].rdata.a;
HUD.d = Player[0].rdata.d;
joystick.knob.gear = Player[0].rdata.g;
HUD.t = timeFormat((seconds * 60) + mseconds);
HUD.FPS = Math.round(Player[0].rdata.ctemp);
HUD.nospin._rotation = ((Player[0].stats.NOS / 100) * 270) - 135;
HUD.temppin._rotation = ((Player[0].rdata.ctemp / 100) * 270) - 125;
HUD.NRES = Player[0].stats.NRES;
BG.BG0._x = BG.BG0._x - (Player[0].rdata.v * 2);
BG.BG1._x = BG.BG1._x - (Player[0].rdata.v * 2);
BG.BG2._x = BG.BG2._x - (Player[0].rdata.v * 2);
if (BG.BG2._x <= (BG.BG1._width / 2)) {
BG.BG1._x = BG.BG1._width / 2;
BG.BG2._x = BG.BG1._width * 1.5;
}
BG2._x = BG2._x - (Player[0].rdata.v * 1.5);
if (BG2._x <= -400) {
BG2._x = (BG2._width * 0.5) - 400;
}
HUD.DM.M1._x = (Player[0].rdata.d / maxdistance) * 772;
HUD.DM.M2._x = (Player[1].rdata.d / maxdistance) * 772;
if (burnout && (Player[0].rdata.v > 0)) {
P1.CAR.lwheel._rotation = 0;
P1.CAR.lwheel.gotoAndStop(_root.CIVIC.MAX_WHEEL + 2);
P1.CAR.rwheel.gotoAndStop(Player[0].stats._wheel);
ReColor(P1, Player[0]);
} else if ((Player[0].rdata.v * 4) > 180) {
P1.CAR.lwheel.gotoAndStop(_root.CIVIC.MAX_WHEEL + 1);
P1.CAR.rwheel.gotoAndStop(_root.CIVIC.MAX_WHEEL + 1);
ReColor(P1, Player[0]);
} else {
P1.CAR.lwheel.gotoAndStop(Player[0].stats._wheel);
P1.CAR.rwheel.gotoAndStop(Player[0].stats._wheel);
ReColor(P1, Player[0]);
}
if (!burnout) {
P1.CAR.lwheel._rotation = P1.CAR.lwheel._rotation + (Player[0].rdata.v * 4);
P1.CAR.rwheel._rotation = P1.CAR.rwheel._rotation + (Player[0].rdata.v * 4);
}
P2.CAR.lwheel._rotation = P2.CAR.lwheel._rotation + (Player[1].rdata.v * 4);
P2.CAR.rwheel._rotation = P2.CAR.rwheel._rotation + (Player[1].rdata.v * 4);
P2._x = ((Player[1].rdata.d - Player[0].rdata.d) * 50) + P1._x;
if (P1._x < 0) {
P1._x = P1._x + (Player[0].rdata.v * 0.5);
} else if (P1._x > 0) {
P1._x = 0;
}
tach = Player[0].rdata.v / Player[0].rdata.TopSpeed[Player[0].rdata.g];
if (Player[0].rdata.v < 120) {
setAngle(P1, Math.round((1 + (tach * -5)) * 10) / 15);
} else if (Math.random() < 0.5) {
setAngle(P1, (Math.round((1 + (tach * -5)) * 10) / 15) + 0.2);
} else {
setAngle(P1, (Math.round((1 + (tach * -5)) * 10) / 15) - 0.2);
}
HUD.rpmpin._rotation = ((Player[0].rdata.v / Player[0].rdata.TopSpeed[Player[0].rdata.g]) * REDLINE_ANG) - 135;
HUD.velopin._rotation = Player[0].rdata.v - 135;
if ((HUD.REDLINE._currentframe == 1) && ((Player[0].rdata.v / Player[0].rdata.TopSpeed[Player[0].rdata.g]) > 0.9)) {
HUD.REDLINE.gotoAndPlay("red");
Player[0].rdata.ctemp = Player[0].rdata.ctemp + 3;
} else if ((HUD.REDLINE._currentframe == 1) && ((Player[0].rdata.v / Player[0].rdata.TopSpeed[Player[0].rdata.g]) > 0.8)) {
HUD.REDLINE.gotoAndPlay("red2");
Player[0].rdata.ctemp = Player[0].rdata.ctemp + 0.5;
} else if ((HUD.REDLINE._currentframe == 1) && ((Player[0].rdata.v / Player[0].rdata.TopSpeed[Player[0].rdata.g]) > 0.7)) {
Player[0].rdata.ctemp = Player[0].rdata.ctemp + 0.1;
} else {
HUD.REDLINE.gotoAndStop(1);
Player[0].rdata.ctemp = Player[0].rdata.ctemp - 0.1;
Player[0].rdata.ctemp = Math.max(Player[0].rdata.ctemp, Player[0].rdata.temp);
}
P1.CAR.exhaust.NOS._visible = (Player[0].rdata.n > 0) && (Player[0].stats.NOS > 1);
P2.CAR.exhaust.NOS._visible = (Player[1].rdata.n > 0) && (Player[1].stats.NOS > 1);
if ((Player[0].rdata.n > 0) && (Player[0].stats.NOS > 1)) {
nosSound = new Sound(this);
nosSound.attachSound("NOS.wav");
nosSound.start();
this._x = this._x + ((Math.random() - 0.5) * 5);
this._y = this._y + ((Math.random() - 0.5) * 5);
} else {
nosSound.stop();
this._x = 400;
this._y = 0;
}
}
function setAngle(PMC, a) {
if (burnout && (Player[0].stats.TQ > 800)) {
a = (a - 2) * 5;
max = 6;
} else {
max = 2;
}
if (PMC.CAR._rotation > (Player[0].stats.frameangle + a)) {
PMC.CAR._rotation = PMC.CAR._rotation - Math.min(max, PMC.CAR._rotation - (Player[0].stats.frameangle + a));
} else if (PMC.CAR._rotation < (Player[0].stats.frameangle + a)) {
PMC.CAR._rotation = PMC.CAR._rotation + Math.min(max, (Player[0].stats.frameangle + a) - PMC.CAR._rotation);
}
with (PMC) {
LCALC = Math.tan((CAR._rotation * Math.PI) / 180) * ldiff;
RCALC = Math.tan((CAR._rotation * Math.PI) / 180) * rdiff;
if (!burnout) {
CAR.rcaliper._y = RWY + (RCALC * 1.5);
CAR.rwheel._y = RWY + (RCALC * 1.5);
CAR.lwheel._y = LWY + LCALC;
CAR.lcaliper._y = LWY + LCALC;
CAR._y = CY + (LCALC / 2);
} else {
CAR.rcaliper._y = RWY;
CAR.rwheel._y = RWY;
CAR.lwheel._y = LWY;
CAR.lcaliper._y = LWY;
CAR._y = CY + LCALC;
}
}
}
_parent.gotoAndStop("racestop");
Player = new Array();
if (obj1 != undefined) {
Player[0] = new Object();
Player[0].typ = typ1;
initrace(Player[0], obj1);
}
if (obj2 != undefined) {
Player[1] = new Object();
Player[1].typ = typ2;
initrace(Player[1], obj2);
} else {
P2._visible = false;
}
bn = 5 + Math.floor(Player[0].TQ / 2);
COL = new Color(HUD.DM.M1);
COL.setTransform(Player[0].stats.framecols);
COL = new Color(HUD.DM.M2);
COL.setTransform(Player[1].stats.framecols);
HUD.DM.M1._x = 0;
HUD.DM.M2._x = 0;
_root.BuildCar(obj1, this._name, "P1");
_root.BuildCar(obj2, this._name, "P2");
P1._yscale = 60;
P2._yscale = 55;
P1._xscale = 60;
P2._xscale = 55;
HUD.nospin.gotoAndStop(Player[0].stats.UPGRADE[66] + 1);
HUD.temppin.gotoAndStop(Player[0].stats.UPGRADE[66] + 1);
HUD.rpmpin.gotoAndStop(Player[0].stats.UPGRADE[66] + 1);
HUD.velopin.gotoAndStop(Player[0].stats.UPGRADE[66] + 1);
HUD.nospin._rotation = ((Player[0].stats.NOS / 100) * 270) - 125;
HUD.temppin._rotation = ((HUD.FPS / 30) * 270) - 125;
if (Player[0].stats.HP < 200) {
HUD.REDZONE.gotoAndStop(1);
REDLINE_ANG = 115;
} else if (Player[0].stats.HP < 300) {
HUD.REDZONE.gotoAndStop(2);
REDLINE_ANG = 150;
} else if (Player[0].stats.HP < 400) {
HUD.REDZONE.gotoAndStop(3);
REDLINE_ANG = 210;
} else {
HUD.REDZONE.gotoAndStop(4);
REDLINE_ANG = 260;
}
BG1.loadScrollContent(appdir add "IMGS/dash.jpg");
temp_gear = 1;
gear = 1;
initx = joystick._x;
inity = joystick._y;
tension = 0.5;
decay = 0.5;
joystick.onPress = function () {
_root.dragging = true;
};
joystick.onRelease = function () {
_root.dragging = false;
};
joystick.onReleaseOutside = function () {
_root.dragging = false;
};
with (joystick) {
shaft._xscale = Math.sqrt(((knob._x - shaft._x) * (knob._x - shaft._x)) + ((knob._y - shaft._y) * (knob._y - shaft._y)));
shaft._rotation = (Math.atan2(knob._y - shaft._y, knob._x - shaft._x) * 180) / Math.PI;
if (shaft._xscale > 90) {
shaft._xscale = 90;
knob._x = shaft._x + (Math.cos((shaft._rotation * Math.PI) / 180) * shaft._xscale);
knob._y = shaft._y + (Math.sin((shaft._rotation * Math.PI) / 180) * shaft._xscale);
targetx = knob._x;
targety = knob._y;
}
}
joystick.knob.gotoAndStop(Player[0].stats.UPGRADE[64] + 1);
LWY = P1.CAR.lwheel._y;
RWY = P1.CAR.rwheel._y;
CY = P1.CAR._y;
ldiff = P1.CAR.frame._x - P1.CAR.lwheel._x;
rdiff = P1.CAR.frame._x - P1.CAR.rwheel._x;
Symbol 1217 MovieClip [RACE] Frame 80
P1.CAR.lwheel.gotoAndStop(_root.CIVIC.MAX_WHEEL + 2);
ReColor(P1, Player[0]);
if (typ2 != 5) {
P2.CAR.lwheel.gotoAndStop(_root.CIVIC.MAX_WHEEL + 2);
ReColor(P2, Player[1]);
}
Symbol 1217 MovieClip [RACE] Frame 85
P2.CAR.lwheel.gotoAndStop(Player[1].stats._wheel);
ReColor(P2, Player[1]);
rctTime = 0;
rctCheck = false;
Symbol 1217 MovieClip [RACE] Frame 86
mseconds = mseconds + 4;
if (mseconds >= 60) {
mseconds = 0;
seconds++;
}
var i = 0;
while (i < numplayers) {
race(Player[i]);
i++;
}
if (!rctCheck) {
if (!Key.isDown(32)) {
rctTime = rctTime + 4;
} else if (Key.isDown(32)) {
rctCheck = true;
}
}
UpdateHUD();
if (((Player[0].rdata.d > maxdistance) || (Player[0].rdata.ctemp >= 100)) || (raceresult == false)) {
sound.gotoAndPlay("stop");
sound.engine.stop("eng90");
Player[0].stats.OIL = Player[0].stats.OIL + 3;
if (Player[0].stats.OIL >= 100) {
_root.prompt("", "Your Oil Needs to be Changed!");
}
if (Player[0].rdata.ctemp >= 100) {
_root.prompt("", "Your Engine Broke Down!");
raceresult = false;
}
if (Player[0].stats.HP < 40) {
Player[0].stats.HP = 40;
}
if (Player[0].stats.TQ < 40) {
Player[0].stats.TQ = 40;
}
if (_root.RaceDataUpdate) {
ftime = (seconds * 60) + mseconds;
_root.es.sendMove([_root.OnlineChallenger.name.value], {action:ftime});
gotoAndPlay ("ONLINE");
} else if (raceresult != false) {
raceresult = true;
gotoAndPlay ("WIN");
} else {
gotoAndPlay ("LOSE");
}
} else {
raceresult = undefined;
var i = 1;
while (i < numplayers) {
if ((Player[i].rdata.d > maxdistance) && (typ2 != 5)) {
raceresult = false;
}
i++;
}
}
with (joystick) {
if ((!_root.Options.nogas) || (!Key.isDown(32))) {
if (_root.dragging && (_root.Options.gearsh)) {
targetx = _xmouse;
targety = _ymouse;
} else {
targetx = joystick["G" add temp_gear]._x + (joystick["G" add temp_gear]._width / 2);
targety = joystick["G" add temp_gear]._y + (joystick["G" add temp_gear]._width / 2);
}
}
}
with (joystick) {
boolx = new Number(0);
booly = new Number(0);
var p = 0;
while (p <= 5) {
angle = Math.atan2(targety - knob._y, targetx - knob._x);
oldx = knob._x;
oldy = knob._y;
knob._x = knob._x + (Math.cos(angle) * 7);
boolx = 0;
var i = 1;
while (i <= 4) {
if (!_parent["GEARCHECK" add i].hitTest(knob.col)) {
boolx++;
}
i++;
}
knob._x = oldx;
knob._y = knob._y + (Math.sin(angle) * 7);
booly = 0;
var i = 1;
while (i <= 4) {
if (!_parent["GEARCHECK" add i].hitTest(knob.col)) {
booly++;
}
i++;
}
if (boolx != 4) {
knob._x = knob._x + (Math.cos(angle) * 7);
}
if (booly == 4) {
knob._y = oldy;
}
p++;
}
}
with (joystick) {
shaft._xscale = Math.sqrt(((knob._x - shaft._x) * (knob._x - shaft._x)) + ((knob._y - shaft._y) * (knob._y - shaft._y)));
shaft._rotation = (Math.atan2(knob._y - shaft._y, knob._x - shaft._x) * 180) / Math.PI;
if (shaft._xscale > 90) {
shaft._xscale = 90;
knob._x = shaft._x + (Math.cos((shaft._rotation * Math.PI) / 180) * shaft._xscale);
knob._y = shaft._y + (Math.sin((shaft._rotation * Math.PI) / 180) * shaft._xscale);
targetx = knob._x;
targety = knob._y;
}
}
if ((Math.abs(joystick.knob._x - targetx) < 15) && (Math.abs(joystick.knob._y - targety) < 15)) {
var i = 0;
while (i <= 6) {
if (joystick.knob.col.hitTest(joystick["G" add i])) {
temp_gear = i;
Player[0].rdata.g = i;
}
i++;
}
}
Symbol 1217 MovieClip [RACE] Frame 87
gotoAndPlay ("RaceLoop");
Symbol 1217 MovieClip [RACE] Frame 88
stop();
if (_root.player.typ != "Arcade") {
_root.SaveGame(_root.player, _root.car);
} else {
submit._visible = false;
}
ftime = (seconds * 60) + mseconds;
rctTime = timeFormat(rctTime);
final = ((ftime add "ms (") add timeFormat(ftime)) add ")";
topspeed = Math.round(Player[0].rdata.tops) add "mph";
wonby = Math.round(Player[0].rdata.d - Player[1].rdata.d) add "m";
if (wonby < 0) {
gotoAndStop ("LOSE");
}
if (Player[1] != undefined) {
_root.player.wins++;
}
maxd = maxdistance add "m Race";
tmpNOS = obj1.NOS;
tmpNRES = obj1.NRES;
perfect = new Object();
perfect.typ = 2;
initrace(perfect, obj1);
while (perfect.rdata.d < maxdistance) {
race(perfect);
ptime = ptime + 4;
}
obj1.NOS = tmpNOS;
obj1.NRES = tmpNRES;
perfecttime = ((ptime add "ms (") add timeFormat(ptime)) add ")";
effic = Math.round((ptime / ftime) * 100) add "%";
credits = rew.cr;
carwon = rew.ca.FULLNAME;
Instance of Symbol 615 MovieClip [FCheckBoxSymbol] "CRWON" in Symbol 1217 MovieClip [RACE] Frame 88
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = true;
labelPlacement = "right";
changeHandler = "";
}
Instance of Symbol 615 MovieClip [FCheckBoxSymbol] "CARWO" in Symbol 1217 MovieClip [RACE] Frame 88
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = true;
labelPlacement = "right";
changeHandler = "";
}
Symbol 1217 MovieClip [RACE] Frame 89
stop();
rctTime = timeFormat(rctTime);
if (_root.player.typ != "Arcade") {
_root.SaveGame(_root.player, _root.car);
} else {
submit._visible = false;
}
ftime = (seconds * 60) + mseconds;
final = ((ftime add "ms (") add timeFormat(ftime)) add ")";
topspeed = Math.round(Player[0].rdata.tops) add "mph";
wonby = Math.round(Player[1].rdata.d - Player[0].rdata.d) add "m";
maxd = maxdistance add "m Race";
_root.player.loss++;
perfecttime = "Unavailable";
effic = "Unavailable";
credits = los.cr;
if (los.ca) {
carwon = "This Car!";
} else {
carwon = "";
}
if (los.cr != undefined) {
_root.Buy(rew.cr);
}
if (los.ca) {
player.cash = player.cash - _root.car[_root.player.car].CW;
_root.SellCar(_root.player.car);
}
Symbol 1217 MovieClip [RACE] Frame 90
play();
rctTime = timeFormat(rctTime);
ftime = (seconds * 60) + mseconds;
p1final = ((ftime add "ms (") add timeFormat(ftime)) add ")";
p1name = _root.Account.alias;
p2name = _root.OnlineChallenger.name.value;
if (_root.RaceTempTime != "") {
_root.RaceDataUpdate = false;
p2final = ((_root.RaceTempTime add "ms (") add timeFormat(_root.RaceTempTime)) add ")";
result._visible = true;
if (_root.RaceTempTime > ftime) {
result.gotoAndStop(1);
} else if (_root.RaceTempTime < ftime) {
result.gotoAndStop(2);
} else if (_root.RaceTempTime == ftime) {
result.gotoAndStop(3);
}
} else {
p2final = "Waiting...";
result._visible = false;
}
Symbol 1217 MovieClip [RACE] Frame 91
prevFrame();
Symbol 1217 MovieClip [RACE] Frame 92
gtime = new Array();
var i = 1;
while (i <= 6) {
gtime[i] = 0;
i++;
}
perfect = new Object();
perfect.typ = 2;
tmpNOS = obj1.NOS;
tmpNRES = obj1.NRES;
initrace(perfect, obj1);
ptime = 0;
while (perfect.rdata.d < 400) {
race(perfect);
ptime = ptime + 4;
gtime[perfect.rdata.g] = gtime[perfect.rdata.g] + 4;
}
t400 = timeFormat(ptime);
ts400 = Math.round(perfect.rdata.tops) add " mph";
perfect = new Object();
perfect.typ = 2;
initrace(perfect, obj1);
ptime = 0;
while (perfect.rdata.d < 1000) {
race(perfect);
ptime = ptime + 4;
}
t1000 = timeFormat(ptime);
ts1000 = Math.round(perfect.rdata.tops) add " mph";
tspeed = Math.round(perfect.rdata.TopSpeed[6]) add " mph";
accel = 0;
var i = 1;
while (i <= 6) {
this[("g" + i) + "ts"] = Math.round(perfect.rdata.TopSpeed[i]);
this[("g" + i) + "a"] = Math.round(perfect.rdata.Accel[i] * 1000);
this[("g" + i) + "t"] = timeFormat(gtime[i]);
accel = accel + perfect.rdata.Accel[i];
i++;
}
accel = accel / 6;
accel = accel * 1000;
accel = Math.round(accel);
obj1.NOS = tmpNOS;
obj1.NRES = tmpNRES;
Symbol 1217 MovieClip [RACE] Frame 93
stop();
Symbol 1227 Button
on (release) {
if ((_root.player.cash - COST) >= 0) {
_root.Buy(COST);
n = _root.car.length;
_root.car[n] = new Object();
_root.BuyCar(_root.car[n], carobj);
_root.applyColor(_root.car[n], _root.COLARRAY[this["I" add selected]]);
_root.car[n].FULLNAME = NICKNAME;
_root.player.car = n;
_root.prompt("Car Purchased", "You bought a " add carobj.FULLNAME);
} else {
_root.prompt("Ooops!", "Not Enough Cash!");
}
this.removeMovieClip();
}
Symbol 1234 Button
on (release) {
selected = "grey";
Update();
}
Symbol 1235 Button
on (release) {
selected = "black";
Update();
}
Symbol 1236 Button
on (release) {
selected = "blue";
Update();
}
Symbol 1237 Button
on (release) {
selected = "red";
Update();
}
Symbol 1238 Button
on (release) {
selected = "yellow";
Update();
}
Symbol 1255 MovieClip [CARVIEW] Frame 1
function Update() {
var _local3 = 0;
while (_local3 < BUTTCOLS.length) {
this[BUTTCOLS[_local3]]._alpha = 50;
_local3++;
}
this[selected]._alpha = 100;
_root.applyColor(plycar, _root.COLARRAY[this["I" add selected]]);
_root.BuildCar(plycar, this._name, "VIEWCAR");
VIEWCAR._xscale = 60;
VIEWCAR._yscale = 60;
}
var i = 0;
while (i < _root.STATS.length) {
this[_root.STATS[i]] = plycar[_root.STATS[i]];
i++;
}
if (_root.player.typ == "Arcade") {
COST = 0;
} else {
COST = carobj.CW + _root.ENG[carobj.engnum].CW;
}
selected = "grey";
BUTTCOLS = new Array();
BUTTCOLS.push("grey");
Igrey = 0;
Iblack = 1;
Ired = 5;
Iblue = 6;
Iyellow = 14;
BUTTCOLS.push("black");
BUTTCOLS.push("blue");
BUTTCOLS.push("red");
BUTTCOLS.push("yellow");
MAXKITS = _root[carobj.NAME].MAX_BKIT;
MAXLIGHTS = _root[carobj.NAME].MAX_LIGHT;
MAXHOODS = _root[carobj.NAME].MAX_HOOD;
NICKNAME = carobj.FULLNAME;
_root.BuildCar(plycar, this._name, "VIEWCAR");
VIEWCAR._xscale = 60;
VIEWCAR._yscale = 60;
trace(carobj.CLASS);
CLASSES.gotoAndStop(carobj.CLASS);
Update();
Symbol 1443 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 53
function FScrollPaneClass() {
function boolToString(str) {
if (str == "false") {
return(false);
}
if (str == "true") {
return(true);
}
return(str);
}
this.init();
this.width = this._width;
this.height = this._height;
this._xscale = (this._yscale = 100);
this.contentWidth = (this.contentHeight = 0);
if (this.hScroll == undefined) {
this.hScroll = (this.vScroll = "auto");
this.dragContent = false;
}
this.offset = new Object();
this.vScroll = boolToString(this.vScroll);
this.hScroll = boolToString(this.hScroll);
this.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:this.styleTable});
this.hScrollBar_mc.setHorizontal(true);
this.hScrollBar_mc.setSmallScroll(5);
this.hScrollBar_mc.setChangeHandler("onScroll", this);
this.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:this.styleTable});
this.vScrollBar_mc.setSmallScroll(5);
this.vScrollBar_mc.setChangeHandler("onScroll", this);
this.setSize(this.width, this.height);
if (this.scrollContent != "") {
this.setScrollContent(this.scrollContent);
}
this.setDragContent(this.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var _local3 = ((this.hScrollBar_mc == undefined) ? 0 : (this.hScrollBar_mc.getScrollPosition()));
var _local2 = ((this.vScrollBar_mc == undefined) ? 0 : (this.vScrollBar_mc.getScrollPosition()));
return({x:_local3, y:_local2});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
this.offset.x = 0;
this.offset.y = 0;
if (this.content_mc != undefined) {
if (target != this.content_mc) {
this.content_mc._visible = false;
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
}
}
if (typeof(target) == "string") {
this.attachMovie(target, "tmp_mc", 3);
this.content_mc = this.tmp_mc;
} else if (target == undefined) {
this.content_mc.unloadMovie();
} else {
this.content_mc = target;
}
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
var _local3 = this.content_mc.getBounds(this);
this.offset.x = -_local3.xMin;
this.offset.y = -_local3.yMin;
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
this.contentWidth = this.content_mc._width;
this.contentHeight = this.content_mc._height;
this.content_mc.setMask(this.mask_mc);
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
if (((arguments.length < 2) || (isNaN(w))) || (isNaN(h))) {
return(undefined);
}
super.setSize(w, h);
this.width = Math.max(w, 60);
this.height = Math.max(h, 60);
this.boundingBox_mc._xscale = 100;
this.boundingBox_mc._yscale = 100;
this.boundingBox_mc._width = this.width;
this.boundingBox_mc._height = this.height;
this.setHandV();
this.initScrollBars();
if (this.mask_mc == undefined) {
this.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
this.mask_mc._xscale = 100;
this.mask_mc._yscale = 100;
this.mask_mc._width = this.hWidth;
this.mask_mc._height = this.vHeight;
this.mask_mc._alpha = 0;
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
x = Math.max(this.hScrollBar_mc.minPos, x);
x = Math.min(this.hScrollBar_mc.maxPos, x);
y = Math.max(this.vScrollBar_mc.minPos, y);
y = Math.min(this.vScrollBar_mc.maxPos, y);
this.hScrollBar_mc.setScrollPosition(x);
this.vScrollBar_mc.setScrollPosition(y);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
this.content_mc._visible = 0;
this.loadContent.duplicateMovieClip("loadTemp", 3);
this.dupeFlag = true;
this.contentLoaded = function () {
this.loadReady = false;
this.content_mc = this.loadTemp;
this.refreshPane();
this.executeCallBack();
};
this.setChangeHandler(handler, location);
this.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
this.hScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
this.vScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
if (dragFlag) {
this.boundingBox_mc.useHandCursor = true;
this.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
this.boundingBox_mc.tabEnabled = false;
this.boundingBox_mc.onRelease = (this.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete this.boundingBox_mc.onPress;
this.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
if ((((this.contentHeight - this.height) > 2) && (this.vScroll != false)) || (this.vScroll == true)) {
this.hWidth = this.width - this.vScrollBar_mc._width;
} else {
this.hWidth = this.width;
}
if ((((this.contentWidth - this.width) > 2) && (this.hScroll != false)) || (this.hScroll == true)) {
this.vHeight = this.height - this.hScrollBar_mc._height;
} else {
this.vHeight = this.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
this.tabFocused = false;
this.myOnSetFocus();
this.lastX = this._xmouse;
this.lastY = this._ymouse;
this.onMouseMove = function () {
this.scrollXMove = this.lastX - this._xmouse;
this.scrollYMove = this.lastY - this._ymouse;
this.scrollXMove = this.scrollXMove + this.hScrollBar_mc.getScrollPosition();
this.scrollYMove = this.scrollYMove + this.vScrollBar_mc.getScrollPosition();
this.setScrollPosition(this.scrollXMove, this.scrollYMove);
if ((this.scrollXMove < this.hScrollBar_mc.maxPos) && (this.scrollXMove > this.hScrollBar_mc.minPos)) {
this.lastX = this._xmouse;
}
if ((this.scrollYMove < this.vScrollBar_mc.maxPos) && (this.scrollYMove > this.vScrollBar_mc.minPos)) {
this.lastY = this._ymouse;
}
this.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
this.hScrollBar_mc._y = this.height - this.hScrollBar_mc._height;
this.hScrollBar_mc.setSize(this.hWidth);
this.hScrollBar_mc.setScrollProperties(this.hWidth, 0, this.contentWidth - this.hWidth);
this.vScrollBar_mc._visible = ((this.hWidth == this.width) ? false : true);
this.vScrollBar_mc._x = this.width - this.vScrollBar_mc._width;
this.vScrollBar_mc.setSize(this.vHeight);
this.vScrollBar_mc.setScrollProperties(this.vHeight, 0, this.contentHeight - this.vHeight);
this.hScrollBar_mc._visible = ((this.vHeight == this.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var _local2 = component.getScrollPosition();
var _local4 = ((component._name == "hScrollBar_mc") ? "x" : "y");
if (component._name == "hScrollBar_mc") {
this.content_mc._x = (-_local2) + this.offset.x;
} else {
this.content_mc._y = (-_local2) + this.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var _local3 = this.hScrollBar_mc.getScrollPosition();
var _local2 = this.vScrollBar_mc.getScrollPosition();
if (this.hScrollBar_mc.maxPos > this.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
this.setScrollPosition(_local3 - 3, _local2);
} else if (Key.isDown(39)) {
this.setScrollPosition(_local3 + 3, _local2);
}
}
if (this.vScrollBar_mc.maxPos > this.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
this.setScrollPosition(_local3, _local2 - 3);
} else if (Key.isDown(40)) {
this.setScrollPosition(_local3, _local2 + 3);
} else if (Key.isDown(34)) {
this.setScrollPosition(_local3, _local2 + this.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
this.setScrollPosition(_local3, _local2 - this.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 842 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 1443 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 1440 MovieClip "loadContent" in Symbol 1443 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Symbol 1469 MovieClip Frame 20
gotoAndPlay ("idle");
Symbol 1469 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 1469 MovieClip Frame 40
n = Number(this._name.charAt(3));
_parent.ped[n].l = false;
_parent.ped[n] = undefined;
this.removeMovieClip();
Symbol 1480 MovieClip [CRZCAB] Frame 1
function genPed() {
var _local2 = 0;
while (_local2 < 10) {
if ((ped[_local2] == undefined) || (ped[_local2].l == false)) {
ped[_local2] = new Object();
if (Math.random() < 0.5) {
ped[_local2].x = -400;
ped[_local2].d = 1;
} else {
ped[_local2].x = 400;
ped[_local2].d = -1;
}
ped[_local2].y = Math.floor(Math.random() * (200 - p._height));
ped[_local2].l = true;
if (!taxi) {
if (Math.random() < 0.1) {
ped[_local2].w = true;
} else {
ped[_local2].w = false;
}
}
p.duplicateMovieClip("ped" add _local2, 100 + _local2);
this["ped" add _local2]._x = ped[_local2].x - carMC._x;
this["ped" add _local2]._y = ped[_local2].y + 400;
if (ped[_local2].d == -1) {
this["ped" add _local2]._xscale = -Math.abs(this["ped" add _local2]._xscale);
this["ped" add _local2].gotoAndPlay("walk");
} else if (ped[_local2].d == 1) {
this["ped" add _local2].gotoAndPlay("walk");
}
setDepths();
break;
}
_local2++;
}
}
function genTarget() {
targetx = Math.floor(Math.random() * 10000) - 5000;
targety = Math.floor(Math.random() * 100);
DROPOFF._x = targetx - carMC._x;
DROPOFF._y = targety + 450;
}
function setDepths() {
carMC.swapDepths(500 + ((car.y - 15) * 30));
var _local2 = 0;
while (_local2 < 10) {
var _local3 = this["ped" add _local2];
_local3._x = ped[_local2].x + carMC._x;
_local3._y = 400 + ped[_local2].y;
_local3.swapDepths(((500 + (ped[_local2].y * 30)) + _local2) + 1);
_local2++;
}
size = Math.abs(targetx / 5000);
size = Math.min(size, 2);
if (targetx > 0) {
ARROW._xscale = ARROWXSCALE * size;
} else {
ARROW._xscale = (-ARROWXSCALE) * size;
}
DROPOFF._x = targetx;
if (Math.abs(car.y - targety) < 20) {
if (carMC.hitTest(DROPOFF)) {
taxi = false;
CUSTOMER._visible = true;
ARROW._visible = false;
}
}
}
function pedChecks() {
var _local2 = 0;
while (_local2 < 10) {
ped[_local2].x = ped[_local2].x + (2 * ped[_local2].d);
ped[_local2].x = ped[_local2].x - vx;
if (Math.abs(ped[_local2].x) > 430) {
ped[_local2].l = false;
ped[_local2] = undefined;
this["ped" add _local2].removeMovieClip();
}
if (Math.abs(ped[_local2].x) < carMC._width) {
if (Math.abs(ped[_local2].y - car.y) < (carMC._height / 10)) {
this["ped" add _local2].gotoAndPlay("death1");
}
}
_local2++;
}
if (taxi) {
DROPOFF._visible = true;
} else {
DROPOFF._visible = false;
}
setDepths();
}
function CarControl() {
if (Key.isDown(38)) {
vy = -5;
} else if (Key.isDown(40)) {
vy = 5;
} else {
vy = 0;
}
if (Key.isDown(39)) {
ax = Math.ceil(obj1.TQ / 10) / 10;
} else if (Key.isDown(37)) {
ax = (-Math.ceil(obj1.TQ / 10)) / 10;
} else {
ax = 0;
}
if (((ax > 0) && (vx < 0)) || ((ax < 0) && (vx > 0))) {
carMC.CAR.lwheel.gotoAndStop(_root.CIVIC.MAX_WHEEL + 2);
carMC.CAR.rwheel.gotoAndStop(_root.CIVIC.MAX_WHEEL + 2);
carMC.CAR.lwheel._rotation = 0;
carMC.CAR.rwheel._rotation = 0;
} else {
carMC.CAR.lwheel.gotoAndStop(obj1._wheel);
carMC.CAR.rwheel.gotoAndStop(obj1._wheel);
carMC.CAR.lwheel._rotation = carMC.CAR.lwheel._rotation + vx;
carMC.CAR.rwheel._rotation = carMC.CAR.rwheel._rotation + vx;
}
vx = vx + ax;
vx = Math.min(vx, Math.ceil(obj1.HP / 3));
vx = Math.max(vx, -Math.ceil(obj1.HP / 3));
if (vx < 0) {
carMC._xscale = -Math.abs(carMC._xscale);
} else {
carMC._xscale = Math.abs(carMC._xscale);
}
car.y = car.y + vy;
car.y = Math.max(car.y, 0);
car.y = Math.min(car.y, 150);
targetx = targetx - vx;
carMC._y = car.y + 400;
carMC._x = 400;
BGIMAGE._x = BGIMAGE._x - vx;
BGIMAGE2._x = BGIMAGE2._x - vx;
if (BGIMAGE2._x <= 0) {
BGIMAGE._x = 0;
BGIMAGE2._x = BGIMAGE._width;
}
if (BGIMAGE._x > 0) {
BGIMAGE._x = -BGIMAGE._width;
BGIMAGE2._x = 0;
}
}
BGIMAGE.loadScrollContent(appdir add "IMGS/race3.jpg");
BGIMAGE2.loadScrollContent(appdir add "IMGS/race3.jpg");
this.attachMovie("BLANK", "CAR1", 400);
_root.BuildCar(obj1, this._name, "CAR1");
car = new Object();
carMC = this.CAR1;
carMC._x = 400;
carMC._y = 500;
carMC._xscale = 75;
carMC._yscale = 75;
car.x = carMC._x;
car.y = carMC._y - 400;
ped = new Array();
taxi = true;
ARROWXSCALE = ARROW._xscale;
vx = 0;
vy = 0;
ax = 0;
CUSTOMER._visible = false;
genTarget();
Instance of Symbol 1443 MovieClip [FScrollPaneSymbol] "BGIMAGE" in Symbol 1480 MovieClip [CRZCAB] Frame 1
//component parameters
onClipEvent (initialize) {
scrollContent = "";
hScroll = "false";
vScroll = "false";
dragContent = false;
}
Instance of Symbol 1443 MovieClip [FScrollPaneSymbol] "BGIMAGE2" in Symbol 1480 MovieClip [CRZCAB] Frame 1
//component parameters
onClipEvent (initialize) {
scrollContent = "";
hScroll = "false";
vScroll = "false";
dragContent = false;
}
Symbol 1480 MovieClip [CRZCAB] Frame 2
play();
if (Math.random() < 0.05) {
genPed();
}
pedChecks();
CarControl();
trace(targetx);
Symbol 1480 MovieClip [CRZCAB] Frame 3
prevFrame();
Symbol 1483 Button
on (release) {
_root.viewCar2(carobj);
}
Symbol 2153 Button
on (release) {
_root.player.car = n - 1;
if ((_root.es != undefined) && (_root.connected)) {
_root.OnlineUpdateCar();
}
}
Symbol 2154 Button
on (release) {
_root.SellCar(n - 1);
_root.Garage();
}
Symbol 2155 Button
on (release) {
_root.ViewCar(_root.car[n - 1]);
}
Symbol 2208 MovieClip [STATUS] Frame 1
name = _root.player.name;
record = ((_root.player.wins add "W : ") add _root.player.loss) add "L";
tcomp = 0;
var i = 0;
while (i < _root.player.tstatus.length) {
tcomp = tcomp + Number(_root.player.tstatus.charAt(i));
i++;
}
srcomp = _root.player.slevel;
carnum = 0;
cwtot = 0;
var i = 0;
while (i < _root.car.length) {
carnum++;
cwtot = cwtot + _root.car[i].CW;
i++;
}
prefix = "";
if (_root.player.wins < 10) {
prefix = "Newbie";
} else if ((_root.player.wins / _root.player.loss) < 0.66) {
prefix = "";
} else if ((_root.player.wins / _root.player.loss) >= 0.66) {
prefix = "Pro";
}
if (_root.player.wins > 200) {
prefix = "Experienced";
}
avgcw = cwtot / carnum;
if (avgcw < 3000) {
suffix = " Stock Driver";
} else if (avgcw < 7000) {
suffix = " Ricer";
} else if (avgcw < 15000) {
suffix = " Tuner";
} else {
suffix = " Drag Racer";
}
rank = prefix add suffix;
stop();
Symbol 2211 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 2212 MovieClip [FScrollBarSymbol] Frame 1
#initclip 46
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local2 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local2, this.textField.maxhscroll));
} else {
var _local2 = this.textField.scroll;
var _local3 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local3, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local2, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 2213 MovieClip [DataProviderSymbol] Frame 1
#initclip 39
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
this.items = new Array();
this.uniqueID = 0;
this.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local2 = {event:"updateAll"};
viewRef.modelChanged(_local2);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
if (index < this.getLength()) {
this.items.splice(index, 0, "tmp");
}
this.items[index] = new Object();
if (typeof(value) == "object") {
this.items[index] = value;
} else {
this.items[index].label = value;
}
this.items[index].__ID__ = this.uniqueID++;
var _local4 = {event:"addRows", firstRow:index, lastRow:index};
this.updateViews(_local4);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var _local4 = this.items[index];
this.items.splice(index, 1);
var _local3 = {event:"deleteRows", firstRow:index, lastRow:index};
this.updateViews(_local3);
return(_local4);
};
DataProviderClass.prototype.removeAll = function () {
this.items = new Array();
this.updateViews({event:"deleteRows", firstRow:0, lastRow:this.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
if ((index < 0) || (index >= this.getLength())) {
return(undefined);
}
var _local3 = this.getItemID(index);
if (typeof(itemObj) == "object") {
this.items[index] = itemObj;
} else {
this.items[index].label = itemObj;
}
this.items[index].__ID__ = _local3;
this.updateViews({event:"updateRows", firstRow:index, lastRow:index});
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
this.items.sortOn(fieldName);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = 0;
while (_local2 < this.views.length) {
this.views[_local2].modelChanged(eventObj);
_local2++;
}
};
#endinitclip
Symbol 2214 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 49
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
if (this._name != "itemAsset") {
this.highlighted = false;
this.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
this.displayContent(itmObj, selected);
if ((this.highlighted != selected) || ((this.controller.focused != this.oldFocus) && (selected))) {
this.setHighlighted(selected);
}
this.oldFocus = this.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var _local2 = -16384;
this.width = width;
this.layoutContent(width);
this.attachMovie("FHighlightSymbol", "highlight_mc", _local2);
this.highlight_mc._x = 0.5;
this.highlight_mc._width = width - 0.5;
this.highlight_mc._height = height;
this.highlight_mc.controller = this;
this.highlight_mc._alpha = 0;
this.highlight_mc.trackAsMenu = true;
this.highlight_mc.onPress = function () {
if (this.controller.enable) {
this.controller.controller.clickHandler(this.controller.itemNum);
}
};
this.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
this.highlight_mc.useHandCursor = false;
this.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
this.enable = enabledFlag;
this.fLabel_mc.setEnabled(enabledFlag);
this.highlight_mc.gotoAndStop((enabledFlag ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
this.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:this.controller});
this.fLabel_mc._x = 2;
this.fLabel_mc._y = 0;
this.fLabel_mc.setSize(width - 2);
this.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var _local2 = "";
if (itmObj.label != undefined) {
_local2 = itmObj.label;
} else if (typeof(itmObj) == "object") {
for (var _local4 in itmObj) {
if (_local4 != "__ID__") {
_local2 = (itmObj[_local4] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 2);
} else {
_local2 = itmObj;
}
if (this.fLabel_mc.labelField.text != _local2) {
this.fLabel_mc.setLabel(_local2);
}
var _local5 = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (_local5 == undefined) {
_local5 = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(_local5);
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
fade = this.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!flag)) {
this.highlight_mc._alpha = (flag ? 100 : 0);
delete this.onEnterFrame;
} else {
this.fadeN = fade;
this.fadeX = 1;
this.highLight_mc._alpha = 20;
this.onEnterFrame = function () {
this.highLight_mc._alpha = (60 * Math.sqrt((this.fadeX++) / this.fadeN)) + 40;
if (this.fadeX > this.fadeN) {
delete this.onEnterFrame;
}
};
}
this.highlighted = flag;
};
#endinitclip
Symbol 2215 MovieClip [FSelectableListSymbol] Frame 1
#initclip 44
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
super.init();
this.enable = true;
this.selected = new Array();
this.topDisplayed = (this.numDisplayed = 0);
this.lastSelected = 0;
this.tabChildren = false;
if (this._name != undefined) {
this.dataProvider = new DataProviderClass();
this.dataProvider.addView(this);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
if ((index < 0) || (!this.enable)) {
return(undefined);
}
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
if (!this.enable) {
return(undefined);
}
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndex();
var _local2 = this.getItemAt(index);
this.dataProvider.removeItemAt(index);
return(_local2);
};
FSelectableListClass.prototype.removeAll = function () {
this.dataProvider.removeAll();
};
FSelectableListClass.prototype.replaceItemAt = function (index, newLabel, newData) {
this.dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
};
FSelectableListClass.prototype.sortItemsBy = function (fieldName, order) {
this.lastSelID = this.dataProvider.getItemID(this.lastSelected);
this.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
for (var _local3 in this.selected) {
var _local2 = this.selected[_local3].sIndex;
if (_local2 != undefined) {
return(_local2);
}
}
};
FSelectableListClass.prototype.getSelectedItem = function () {
return(this.getItemAt(this.getSelectedIndex()));
};
FSelectableListClass.prototype.getItemAt = function (index) {
return(this.dataProvider.getItemAt(index));
};
FSelectableListClass.prototype.getEnabled = function () {
return(this.enable);
};
FSelectableListClass.prototype.getValue = function () {
var _local2 = this.getSelectedItem();
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
if (((index >= 0) && (index < this.getLength())) && (this.enable)) {
this.clearSelected();
this.selectItem(index, true);
this.lastSelected = index;
this.invalidate("updateControl");
if (flag != false) {
this.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
this.setScrollPosition(0);
this.clearSelected();
if (obj instanceof Array) {
this.dataProvider = new DataProviderClass();
var _local2 = 0;
while (_local2 < obj.length) {
var _local4 = ((typeof(obj[_local2]) == "string") ? ({label:obj[_local2]}) : (obj[_local2]));
this.dataProvider.addItem(_local4);
_local2++;
}
} else {
this.dataProvider = obj;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
this.tmpPos = this.getScrollPosition();
this.itemSymbol = linkID;
this.invalidate("setSize");
this.setScrollPosition(this.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
this.cleanUI();
super.setEnabled(enabledFlag);
this.enable = enabledFlag;
this.boundingBox_mc.gotoAndStop((this.enable ? "enabled" : "disabled"));
var _local4 = Math.min(this.numDisplayed, this.getLength());
var _local3 = 0;
while (_local3 < _local4) {
this.container_mc[("fListItem" + _local3) + "_mc"].setEnabled(this.enable);
_local3++;
}
if (this.enable) {
this.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var _local2 = 0;
while (_local2 < this.numDisplayed) {
this.container_mc[("fListItem" + _local2) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + _local2), this.isSelected(this.topDisplayed + _local2));
_local2++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
super.setSize(w, h);
this.boundingBox_mc._xscale = (this.boundingBox_mc._yscale = 100);
this.boundingBox_mc._xscale = (this.width * 100) / this.boundingBox_mc._width;
this.boundingBox_mc._yscale = (this.height * 100) / this.boundingBox_mc._height;
var _local3 = 0;
while (_local3 < this.numDisplayed) {
this.container_mc.attachMovie(this.itemSymbol, ("fListItem" + _local3) + "_mc", 10 + _local3, {controller:this, itemNum:_local3});
var _local4 = this.container_mc[("fListItem" + _local3) + "_mc"];
var _local5 = ((this.scrollOffset == undefined) ? 0 : (this.scrollOffset));
_local4.setSize(this.width - _local5, this.itmHgt);
_local4._y = (this.itmHgt - 2) * _local3;
_local3++;
}
this.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var _local4 = eventObj.firstRow;
var _local6 = eventObj.lastRow;
var _local8 = eventObj.event;
if (_local8 == "addRows") {
for (var _local2 in this.selected) {
if ((this.selected[_local2].sIndex != undefined) && (this.selected[_local2].sIndex >= _local4)) {
this.selected[_local2].sIndex = this.selected[_local2].sIndex + ((_local6 - _local4) + 1);
this.setSelectedIndex(this.selected[_local2].sIndex, false);
}
}
} else if (_local8 == "deleteRows") {
if (_local4 == _local6) {
var _local5 = _local4;
if (this.selectHolder == _local5) {
this.selectionDeleted = true;
}
if (((this.topDisplayed + this.numDisplayed) >= this.getLength()) && (this.topDisplayed > 0)) {
this.topDisplayed--;
if (this.selectionDeleted && ((_local5 - 1) >= 0)) {
this.setSelectedIndex(_local5 - 1, false);
}
} else if (this.selectionDeleted) {
var _local7 = this.getLength();
if (((_local5 == (_local7 - 1)) && (_local7 > 1)) || (_local5 > (_local7 / 2))) {
this.setSelectedIndex(_local5 - 1, false);
} else {
this.setSelectedIndex(_local5, false);
}
}
for (var _local2 in this.selected) {
if (this.selected[_local2].sIndex > _local4) {
this.selected[_local2].sIndex--;
}
}
} else {
this.clearSelected();
this.topDisplayed = 0;
}
} else if (_local8 == "sort") {
var _local7 = this.getLength();
var _local2 = 0;
while (_local2 < _local7) {
if (this.isSelected(_local2)) {
var _local3 = this.dataProvider.getItemID(_local2);
if (_local3 == this.lastSelID) {
this.lastSelected = _local2;
}
this.selected[String(_local3)].sIndex = _local2;
}
_local2++;
}
}
this.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
this.attachMovie(this.itemSymbol, "tmpItem_mc", 0, {controller:this});
this.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
this.itmHgt = this.tmpItem_mc._height;
this.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
if (selectedFlag && (!this.isSelected(index))) {
this.selected[String(this.dataProvider.getItemID(index))] = {sIndex:index};
} else if (!selectedFlag) {
delete this.selected[String(this.dataProvider.getItemID(index))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
for (var _local3 in this.selected) {
var _local2 = this.selected[_local3].sIndex;
if (((_local2 != undefined) && (this.topDisplayed <= _local2)) && (_local2 < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (_local2 - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(_local2), false);
}
}
delete this.selected;
this.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var _local2 = this.topDisplayed + itemNum;
if (this.getItemAt(_local2 == undefined)) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
this.clearSelected();
this.selectItem(_local2, true);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(_local2), this.isSelected(_local2));
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var _local3 = this.getSelectedIndex();
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(this.getLength() - 1, _local2);
if (_local2 == _local3) {
return(undefined);
}
if ((_local3 < this.topDisplayed) || (_local3 >= (this.topDisplayed + this.numDisplayed))) {
this.setScrollPosition(_local3);
}
if ((_local2 >= (this.topDisplayed + this.numDisplayed)) || (_local2 < this.topDisplayed)) {
this.setScrollPosition(this.topDisplayed + incr);
}
this.selectionHandler(_local2 - this.topDisplayed);
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
this.focusRect.removeMovieClip();
if (!this.focused) {
this.pressFocus();
}
this.selectionHandler(itmNum);
this.onMouseUp = this.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
if (this.changeFlag) {
this.executeCallBack();
}
this.changeFlag = false;
this.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
var _local3 = 0;
while (_local3 < this.numDisplayed) {
this.container_mc[("fListItem" + _local3) + "_mc"].highlight_mc.gotoAndStop("enabled");
_local3++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
super.myOnKillFocus();
var _local3 = 0;
while (_local3 < this.numDisplayed) {
this.container_mc[("fListItem" + _local3) + "_mc"].highlight_mc.gotoAndStop("unfocused");
_local3++;
}
};
#endinitclip
Instance of Symbol 2213 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 2215 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 2214 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 2215 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 2216 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 51
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
if (this.enable) {
pos = Math.min(pos, this.getLength() - this.numDisplayed);
pos = Math.max(pos, 0);
this.scrollBar_mc.setScrollPosition(pos);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
this.permaScrollBar = !flag;
this.setSize(this.width, this.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var _local3 = this.getScrollPosition();
super.setSize(w, h);
if (this.scrollBar_mc != undefined) {
this.removed = true;
}
this.scrollBar_mc = undefined;
this.initScrollBar();
this.setScrollPosition(_local3);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
if ((!this.permaScrollBar) && (this.getLength() <= this.numDisplayed)) {
if (this.removed) {
this.scrollBar_mc.removeMovieClip();
this.scrollBar_mc = undefined;
this.scrollOffset = undefined;
this.invalidate("setSize");
}
} else {
if (this.scrollBar_mc == undefined) {
this.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:this.styleTable});
this.scrollBar_mc = this.container_mc.scrollBar_mc;
this.scrollBar_mc.setChangeHandler("scrollHandler", this);
this.scrollBar_mc.setSize(this.height);
this.scrollBar_mc._x = this.width - this.scrollBar_mc._width;
this.scrollBar_mc._y = 0;
this.scrollBar_mc.setLargeScroll(this.numDisplayed - 1);
this.scrollOffset = this.scrollBar_mc._width;
this.invalidate("setSize");
}
this.scrollBar_mc.setScrollProperties(this.numDisplayed, 0, this.getLength() - this.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var _local2 = scrollBar.getScrollPosition();
this.topDisplayed = _local2;
if (this.lastPosition != _local2) {
this.updateControl();
}
this.lastPosition = _local2;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
super.clickHandler(itmNum);
if ((this.dragScrolling == undefined) && (this.scrollBar_mc != undefined)) {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
clearInterval(this.dragScrolling);
if (this.container_mc._ymouse < 0) {
this.setScrollPosition(this.getScrollPosition() - 1);
this.selectionHandler(0);
this.scrollInterval = Math.max(25, (-23.8 * (-this.container_mc._ymouse)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else if (this.container_mc._ymouse > ((this.itmHgt - 2) * this.numDisplayed)) {
this.setScrollPosition(this.getScrollPosition() + 1);
this.selectionHandler(this.numDisplayed - 1);
this.scrollInterval = Math.max(25, (-23.8 * Math.abs((this.container_mc._ymouse - ((this.itmHgt - 2) * this.numDisplayed)) - 2)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
if (this.focused) {
this.keyCodes = new Array(40, 38, 34, 33, 36, 35);
this.keyIncrs = new Array(1, -1, this.numDisplayed - 1, -(this.numDisplayed - 1), -this.getLength(), this.getLength());
var _local2 = 0;
while (_local2 < this.keyCodes.length) {
if (Key.isDown(this.keyCodes[_local2])) {
this.moveSelBy(this.keyIncrs[_local2]);
return(undefined);
}
_local2++;
}
this.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var _local2 = Key.getAscii();
if ((_local2 >= 33) && (_local2 <= 126)) {
this.findString(String.fromCharCode(_local2));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
return(undefined);
}
var _local4 = this.getSelectedIndex();
var _local6 = 0;
var _local2 = _local4 + 1;
while (_local2 != _local4) {
var _local3 = this.getItemAt(_local2).label.substring(0, str.length);
if ((str == _local3) || (str.toUpperCase() == _local3.toUpperCase())) {
_local6 = _local2 - _local4;
break;
}
if (_local2 >= (this.getLength() - 1)) {
_local2 = -1;
}
_local2++;
}
if (_local6 != 0) {
this.moveSelBy(_local6);
}
};
#endinitclip
Instance of Symbol 2212 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 2216 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 2215 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 2216 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 2217 MovieClip [FTreeNodeSymbol] Frame 1
#initclip 42
_global.FTreeNode = function (label, data, iconSymbolName) {
this.label = label;
this.data = data;
if ((iconSymbolName != undefined) && (iconSymbolName != "")) {
this.iconSymbolName = iconSymbolName;
}
this.open = false;
this.branch = false;
this.index = 0;
this.level = 0;
this.numchildren = 0;
this.__ID__ = FTreeNode.prototype.__GID__++;
};
FTreeNode.prototype = new Array();
FTreeNode.prototype.__GID__ = 0;
FTreeNode.prototype.addNode = function (kid) {
this.addNodeAt(this.length, kid);
return(this);
};
FTreeNode.prototype.addNodeAt = function (index, kid) {
this.branch = true;
this.splice(index, 0, kid);
kid.index = index;
kid.parent = this;
kid.level = this.level + 1;
var _local4 = kid.countChildren(0);
kid.numchildren = _local4;
var _local3 = this;
while (_local3 != null) {
_local3.numchildren = _local3.numchildren + (1 + _local4);
_local3 = _local3.parent;
}
var _local2;
_local2 = index + 1;
while (_local2 < this.length) {
this[_local2].index = _local2;
_local2++;
}
return(this);
};
FTreeNode.prototype.getChildNodes = function () {
return(this);
};
FTreeNode.prototype.getData = function () {
return(this.data);
};
FTreeNode.prototype.getLabel = function () {
return(this.label);
};
FTreeNode.prototype.getNodeAt = function (index) {
return(this[index]);
};
FTreeNode.prototype.getNumChildren = function () {
return(this.numchildren);
};
FTreeNode.prototype.getIconSymbolName = function () {
return(this.iconSymbolName);
};
FTreeNode.prototype.getParentNode = function () {
return(this.parent);
};
FTreeNode.prototype.isBranch = function () {
return(this.branch);
};
FTreeNode.prototype.isOpen = function () {
return(this.open);
};
FTreeNode.prototype.removeNode = function (node) {
this.removeNodesAt(node.index, 1);
return(this);
};
FTreeNode.prototype.removeNodeAt = function (index) {
this.removeNodesAt(index, 1);
return(this);
};
FTreeNode.prototype.removeNodesAt = function (index, numNodes) {
if (index < this.length) {
var _local2 = numNodes;
var _local5 = 0;
while (_local2 > 0) {
_local5 = _local5 + (1 + this[index].numchildren);
this.splice(index, 1);
_local2--;
}
var _local3 = this;
while (_local3 != null) {
_local3.numchildren = _local3.numchildren - _local5;
_local3 = _local3.parent;
}
_local2 = index;
while (_local2 < this.length) {
this[_local2].index = _local2;
_local2++;
}
}
return(this);
};
FTreeNode.prototype.setChildNodes = function (kids) {
this.splice(0, this.length);
if ((!(kids instanceof FTreeNode)) && (kids instanceof Array)) {
var _local2 = 0;
_local2 = 0;
while (_local2 < kids.length) {
this.addNodeAt(_local2, kids[_local2]);
_local2++;
}
}
return(this);
};
FTreeNode.prototype.setData = function (data) {
this.data = data;
return(this);
};
FTreeNode.prototype.setDataProvider = function (dataProvider, labelField, dataField) {
if (labelField == undefined) {
labelField = "label";
}
if (dataField == undefined) {
dataField = "data";
}
var _local7 = dataProvider instanceof Array;
var _local8 = (_local7 ? (dataProvider.length) : (dataProvider.getLength()));
var _local3 = 0;
while (_local3 < _local8) {
var _local2 = (_local7 ? (dataProvider[_local3]) : (dataProvider.getItemAt(_local3)));
if (typeof(_local2) == "string") {
labelField = "label";
_local2 = {label:_local2};
}
this.addNode(new FTreeNode(_local2[labelField], _local2[dataField]));
_local3++;
}
return(this);
};
FTreeNode.prototype.setIconSymbolName = function (iconSymbolName) {
this.iconSymbolName = iconSymbolName;
return(this);
};
FTreeNode.prototype.setIsBranch = function () {
this.branch = true;
return(this);
};
FTreeNode.prototype.setIsOpen = function (isOpen) {
this.open = isOpen;
return(this);
};
FTreeNode.prototype.setLabel = function (label) {
this.label = label;
return(this);
};
FTreeNode.prototype.setNodeProperties = function (label, data) {
this.label = label;
this.data = data;
return(this);
};
FTreeNode.prototype.countChildren = function () {
var _local2;
var _local3 = 0;
_local2 = 0;
while (_local2 < this.length) {
_local3++;
this[_local2].level = this.level + 1;
if (this[_local2].isBranch()) {
_local3 = _local3 + this[_local2].countChildren();
}
_local2++;
}
this.numchildren = _local3;
return(_local3);
};
FTreeNode.prototype.isAncestor = function (descendent) {
var _local3 = false;
var _local2 = descendent;
while ((!_local3) && (_local2 != null)) {
_local3 = _local2.__ID__ == this.__ID__;
_local2 = _local2.parent;
}
return(_local3);
};
FTreeNode.prototype.isOnOpenBranch = function () {
var _local3 = true;
var _local2 = this.parent;
while (_local3 && (_local2 != null)) {
_local3 = _local3 & _local2.isOpen();
_local2 = _local2.parent;
}
return(_local3);
};
FTreeNode.prototype.setParentNode = function (parent) {
this.parent = parent;
};
#endinitclip
Symbol 2218 MovieClip [FTreeDataProviderSymbol] Frame 1
#initclip 41
_global.FTreeDataProviderClass = function () {
};
FTreeDataProviderClass.prototype = new _global.DataProviderClass();
FTreeDataProviderClass.prototype.setRootNode = function (root) {
this.root = root;
this.removeAll();
if (this.root != null) {
this.addNodeAt(0, 0, this.root);
}
this.updateViews({event:"newRoot"});
};
FTreeDataProviderClass.prototype.addNodeAt = function (n, level, node) {
node.level = level++;
node.uiIndex = n;
this.addItemAt(n++, node);
if (node.isBranch() && (node.isOpen())) {
var _local2 = 0;
while (_local2 < node.length) {
n = this.addNodeAt(n, level, node[_local2]);
_local2++;
}
}
return(n);
};
FTreeDataProviderClass.prototype.updateBranch = function (index) {
var _local4 = this.getItemAt(index);
if (!_local4.isBranch()) {
return(undefined);
}
var _local2 = index + 1;
var _local5 = _local4.level + 1;
var _local3 = _local2;
while ((_local3 < this.items.length) && (this.items[_local3].level >= _local5)) {
_local3++;
}
this.removeItemsAt(_local2, _local3 - _local2);
if (_local4.isOpen()) {
_local3 = 0;
while (_local3 < _local4.length) {
_local2 = this.addNodeAt(_local2, _local5, _local4[_local3]);
_local3++;
}
}
while (_local2 < this.items.length) {
this.items[_local2].uiIndex = _local2;
_local2++;
}
};
FTreeDataProviderClass.prototype.removeItemsAt = function (index, count) {
var _local2 = null;
if (count > 0) {
_local2 = this.items[index];
this.items.splice(index, count);
}
var _local4 = {event:"nodeExpansion", row:index};
this.updateViews(_local4);
return(_local2);
};
FTreeDataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
};
#endinitclip
Instance of Symbol 2213 MovieClip [DataProviderSymbol] in Symbol 2218 MovieClip [FTreeDataProviderSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 2219 MovieClip [FTreeSelectableItemSymbol] Frame 1
#initclip 54
function FTreeSelectableItemClass() {
this.init();
}
FTreeSelectableItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FTreeSelectableItemSymbol", FTreeSelectableItemClass);
FTreeSelectableItemClass.prototype.kConnectorColWidth = 17;
FTreeSelectableItemClass.prototype.layoutContent = function (width) {
this.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:this.controller});
this.fLabel_mc._x = 2;
this.fLabel_mc._y = 0;
this.fLabel_mc.setSize(width - 2);
this.fLabel_mc.labelField.autosize = true;
this.fLabel_mc.labelField.selectable = false;
this.fLabel_mc.labelField.embedFonts = true;
};
FTreeSelectableItemClass.prototype.displayContent = function (nodeObj, selected) {
if (this.fLabel_mc.labelField.text != nodeObj.label) {
this.fLabel_mc.setLabel(nodeObj.label + " ");
}
var _local18 = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (_local18 == undefined) {
_local18 = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(_local18);
var _local16 = ((nodeObj != null) ? (nodeObj.getIconSymbolName()) : null);
if (_local16 == null) {
_local16 = this.controller.getDefaultNodeIconSymbolName();
}
if ((nodeObj == null) || (this.fIcon_name != _local16)) {
this.fIcon_mc.removeMovieClip();
this.fIcon_name = null;
}
this.cn.removeMovieClip();
if (!(nodeObj instanceof FTreeNode)) {
return(undefined);
}
nodeObj.ui = this;
var _local13 = nodeObj.level;
var _local5 = _local13;
var _local12 = nodeObj.getParentNode();
this.createEmptyMovieClip("cn", 3001);
var _local2 = this.cn;
var _local8 = this.highlight_mc._height;
var _local6 = this.kConnectorColWidth;
var _local11 = this.controller.styleTable.highlight3D.value;
if (_local11 == undefined) {
_local11 = 8421504 /* 0x808080 */;
}
_local2._x = 2;
while (_local5 >= 0) {
_local2.lineStyle(0, _local11, 0);
var _local3 = _local5 * _local6;
_local2.moveTo(_local3, 0);
_local2.lineTo(_local3, _local8 - 1);
_local2.lineTo((_local3 + _local6) - 1, _local8 - 1);
var _local4 = Math.floor(_local8 / 2);
var _local10 = Math.floor(_local6 / 2);
if (_local5 == _local13) {
this.mx = _local10 + (_local5 * _local6);
this.my = _local4;
}
if (this.controller.getDrawConnectors()) {
_local10 = Math.floor(_local6 / 2);
_local3 = (_local5 * _local6) + _local10;
if (_local5 == _local13) {
var _local7 = nodeObj.getParentNode();
if ((_local7 == null) || (nodeObj.index == (_local7.length - 1))) {
_local2.lineStyle(1, _local11, 100);
_local2.moveTo(_local3, 0);
_local2.lineTo(_local3, _local4);
_local2.moveTo(_local3, _local4);
_local2.lineTo((_local3 + _local10) - 1, _local4);
} else {
_local2.lineStyle(1, _local11, 100);
_local2.moveTo(_local3, 0);
_local2.lineTo(_local3, _local8 - 1);
_local2.moveTo(_local3, _local4);
_local2.lineTo((_local3 + _local10) - 1, _local4);
}
} else if (_local12 != null) {
var _local7 = _local12.getParentNode();
if (((_local7 != null) && (_local7.length > 1)) && (_local12.index < (_local7.length - 1))) {
_local2.lineStyle(1, _local11, 100);
_local2.moveTo(_local3, 0);
_local2.lineTo(_local3, _local8 - 1);
}
_local12 = _local7;
}
}
_local5--;
}
if (nodeObj.isBranch()) {
var _local20 = this.controller.getExpanderSymbolName();
if (_local20 != undefined) {
this.attachExpander(_local2, _local20, _local6, nodeObj);
} else {
this.drawExpander(_local2, nodeObj, _local6, selected);
}
var _local15 = _local2.ex;
_local15.node = nodeObj;
_local15.controller = this;
_local15.useHandCursor = false;
_local15.trackAsMenu = true;
var _local19 = "onRelease";
if (this.controller.getExpandNodeTrigger() == "press") {
_local19 = "onPress";
}
_local15.trigger = _local19;
_local15[_local19] = function () {
var _local2 = this.controller.controller;
if (_local2.getEnabled()) {
var _local3 = this.controller.getItemIndex();
this.node.setIsOpen(!this.node.isOpen());
_local2.dataProvider.updateBranch(_local3);
if (!_local2.focused) {
_local2.pressFocus();
}
if (_local2.expansionHandlerObj != undefined) {
_local2.expansionHandlerObj[_local2.expansionHandlerFxn](_local2, this.node);
}
_local2.invalidate("resetTreeWidth");
}
};
}
var _local17 = _local2._x + _local2._width;
if (this.fIcon_mc == undefined) {
this.attachMovie(_local16, "fIcon_mc", 3000);
this.fIcon_name = _local16;
}
this.fIcon_mc._x = Math.round(_local17);
this.fIcon_mc._y = Math.round((_local8 - this.fIcon_mc._height) / 2);
var _local21 = "leaf";
if (nodeObj.isBranch()) {
_local21 = (nodeObj.isOpen() ? "branchOpen" : "branchClosed");
}
this.fIcon_mc.controller = this;
this.fIcon_mc.node = nodeObj;
this.fIcon_mc.onPress = this.controller.iconDoubleClick;
this.fIcon_mc.useHandCursor = false;
this.fIcon_mc.gotoAndStop(_local21);
_local17 = _local17 + (this.fIcon_mc._width + 4);
this.fLabel_mc._x = Math.round(_local17);
if (this.controller.itmHgt < _local8) {
this.fLabel_mc._y = Math.round((_local8 - this.controller.itmHgt) / 2);
}
if (nodeObj != null) {
var _local22 = this.fLabel_mc.labelField;
nodeObj.width = (_local17 + _local22._x) + _local22.textwidth;
this.controller.setTreeWidth(nodeObj.width);
}
this._y = Math.round(this._y);
};
FTreeSelectableItemClass.prototype.attachExpander = function (parentClip, symbolName, width, nodeObj) {
var _local4 = (nodeObj.isOpen() ? "opened" : "closed");
var _local2 = parentClip;
var _local3 = width;
_local2.attachMovie(symbolName, "ex", 1);
var _local1 = _local2.ex;
if (_local1._width > _local3) {
_local1._height = _local1._height * (_local3 / _local1._width);
_local1._width = _local3;
}
if (_local1._height > _local2._height) {
_local1._width = _local1._width * (_local2._height / _local1._height);
_local1._height = _local2._height;
}
_local1._x = Math.round(((((2 * nodeObj.level) + 1) * _local3) - _local1._width) / 2);
_local1._y = Math.round((_local2._height - _local1._height) / 2);
_local1.gotoAndStop(_local4);
};
FTreeSelectableItemClass.prototype.drawExpander = function (parentClip, nodeObj, width, selected) {
var _local7 = parentClip;
var _local8 = width;
_local7.createEmptyMovieClip("ex", 1);
var _local2 = _local7.ex;
var _local5 = this.controller.styleTable.highlight3D.value;
if (_local5 == undefined) {
_local5 = 8421504 /* 0x808080 */;
}
var _local6;
_local6 = this.controller.styleTable.background.value;
if (_local6 == undefined) {
_local6 = 16777215 /* 0xFFFFFF */;
}
var _local3 = Math.floor(_local8 / 2) + 1;
_local2.lineStyle(0, 0, 0);
_local2.beginFill(_local5);
_local2.moveTo(0, 0);
_local2.lineTo(0, _local3);
_local2.lineTo(_local3, _local3);
_local2.lineTo(_local3, 0);
_local2.lineTo(0, 0);
_local2.endFill();
_local2.lineStyle(0, 0, 0);
_local2.beginFill(_local6);
_local2.moveTo(1, 1);
_local2.lineTo(1, _local3 - 1);
_local2.lineTo(_local3 - 1, _local3 - 1);
_local2.lineTo(_local3 - 1, 1);
_local2.lineTo(1, 1);
_local2.endFill();
_local5 = this.controller.styleTable.darkshadow.value;
if (_local5 == undefined) {
_local5 = 0;
}
_local2.lineStyle(0, 0, 0);
var _local4 = Math.floor(_local3 / 2);
_local2.beginFill(_local5);
_local2.moveTo(2, _local4);
_local2.lineTo(_local3 - 2, _local4);
_local2.lineTo(_local3 - 2, _local4 + 1);
_local2.lineTo(2, _local4 + 1);
_local2.lineTo(2, _local4);
_local2.endFill();
if (!nodeObj.isOpen()) {
_local2.moveTo(_local4, 2);
_local2.beginFill(_local5);
_local2.lineTo(_local4, _local3 - 2);
_local2.lineTo(_local4 + 1, _local3 - 2);
_local2.lineTo(_local4 + 1, 2);
_local2.lineTo(_local4, 2);
_local2.endFill();
}
_local2._x = Math.floor(this.mx - _local4);
_local2._y = Math.floor(this.my - _local4);
};
#endinitclip
Instance of Symbol 2214 MovieClip [FSelectableItemSymbol] "itemAsset" in Symbol 2219 MovieClip [FTreeSelectableItemSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 2221 MovieClip Frame 1
Symbol 2223 MovieClip Frame 1
Symbol 2225 MovieClip Frame 1
Symbol 2226 MovieClip [nodeIconSymbol] Frame 1
stop();
Symbol 2226 MovieClip [nodeIconSymbol] Frame 2
stop();
Symbol 2226 MovieClip [nodeIconSymbol] Frame 3
stop();
Symbol 2228 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 2228 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 2231 MovieClip [FTreeSymbol] Frame 1
#initclip 59
function FTreeClass() {
this.init();
this._x = Math.round(this._x);
this._y = Math.round(this._y);
this.itemSymbol = "FTreeSelectableItemSymbol";
super.setDataProvider(new FTreeDataProviderClass());
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
this.textStyle.font = "Arial";
this.textStyle.size = 12;
this.styleTable.embedFonts = true;
this.permaScrollBar = true;
this.controller = this;
this.mcCount = 3;
this.boundingBox_mc.gotoAndStop(1);
this.width = this._width;
this.height = this._height;
this._yscale = (this._xscale = 100);
this.setSize(this.width, this.height);
this.selected = new Array();
this.defaultNodeIconSymbolName = "nodeIconSymbol";
this.drawConnectors_bool = true;
if (this.changeHandler.length > 0) {
this.setChangeHandler(this.changeHandler);
}
this.treewidth = -1;
}
FTreeClass.prototype = new FScrollSelectListClass();
Object.registerClass("FTreeSymbol", FTreeClass);
FTreeClass.prototype.addNode = function (parent, child) {
this.addNodeAt(parent, child, parent.length);
};
FTreeClass.prototype.addNodeAt = function (parent, child, index) {
if (this.enable) {
parent.addNodeAt(index, child);
if (parent.isOnOpenBranch()) {
this.refresh(parent.uiIndex);
}
}
};
FTreeClass.prototype.getAutoHideScrollBar = function () {
return(!this.permaScrollBar);
};
FTreeClass.prototype.getDefaultNodeIconSymbolName = function () {
return(this.defaultNodeIconSymbolName);
};
FTreeClass.prototype.getDrawConnectors = function () {
return(this.drawConnectors_bool);
};
FTreeClass.prototype.getExpanderSymbolName = function () {
return(this.expanderSymbolName);
};
FTreeClass.prototype.getExpandNodeTrigger = function () {
return(this.expandNodeTrigger);
};
FTreeClass.prototype.getNodeAt = function (parent, index) {
return(parent.getNodeAt(index));
};
FTreeClass.prototype.getTreeLength = function () {
var _local2 = ((this.rootNode != null) ? (this.rootNode.getNumChildren() + 1) : 0);
return(_local2);
};
FTreeClass.prototype.getRootNode = function () {
return(this.rootNode);
};
FTreeClass.prototype.getRowCount = function () {
return(this.numDisplayed);
};
FTreeClass.prototype.getFirstVisibleNode = function () {
return(this.getItemAt(super.getScrollPosition()));
};
FTreeClass.prototype.getSelectedNode = function () {
return(this.getSelectedItem());
};
FTreeClass.prototype.getSelectedNodes = function () {
return(this.getSelectedItems());
};
FTreeClass.prototype.getSelectStyle = function () {
return(this.selectStyle);
};
FTreeClass.prototype.getWidth = function () {
return(this.width);
};
FTreeClass.prototype.refresh = function () {
if (this.enable) {
var _local3 = ((arguments.length > 0) ? (arguments[0]) : 0);
this.dataProvider.updateBranch(_local3);
this.invalidate("updateControl");
}
return(true);
};
FTreeClass.prototype.removeNode = function (node) {
var _local2 = node.getParentNode();
if (_local2 == null) {
this.setRootNode(null);
} else {
this.removeNodeAt(_local2, node.index);
}
return(true);
};
FTreeClass.prototype.removeNodeAt = function (parentNode, index) {
var _local3 = parentNode.getNodeAt(index);
if (_local3 != null) {
this.removeSelectedAncestors(_local3);
parentNode.removeNodeAt(index);
if (parentNode.isOnOpenBranch()) {
this.refresh(parentNode.uiIndex);
}
} else {
return(false);
}
return(true);
};
FTreeClass.prototype.removeAll = function () {
this.setRootNode(null);
return(true);
};
FTreeClass.prototype.setDataProvider = function (dataProvider, labelField, dataField) {
if (this.rootNode != null) {
this.rootNode.setDataProvider(dataProvider, labelField, dataField);
this.refresh();
}
};
FTreeClass.prototype.setDefaultNodeIconSymbolName = function (name) {
this.defaultNodeIconSymbolName = name;
this.refresh();
return(true);
};
FTreeClass.prototype.setDrawConnectors = function (shouldDraw) {
this.drawConnectors_bool = shouldDraw;
return(true);
};
FTreeClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.hsb_mc.setEnabled(enabledFlag);
this.sb_mc.setEnabled(enabledFlag);
};
FTreeClass.prototype.setExpanderSymbolName = function (symbolName) {
this.expanderSymbolName = symbolName;
return(true);
};
FTreeClass.prototype.setNodeExpansionHandler = function (chng, obj) {
this.expansionHandlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.expansionHandlerFxn = chng;
return(true);
};
FTreeClass.prototype.setExpandNodeTrigger = function (trigger) {
this.expandNodeTrigger = ((trigger == "press") ? (trigger) : "release");
this.refresh();
};
FTreeClass.prototype.setRootNode = function (root) {
if (root == null) {
delete this.rootNode;
}
this.rootNode = root;
this.clearSelected();
this.dataProvider.setRootNode(root);
this.resetTreeWidth();
this.refresh();
return(true);
};
FTreeClass.prototype.setRowCount = function (count) {
var _local2 = (count * (this.itmHgt - 2)) + 2;
if (this.hsb_mc != undefined) {
_local2 = _local2 + this.hsb_mc._height;
}
this.setSize(this.width, _local2);
return(true);
};
FTreeClass.prototype.setFirstVisibleNode = function (node) {
if (node.isOnOpenBranch()) {
this.setScrollPosition(node.uiIndex);
}
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
if (this.enable) {
pos = Math.min(pos, super.getLength() - super.numDisplayed);
pos = Math.max(pos, 0);
this.sb_mc.setScrollPosition(pos);
}
};
FTreeClass.prototype.setSelectedNode = function (node) {
this.clearSelected();
this.selectNode(node, true);
};
FTreeClass.prototype.setSelectedNodes = function (nodesArray) {
this.clearSelected();
var _local2 = 0;
while (_local2 < nodesArray.length) {
this.selectNode(nodesArray[_local2], true);
_local2++;
}
};
FTreeClass.prototype.setSelectStyle = function (selectStyle) {
this.clearSelected();
this.selectStyle = selectStyle;
return(true);
};
FTreeClass.prototype.setSize = function (w, h) {
if (!this.enable) {
return(undefined);
}
w = Math.max(w, 20);
this.height = Math.max(h, 40);
this.setNumDisplayed();
var _local4 = this.numDisplayed;
this.adjNDForHScroll();
this.height = (_local4 * (this.itmHgt - 2)) + 2;
if (this.container_mc != undefined) {
this.container_mc.removeMovieClip();
}
this.createEmptyMovieClip("container_mc" + this.mcCount, this.mcCount - 2);
this.container_mc = this["container_mc" + this.mcCount];
this.mask_mc.removeMovieClip();
this.attachMovie("FBoundingBoxSymbol", "mask_mc", this.mcCount - 1);
this.mask_mc._width = w;
this.mask_mc._height = h;
this.container_mc.setMask(this.mask_mc);
super.setSize(w, this.height);
};
FTreeClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if ((propName != "embedFonts") && ((propName.subString(0, 4) != "text") || (((((propName == "textColor") || (propName == "textDisabled")) || (propName == "textFont")) || (propName == "textSelected")) || (propName == "textSize")))) {
if ((propName == "textFont") && (value == undefined)) {
value = "FTreeDefaultFont";
}
super.setStyleProperty(propName, value, isGlobal);
}
if (this.drawConnectors_bool || (this.expanderSymbolName == undefined)) {
this.refresh();
}
};
FTreeClass.prototype.setWidth = function (w) {
this.setSize(w, this.height);
};
FTreeClass.prototype.getSelectedItem = function () {
for (var _local2 in this.selected) {
return(this.selected[_local2]);
}
return(null);
};
FTreeClass.prototype.getSelectedItems = function () {
var _local2 = new Array();
for (var _local3 in this.selected) {
_local2.push(this.selected[_local3]);
}
return(((_local2.length > 0) ? (_local2) : null));
};
FTreeClass.prototype.getSelectedIndex = function () {
var _local2 = this.getSelectedItem();
if (_local2 != null) {
return(_local2.uiIndex);
}
return(null);
};
FTreeClass.prototype.selectItem = function (index, selectedFlag) {
this.selectNode(this.getItemAt(index), selectedFlag);
};
FTreeClass.prototype.selectNode = function (node, selectedFlag) {
node.isSelected = selectedFlag;
if (selectedFlag) {
this.selected[String(node.__ID__)] = node;
} else {
delete this.selected[String(node.__ID__)];
}
if (this.isNodeVisble(node)) {
node.ui.drawItem(node, node.isSelected);
}
};
FTreeClass.prototype.isSelected = function (index) {
return(this.getItemAt(index).isSelected);
};
FTreeClass.prototype.clearSelected = function () {
for (var _local2 in this.selected) {
this.selected[_local2].isSelected = false;
if (this.isNodeVisble(this.selected[_local2])) {
this.selected[_local2].ui.drawItem(this.selected[_local2], false);
}
}
delete this.selected;
this.selected = new Array();
};
FTreeClass.prototype.removeSelectedAncestors = function (node) {
for (var _local2 in this.selected) {
if (node.isAncestor(this.selected[_local2])) {
delete this.selected[_local2];
}
}
};
FTreeClass.prototype.modelChanged = function (eventObj) {
if (eventObj.event == "newRoot") {
this.topDisplayed = 0;
}
this.invalidate("updateControl");
};
FTreeClass.prototype.isNodeVisble = function (node) {
var _local3 = this;
return((((node != null) && (node.isOnOpenBranch())) && (node.uiIndex >= this.topDisplayed)) && (node.uiIndex < (this.topDisplayed + this.numDisplayed)));
};
FTreeClass.prototype.moveSelBy = function (incr) {
var _local3 = this.getSelectedNode();
if ((_local3 != null) && (_local3.isOnOpenBranch())) {
super.moveSelBy(incr);
}
this.executeCallBack();
};
FTreeClass.prototype.selectionHandler = function (itemnum) {
var _local4 = this.topDisplayed + itemnum;
if (this.getItemAt(_local4) == undefined) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
if (((this.selectStyle == "single") && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
this.clearSelected();
this.selectItem(_local4, true);
this.lastSelected = _local4;
this.container_mc[("fListItem" + itemnum) + "_mc"].drawItem(this.getItemAt(_local4), this.isSelected(_local4));
} else if (Key.isDown(16) && (this.selectStyle == "multiple")) {
if (this.lastSelected == -1) {
this.lastSelected = _local4;
}
var _local5 = ((this.lastSelected < _local4) ? 1 : -1);
this.clearSelected();
var _local2 = this.lastSelected;
while (_local2 != _local4) {
this.selectItem(_local2, true);
var _local3 = this.getItemAt(_local2);
if (this.isNodeVisble(_local3)) {
this.container_mc[("fListItem" + (_local2 - this.topDisplayed)) + "_mc"].drawItem(_local3, _local3.isSelected);
}
_local2 = _local2 + _local5;
}
this.selectItem(_local4, true);
this.container_mc[("fListItem" + (_local4 - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(_local4), this.isSelected(_local4));
} else if (key.isDown(17)) {
var _local7 = this.isSelected(_local4);
if (this.selectStyle == "single") {
this.clearSelected();
}
if ((this.selectStyle == "multiple") || (!_local7)) {
this.selectItem(_local4, !_local7);
this.container_mc[("fListItem" + itemnum) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + itemnum), this.isSelected(this.topDisplayed + itemnum));
}
this.lastSelected = _local4;
}
};
FTreeClass.prototype.updateControl = function (skipInitSB) {
if (this.getLength() <= this.numDisplayed) {
this.topDisplayed = 0;
}
var _local2 = 0;
while (_local2 < this.numDisplayed) {
this.container_mc[("fListItem" + _local2) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + _local2), this.isSelected(this.topDisplayed + _local2));
_local2++;
}
if ((skipInitSB == undefined) || ((this.hsb_mc == undefined) && (this.needHS()))) {
this.initScrollBar();
}
};
FTreeClass.prototype.needHS = function () {
var _local2 = ((this.sb_mc != undefined) ? (this.sb_mc._width) : 0);
return(this.getTreeWidth() > (this.width - _local2));
};
FTreeClass.prototype.initScrollBar = function () {
var _local2 = true;
var _local3 = true;
if ((!this.permaScrollBar) && (this.getLength() <= this.numDisplayed)) {
this.sb_mc.removeMovieClip();
this.sb_mc = undefined;
this.scrollOffset = undefined;
_local2 = false;
this.mask_mc._width = this.width;
}
if ((!this.permaScrollBar) && (!this.needHS())) {
if (this.hsb_mc != undefined) {
this.hsb_mc.removeMovieClip();
this.hsb_mc = undefined;
this.setSize(this.width, this.height);
}
this.hScrollOffset = 0;
_local3 = false;
}
if (_local3 || (_local2)) {
if (this.sbc_mc == undefined) {
this.mcCount = this.mcCount + 3;
this.createEmptyMovieClip("sbc_mc" + this.mcCount, this.mcCount);
this.sbc_mc = this["sbc_mc" + this.mcCount];
}
if (_local2 && (this.sb_mc == undefined)) {
this.attachVSBar();
}
if (_local3 && (this.hsb_mc == undefined)) {
this.sbc_mc.attachMovie("FScrollBarSymbol", "hsb_mc", 2, {hostStyle:this.styleTable});
this.hsb_mc = this.sbc_mc.hsb_mc;
this.hsb_mc.setHorizontal(true);
this.hsb_mc.setChangeHandler("hScrollHandler", this);
this.setNumDisplayed();
this.adjNDForHScroll();
if ((this.sb_mc == undefined) && (this.getLength() > this.numDisplayed)) {
this.attachVSBar();
_local2 = true;
}
}
if (_local2) {
var _local7 = ((this.hsb_mc != null) ? (this.hsb_mc._height) : 0);
var _local5 = this.height - _local7;
this.sb_mc.setSize(_local5);
this.mask_mc._height = _local5;
this.sb_mc._x = this.width - this.sb_mc._width;
this.sb_mc._y = 0;
this.sb_mc.setLargeScroll(this.numDisplayed - 1);
this.scrollOffset = this.sb_mc._width;
this.sb_mc.setScrollProperties(this.numDisplayed, 0, this.getLength() - this.numDisplayed);
}
if (_local3) {
var _local6 = ((this.sb_mc != undefined) ? (this.sb_mc._width) : 0);
var _local4 = this.width - _local6;
this.mask_mc._width = _local4;
this.hsb_mc.setSize(_local4);
this.hsb_mc._x = 0;
this.hsb_mc._y = this.height - this.hsb_mc._height;
this.hsb_mc.setLargeScroll(this.width);
this.hScrollOffset = this.hsb_mc._width;
this.hsb_mc.setScrollProperties(this.width, 0, this.getTreeWidth() - _local4);
this.hsb_mc.setSmallScroll(5);
}
}
};
FTreeClass.prototype.attachVSBar = function () {
this.sbc_mc.attachMovie("FScrollBarSymbol", "sb_mc", 1, {hostStyle:this.styleTable});
this.sb_mc = this.sbc_mc.sb_mc;
this.sb_mc.setChangeHandler("scrollHandler", this);
};
FTreeClass.prototype.setNumDisplayed = function () {
this.measureItmHgt();
this.numDisplayed = Math.floor(this.height / (this.itmHgt - 2));
};
FTreeClass.prototype.adjNDForHScroll = function () {
if (this.hsb_mc != undefined) {
var _local5 = (this.numDisplayed * this.itmHgt) + this.hsb_mc._height;
if (_local5 > this.height) {
var _local2 = this.hsb_mc._height / this.itmHgt;
if ((_local2 - Math.floor(_local2)) > 0.2) {
_local2 = Math.ceil(_local2);
var _local4 = this.numDisplayed;
this.numDisplayed = this.numDisplayed - _local2;
while ((_local2 > 0) && (this.container_mc != null)) {
var _local3 = _local4 - _local2;
this.container_mc[("fListItem" + _local3) + "_mc"].removeMovieClip();
_local2--;
}
}
}
}
};
FTreeClass.prototype.scrollHandler = function (scrollBar) {
var _local2 = scrollBar.getScrollPosition();
this.topDisplayed = _local2;
if (this.lastPosition != _local2) {
this.updateControl(true);
}
this.lastPosition = _local2;
};
FTreeClass.prototype.resetTreeWidth = function () {
if (this.getRootNode() != null) {
this.treewidth = this.calcWidth(this.getRootNode());
this.fixHLs();
} else {
this.treewidth = 0;
}
this.invalidate("updateControl");
};
FTreeClass.prototype.setTreeWidth = function (w) {
if (w > this.treewidth) {
this.treewidth = w;
this.fixHLs();
this.initScrollBar();
}
};
FTreeClass.prototype.calcWidth = function (node, w) {
if (node.width > w) {
w = node.width;
}
var _local2 = 0;
while (node.isOpen() && (_local2 < node.length)) {
var _local3 = this.calcWidth(node[_local2], w);
if (_local3 > w) {
w = _local3;
}
_local2++;
}
return(w);
};
FTreeClass.prototype.fixHLs = function () {
var _local2 = 0;
var _local3 = Math.max(this.width, this.treewidth);
while (_local2 < this.numDisplayed) {
this.container_mc[("fListItem" + _local2) + "_mc"].highlight_mc._width = _local3;
_local2++;
}
};
FTreeClass.prototype.dblClickSpeed = 400;
FTreeClass.prototype.lastClick = 0;
FTreeClass.prototype.lastClicker = undefined;
FTreeClass.prototype.iconDoubleClick = function () {
if (this.controller.controller.getEnabled()) {
var _local3 = false;
if (this == FTreeClass.prototype.lastClicker) {
if ((new Date().getTime() - FTreeClass.prototype.lastClick) < FTreeClass.prototype.dblClickSpeed) {
if (this.item.isBranch()) {
_local3 = true;
var _local2 = this.item.ui.cn.ex;
_local2[_local2.trigger]();
}
}
}
if (!_local3) {
this.controller.controller.clickHandler(this.controller.itemNum);
}
FTreeClass.prototype.lastClick = new Date().getTime();
FTreeClass.prototype.lastClicker = this;
}
};
FTreeClass.prototype.getTreeWidth = function () {
return(this.treewidth);
};
FTreeClass.prototype.hScrollHandler = function (scrollBar) {
var _local2 = scrollBar.getScrollPosition();
if (this.lastHPosition != _local2) {
this.container_mc._x = -_local2;
}
this.lastHPosition = _local2;
};
FTreeClass.prototype.myOnKeyDown = function () {
if (this.focused) {
if (Key.isDown(32)) {
var _local3 = this.getSelectedNode();
if ((_local3 != null) && (_local3.isBranch())) {
var _local4 = _local3.ui.cn.ex;
_local4[_local4.trigger]();
}
} else {
super.myOnKeyDown();
}
}
};
#endinitclip
Instance of Symbol 2216 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 2231 MovieClip [FTreeSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 2239 Button
on (release) {
if (cost <= _root.player.cash) {
if (_parent.up_type == "PERF") {
_root.BuyPart(this.manf_i, this.upgr_i);
} else if (_parent.up_type == "SND") {
_root.BuySoundPart(this.manf_i, this.upgr_i);
} else if (_parent.up_type == "INT") {
_root.BuyIntPart(this.upgr_i);
}
if (_parent.cpart != "Not Installed Yet") {
_root.prompt("Done", (((_parent.cpart add " Replaced\n with ") add _root[_parent.up_type add "MANU"][_root.car[_root.player.car].UPGRADE[_parent.myTree.getSelectedNode().data.i]].name) add " ") add _root.UPGRADEDESC[_parent.myTree.getSelectedNode().data.i]);
} else {
_root.prompt("Done", ((_root[_parent.up_type add "MANU"][_root.car[_root.player.car].UPGRADE[_parent.myTree.getSelectedNode().data.i]].name add " ") add _root.UPGRADEDESC[_parent.myTree.getSelectedNode().data.i]) add " Installed");
}
var i = 0;
while (i < _root[_parent.up_type add "MANU"].length) {
_parent["ITEM" add i]._visible = false;
i++;
}
} else {
_root.prompt("", "You Can't Afford This!");
}
}
Symbol 2245 MovieClip [PARTSSHOP] Frame 1
function buildTree() {
rootNode = new FTreeNode("Parts Source");
myTree.setRootNode(rootNode);
perfNode = new FTreeNode("Performance Parts");
myTree.addNode(rootNode, perfNode);
soundNode = new FTreeNode("Sound System Parts");
myTree.addNode(rootNode, soundNode);
intNode = new FTreeNode("Interior Parts");
myTree.addNode(rootNode, intNode);
var _local3 = 0;
while (_local3 < _root.PERFUPGRADE.length) {
this["perf_c_" add _local3] = new FTreeNode(_root.PERFUPGRADE[_local3]);
myTree.addNode(perfNode, this["perf_c_" add _local3]);
_local3++;
}
_local3 = 0;
while (_local3 < _root.SNDUPGRADE.length) {
this["snd_c_" add _local3] = new FTreeNode(_root.SNDUPGRADE[_local3]);
myTree.addNode(soundNode, this["snd_c_" add _local3]);
_local3++;
}
_local3 = 0;
while (_local3 < _root.INTUPGRADE.length) {
this["int_c_" add _local3] = new FTreeNode(_root.INTUPGRADE[_local3]);
myTree.addNode(intNode, this["int_c_" add _local3]);
_local3++;
}
_local3 = 0;
while (_local3 < _root.UPGRADELIST.length) {
_root.UPGRADELIST[_local3].upi = _local3;
var _local4 = 0;
while (_local4 < _root.PERFUPGRADE.length) {
if (_root.UPGRADELIST[_local3].type == _root.PERFUPGRADE[_local4]) {
this["perf_i_" add _local3] = new FTreeNode(_root.UPGRADELIST[_local3].name, _root.UPGRADELIST[_local3]);
myTree.addNode(this["perf_c_" add _local4], this["perf_i_" add _local3]);
}
_local4++;
}
_local4 = 0;
while (_local4 < _root.SNDUPGRADE.length) {
if (_root.UPGRADELIST[_local3].type == ("Sound:" add _root.SNDUPGRADE[_local4])) {
this["snd_i_" add _local3] = new FTreeNode(_root.UPGRADELIST[_local3].name, _root.UPGRADELIST[_local3]);
myTree.addNode(this["snd_c_" add _local4], this["snd_i_" add _local3]);
}
_local4++;
}
_local4 = 0;
while (_local4 < _root.INTUPGRADE.length) {
if (_root.UPGRADELIST[_local3].type == ("Interior:" add _root.INTUPGRADE[_local4])) {
this["int_i_" add _local3] = new FTreeNode(_root.UPGRADELIST[_local3].name, _root.UPGRADELIST[_local3]);
myTree.addNode(this["int_c_" add _local4], this["int_i_" add _local3]);
}
_local4++;
}
_local3++;
}
}
function getTreeItem() {
this.ITEM._visible = false;
var _local3 = 1;
while (_local3 < _root.PERFMANU.length) {
this["ITEM" add _local3]._visible = false;
_local3++;
}
partname = myTree.getSelectedNode().data.name;
if (myTree.getSelectedNode().data.type.slice(0, "Sound:".length) == "Sound:") {
up_type = "SND";
} else if (myTree.getSelectedNode().data.type.slice(0, "Interior:".length) == "Interior:") {
up_type = "INT";
} else {
up_type = "PERF";
}
if (partname != undefined) {
if (up_type == "SND") {
PIC.gotoAndStop(myTree.getSelectedNode().data.type.slice("Sound:".length).toLowerCase());
} else {
PIC.gotoAndStop(myTree.getSelectedNode().data.type);
}
if ((_root.car[_root.player.car].UPGRADE[myTree.getSelectedNode().data.pr] > 0) || (_root.car[_root.player.car].UPGRADE[myTree.getSelectedNode().data.pr] == undefined)) {
if (_root.car[_root.player.car].UPGRADE[myTree.getSelectedNode().data.i] > 0) {
_root.prompt("Caution", "Caution! Buying This Part Will Replace your Current One!");
cpart = (_root[up_type add "MANU"][_root.car[_root.player.car].UPGRADE[myTree.getSelectedNode().data.i]].name add " ") add _root.UPGRADEDESC[myTree.getSelectedNode().data.i];
} else {
cpart = "Not Installed Yet";
}
_local3 = 0;
while (_local3 < _root[up_type add "MANU"].length) {
if (_local3 != 0) {
duplicateMovieClip ("ITEM", "ITEM" add _local3, _local3 + 10);
MC = this["ITEM" add _local3];
MC._y = MC._y + (this["ITEM" add _local3]._height * _local3);
} else {
MC = this.ITEM;
}
MC.logo._visible = true;
if (up_type == "SND") {
MC.logo.gotoAndStop(_local3 + 10);
} else if (up_type == "INT") {
MC.logo._visible = false;
} else {
MC.logo.gotoAndStop(_local3 + 1);
}
MC.manf = _root[up_type add "MANU"][_local3].name;
MC.manf_i = _local3;
MC.upgr_i = myTree.getSelectedNode().data.upi;
MC.cost = _root.UPGRADELIST[MC.upgr_i].cost * _root[up_type add "MANU"][MC.manf_i].c;
if (((myTree.getSelectedNode().data.i >= 31) && (myTree.getSelectedNode().data.i < 36)) && (_root.car[_root.player.car].UPGRADE[myTree.getSelectedNode().data.i] > 0)) {
MC._visible = false;
} else if (_local3 != _root.car[_root.player.car].UPGRADE[myTree.getSelectedNode().data.i]) {
MC._visible = true;
} else {
MC._visible = false;
}
if (_root[up_type add "MANU"][_local3].pr > _root.player.slevel) {
MC._visible = false;
}
_local3++;
}
} else {
_root.prompt("Oops!", ("This is not Available Yet!\n" + _root.UPGRADEDESC[myTree.getSelectedNode().data.pr]) + " Must Be Purchased!");
_local3 = 0;
while (_local3 < _root.PERFMANU.length) {
MC = this["ITEM" add _local3];
MC._visible = false;
_local3++;
}
}
}
}
myTree.setStyleProperty("darkshadow", 0);
myTree.setStyleProperty("textColor", 0);
myTree.setStyleProperty("textSelected", 16777215);
myTree.setAutoHideScrollBar(true);
myTree.setChangeHandler("getTreeItem");
this.ITEM._visible = false;
buildTree();
Instance of Symbol 2231 MovieClip [FTreeSymbol] "myTree" in Symbol 2245 MovieClip [PARTSSHOP] Frame 1
//component parameters
onClipEvent (initialize) {
selectStyle = "single";
expandNodeTrigger = "press";
changeHandler = "";
}
Symbol 2250 Button
on (release) {
this.removeMovieClip();
}
Symbol 2309 MovieClip [BRAND_DESC] Frame 1
stop();
Symbol 2369 MovieClip [LOADGAME] Frame 1
_root.stop();
LOADBAR._xscale = 0;
status = status + "\nLoading Player...";
_root.LoadPlayer(_root.filecontent, _root.player);
status = status + "Complete\n";
c = 0;
max = _root.player.carnum;
status = status + "Loading Cars : ";
Symbol 2369 MovieClip [LOADGAME] Frame 6
play();
if (c >= max) {
_root.play();
this.removeMovieClip();
}
LOADBAR._width = (c / max) * 600;
_root.LoadCar(_root.filecontent, _root.car, _root.player, c);
status = status + (c add " ");
c++;
Symbol 2369 MovieClip [LOADGAME] Frame 7
prevFrame();
Symbol 2586 MovieClip Frame 1
stop();
Symbol 2613 MovieClip Frame 1
stop();
Symbol 2624 MovieClip [FComboBoxItemSymbol] Frame 1
#initclip 56
function FComboBoxItemClass() {
this.init();
}
FComboBoxItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FComboBoxItemSymbol", FComboBoxItemClass);
FComboBoxItemClass.prototype.setSize = function (w, h) {
super.setSize(w, h);
this.highlight_mc.onRollOver = function () {
this.controller.controller.selectionHandler(this.controller.itemNum);
};
};
#endinitclip
Symbol 2627 MovieClip [FComboBoxSymbol] Frame 1
#initclip 55
function FComboBoxClass() {
_global._popUpLevel = ((_global._popUpLevel == undefined) ? 20000 : (_global._popUpLevel + 1));
this.superHolder = _root.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
var _local5 = this.superHolder.createEmptyMovieClip("testCont", 20000);
var _local6 = _local5.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
if (_local6._name == undefined) {
this.superHolder.removeMovieClip();
this.superHolder = this._parent.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
} else {
_local5.removeMovieClip();
}
if (this.rowCount == undefined) {
this.rowCount = 8;
this.editable = false;
}
this.itemSymbol = "FComboBoxItemSymbol";
this.init();
this.permaScrollBar = false;
this.proxyBox_mc.gotoAndStop(1);
this.width = this._width;
this.height = (this.proxyBox_mc._height * this._yscale) / 100;
var _local4 = 0;
while (_local4 < this.labels.length) {
this.addItem(this.labels[_local4], this.data[_local4]);
_local4++;
}
this.lastSelected = 0;
this.selectItem(0);
this._xscale = (this._yscale = 100);
this.opened = false;
this.setSize(this.width);
this.highlightTop(false);
if (this.changeHandler.length > 0) {
this.setChangeHandler(this.changeHandler);
}
this.onUnload = function () {
this.superHolder.removeMovieClip();
};
this.setSelectedIndex(0, false);
this.value = "";
this.focusEnabled = true;
this.changeFlag = false;
}
FComboBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FComboBoxSymbol", FComboBoxClass);
FComboBoxClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
var _local3 = eventObj.event;
if ((_local3 == "addRows") || (_local3 == "deleteRows")) {
var _local6 = (eventObj.lastRow - eventObj.firstRow) + 1;
var _local7 = ((_local3 == "addRows") ? 1 : -1);
var _local4 = this.getLength();
var _local8 = _local4 - (_local7 * _local6);
if ((this.rowCount > _local8) || (this.rowCount > _local4)) {
this.invalidate("setSize");
}
if (this.getSelectedIndex() == undefined) {
this.setSelectedIndex(0, false);
}
} else if (_local3 == "updateAll") {
this.invalidate("setSize");
}
};
FComboBoxClass.prototype.removeAll = function () {
if (!this.enable) {
return(undefined);
}
super.removeAll();
if (this.editable) {
this.value = "";
}
this.invalidate("setSize");
};
FComboBoxClass.prototype.setSize = function (w) {
if ((((w == undefined) || (typeof(w) != "number")) || (w <= 0)) || (!this.enable)) {
return(undefined);
}
this.proxyBox_mc._width = w;
this.container_mc.removeMovieClip();
this.measureItmHgt();
this.container_mc = this.superHolder.createEmptyMovieClip("container", 3);
this.container_mc.tabChildren = false;
this.setPopUpLocation(this.container_mc);
this.container_mc.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
this.boundingBox_mc = this.container_mc.boundingBox_mc;
this.boundingBox_mc.component = this;
this.registerSkinElement(this.boundingBox_mc.boundingBox, "background");
this.proxyBox_mc._height = this.itmHgt;
this.numDisplayed = Math.min(this.rowCount, this.getLength());
if (this.numDisplayed < 3) {
this.numDisplayed = Math.min(3, this.getLength());
}
this.height = (this.numDisplayed * (this.itmHgt - 2)) + 2;
super.setSize(w, this.height);
this.attachMovie("DownArrow", "downArrow", 10);
this.downArrow._y = 0;
this.downArrow._width = this.itmHgt;
this.downArrow._height = this.itmHgt;
this.downArrow._x = this.proxyBox_mc._width - this.downArrow._width;
this.setEditable(this.editable);
this.container_mc._visible = this.opened;
this.highlightTop(false);
this.fader = this.superHolder.attachMovie("FBoundingBoxSymbol", "faderX", 4);
this.registerSkinElement(this.fader.boundingBox, "background");
this.fader._width = this.width;
this.fader._height = this.height;
this.fader._visible = false;
};
FComboBoxClass.prototype.setDataProvider = function (dp) {
super.setDataProvider(dp);
this.invalidate("setSize");
this.setSelectedIndex(0);
};
FComboBoxClass.prototype.getValue = function () {
if (this.editable) {
return(this.fLabel_mc.getLabel());
}
return(super.getValue());
};
FComboBoxClass.prototype.getRowCount = function () {
return(this.rowCount);
};
FComboBoxClass.prototype.setRowCount = function (count) {
this.rowCount = ((this.getLength() > count) ? (Math.max(count, 3)) : (count));
this.setSize(this.width);
var _local2 = this.getLength();
if ((_local2 - this.getScrollPosition()) < this.rowCount) {
this.setScrollPosition(_local2 - Math.min(this.rowCount, _local2));
this.invalidate("updateControl");
}
};
FComboBoxClass.prototype.setEditable = function (editableFlag) {
if (!this.enable) {
return(undefined);
}
this.editable = editableFlag;
if (!this.editable) {
this.onPress = this.pressHandler;
this.useHandCursor = false;
this.trackAsMenu = true;
this.attachMovie("FComboBoxItemSymbol", "fLabel_mc", 5, {controller:this, itemNum:-1});
this.fLabel_mc.onRollOver = undefined;
this.fLabel_mc.setSize((this.width - this.itmHgt) + 1, this.itmHgt);
this.topLabel = this.getSelectedItem();
this.fLabel_mc.drawItem(this.topLabel, false);
this.highlightTop(false);
} else {
this.attachMovie("FLabelSymbol", "fLabel_mc", 5);
this.fLabel_txt = this.fLabel_mc.labelField;
this.fLabel_txt.type = "input";
this.fLabel_txt._x = 4;
this.fLabel_txt.onSetFocus = this.onLabelFocus;
this.fLabel_mc.setSize((this.width - this.itmHgt) - 3);
delete this.onPress;
this.fLabel_txt.onKillFocus = function () {
this._parent._parent.myOnKillFocus();
};
this.fLabel_mc.setLabel(this.value);
this.fLabel_txt.onChanged = function () {
this._parent._parent.findInputText();
};
this.downArrow.onPress = this.buttonPressHandler;
this.downArrow.useHandCursor = false;
this.downArrow.trackAsMenu = true;
}
};
FComboBoxClass.prototype.setEnabled = function (enabledFlag) {
enabledFlag = (((enabledFlag == undefined) || (typeof(enabledFlag) != "boolean")) ? true : (enabledFlag));
super.setEnabled(enabledFlag);
this.registerSkinElement(this.boundingBox_mc.boundingBox, "background");
this.proxyBox_mc.gotoAndStop((this.enable ? "enabled" : "disabled"));
this.downArrow.gotoAndStop((this.enable ? 1 : 3));
if (this.editable) {
this.fLabel_txt.type = (enabledFlag ? "input" : "dynamic");
this.fLabel_txt.selectable = enabledFlag;
} else if (enabledFlag) {
this.fLabel_mc.drawItem(this.topLabel, false);
this.setSelectedIndex(this.getSelectedIndex(), false);
}
this.fLabel_mc.setEnabled(this.enable);
this.fLabel_txt.onSetFocus = (enabledFlag ? (this.onLabelFocus) : undefined);
};
FComboBoxClass.prototype.setSelectedIndex = function (index, flag) {
super.setSelectedIndex(index, flag);
if (!this.editable) {
this.topLabel = this.getSelectedItem();
this.fLabel_mc.drawItem(this.topLabel, false);
} else {
this.value = ((flag != undefined) ? "" : (this.getSelectedItem().label));
this.fLabel_mc.setLabel(this.value);
}
this.invalidate("updateControl");
};
FComboBoxClass.prototype.setValue = function (value) {
if (this.editable) {
this.fLabel_mc.setLabel(value);
this.value = value;
}
};
FComboBoxClass.prototype.pressHandler = function () {
this.focusRect.removeMovieClip();
if (this.enable) {
if (!this.opened) {
this.onMouseUp = this.releaseHandler;
} else {
this.onMouseUp = undefined;
}
this.changeFlag = false;
if (!this.focused) {
this.pressFocus();
this.clickFilter = (this.editable ? false : true);
}
if (!this.clickFilter) {
this.openOrClose(!this.opened);
} else {
this.clickFilter = false;
}
}
};
FComboBoxClass.prototype.clickHandler = function (itmNum) {
if (!this.focused) {
if (this.editable) {
this.fLabel_txt.onKillFocus = undefined;
}
this.pressFocus();
}
super.clickHandler(itmNum);
this.selectionHandler(itmNum);
this.onMouseUp = this.releaseHandler;
};
FComboBoxClass.prototype.highlightTop = function (flag) {
if (!this.editable) {
this.fLabel_mc.drawItem(this.topLabel, flag);
}
};
FComboBoxClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
this.fLabel_mc.highlight_mc.gotoAndStop("enabled");
this.highlightTop(true);
};
FComboBoxClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this._height + 4);
};
FComboBoxClass.prototype.myOnKillFocus = function () {
if (Selection.getFocus().indexOf("labelField") != -1) {
return(undefined);
}
super.myOnKillFocus();
delete this.fLabel_txt.onKeyDown;
this.openOrClose(false);
this.highlightTop(false);
};
FComboBoxClass.prototype.setPopUpLocation = function (mcRef) {
mcRef._x = this._x;
var _local2 = {x:this._x, y:this._y + this.proxyBox_mc._height};
this._parent.localToGlobal(_local2);
mcRef._parent.globalToLocal(_local2);
mcRef._x = _local2.x;
mcRef._y = _local2.y;
if ((this.height + mcRef._y) >= Stage.height) {
this.upward = true;
mcRef._y = (_local2.y - this.height) - this.proxyBox_mc._height;
} else {
this.upward = false;
}
};
FComboBoxClass.prototype.openOrClose = function (flag) {
if (this.getLength() == 0) {
return(undefined);
}
this.setPopUpLocation(this.container_mc);
if ((this.lastSelected != -1) && ((this.lastSelected < this.topDisplayed) || (this.lastSelected > (this.topDisplayed + this.numDisplayed)))) {
super.moveSelBy(this.lastSelected - this.getSelectedIndex());
}
if (!flag) {
(this.downArrow.gotoAndStop(1));// not popped
} else {
(this.downArrow.gotoAndStop(2));// not popped
}
if (flag == this.opened) {
return(undefined);
}
this.highlightTop(!flag);
this.fadeRate = this.styleTable.popUpFade.value;
if (((!flag) || (this.fadeRate == undefined)) || (this.fadeRate == 0)) {
this.opened = (this.container_mc._visible = flag);
return(undefined);
}
this.setPopUpLocation(this.fader);
this.time = 0;
this.const = 85 / Math.sqrt(this.fadeRate);
this.fader._alpha = 85;
this.container_mc._visible = (this.fader._visible = true);
this.onEnterFrame = function () {
this.fader._alpha = 100 - ((this.const * Math.sqrt(++this.time)) + 15);
if (this.time >= this.fadeRate) {
this.fader._visible = false;
delete this.onEnterFrame;
this.opened = true;
}
};
};
FComboBoxClass.prototype.fireChange = function () {
this.lastSelected = this.getSelectedIndex();
if (!this.editable) {
this.topLabel = this.getSelectedItem();
this.fLabel_mc.drawItem(this.topLabel, true);
} else {
this.value = this.getSelectedItem().label;
this.fLabel_mc.setLabel(this.value);
}
this.executeCallback();
};
FComboBoxClass.prototype.releaseHandler = function () {
var _local3 = this.boundingBox_mc.hitTest(_root._xmouse, _root._ymouse);
if (this.changeFlag) {
if (_local3) {
this.fireChange();
}
this.openOrClose(!this.opened);
} else if (_local3) {
this.openOrClose(false);
} else {
this.onMouseDown = function () {
if ((!this.boundingBox_mc.hitTest(_root._xmouse, _root._ymouse)) && (!this.hitTest(_root._xmouse, _root._ymouse))) {
this.onMouseDown = undefined;
this.openOrClose(false);
}
};
}
this.changeFlag = false;
this.onMouseUp = undefined;
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
};
FComboBoxClass.prototype.moveSelBy = function (itemNum) {
if (itemNum != 0) {
super.moveSelBy(itemNum);
if (this.editable) {
this.setValue(this.getSelectedItem().label);
}
if (!this.opened) {
if (this.changeFlag && (!this.isSelected(this.lastSelected))) {
this.fireChange();
}
}
}
};
FComboBoxClass.prototype.myOnKeyDown = function () {
if (!this.focused) {
return(undefined);
}
if (this.editable && (Key.isDown(13))) {
this.setValue(this.fLabel_mc.getLabel());
this.executeCallback();
this.openOrClose(false);
} else if ((Key.isDown(13) || (Key.isDown(32) && (!this.editable))) && (this.opened)) {
if (this.getSelectedIndex() != this.lastSelected) {
this.fireChange();
}
this.openOrClose(false);
this.fLabel_txt.hscroll = 0;
}
super.myOnKeyDown();
};
FComboBoxClass.prototype.findInputText = function () {
if (!this.editable) {
super.findInputText();
}
};
FComboBoxClass.prototype.onLabelFocus = function () {
this._parent._parent.tabFocused = false;
this._parent._parent.focused = true;
this.onKeyDown = function () {
this._parent._parent.myOnKeyDown();
};
Key.addListener(this);
};
FComboBoxClass.prototype.buttonPressHandler = function () {
this._parent.pressHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 846 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 2627 MovieClip [FComboBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 2630 Button
on (release) {
_root.Buy(cost);
Setup();
play();
}
Symbol 2646 MovieClip [CARSHOW] Frame 1
function Setup() {
peds = 0;
quotes = new Array();
time = 100;
credits = 0;
if (speed_rat > ext_rat) {
if (speed_rat > int_rat) {
if (speed_rat > snd_rat) {
cartype = "speed";
}
}
}
if (ext_rat > speed_rat) {
if (ext_rat > int_rat) {
if (ext_rat > snd_rat) {
cartype = "exterior";
}
}
}
if (int_rat > ext_rat) {
if (int_rat > speed_rat) {
if (int_rat > snd_rat) {
cartype = "interior";
}
}
}
if (snd_rat > ext_rat) {
if (snd_rat > int_rat) {
if (snd_rat > speed_rat) {
cartype = "sound";
}
}
}
trace(cartype);
att = LOCATIONVAL[LOCATION.getSelectedItem().data].att;
if ((cartype != "speed") && (LOCATION.getSelectedItem().data == 1)) {
att = 0.1;
flag = "location";
}
if ((cartype != "sound") && (LOCATION.getSelectedItem().data == 2)) {
att = 0.1;
flag = "location";
}
if ((cartype != "interior") && (LOCATION.getSelectedItem().data == 2)) {
att = 0.1;
flag = "location";
}
if (flag == "location") {
quotes.push("\"What's this car doing here?\"");
}
if (speed_rat > 40) {
quotes.push("\"Gotta Love the Fast Cars!\"");
}
if (snd_rat > 40) {
quotes.push("\"That Ride is OFF DA BOOKS!\"");
}
if (int_rat > 40) {
quotes.push("\"That Ride is P.I.M.P\"");
}
if (int_rat > 40) {
quotes.push("\"It shoulda been in 2F2F!\"");
}
if ((speed_rat / ext_rat) > 2) {
quotes.push("\"Atleast it's not a Ricer, But It Looks Stock\"");
}
if ((ext_rat / speed_rat) > 2) {
quotes.push("\"RIIIIIICCCCCEEEERRRRR!\"");
quotes.push("\"You gotta put more into the engine!\"");
}
pedsper = Math.round(((max_visit * att) * ((Math.random() * 0.5) + 0.5)) / 10000);
trace(pedsper);
tipper = Math.ceil(ovr_rat / 10);
}
function onChange(obj) {
sel_music = MUSIC.getSelectedItem().data;
sel_bg = BKDRP.getSelectedItem().data;
cost = LOCATIONVAL[LOCATION.getSelectedItem().data].cost;
BACKDROP.gotoAndStop(sel_bg + 1);
}
_root.BuildCar(plycar, this._name, "VIEWCAR");
VIEWCAR._xscale = 80;
VIEWCAR._yscale = 80;
MUSICVAL = new Array();
MUSICVAL.push("Rock");
MUSICVAL.push("Classic Rock");
MUSICVAL.push("Hard Rock");
MUSICVAL.push("Pop");
MUSICVAL.push("Hip Hop");
MUSICVAL.push("Rap");
BACKDROPVAL = new Array();
BACKDROPVAL.push("Speed");
BACKDROPVAL.push("Graffiti");
BACKDROPVAL.push("Skyline");
BACKDROPVAL.push("Cityscape");
BACKDROPVAL.push("Muscle");
BACKDROPVAL.push("Money");
BACKDROPVAL.push("Cash");
BACKDROPVAL.push("Base");
LOCATIONVAL = new Array();
LOCATIONVAL.push({name:"Outskirts (0 Cr)", cost:0, att:0.05});
LOCATIONVAL.push({name:"Hi-Rev Tuners Section (100 Cr)", cost:100, att:0.3});
LOCATIONVAL.push({name:"'Pump It UP!' Section (100 Cr)", cost:100, att:0.3});
LOCATIONVAL.push({name:"Luxury Section (200 Cr)", cost:200, att:0.3});
LOCATIONVAL.push({name:"Food Court (200 Cr)", cost:200, att:0.3});
LOCATIONVAL.push({name:"Main Floor (500 Cr)", cost:500, att:0.4});
LOCATIONVAL.push({name:"Front Entrance (1000 Cr)", cost:1000, att:0.5});
var i = 0;
while (i < MUSICVAL.length) {
MUSIC.addItem(MUSICVAL[i], i);
i++;
}
var i = 0;
while (i < LOCATIONVAL.length) {
LOCATION.addItem(LOCATIONVAL[i].name, i);
i++;
}
var i = 0;
while (i < BACKDROPVAL.length) {
BKDRP.addItem(BACKDROPVAL[i], i);
i++;
}
MUSIC.setChangeHandler("onChange");
BKDRP.setChangeHandler("onChange");
max_visit = 1000000 + Math.round(Math.random() * 2000000);
visitors = (((Math.floor(max_visit / 1000000) + ",") + Math.floor((max_visit % 1000000) / 1000)) + ",") + (max_visit % 1000);
speed_rat = Math.round(((plycar.HP + plycar.TQ) / 2000) * SPEED._totalframes);
if (speed_rat > SPEED._totalframes) {
speed_rat = SPEED._totalframes;
}
SPEED.gotoAndStop(speed_rat);
ext_rat = 0;
var i = 0;
while (i < _root.ATTRIB.length) {
if (plycar[_root.ATTRIB[i]] != 1) {
ext_rat++;
}
i++;
}
ext_rat = ext_rat + Math.pow(_root[plycar.NAME].CLASS - 1, 2);
if (ext_rat > _root.ATTRIB.length) {
ext_rat = _root.ATTRIB.length;
}
int_rat = 0;
var i = 60;
while (i < 67) {
if (plycar.UPGRADE[i] > 0) {
int_rat++;
}
i++;
}
snd_rat = 1;
var i = 40;
while (i < 60) {
if (plycar.UPGRADE[i] != undefined) {
snd_rat = snd_rat + plycar.UPGRADE[i];
trace("+");
}
i++;
}
trace(snd_rat);
if (speed_rat > 25) {
if (plycar._interior > 2) {
int_rat = int_rat + 7;
}
} else {
if (plycar._interior == 2) {
int_rat = int_rat + 6;
}
if (plycar.UPGRADE[63] == 8) {
int_rat = int_rat + 1;
}
}
int_rat = Math.round((int_rat / 14) * (EXTERIOR._totalframes - 1)) + 1;
ext_rat = Math.round((ext_rat / _root.ATTRIB.length) * EXTERIOR._totalframes);
snd_rat = Math.min(snd_rat, 50);
INTERIOR.gotoAndStop(int_rat);
EXTERIOR.gotoAndStop(ext_rat);
SOUND.gotoAndStop(snd_rat);
ovr_rat = Math.min(Math.round(((((Math.max(speed_rat, snd_rat) * 0.2) + (Math.max(int_rat, ext_rat) * 0.2)) + (Math.max(speed_rat, int_rat) * 0.2)) + (Math.max(ext_rat, snd_rat) * 0.2)) + (Math.max(speed_rat, ext_rat) * 0.2)), 50);
OVERALL.gotoAndStop(ovr_rat);
stop();
Instance of Symbol 2627 MovieClip [FComboBoxSymbol] "MUSIC" in Symbol 2646 MovieClip [CARSHOW] Frame 1
//component parameters
onClipEvent (initialize) {
editable = false;
rowCount = 8;
changeHandler = "";
}
Instance of Symbol 2627 MovieClip [FComboBoxSymbol] "BKDRP" in Symbol 2646 MovieClip [CARSHOW] Frame 1
//component parameters
onClipEvent (initialize) {
editable = false;
rowCount = 8;
changeHandler = "";
}
Instance of Symbol 2627 MovieClip [FComboBoxSymbol] "LOCATION" in Symbol 2646 MovieClip [CARSHOW] Frame 1
//component parameters
onClipEvent (initialize) {
editable = false;
rowCount = 8;
changeHandler = "";
}
Symbol 2646 MovieClip [CARSHOW] Frame 2
time--;
if (time < 0) {
gotoAndPlay (19);
}
var i = 0;
while (i < pedsper) {
if (Math.random() < 0.1) {
credits = credits + tipper;
}
peds = peds + pedsper;
i++;
}
Symbol 2646 MovieClip [CARSHOW] Frame 18
gotoAndPlay (2);
Symbol 2646 MovieClip [CARSHOW] Frame 19
var i = 0;
while (i < quotes.length) {
this["q" add (i + 1)] = quotes[i];
i++;
}
_root.Buy(-credits);
stop();
Symbol 2698 Button
on (release) {
_root.TextForm.textColor = "blue";
}
Symbol 2699 Button
on (release) {
_root.TextForm.textColor = "cyan";
}
Symbol 2700 Button
on (release) {
_root.TextForm.textColor = "purple";
}
Symbol 2701 Button
on (release) {
_root.TextForm.textColor = "black";
}
Symbol 2702 Button
on (release) {
_root.TextForm.textColor = "green";
}
Symbol 2703 Button
on (release) {
_root.TextForm.textColor = "orange";
}
Symbol 2704 Button
on (release) {
_root.TextForm.textColor = "red";
}
Symbol 2705 Button
on (release) {
_root.TextForm.textColor = "grey";
}
Symbol 2706 Button
on (release) {
_root.TextForm.textColor = "yellow";
}
Symbol 2710 Button
on (release) {
_root.TextForm.style = "b";
}
Symbol 2714 Button
on (release) {
_root.TextForm.style = "i";
}
Symbol 2718 Button
on (release) {
_root.TextForm.style = "r";
}
Symbol 2737 Button
on (release) {
DATA = new LoadVars();
DATA.onLoad = Login_Complete;
DATA.load((((((((((((((((("http://www.dragraceronline.net/PHP/users_update.php?id=" + id) + "&alias=") + alias) + "&pw=") + password) + "&email=") + email) + "&wins=") + wins) + "&losses=") + losses) + "&team=") + team) + "&type=") + type) + "&drc=") + drc);
this.removeMovieClip();
}
Symbol 2742 MovieClip [MyAccount] Frame 1
function Login_Complete() {
for (i in DATA) {
trace((i + " = ") + DATA[i]);
}
if (DATA.result == "pass") {
msg = "Data Loaded";
} else {
msg = DATA.result;
}
for (i in _root.Account) {
this[i] = _root.Account[i];
}
if (this.type > 0) {
TEXT._visible = true;
} else {
TEXT._visible = false;
}
}
TEXT._visible = false;
for (i in _root.Account) {
this[i] = _root.Account[i];
}
acctype = _root.Types[type];
record = ((wins + "W - ") + losses) + "L";
stop();
Symbol 3066 MovieClip [TSX] Frame 1
if (img != undefined) {
IMAGE.loadScrollContent(img);
} else {
IMAGE._visible = false;
}
stop();
Symbol 3067 Button
on (release) {
_root.ConstructES(ip, port);
}
Symbol 3075 Button
on (release) {
_root.filecontent = "";
_root.filename = _root.savedir add name;
fscommand ("flashstudio.loadfromfile", "_root.filename,_root.filecontent");
_root.gotoAndPlay("continue2");
}
Symbol 3076 Button
on (release) {
fscommand ("flashstudio.deletefile", ("\"" + name) + "\"");
this._visible = false;
}
Symbol 3288 MovieClip Frame 1
stop();
Symbol 3290 Button
on (release) {
gotoAndStop (2);
}
Symbol 3291 Button
on (release) {
gotoAndStop ("carshowindex");
}
Symbol 3304 MovieClip [ONLINESHOW] Frame 1
stop();
Symbol 3304 MovieClip [ONLINESHOW] Frame 2
function onGetData() {
trace("Data Collected");
trace(php);
name = _root.player.name;
car = _root.car[_root.player.car].FULLNAME;
url = "http://dragraceronline.net/PHP/viewcar.php?id=" + DATA.id;
url = ((("<a href=\"" + url) + "\">") + url) + "</a>";
gotoAndStop ("submitdone");
}
DATA = new LoadVars();
DATA.onLoad = onGetData;
php = (((((("http://dragraceronline.net/PHP/submitcar.php?n=" + _root.player.name) + "&") + _root.EncodeCar(_root.car[_root.player.car])) + "&x=") + _root.car[_root.player.car].FULLNAME) + "&y=") + _root.car[_root.player.car].CLASS;
DATA.load(php);
stop();
Symbol 3309 Button
on (release) {
loadData(php);
}
Symbol 3313 Button
on (release) {
loadData(php + "?c=1");
}
Symbol 3317 Button
on (release) {
loadData(php + "?c=2");
}
Symbol 3321 Button
on (release) {
loadData(php + "?c=3");
}
Symbol 3323 MovieClip Frame 1
function Construct(libMC, maxi, Titles) {
amc = libMC;
this.maxi = maxi;
if (Titles != undefined) {
this.attachMovie(amc, "TITLE", 5);
var _local3 = this.TITLE;
_local3._y = _local3._y - _local3._height;
for (i in Titles) {
_local3[i] = Titles[i];
}
var i = 0;
while (i < 10) {
_local3["btn" add i]._visible = false;
i++;
}
}
this.attachMovie(amc, "ITEM0", 0);
n = 0;
var _local3 = this.ITEM0;
MASK._width = _local3._width;
LIST._width = _local3._width;
MASK._height = maxi * _local3._height;
LIST._height = 0;
MASK._y = 0;
LIST._y = 0;
MASK._alpha = 50;
LIST._visible = false;
this.attachMovie("FADER", "SC", 3);
scr = this.SC;
scr._width = 20;
scr._height = _local3._height * maxi;
scr._x = _local3._width + (scr._width / 2);
scr._y = 0;
scr.knob._y = scr.knob.top;
updateScroll();
ratio = (-(scr.knob.bottom - scr.knob.top)) / (LIST._height - MASK._height);
_local3.removeMovieClip();
Update();
play();
}
function Scroll() {
if (_root.SliderDrag) {
updateScroll();
}
}
function updateScroll() {
ratio = (-(scr.knob.bottom - scr.knob.top)) / (LIST._height - MASK._height);
var _local2 = 0;
while (_local2 <= n) {
var _local3 = this["ITEM" + _local2];
_local3._y = (_local3._height * _local2) + ((scr.knob._y - scr.knob.top) * Math.pow(ratio, -1));
_local2++;
}
Update();
}
function Update() {
var _local3 = 0;
while (_local3 < n) {
var _local2 = this["ITEM" + _local3];
_local2._visible = MASK.hitTest(_local2.CHECK) && (MASK.hitTest(_local2.CHECK2));
_local3++;
}
}
function AddItem(obj) {
this.attachMovie(amc, "ITEM" + n, n + 10);
var _local2 = this["ITEM" + n];
_local2._y = n * _local2._height;
LIST._height = _local2._height * (n + 1);
n++;
for (i in obj) {
_local2[i] = obj[i];
}
_local2.CHECK._visible = false;
_local2.CHECK2._visible = false;
Update();
if (n < maxi) {
scr._visible = false;
} else {
scr._visible = true;
}
}
function remove() {
var _local2 = 0;
while (_local2 < n) {
var _local3 = this["ITEM" + _local2];
_local3.removeMovieClip();
_local2++;
}
n = 0;
Construct(amc, maxi);
}
stop();
Symbol 3323 MovieClip Frame 2
play();
Scroll();
Symbol 3323 MovieClip Frame 3
prevFrame();
Symbol 3325 MovieClip [LADDER] Frame 1
function loadData(url) {
DATA = new LoadVars();
DATA.onLoad = onGetData;
DATA.load(url);
}
function TimeFormat(ms) {
if ((ms % 60) < 10) {
return((Math.floor(ms / 60) add ":0") add (ms % 60));
}
return((Math.floor(ms / 60) add ":") add (ms % 60));
}
function onGetData() {
trace("Data Collected");
count = 0;
LIST.remove();
while (DATA["list" + count] != undefined) {
temp = DATA["list" + count].split(",");
LIST.addItem({n:count + 1, name:temp[1], time:TimeFormat(temp[2]), car:_root[temp[5]].FULLNAME});
count++;
}
}
DATA = new LoadVars();
DATA.onLoad = onGetData;
php = "http://dragraceronline.net/PHP/getladder.php";
DATA.load(php);
Symbol 3325 MovieClip [LADDER] Frame 2
LIST.Construct("LADDEROBJ", 10);
stop();
Symbol 3384 MovieClip [FRadioButtonSymbol] Frame 1
#initclip 47
function FRadioButtonClass() {
this.init();
}
function FRadioButtonGroupClass() {
this.radioInstances = new Array();
}
FRadioButtonClass.prototype = new FUIComponentClass();
FRadioButtonGroupClass.prototype = new FUIComponentClass();
Object.registerClass("FRadioButtonSymbol", FRadioButtonClass);
FRadioButtonClass.prototype.init = function () {
if (this.initialState == undefined) {
this.selected = false;
} else {
this.selected = this.initialState;
}
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.boundingBox_mc._width = 0;
this.boundingBox_mc._height = 0;
this.attachMovie("frb_hitArea", "frb_hitArea_mc", 1);
this.attachMovie("frb_states", "frb_states_mc", 2);
this.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
this.setChangeHandler(this.changeHandler);
if (this.label != undefined) {
this.setLabel(this.label);
}
if (this.initialState == undefined) {
this.setValue(false);
} else {
this.setValue(this.initialState);
}
if (this.data == "") {
this.data = undefined;
} else {
this.setData(this.data);
}
this.addToRadioGroup();
this.ROLE_SYSTEM_RADIOBUTTON = 45;
this.STATE_SYSTEM_SELECTED = 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;
};
FRadioButtonClass.prototype.setHitArea = function (w, h) {
var _local3 = this.frb_hitArea_mc;
this.hitArea = _local3;
if (this.frb_states_mc._width > w) {
_local3._width = this.frb_states_mc._width;
} else {
_local3._width = w;
}
_local3._visible = false;
if (arguments.length > 1) {
_local3._height = h;
}
};
FRadioButtonClass.prototype.txtFormat = function (pos) {
var _local3 = this.textStyle;
var _local4 = this.styleTable;
_local3.align = ((_local4.textAlign.value == undefined) ? ((_local3.align = pos)) : undefined);
_local3.leftMargin = ((_local4.textLeftMargin.value == undefined) ? ((_local3.leftMargin = 0)) : undefined);
_local3.rightMargin = ((_local4.textRightMargin.value == undefined) ? ((_local3.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.setEnabled(this.enable);
};
FRadioButtonClass.prototype.setSize = function (w, h) {
this.setLabel(this.getLabel());
this.setLabelPlacement(this.labelPlacement);
if (this.frb_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);
};
FRadioButtonClass.prototype.setLabelPlacement = function (pos) {
this.setLabel(this.getLabel());
this.txtFormat(pos);
var _local8 = this.fLabel_mc._height / 2;
var _local7 = this.frb_states_mc._height / 2;
var _local5 = _local7 - _local8;
var _local6 = this.frb_states_mc._width;
var _local2 = this.frb_states_mc;
var _local9 = this.fLabel_mc;
var _local3 = this.width - _local2._width;
if (_local2._width > this.width) {
_local3 = 0;
} else {
_local3 = this.width - _local2._width;
}
this.fLabel_mc.setSize(_local3);
if ((pos == "right") || (pos == undefined)) {
this.labelPlacement = "right";
this.frb_states_mc._x = 0;
this.fLabel_mc._x = _local6;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.frb_states_mc._x = this.width - _local6;
this.txtFormat("right");
}
this.fLabel_mc._y = _local5;
this.frb_hitArea_mc._y = _local5;
this.setLabel(this.getLabel());
};
FRadioButtonClass.prototype.setData = function (dataValue) {
this.data = dataValue;
};
FRadioButtonClass.prototype.getData = function () {
return(this.data);
};
FRadioButtonClass.prototype.getState = function () {
return(this.selected);
};
FRadioButtonClass.prototype.getSize = function () {
return(this.width);
};
FRadioButtonClass.prototype.getGroupName = function () {
return(this.groupName);
};
FRadioButtonClass.prototype.setGroupName = function (groupName) {
var _local2 = 0;
while (_local2 < this._parent[this.groupName].radioInstances.length) {
if (this._parent[this.groupName].radioInstances[_local2] == this) {
delete this._parent[this.groupName].radioInstances[_local2];
}
_local2++;
}
this.groupName = groupName;
this.addToRadioGroup();
};
FRadioButtonClass.prototype.addToRadioGroup = function () {
if (this._parent[this.groupName] == undefined) {
this._parent[this.groupName] = new FRadioButtonGroupClass();
}
this._parent[this.groupName].addRadioInstance(this);
};
FRadioButtonClass.prototype.setValue = function (selected) {
if (selected || (selected == undefined)) {
this.setState(true);
this.focusRect.removeMovieClip();
this.executeCallBack();
} else if (selected == false) {
this.setState(false);
}
};
FRadioButtonClass.prototype.setTabState = function (selected) {
Selection.setFocus(this);
this.setState(selected);
this.drawFocusRect();
this.executeCallBack();
};
FRadioButtonClass.prototype.setState = function (selected) {
if (selected || (selected == undefined)) {
this.tabEnabled = true;
for (var _local3 in this._parent) {
if ((this != this._parent[_local3]) && (this._parent[_local3].groupName == this.groupName)) {
this._parent[_local3].setState(false);
this._parent[_local3].tabEnabled = false;
}
}
}
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (selected || (selected == undefined)) {
this.frb_states_mc.gotoAndStop("selectedEnabled");
this.enabled = false;
this.selected = true;
this.tabEnabled = true;
this.tabFocused = true;
} else {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
this.enabled = true;
this.selected = false;
this.tabEnabled = false;
var _local4 = this._parent[this.groupName].getEnabled();
var _local5 = this._parent[this.groupName].getValue() == undefined;
if (_local4 && (_local5)) {
this._parent[this.groupName].radioInstances[0].tabEnabled = true;
}
}
} else {
this.flabel_mc.setEnabled(false);
if (selected || (selected == undefined)) {
this.frb_states_mc.gotoAndStop("selectedDisabled");
this.enabled = false;
this.selected = true;
this.tabEnabled = false;
} else {
this.frb_states_mc.gotoAndStop("unselectedDisabled");
this.enabled = false;
this.selected = false;
this.tabEnabled = false;
}
}
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FRadioButtonClass.prototype.getValue = function () {
if (this.selected) {
if ((this.data == "") || (this.data == undefined)) {
return(this.getLabel());
}
return(this.data);
}
};
FRadioButtonClass.prototype.setEnabled = function (enable) {
if ((enable == true) || (enable == undefined)) {
this.enable = true;
super.setEnabled(true);
} else {
this.enable = false;
super.setEnabled(false);
}
this.setState(this.selected);
var _local5 = this._parent[this.groupName].getEnabled() == undefined;
var _local4 = this._parent[this.groupName].radioInstances[0].getEnabled() == false;
if (_local5 && (_local4)) {
var _local3 = 0;
while (_local3 < this._parent[this.groupName].radioInstances.length) {
if (this._parent[this.groupName].radioInstances[_local3].getEnabled() == true) {
this._parent[this.groupName].radioInstances[_local3].tabEnabled = true;
return(undefined);
}
_local3++;
}
}
};
FRadioButtonClass.prototype.getEnabled = function () {
return(this.enable);
};
FRadioButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FRadioButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.getLabel());
};
FRadioButtonClass.prototype.onPress = function () {
this.pressFocus();
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.onRelease = function () {
this.frb_states_mc.gotoAndStop("unselectedDisabled");
this.setValue(!this.selected);
};
FRadioButtonClass.prototype.onReleaseOutside = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOut = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOver = function () {
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this._parent[this.groupName]);
};
FRadioButtonGroupClass.prototype.addRadioInstance = function (instance) {
this.radioInstances.push(instance);
this.radioInstances[0].tabEnabled = true;
};
FRadioButtonGroupClass.prototype.setEnabled = function (enableFlag) {
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
this.radioInstances[_local2].setEnabled(enableFlag);
_local2++;
}
};
FRadioButtonGroupClass.prototype.getEnabled = function () {
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
if (this.radioInstances[_local2].getEnabled() != this.radioInstances[0].getEnabled()) {
return(undefined);
}
_local2++;
}
return(this.radioInstances[0].getEnabled());
};
FRadioButtonGroupClass.prototype.setChangeHandler = function (changeHandler, obj) {
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
this.radioInstances[_local2].setChangeHandler(changeHandler, obj);
_local2++;
}
};
FRadioButtonGroupClass.prototype.getValue = function () {
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
if (this.radioInstances[_local2].selected == true) {
if ((this.radioInstances[_local2].data == "") || (this.radioInstances[_local2].data == undefined)) {
return(this.radioInstances[_local2].getLabel());
}
return(this.radioInstances[_local2].data);
}
_local2++;
}
};
FRadioButtonGroupClass.prototype.getData = function () {
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
if (this.radioInstances[_local2].selected) {
return(this.radioInstances[_local2].getData());
}
_local2++;
}
};
FRadioButtonGroupClass.prototype.getInstance = function () {
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
if (this.radioInstances[_local2].selected == true) {
return(_local2);
}
_local2++;
}
};
FRadioButtonGroupClass.prototype.setValue = function (dataValue) {
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
if (this.radioInstances[_local2].data == dataValue) {
this.radioInstances[_local2].setValue(true);
return(undefined);
}
_local2++;
}
_local2 = 0;
while (_local2 < this.radioInstances.length) {
if (this.radioInstances[_local2].getLabel() == dataValue) {
this.radioInstances[_local2].setValue(true);
}
_local2++;
}
};
FRadioButtonGroupClass.prototype.setSize = function (w) {
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
this.radioInstances[_local2].setSize(w);
_local2++;
}
};
FRadioButtonGroupClass.prototype.getSize = function () {
var _local3 = 0;
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
if (this.radioInstances[_local2].width >= _local3) {
_local3 = this.radioInstances[_local2].width;
}
_local2++;
}
return(_local3);
};
FRadioButtonGroupClass.prototype.setGroupName = function (groupName) {
this.oldGroupName = this.radioInstances[0].groupName;
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
this.radioInstances[_local2].groupName = groupName;
this.radioInstances[_local2].addToRadioGroup();
_local2++;
}
delete this._parent[this.oldGroupName];
};
FRadioButtonGroupClass.prototype.getGroupName = function () {
return(this.radioInstances[0].groupName);
};
FRadioButtonGroupClass.prototype.setLabelPlacement = function (pos) {
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
this.radioInstances[_local2].setLabelPlacement(pos);
_local2++;
}
};
FRadioButtonGroupClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
this.radioInstances[_local2].setStyleProperty(propName, value, isGlobal);
_local2++;
}
};
FRadioButtonGroupClass.prototype.addListener = function () {
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
this.radioInstances[_local2].addListener();
_local2++;
}
};
FRadioButtonGroupClass.prototype.applyChanges = function () {
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
this.radioInstances[_local2].applyChanges();
_local2++;
}
};
FRadioButtonGroupClass.prototype.removeListener = function (component) {
var _local2 = 0;
while (_local2 < this.radioInstances.length) {
this.radioInstances[_local2].removeListener(component);
_local2++;
}
};
FRadioButtonClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this._width + 6, this._height - 3);
};
FRadioButtonClass.prototype.myOnKillFocus = function () {
Key.removeListener(this.keyListener);
this.focused = false;
this.focusRect.removeMovieClip();
this._parent[this.groupName].foobar = 0;
};
FRadioButtonClass.prototype.myOnKeyDown = function () {
if ((Key.getCode() == 32) && (this._parent[this.groupName].getValue() == undefined)) {
if (this._parent[this.groupName].radioInstances[0] == this) {
this.setTabState(true);
}
}
if ((Key.getCode() == 40) && (this.pressOnce == undefined)) {
this.foobar = this._parent[this.groupName].getInstance();
var _local2 = this.foobar;
while (_local2 < this._parent[this.groupName].radioInstances.length) {
var _local3 = _local2 + 1;
if (this._parent[this.groupName].radioInstances[_local3].getEnabled()) {
this._parent[this.groupName].radioInstances[_local3].setTabState(true);
return(undefined);
}
_local2++;
}
}
if ((Key.getCode() == 38) && (this.pressOnce == undefined)) {
this.foobar = this._parent[this.groupName].getInstance();
var _local2 = this.foobar;
while (_local2 >= 0) {
var _local3 = _local2 - 1;
if (this._parent[this.groupName].radioInstances[_local3].getEnabled()) {
this._parent[this.groupName].radioInstances[_local3].setTabState(true);
return(undefined);
}
_local2--;
}
}
};
FRadioButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_RADIOBUTTON);
};
FRadioButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FRadioButtonClass.prototype.get_accState = function (childId) {
if (this.master.getState()) {
return(this.master.STATE_SYSTEM_SELECTED);
}
return(0);
};
FRadioButtonClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getState()) {
return("UnCheck");
}
return("Check");
};
FRadioButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 3385 Button
on (release) {
this.removeMovieClip();
}
Symbol 3387 Button
on (release) {
playcar.rideheight--;
}
Symbol 3388 Button
on (release) {
playcar.rideheight++;
}
Symbol 3389 Button
on (release) {
playcar.windowtint = playcar.windowtint - 5;
}
Symbol 3390 Button
on (release) {
playcar.windowtint = playcar.windowtint + 5;
}
Symbol 3391 Button
on (release) {
playcar.lsize--;
}
Symbol 3392 Button
on (release) {
playcar.lsize++;
}
Symbol 3393 Button
on (release) {
playcar.rsize--;
}
Symbol 3394 Button
on (release) {
playcar.rsize++;
}
Symbol 3395 Button
on (release) {
playcar.lsize--;
playcar.rsize--;
}
Symbol 3396 Button
on (release) {
playcar.lsize++;
playcar.rsize++;
}
Symbol 3397 Button
on (release) {
playcar.phsize--;
playcar.pwsize--;
}
Symbol 3398 Button
on (release) {
playcar.phsize++;
playcar.pwsize++;
}
Symbol 3399 Button
on (release) {
playcar.frameangle = playcar.frameangle + 0.1;
}
Symbol 3400 Button
on (release) {
playcar.frameangle = playcar.frameangle - 0.1;
}
Symbol 3403 Button
on (release) {
playcar._decalword = decalword;
}
Symbol 3405 Button
on (release) {
fscommand ("flashstudio.browsefile", ("_root." add this._name) add ".decalword");
}
Symbol 3408 Button
on (release) {
playcar.phsize--;
}
Symbol 3409 Button
on (release) {
playcar.phsize++;
}
Symbol 3410 Button
on (release) {
playcar.pwsize--;
}
Symbol 3411 Button
on (release) {
playcar.pwsize++;
}
Symbol 3413 Button
on (release) {
snd = new Sound(_root);
snd.attachSound("edit.wav");
snd.start();
this.removeMovieClip();
}
Symbol 3414 MovieClip [EDITCAR] Frame 1
function Update() {
_root.BuildCar(playcar, this._name, "VIEWCAR");
VIEWCAR._xscale = 150;
VIEWCAR._yscale = 150;
if (((VIEWCAR.CAR.lwheel._y + (VIEWCAR.CAR.lwheel._height / 2)) - 10) <= (VIEWCAR.CAR.frame._y + (VIEWCAR.CAR.frame._height / 2))) {
rhdown._visible = false;
} else {
rhdown._visible = true;
}
if (playcar.rideheight >= 15) {
rhup._visible = false;
} else {
rhup._visible = true;
}
if (playcar.windowtint > 200) {
wtup._visible = false;
} else {
wtup._visible = true;
}
if (playcar.windowtint < 50) {
wtdown._visible = false;
} else {
wtdown._visible = true;
}
if (playcar.lsize < 80) {
wsizedown._visible = false;
lsizedown._visible = false;
} else {
wsizedown._visible = true;
lsizedown._visible = true;
}
if (playcar.lsize > 140) {
wsizeup._visible = false;
lsizeup._visible = false;
} else {
wsizeup._visible = true;
lsizeup._visible = true;
}
if (playcar.rsize < 80) {
wsizedown._visible = false;
rsizedown._visible = false;
} else {
wsizedown._visible = true;
rsizedown._visible = true;
}
if (playcar.rsize > 140) {
wsizeup._visible = false;
rsizeup._visible = false;
} else {
wsizeup._visible = true;
rsizeup._visible = true;
}
if (playcar.frameangle > 3) {
fradn._visible = false;
fradn._visible = false;
} else {
fradn._visible = true;
fradn._visible = true;
}
playcar.phsize = Math.max(1, playcar.phsize);
playcar.phsize = Math.min(20, playcar.phsize);
playcar.pwsize = Math.max(1, playcar.pwsize);
playcar.pwsize = Math.min(20, playcar.pwsize);
if (playcar.frameangle < -3) {
fraup._visible = false;
fraup._visible = false;
} else {
fraup._visible = true;
fraup._visible = true;
}
}
_root.BuildCar(playcar, this._name, "VIEWCAR");
VIEWCAR._xscale = 150;
VIEWCAR._yscale = 150;
Update();
Symbol 3414 MovieClip [EDITCAR] Frame 2
Update();
Symbol 3414 MovieClip [EDITCAR] Frame 3
gotoAndPlay ("loop");
Symbol 3416 Button
on (release) {
snd = new Sound(_root);
snd.attachSound("spray.wav");
snd.start();
this.removeMovieClip();
}
Symbol 3418 Button
on (release) {
selected = "framecols";
Update();
}
Symbol 3419 Button
on (release) {
selected = "fkitcols";
Update();
}
Symbol 3420 Button
on (release) {
selected = "skitcols";
Update();
}
Symbol 3421 Button
on (release) {
selected = "bkitcols";
Update();
}
Symbol 3422 Button
on (release) {
selected = "rimcols";
Update();
}
Symbol 3423 Button
on (release) {
selected = "calcols";
Update();
}
Symbol 3424 Button
on (release) {
selected = "windowcols";
Update();
}
Symbol 3425 Button
on (release) {
selected = "neoncols";
Update();
}
Symbol 3426 Button
on (release) {
selected = "wingcols";
Update();
}
Symbol 3427 Button
on (release) {
selected = "hoodcols";
Update();
}
Symbol 3431 Button
on (release) {
selected = "decalcols";
Update();
}
Symbol 3432 Button
on (release) {
red = 255;
green = 255;
blue = 255;
}
Symbol 3433 Button
on (release) {
red = 80;
green = 80;
blue = 80;
}
Symbol 3434 Button
on (release) {
red = 127;
green = 127;
blue = 127;
}
Symbol 3435 Button
on (release) {
red = 40;
green = 40;
blue = 40;
}
Symbol 3436 Button
on (release) {
red = 0;
green = 255;
blue = 0;
}
Symbol 3437 Button
on (release) {
red = 255;
green = 150;
blue = 0;
}
Symbol 3438 Button
on (release) {
red = 255;
green = 0;
blue = 0;
}
Symbol 3439 Button
on (release) {
red = 100;
green = 100;
blue = 255;
}
Symbol 3440 Button
on (release) {
red = 255;
green = 255;
blue = 0;
}
Symbol 3441 Button
on (release) {
red = 55;
green = 245;
blue = 200;
}
Symbol 3442 Button
on (release) {
red = 199;
green = 78;
blue = 35;
}
Symbol 3443 Button
on (release) {
red = 255;
green = 55;
blue = 100;
}
Symbol 3444 Button
on (release) {
red = 134;
green = 68;
blue = 223;
}
Symbol 3445 Button
on (release) {
red = 118;
green = 146;
blue = 173;
}
Symbol 3446 Button
on (release) {
red = 199;
green = 199;
blue = 199;
}
Symbol 3447 Button
on (release) {
red = 164;
green = 0;
blue = 0;
}
Symbol 3448 Button
on (release) {
red = 0;
green = 140;
blue = 255;
}
Symbol 3449 Button
on (release) {
red = 58;
green = 105;
blue = 99;
}
Symbol 3450 Button
on (release) {
selected = "decalwordcols";
Update();
}
Symbol 3452 MovieClip [PAINTCAR] Frame 1
function Update() {
red = playcar[selected].rb + 255;
blue = playcar[selected].bb + 255;
green = playcar[selected].gb + 255;
}
_root.BuildCar(playcar, this._name, "VIEWCAR");
VIEWCAR._xscale = 150;
VIEWCAR._yscale = 150;
selected = "framecols";
maxy = -171;
var i = 0;
while (i < _root.COLS.length) {
this[_root.COLS[i]]._alpha = 50;
COLOUR = new Color(this[_root.COLS[i]]);
COLOUR.setTransform(playcar[_root.COLS[i]]);
i++;
}
this[selected]._alpha = 100;
Update();
Symbol 3452 MovieClip [PAINTCAR] Frame 3
var i = 0;
while (i < _root.COLS.length) {
this[_root.COLS[i]]._alpha = 50;
COLOUR = new Color(this[_root.COLS[i]]);
COLOUR.setTransform(playcar[_root.COLS[i]]);
i++;
}
this[selected]._alpha = 100;
if (_root.dragging) {
red = Math.round(Math.abs(REDB.knob._y / maxy) * 255);
green = Math.round(Math.abs(GREENB.knob._y / maxy) * 255);
blue = Math.round(Math.abs(BLUEB.knob._y / maxy) * 255);
} else {
REDB.knob._y = (red / 255) * maxy;
GREENB.knob._y = (green / 255) * maxy;
BLUEB.knob._y = (blue / 255) * maxy;
}
playcar[selected].rb = -(255 - red);
playcar[selected].bb = -(255 - blue);
playcar[selected].gb = -(255 - green);
_root.BuildCar(playcar, this._name, "VIEWCAR");
VIEWCAR._xscale = 150;
VIEWCAR._yscale = 150;
Symbol 3452 MovieClip [PAINTCAR] Frame 7
gotoAndPlay ("loop");
Symbol 3455 Button
on (release) {
plycar.UPGRADE[63]--;
onChange();
}
Symbol 3456 Button
on (release) {
plycar.UPGRADE[64]--;
onChange();
}
Symbol 3457 Button
on (release) {
plycar.UPGRADE[65]--;
onChange();
}
Symbol 3458 Button
on (release) {
plycar._interior--;
onChange();
}
Symbol 3459 Button
on (release) {
plycar.UPGRADE[66]--;
onChange();
}
Symbol 3460 Button
on (release) {
plycar.UPGRADE[63]++;
onChange();
}
Symbol 3461 Button
on (release) {
plycar.UPGRADE[64]++;
onChange();
}
Symbol 3462 Button
on (release) {
plycar.UPGRADE[65]++;
onChange();
}
Symbol 3463 Button
on (release) {
plycar._interior++;
onChange();
}
Symbol 3464 Button
on (release) {
plycar.UPGRADE[66]++;
onChange();
}
Symbol 3470 Button
on (release) {
with (_parent) {
if (_root.player.cash >= totalcost) {
snd = new Sound(_root);
snd.attachSound("edit.wav");
snd.start();
_root.Buy(totalcost);
} else {
_root.prompt("", "Not Enough Cash!");
Reset();
}
}
_parent.removeMovieClip();
}
Symbol 3471 Button
on (release) {
_parent.Reset();
_parent.removeMovieClip();
}
Symbol 3476 MovieClip [INTERIORSHOP] Frame 1
function onChange() {
steering = _root.INTMODS.STEERING[plycar.UPGRADE[63]];
shifter = _root.INTMODS.KNOB[plycar.UPGRADE[64]];
petal = _root.INTMODS.PETAL[plycar.UPGRADE[65]];
interior = _root.INTMODS.SEAT[plycar._interior - 1];
gauge = _root.INTMODS.GAUGE[plycar.UPGRADE[66]];
if (plycar.UPGRADE[63] >= _root.INTMODS.STEERING.length) {
plycar.UPGRADE[63] = 0;
onChange();
} else if (plycar.UPGRADE[63] < 0) {
plycar.UPGRADE[63] = _root.INTMODS.STEERING.length - 1;
onChange();
}
if (plycar.UPGRADE[64] >= _root.INTMODS.KNOB.length) {
plycar.UPGRADE[64] = 0;
onChange();
} else if (plycar.UPGRADE[64] < 0) {
plycar.UPGRADE[64] = _root.INTMODS.KNOB.length - 1;
onChange();
}
if (plycar.UPGRADE[65] >= _root.INTMODS.PETAL.length) {
plycar.UPGRADE[65] = 0;
onChange();
} else if (plycar.UPGRADE[65] < 0) {
plycar.UPGRADE[65] = _root.INTMODS.PETAL.length - 1;
onChange();
}
if (plycar.UPGRADE[66] >= _root.INTMODS.GAUGE.length) {
plycar.UPGRADE[66] = 0;
onChange();
} else if (plycar.UPGRADE[66] < 0) {
plycar.UPGRADE[66] = _root.INTMODS.GAUGE.length - 1;
onChange();
}
if (plycar._interior > _root.CIVIC.MAX_INTERIOR) {
plycar._interior = 1;
onChange();
} else if (plycar._interior < 1) {
plycar._interior = _root.CIVIC.MAX_INTERIOR;
onChange();
}
cost = 0;
if (_root.player.typ != "Arcade") {
if (st != plycar.UPGRADE[63]) {
cost = cost + 100;
}
if (sh != plycar.UPGRADE[64]) {
cost = cost + 50;
}
if (pe != plycar.UPGRADE[65]) {
cost = cost + 100;
}
if (int != plycar._interior) {
cost = cost + 1000;
}
if (ga != plycar.UPGRADE[66]) {
cost = cost + 25;
}
}
CREDIT.totalcost = cost;
}
function Reset() {
plycar.UPGRADE[63] = st;
plycar.UPGRADE[64] = sh;
plycar.UPGRADE[65] = se;
plycar._interior = int;
plycar.UPGRADE[66] = ga;
}
st = plycar.UPGRADE[63];
sh = plycar.UPGRADE[64];
pe = plycar.UPGRADE[65];
int = plycar._interior;
ga = plycar.UPGRADE[66];
if (_root.player.typ == "Arcade") {
CREDIT._visible = false;
} else {
CREDIT._visible = true;
}
steering = _root.INTMODS.STEERING[plycar.UPGRADE[63]];
shifter = _root.INTMODS.KNOB[plycar.UPGRADE[64]];
petal = _root.INTMODS.PETAL[plycar.UPGRADE[65]];
interior = _root.INTMODS.SEAT[plycar._interior - 1];
gauge = _root.INTMODS.GAUGE[plycar.UPGRADE[66]];
totalcost = 0;
Symbol 3476 MovieClip [INTERIORSHOP] Frame 2
stop();
Symbol 3481 Button
on (release) {
playcar._wheel--;
}
Symbol 3482 Button
on (release) {
playcar._wheel++;
}
Symbol 3483 Button
on (release) {
playcar._decal--;
}
Symbol 3484 Button
on (release) {
playcar._decal++;
}
Symbol 3485 Button
on (release) {
playcar._hood--;
}
Symbol 3486 Button
on (release) {
playcar._hood++;
}
Symbol 3487 Button
on (release) {
playcar._light--;
}
Symbol 3488 Button
on (release) {
playcar._light++;
}
Symbol 3489 Button
on (release) {
playcar._wing--;
}
Symbol 3490 Button
on (release) {
playcar._wing++;
}
Symbol 3491 Button
on (release) {
playcar._fkit--;
}
Symbol 3492 Button
on (release) {
playcar._fkit++;
}
Symbol 3493 Button
on (release) {
playcar._skit--;
}
Symbol 3494 Button
on (release) {
playcar._skit++;
}
Symbol 3495 Button
on (release) {
playcar._bkit--;
}
Symbol 3496 Button
on (release) {
playcar._bkit++;
}
Symbol 3498 Button
on (release) {
playcar._exhaust--;
}
Symbol 3499 Button
on (release) {
playcar._exhaust++;
}
Symbol 3501 Button
on (release) {
playcar._interior--;
}
Symbol 3502 Button
on (release) {
playcar._interior++;
}
Symbol 3506 MovieClip Frame 1
stop();
Symbol 3506 MovieClip Frame 2
stop();
Symbol 3509 Button
on (release) {
rollcage.play();
}
Symbol 3510 Button
on (release) {
wheeliebar.play();
}
Symbol 3513 Button
on (release) {
if (((_root.player.cash - cost) >= 0) || (_root.player.typ == "Arcade")) {
snd = new Sound(_root);
snd.attachSound("edit.wav");
snd.start();
_root.Buy(cost);
_root.CarEq(_parent.plycar, _parent.playcar);
_parent.removeMovieClip();
} else {
_root.prompt("Oops!", "Not Enough Cash!");
}
}
Symbol 3516 MovieClip [EXTERIORSHOP] Frame 1
playcar = new Object();
_root.BuildCar(playcar, this._name, "VIEWCAR");
VIEWCAR._xscale = 150;
VIEWCAR._yscale = 150;
_root.CarEq(playcar, plycar);
if (_root.player.typ == "Arcade") {
CREDIT._visible = false;
}
Symbol 3516 MovieClip [EXTERIORSHOP] Frame 2
_root.BuildCar(playcar, this._name, "VIEWCAR");
VIEWCAR._xscale = 150;
VIEWCAR._yscale = 150;
cost = 0;
playcar.FRAWT = _root[playcar.NAME].FRAWT;
playcar._wheeliebar = wheeliebar._currentframe;
playcar._rollcage = rollcage._currentframe;
var i = 0;
while (i < _root.ATTRIB.length) {
if (_root.ATTRIB[i] != "_exhaust") {
MAX = _root[playcar.NAME]["MAX" add _root.ATTRIB[i].toUpperCase()];
} else {
MAX = _root.MAX_EXHAUST;
}
if (playcar[_root.ATTRIB[i]] > MAX) {
playcar[_root.ATTRIB[i]] = 1;
}
if (playcar[_root.ATTRIB[i]] < 1) {
playcar[_root.ATTRIB[i]] = MAX;
}
if (playcar[_root.ATTRIB[i]] != plycar[_root.ATTRIB[i]]) {
cost = cost + _root.COST[i];
}
if (_root.player.typ == "Arcade") {
cost = 0;
}
CREDIT.viewcost = cost add " Cr";
CREDIT.cost = cost;
if (_root.player.typ == "Arcade") {
_root.CarEq(plycar, playcar);
}
i++;
}
Symbol 3516 MovieClip [EXTERIORSHOP] Frame 6
gotoAndPlay ("loop");
Symbol 3521 MovieClip [GARAGE] Frame 2
LISTCOMP.Construct("LIST", 13, {name:"Car Name", hp:"HP", tq:"TQ", wt:"WT", n:"#"});
var i = 0;
while (i < _root.car.length) {
carobj = _root.car[i];
LISTCOMP.addItem({name:carobj.FULLNAME, hp:Math.round(carobj.HP), tq:Math.round(carobj.TQ), wt:Math.round(carobj.WT), n:i + 1});
i++;
}
stop();
Symbol 3525 Button
on (release) {
fscommand ("flashstudio.exit", "\"ask\",\"Are You Sure You Want to Quit?\"");
}
Symbol 3568 Button
on (release) {
getURL ("http://bestreseller.com", "_blank");
}
Symbol 3570 Button
on (keyPress "<Space>") {
gotoAndPlay (749);
}
Symbol 3573 Button
on (release) {
getURL ("http://ridejudge.com", "_blank");
}
Symbol 3603 Button
on (release) {
fscommand ("flashstudio.exec", "\"Updater.exe\"");
fscommand ("flashstudio.exit", "\"noask\",\"\"");
}
on (rollOver) {
globitotexto = "Check for Updates";
}
on (rollOut) {
globitotexto = "";
}
Instance of Symbol 3618 MovieClip in Symbol 3619 MovieClip Frame 1
onClipEvent (load) {
setProperty("_parent.fondo.texto", _visible , "0");
setProperty("_parent", _alpha , "0");
}
onClipEvent (enterFrame) {
setProperty("_parent.pico.colorin", _alpha , _parent.alfafondo);
setProperty("_parent.fondo.colorin", _alpha , _parent.alfafondo);
colorete = new Color(_parent.fondo.colorin);
colorete.setRGB(parseint(_parent.colordefondo, 16));
colorete2 = new Color(_parent.pico.colorin);
colorete2.setRGB(parseint(_parent.colordefondo, 16));
setProperty("_parent", _x , int(_parent._parent._xmouse));
setProperty("_parent", _y , int(_parent._parent._ymouse));
if ((_root.globitotexto == null) || (_root.globitotexto == "")) {
setProperty("_parent.fondo.texto", _visible , 0);
if (_parent._alpha > 0) {
setProperty("_parent", _alpha , _parent._alpha - 10);
}
} else {
if (_parent._alpha < 100) {
setProperty("_parent", _alpha , _parent._alpha + 10);
}
setProperty("_parent.fondo.texto", _visible , 1);
_parent.fondo.texto.parrafo = ((("<font size='11' color='#" + _parent.colortitulo) + "'><B>") + _root.globitotexto) + "</B></font>";
yraton = _parent._parent._ymouse;
xraton = _parent._parent._xmouse;
anchoglobo = _parent.fondo._width + _parent.pico._width;
altoglobo = _parent.fondo._height + _parent.pico._height;
if ((yraton < altoglobo) && (xraton < anchoglobo)) {
tellTarget ("_parent") {
gotoAndPlay ("abajo");
};
} else if ((yraton < altoglobo) && (xraton > anchoglobo)) {
tellTarget ("_parent") {
gotoAndPlay ("abajo_i");
};
} else if ((yraton > altoglobo) && (xraton > anchoglobo)) {
tellTarget ("_parent") {
gotoAndPlay ("arriba_i");
};
} else if ((yraton > altoglobo) && (xraton < anchoglobo)) {
tellTarget ("_parent") {
gotoAndPlay ("arriba");
};
} else {
tellTarget ("_parent") {
gotoAndPlay ("arriba");
};
}
}
}
Symbol 3619 MovieClip Frame 6
stop();
Symbol 3619 MovieClip Frame 19
stop();
Symbol 3619 MovieClip Frame 32
stop();
Symbol 3619 MovieClip Frame 45
stop();
Symbol 3625 Button
on (release) {
NewArcGame();
gotoAndPlay (810);
}
Symbol 3629 Button
on (release) {
gotoAndPlay ("newgame");
}
Symbol 3633 Button
on (release) {
if (ip == 0) {
prompt("!", "You Must Download the Game to play Online!");
} else {
goOnline = true;
gotoAndPlay ("continue");
}
}
Symbol 3643 MovieClip Frame 1
DATA = new LoadVars();
DATA.onLoad = function (sucess) {
if (sucess) {
news.text = DATA.version;
}
};
DATA.load("http://dragraceronline.net/EXE/getnews.php");
version = _root.version;
stop();
Instance of Symbol 842 MovieClip [FScrollBarSymbol] in Symbol 3643 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "news";
horizontal = false;
}
Symbol 3646 Button
on (release) {
getURL ("http://dragraceronline.net/", "_blank");
}
on (rollOver) {
globitotexto = "DragRacerOnline.net";
}
on (rollOut) {
globitotexto = "";
}
Symbol 3650 Button
on (release) {
goOnline = false;
gotoAndPlay ("continue");
}
Symbol 3658 Button
on (release) {
_root.Options.gearsh = false;
_root.Options.clutch = false;
_root.Options.nogas = false;
_root.NewGame(username, 1);
if (username == "unclepeanuts") {
_root.CheatGame();
_root.player.cash = 5000000 /* 0x4C4B40 */;
_root.player.ccrp = _root.EncodeMoney();
} else {
_root.player.cash = 50000;
_root.player.ccrp = _root.EncodeMoney();
}
_root.gotoMainMenu();
}
Symbol 3662 Button
on (release) {
_root.Options.gearsh = false;
_root.Options.clutch = false;
_root.Options.nogas = true;
_root.NewGame(username, 2);
_root.player.cash = 25000;
_root.player.ccrp = _root.EncodeMoney();
_root.gotoMainMenu();
}
Symbol 3666 Button
on (release) {
_root.Options.gearsh = true;
_root.Options.clutch = false;
_root.Options.nogas = true;
_root.NewGame(username, 3);
_root.player.cash = 20000;
_root.player.ccrp = _root.EncodeMoney();
_root.gotoMainMenu();
}
Symbol 3672 Button
on (release) {
gotoAndPlay (749);
}
Symbol 3678 Button
on (release) {
_root.attachMovie("OPTIONS", "OPTIONS", 66);
}
Symbol 3685 MovieClip Frame 1
level.text = "Level " + _root.player.level;
car.text = _root.car[_root.player.car].FULLNAME;
careng.text = _root.ENG[_root.car[_root.player.car].engnum].ENGNAME;
rep.text = Math.round(_root.player.rep) + " REP";
COL = new Color(CARICON);
COL.setTransform(_root.car[_root.player.car].framecols);
Symbol 3686 MovieClip Frame 1
_root.BuildCar(_root.car[_root.player.car], this._name, "VIEWCAR");
VIEWCAR._xscale = 125;
VIEWCAR._yscale = 125;
stop();
Symbol 3691 Button
on (release) {
_root.gotoAndPlay(_root.MenuD[0].f);
}
Symbol 3692 Button
on (release) {
_root.gotoAndPlay(_root.MenuD[1].f);
}
Symbol 3693 Button
on (release) {
_root.gotoAndPlay(_root.MenuD[2].f);
}
Symbol 3694 Button
on (release) {
_root.gotoAndPlay(_root.MenuD[3].f);
}
Symbol 3695 Button
on (release) {
_root.gotoAndPlay(_root.MenuD[4].f);
}
Symbol 3696 Button
on (release) {
_root.gotoAndPlay(_root.MenuD[6].f);
}
Symbol 3697 Button
on (release) {
_root.gotoAndPlay(_root.MenuD[5].f);
}
Symbol 3706 MovieClip Frame 2
i = 1;
while (i <= 7) {
this["BTN" + i]._visible = false;
i++;
}
i = 0;
while (i < _root.MenuD.length) {
if (_root.MenuD[i].n != undefined) {
this["txt" + i].text = _root.MenuD[i].n;
this["BTN" add (i + 1)]._visible = true;
}
i++;
}
Symbol 3706 MovieClip Frame 20
i = 0;
while (i < 7) {
this["BTN" + i]._visible = false;
i++;
}
i = 0;
while (i < _root.MenuD.length) {
if (_root.MenuD[i].n != undefined) {
this["txt" + i].text = _root.MenuD[i].n;
this["BTN" add i]._visible = true;
}
i++;
}
stop();
Symbol 3710 Button
on (release) {
clearPopUps();
gotoAndPlay (749);
}
Symbol 3712 MovieClip Frame 1
stop();
botontito.useHandCursor = false;
Symbol 3715 Button
on (release) {
nextTrack();
}
on (rollOver) {
_root.globitotexto = "Next Track";
}
on (rollOut) {
_root.globitotexto = "";
}
Symbol 3718 Button
on (release) {
playTrack();
}
on (rollOver) {
_root.globitotexto = "Play";
}
on (rollOut) {
_root.globitotexto = "";
}
Symbol 3721 Button
on (release) {
stopTrack();
}
on (rollOver) {
_root.globitotexto = "Stop";
}
on (rollOut) {
_root.globitotexto = "";
}
Symbol 3724 Button
on (release) {
prevTrack();
}
on (rollOver) {
_root.globitotexto = "Previous Track";
}
on (rollOut) {
_root.globitotexto = "";
}
Symbol 3728 Button
on (release) {
gotoAndStop ("radio");
}
on (rollOver) {
_root.globitotexto = "Select Radio Station";
}
on (rollOut) {
_root.globitotexto = "";
}
Symbol 3733 Button
on (release) {
track = new Array();
track.push(radioname);
list = new Array();
list.push(url.text);
gotoAndPlay ("music");
}
Symbol 3735 Button
on (release) {
gotoAndPlay (1);
}
Symbol 3737 Button
on (release) {
gotoAndPlay ("stop");
}
Symbol 3739 MovieClip Frame 1
_root.musicdir = _root.appdir add "\\MUSIC\\";
_root.filelist = "null";
fscommand ("flashstudio.getfilelist", "musicdir,\"*.mp3\",filelist");
Instance of Symbol 3712 MovieClip "posicion" in Symbol 3739 MovieClip Frame 1
onClipEvent (enterFrame) {
duration = _parent.music.duration;
current = _parent.music.position;
percentage = (current / duration) * 100;
if (percentage == 100) {
_parent.nextTrack();
}
}
Symbol 3739 MovieClip Frame 25
_root.file = musicdir add "music.drd";
fscommand ("flashstudio.savetofile", "file,filelist");
list = new Array();
track = new Array();
s = 0;
f = 0;
i = 0;
while (i <= 500) {
f = _root.filelist.indexOf(".mp3", s) + 4;
track[i] = _root.filelist.slice(s, f);
list[i] = _root.musicdir add _root.filelist.slice(s, f);
s = f + 2;
if (f >= (_root.filelist.length - 4)) {
break;
}
i++;
}
leng = list.length;
ctrack = 0;
Symbol 3739 MovieClip Frame 26
function nextTrack() {
music.stop();
ctrack++;
if (ctrack >= list.length) {
ctrack = 0;
}
playMusic(list[ctrack], ctrack);
}
function stopTrack() {
music.stop();
}
function playTrack() {
music.stop();
playMusic(list[ctrack], ctrack);
}
function prevTrack() {
music.stop();
ctrack--;
if (ctrack < 0) {
ctrack = list.length - 1;
}
playMusic(list[ctrack], ctrack);
}
function playMusic(trck, i) {
tracktitle = track[i];
music = new Sound();
music.loadSound(trck, true);
music.start();
}
ctrack = 0;
playMusic(list[0], 0);
Symbol 3739 MovieClip Frame 27
stop();
Symbol 3739 MovieClip Frame 28
function onChange(c) {
url.text = RADIOLIST.getSelectedItem().data;
radioname = RADIOLIST.getSelectedItem().label;
}
play();
trace("Init");
trace(RADIOLIST);
var i = 0;
while (i < _root.RADIO.length) {
RADIOLIST.addItem(_root.RADIO[i].name, _root.RADIO[i].url);
i++;
}
RADIOLIST.setSelectedItem(0);
onChange(RADIOLIST);
RADIOLIST.setChangeHandler("onChange");
stop();
Instance of Symbol 849 MovieClip [FListBoxSymbol] "RADIOLIST" in Symbol 3739 MovieClip Frame 28
//component parameters
onClipEvent (initialize) {
selectMultiple = false;
changeHandler = "";
}
Symbol 3742 Button
on (release) {
gotoAndPlay (810);
}
Symbol 3746 Button
on (release) {
manf = "";
buyclass = 1;
update();
}
on (rollOver) {
_root.globitotexto = "C Class Cars";
}
on (rollOut) {
_root.globitotexto = "";
}
Symbol 3748 Button
on (release) {
if ((_root.player.tstatus.charAt(8) == "1") || (_root.player.typ == "Arcade")) {
manf = "";
buyclass = 2;
update();
} else {
_root.prompt("", ("Complete Tourney #8 :\n" + _root.TOURNEY[8].name) + "\n To Get S Class Cars");
}
}
on (rollOver) {
_root.globitotexto = "S Class Cars";
}
on (rollOut) {
_root.globitotexto = "";
}
Symbol 3750 Button
on (release) {
if ((_root.player.tstatus.charAt(26) == "1") || (_root.player.typ == "Arcade")) {
manf = "";
buyclass = 3;
update();
} else {
_root.prompt("", ("Complete Tourney #26\n" + _root.TOURNEY[26].name) + "\nTo Get R Class Cars");
}
}
on (rollOver) {
_root.globitotexto = "R Class Cars";
}
on (rollOut) {
_root.globitotexto = "";
}
Symbol 3753 MovieClip Frame 1
function handler(component) {
buyclass = 0;
manf = manufacturer.getSelectedItem().label;
update();
}
function update() {
LIST.remove();
var _local2 = 0;
while (_local2 < _root.CARS.length) {
if ((_root[_root.CARS[_local2]].CLASS == buyclass) || (buyclass == 0)) {
if (_root[_root.CARS[_local2]].CLASS <= maxclass) {
manuf = _root[_root.CARS[_local2]].FULLNAME.substr(0, manf.length);
if ((manuf == manf) || (manf == "")) {
name = _root[_root.CARS[_local2]].FULLNAME;
if (_root.player.typ == "Arcade") {
cost = "";
} else {
cost = (_root[_root.CARS[_local2]].CW + _root.ENG[_root[_root.CARS[_local2]].engnum].CW) + " Cr";
}
engname = _root.ENG[_root[_root.CARS[_local2]].engnum].ENGNAME;
LIST.addItem({name:name, cost:cost, engname:engname, carobj:_root[_root.CARS[_local2]]});
}
}
}
_local2++;
}
}
manf = "";
buyclass = 0;
manufacturer.sortItemsBy("label", "ASC");
manufacturer.setChangeHandler("handler");
maxclass = 1;
if ((_root.player.tstatus.charAt(8) == "1") || (_root.player.typ == "Arcade")) {
maxclass++;
if ((_root.player.tstatus.charAt(26) == "1") || (_root.player.typ == "Arcade")) {
maxclass++;
}
}
Instance of Symbol 2627 MovieClip [FComboBoxSymbol] "manufacturer" in Symbol 3753 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
editable = false;
labels = [];
labels[0] = "";
labels[1] = "Maserati";
labels[2] = "Jaguar";
labels[3] = "Nissan";
labels[4] = "Plymouth";
labels[5] = "Pontiac";
labels[6] = "Mercedes";
labels[7] = "BMW";
labels[8] = "Porsche";
labels[9] = "Audi";
labels[10] = "Volkswagen";
labels[11] = "Honda";
labels[12] = "Toyota";
labels[13] = "Mazda";
labels[14] = "Mitsubishi";
labels[15] = "Subaru";
labels[16] = "Aston-Martin";
labels[17] = "Ferrari";
labels[18] = "Lotus";
labels[19] = "Lamborghini";
labels[20] = "Acura";
labels[21] = "Shelby";
labels[22] = "Ford";
labels[23] = "Chevrolet";
labels[24] = "Dodge";
rowCount = 8;
changeHandler = "";
}
Symbol 3753 MovieClip Frame 2
LIST.Construct("CARBUY_ELEMENT", 8);
stop();
Symbol 3769 Button
on (release) {
UpStat(0);
}
Symbol 3770 Button
on (release) {
UpStat(1);
}
Symbol 3771 Button
on (release) {
UpStat(2);
}
Symbol 3772 Button
on (release) {
UpStat(3);
}
Symbol 3773 Button
on (release) {
UpStat(4);
}
Symbol 3774 Button
on (release) {
UpStat(5);
}
Symbol 3775 Button
on (release) {
UpStat(6);
}
Symbol 3776 Button
on (release) {
UpStat(7);
}
Symbol 3777 Button
on (release) {
UpStat(8);
}
Symbol 3778 Button
on (release) {
UpStat(9);
}
Symbol 3779 Button
on (release) {
UpStat(10);
}
Symbol 3780 Button
on (release) {
UpStat(11);
}
Symbol 3794 Button
on (release) {
_root.car[_root.player.car].NOS = 100;
_root.car[_root.player.car].OIL = 0;
_root.car[_root.player.car].NRES = 0;
oppcar = new Object();
_root.genOpp2(_root.CARS[LIST.getSelectedItem().data], oppcar, (DF.knob._y / maxy) * _root.MAXUP);
dis = Number(distance.text);
rep = dis + oppcar.HP;
_root.race(_root.car[_root.player.car], oppcar, 1, 2, {cr:0, ca:undefined, pr:undefined, tar:"MAIN", other:"rep:" + rep}, {cr:0, ca:false, tar:"MAIN"}, dis);
}
Symbol 3797 Button
on (release) {
car[player.car].NOS = 100;
rew = new Object();
rew.cr = 0;
rew.other = "level:1";
rew.tar = "MAIN";
dist = 400;
rew.ca = false;
_root.race(_root.car[_root.player.car], oppcar, 1, 2, rew, {cr:0, ca:false, tar:rew.tar}, dist);
}
Symbol 3799 MovieClip Frame 1
_root.BuildCar(_root.oppcar, this._name, "VIEWCAR");
VIEWCAR._xscale = 125;
VIEWCAR._yscale = 125;
Symbol 3805 Button
on (release) {
gameStatus();
}
Symbol 3807 Button
on (release) {
if (_root.car[_root.player.car] != undefined) {
tellTarget (_root) {
TuneCar(car[player.car]);
};
} else {
_root.prompt("Oops!", "Your not in a Car! Get In One!");
}
}
Symbol 3808 Button
on (release) {
if (_root.car[_root.player.car] != undefined) {
tellTarget (_root) {
EditCar(car[player.car]);
};
} else {
_root.prompt("Oops!", "Your not in a Car! Get In One!");
}
}
Symbol 3809 Button
on (release) {
if (_root.car[_root.player.car] != undefined) {
tellTarget (_root) {
PaintCar(car[player.car]);
};
} else {
_root.prompt("Oops!", "Your not in a Car! Get In One!");
}
}
Symbol 3810 Button
on (release) {
if (_root.car[_root.player.car] != undefined) {
tellTarget (_root) {
tmp = encodeCar(car[player.car]);
decodeCar(tmp, car[player.car]);
ViewCar(car[player.car]);
};
} else {
_root.prompt("Oops!", "Your not in a Car! Get In One!");
}
}
Symbol 3811 Button
on (release) {
_root.Garage();
}
Symbol 3813 Button
on (release) {
_root.attachMovie("OPTIONS", "OPTIONS", 66);
}
on (rollOver) {
_root.globitotexto = "Change Controls, Quality";
}
on (rollOut) {
_root.globitotexto = "";
}
Symbol 3817 Button
on (release) {
_root.SaveGame(_root.player, _root.car);
_root.prompt("Save Completed", "Your Game has been saved");
}
on (rollOver) {
_root.globitotexto = "Save Tuner Game";
}
on (rollOut) {
_root.globitotexto = "";
}
Symbol 3821 Button
on (release) {
cost = 50;
var up_car = _root.car[_root.player.car];
if (up_car.UPGRADE[30] > 0) {
cost = cost * 8;
} else if (up_car.UPGRADE[29] > 0) {
cost = cost * 6;
} else if (up_car.UPGRADE[28] > 0) {
cost = cost * 2;
}
if (_root.player.cash > cost) {
if (_root.car[_root.player.car].UPGRADE[26]) {
_root.car[_root.player.car].NOS = 100;
_root.Buy(cost);
if (up_car.UPGRADE[30] > 0) {
up_car.NRES = 7;
} else if (up_car.UPGRADE[29] > 0) {
up_car.NRES = 5;
} else if (up_car.UPGRADE[28] > 0) {
up_car.NRES = 1;
}
_root.prompt("Repaired", "NOS Tank(s) Filled");
} else {
_root.prompt("Oops!", "You need to Purchase a Nitrous Kit for this Car!");
}
} else {
_root.prompt("Oops!", "Not Enough Cash!");
}
}
on (rollOver) {
_root.globitotexto = "Nitrous Refill";
}
on (rollOut) {
_root.globitotexto = "";
}
Symbol 3827 Button
on (release) {
if (_root.player.cash > 50) {
_root.car[_root.player.car].OIL = 0;
_root.Buy(50);
_root.prompt("Repaired", "Oil Replaced");
} else {
_root.prompt("Oops!", "Not Enough Cash!");
}
}
on (rollOver) {
_root.globitotexto = "Oil Change";
}
on (rollOut) {
_root.globitotexto = "";
}
Symbol 3828 MovieClip Frame 1
cash = _root.player.cash;
carname = _root.car[_root.player.car].FULLNAME;
COL = new Color(CARICON);
COL.setTransform(_root.car[_root.player.car].framecols);
NOS.BAR._xscale = _root.car[_root.player.car].NOS;
if (playcar.OIL == undefined) {
playcar.OIL = 0;
}
OILLVL.gotoAndStop(Math.ceil(_root.car[_root.player.car].OIL / 4) + 1);
Symbol 3828 MovieClip Frame 10
gotoAndPlay (1);
Symbol 3829 Button
on (release) {
tellTarget (_root) {
clearPopUps();
gotoAndStop ("home");
};
}
Symbol 3830 Button
on (release) {
tellTarget (_root) {
clearPopUps();
gotoAndStop ("dealer");
};
}
Symbol 3831 Button
on (release) {
tellTarget (_root) {
if (_root.car[_root.player.car] != undefined) {
clearPopUps();
gotoAndStop ("garage");
} else {
_root.prompt("Oops!", "Your not in a Car! Get In One!");
}
};
}
Symbol 3832 Button
on (release) {
tellTarget (_root) {
if (_root.car[_root.player.car] != undefined) {
clearPopUps();
gotoAndStop ("ladder");
} else {
_root.prompt("Oops!", "Your not in a Car! Get In One!");
}
};
}
Symbol 3833 Button
on (release) {
tellTarget (_root) {
if (_root.car[_root.player.car] != undefined) {
clearPopUps();
gotoAndStop ("race");
} else {
_root.prompt("Oops!", "Your not in a Car! Get In One!");
}
};
}
Symbol 3834 Button
on (release) {
tellTarget (_root) {
if (_root.car[_root.player.car] != undefined) {
clearPopUps();
gotoAndStop ("store");
} else {
_root.prompt("Oops!", "Your not in a Car! Get In One!");
}
};
}
Symbol 3836 Button
on (release) {
tellTarget (_root) {
_root.race(_root.car[_root.player.car], undefined, 1, 3, {cr:0, ca:undefined, pr:undefined, tar:"garage"}, {cr:0, ca:false, tar:"garage"}, 400);
};
}
Symbol 3840 MovieClip Frame 25
stop();
Symbol 3843 Button
on (release) {
tellTarget (_root) {
carShow(_root.car[_root.player.car]);
};
}
Symbol 3844 Button
on (release) {
tellTarget (_root) {
_root.race(_root.car[_root.player.car], undefined, "a", 3, {cr:0, ca:undefined, pr:undefined, tar:"garage"}, {cr:0, ca:false, tar:"garage"}, 400);
};
}
Symbol 3847 Button
on (release) {
wagerscreen.cr = Math.abs(wagerscreen.cr);
rew = new Object();
rew.cr = Number(wagerscreen.cr);
if (_root.player.slevel == (LIST.getSelectedItem().data + 1)) {
rew.other = "slevel:1";
}
rew.tar = "race";
if (rew.cr == Number.NaN) {
rew.cr = 0;
_root.prompt("Error!", "Not a valid Wager");
}
distance = Math.max(Math.abs(Number(distance)), 300);
if (distance == Number.NaN) {
distance = 400;
_root.prompt("Error!", "Not a valid Distance");
}
rew.ca = false;
if (radioGroup.getValue() == 3) {
_root.race(_root.car[_root.player.car], oppcar, 1, 2, {cr:0, ca:undefined, pr:undefined, tar:rew.tar}, {cr:0, ca:false, tar:rew.tar}, distance);
}
if (radioGroup.getValue() == 1) {
if (CheckWager(rew.cr)) {
_root.race(_root.car[_root.player.car], oppcar, 1, 2, rew, {cr:-rew.cr, ca:false, tar:rew.tar}, distance);
}
}
if (radioGroup.getValue() == 2) {
rew.ca = oppcar;
los = new Object();
los.cr = -rew.cr;
los.ca = true;
los.tar = rew.tar;
if (CheckWager(rew.cr)) {
_root.race(_root.car[_root.player.car], oppcar, 1, 2, rew, los, distance);
}
}
}
Symbol 3862 MovieClip Frame 1
stop();
Symbol 3862 MovieClip Frame 2
stop();
Symbol 3862 MovieClip Frame 3
stop();
Symbol 3875 MovieClip Frame 1
function CheckWager(cr) {
cr = Number(cr);
if (String(cr) == Number.NaN.toString()) {
_root.prompt("", "Challenge Rejected\nInvalid Wager");
return(false);
}
if (distance <= 2000) {
if (_root.player.cash >= cr) {
trace(100 + (oppcar.CW * 0.2));
if (((100 + (oppcar.CW * 0.2)) > cr) || (cr <= 100)) {
return(true);
}
_root.prompt("Rejected", "Challenge Rejected\nChallenger can't afford Wager");
return(false);
}
_root.prompt("Rejected", "Challenge Rejected\nYou Don't Have Enough Cash!");
return(false);
}
_root.prompt("Rejected", "Challenge Rejected\nChallenger will not do a race that long");
return(false);
}
function onChangeList(component) {
DIF._visible = true;
oppcar = new Object();
if (radioGroup.getValue() == 2) {
DIF._visible = false;
_root.genOpp2(_root.CARS[LIST.getSelectedItem().data], oppcar, _root.MAXUP);
} else {
_root.genOpp2(_root.CARS[LIST.getSelectedItem().data], oppcar, (DIF.knob._y / -171) * _root.MAXUP);
}
name = oppcar.FULLNAME;
engine = oppcar.ENGNAME;
hptq = (Math.round(oppcar.HP) add "/") add Math.round(oppcar.TQ);
}
function onChange(comp) {
onChangeList();
wagerscreen.gotoAndStop(radioGroup.getValue());
}
LIST.removeAll();
var i = 0;
while (i < Math.min(_root.player.slevel, _root.CARS.length)) {
LIST.addItem(_root[_root.CARS[i]].FULLNAME, i);
i++;
}
DIF.knob._y = -10;
LIST.setChangeHandler("onChangeList");
LIST.setSelectedIndex(0);
onChangeList(0);
radioGroup.setChangeHandler("onChange");
stop();
Instance of Symbol 849 MovieClip [FListBoxSymbol] "LIST" in Symbol 3875 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
selectMultiple = false;
changeHandler = "";
}
Instance of Symbol 3384 MovieClip [FRadioButtonSymbol] in Symbol 3875 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "Fun";
initialState = false;
groupName = "radioGroup";
data = 3;
labelPlacement = "right";
changeHandler = "";
}
Instance of Symbol 3384 MovieClip [FRadioButtonSymbol] in Symbol 3875 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "Wager";
initialState = true;
groupName = "radioGroup";
data = 1;
labelPlacement = "right";
changeHandler = "";
}
Instance of Symbol 3384 MovieClip [FRadioButtonSymbol] in Symbol 3875 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
label = "Pink Slips";
initialState = false;
groupName = "radioGroup";
data = 2;
labelPlacement = "right";
changeHandler = "";
}
on (release) {
}
Instance of Symbol 957 MovieClip "DIF" in Symbol 3875 MovieClip Frame 1
onClipEvent (mouseUp) {
_parent.onChangeList();
}
Symbol 3877 Button
on (release) {
tellTarget (_root) {
partsShop(car[player.car]);
};
}
Symbol 3878 Button
on (release) {
tellTarget (_root) {
if (player.slevel > 30) {
EngineShop(car[player.car]);
} else {
_root.prompt("", "Complete Level 30 In Single Races To Unlock Engine Swaps");
}
};
}
Symbol 3879 Button
on (release) {
tellTarget (_root) {
ExteriorShop(car[player.car]);
};
}
Symbol 3881 Button
on (release) {
tellTarget (_root) {
interiorShop(car[player.car]);
};
}
Symbol 3886 Button
on (release) {
_root.onChangeList(this.n);
}
Symbol 3890 MovieClip Frame 1
function setUpBtn(nm, bn) {
this[nm].b.name.text = _root.TOURNEY[bn].name;
this[nm].b.CLASSES.gotoAndStop(_root.TOURNEY[bn].class);
}
setUpBtn("butn", 0);
nn = 0;
while (n < ((_root.tmi * 3) - 1)) {
nn++;
if (nn >= _root.tmi) {
nn = 0;
}
chk = true;
var i = 0;
while (i < _root.TOURNEY[nn].pr.length) {
if ((!_root.player.tstatus.charAt(_root.TOURNEY[nn].pr[i])) == "1") {
chk = false;
}
i++;
}
if (chk) {
n++;
dup = "butn" add n;
duplicateMovieClip ("butn", dup, n);
this[dup]._x = this[dup]._x + (n * this[dup]._width);
this[dup].b._x++;
this[dup].n = nn;
this[dup].b.n = nn;
setUpBtn(dup, nn);
if (_root.player.tstatus.charAt(nn) == "1") {
this[dup]._alpha = 50;
}
}
}
Symbol 3891 MovieClip Frame 1
drag = "/dragControl";
Set("/:w", getProperty("/nav", _width));
Set("/:xPos", getProperty(drag, _x));
Set("/:yPos", getProperty(drag, _y));
Set("/:yPos", /:yPos - 200);
Set("/:xPos", /:xPos - 350);
speed = 10;
setProperty("/nav", _x , getProperty("/nav", _x) - (/:xPos / speed));
if (Number(getProperty("/nav", _x)) < Number(-(/:w / 2))) {
setProperty("/nav", _x , 0.01);
} else if (Number(getProperty("/nav", _x)) > 0) {
setProperty("/nav", _x , (-/:w) / 2);
}
Symbol 3891 MovieClip Frame 2
gotoAndPlay(_currentframe - 1);
Symbol 3905 Button
on (release) {
_root.TOURNDATA = _root.TOURNEY[tourneynum];
if (tourneynum != undefined) {
if (_root.car[_root.player.car].CLASS <= _root.TOURNDATA.class) {
if ((_root.TOURNDATA.manureq == undefined) || (_root[_root.car[_root.player.car].NAME].FULLNAME.slice(0, _root.TOURNDATA.manureq.length) == _root.TOURNDATA.manureq)) {
_root.gotoAndPlay("tourneystart");
this.removeMovieClip();
} else {
_root.prompt("Oops!", ("Only " + _root.TOURNDATA.manureq) + "s Allowed!");
}
} else {
_root.prompt("Oops!", ("Your Car is Not " + _root.CarClasses[_root.TOURNDATA.class]) + " Class!");
}
} else {
_root.prompt("Oops!", "Please Select A Tournament!");
}
}
Symbol 3913 Button
on (release) {
rew = new Object();
los = new Object();
if (racenum == TOURNDATA.races) {
rew.cr = TOURNDATA.firstplace;
TourneyCarWin = new Object();
BuyCar(TourneyCarWin, _root[TOURNDATA.carwin]);
rew.ca = TourneyCarWin;
rew.tar = "tourneywin";
los.cr = TOURNDATA.secondplace;
} else {
rew.cr = 0;
rew.tar = "tnext";
los.cr = 0;
}
los.tar = "tourneylose";
race(car[player.car], oppcar, 1, 2, rew, los, TOURNDATA.distance);
}
Symbol 3925 Button
on (release) {
Login();
}
Symbol 3927 Button
on (release) {
gotoAndStop ("register");
}
Symbol 3938 Button
on (release) {
DATA = new LoadVars();
dat = ((((("alias=" + alias) + "&pw=") + pw) + "&email=") + email) + "&type=0";
DATA.load("http://dragraceronline.net/PHP/users_update.php?" + dat);
DATA.onLoad = RegisterLoaded;
}
Symbol 3942 MovieClip Frame 1
function Vers_Check() {
trace(VERS.version);
if ((_root.version == VERS.version) || (!_root.pc)) {
Connect();
} else {
error = "Update Required to Go Online";
gotoAndStop ("Init");
}
}
function Login_Complete() {
_root.contentN = ((((("alias=" + alias) + "&id=") + id) + "&password=") + password) + "&";
_root.content0 = _root.contentN;
fscommand ("flashstudio.savetofile", "_root.filename0,_root.contentN");
if (DATA.result == "pass") {
if (DATA.alias == alias) {
chk1 = true;
} else {
chk1 = false;
}
if (DATA.password == password) {
chk2 = true;
} else {
chk2 = false;
}
if (chk1 & chk2) {
_root.Account = new Object();
for (i in DATA) {
_root.Account[i] = DATA[i];
}
_root.Account.id = id;
_root.gotoAndPlay("OnlineStart");
}
if ((chk1 || (!chk1)) || (!chk2)) {
error = "Invalid Username/Password";
alias = "";
password = "";
gotoAndStop ("init");
}
} else {
error = "Invalid Password/Username/ID Combination";
alias = "";
password = "";
gotoAndStop ("init");
}
}
function Connect() {
DATA.load("http://www.dragraceronline.net/PHP/users_idshowall.php?id=" add id);
DATA.onLoad = Login_Complete;
}
function Login() {
VERS.load("http://www.dragraceronline.net/EXE/getver.php");
VERS.onLoad = Vers_Check;
gotoAndStop ("connect");
}
DATA = new LoadVars();
VERS = new LoadVars();
if (_root.content0 != "CREATE") {
logininfo = _root.content0;
id = _root.LoadVar(logininfo, "id");
alias = _root.LoadVar(logininfo, "alias");
password = _root.LoadVar(logininfo, "password");
}
stop();
Symbol 3942 MovieClip Frame 2
stop();
Symbol 3942 MovieClip Frame 3
function RegisterLoaded() {
if (DATA.result == "pass") {
_root.prompt("", "Your Login Info has been sent to your email");
id = DATA.id;
password = pw;
_root.prompt("", "Write Down Your Login Info!");
_root.contentN = ((((("alias=" + alias) + "&id=") + id) + "&password=") + pw) + "&";
_root.content0 = _root.contentN;
fscommand ("flashstudio.savetofile", "_root.filename0,_root.contentN");
gotoAndStop (1);
} else {
_root.prompt("", DATA.msg);
}
}
Symbol 3944 Button
on (release) {
_root.SaveGame(_root.player, _root.car);
_root.prompt("Save Completed", "Your Game has been saved");
}
Symbol 3945 Button
on (release) {
clearPopUps();
es.close();
gotoAndPlay (749);
}
Symbol 3947 Button
on (release) {
_root.OnlineMyAccount();
}
Symbol 3948 Button
on (release) {
tellTarget (_root) {
if (_root.connected) {
_root.joinLobby();
} else {
_root.prompt("Oops!", "Your Not Connected to ElectroServer!");
}
};
}
Symbol 3949 Button
on (release) {
tellTarget (_root) {
if (_root.connected) {
} else {
_root.prompt("Oops!", "Your Not Connected to ElectroServer!");
}
};
}
Symbol 3950 Button
on (release) {
tellTarget (_root) {
ladder();
};
}
Symbol 3952 Button
on (release) {
_root.OnlineCarShow();
}
Symbol 3955 Button
on (release) {
tellTarget (_root) {
};
}
Symbol 3956 Button
on (release) {
tellTarget (_root) {
OnlineCarShow();
};
}
Symbol 3957 Button
on (release) {
tellTarget (_root) {
};
}
Symbol 3958 MovieClip Frame 30
stop();
Symbol 3961 Button
on (release) {
gotoAndStop ("dragraceronline");
}
Symbol 3964 Button
on (release, keyPress "<Enter>") {
sendChatMsg();
}
Symbol 3988 MovieClip Frame 1
play();
if (n == undefined) {
n = 0;
l = 1000;
}
n++;
Symbol 3988 MovieClip Frame 2
if (n < l) {
prevFrame();
} else {
n = 0;
}
Symbol 3988 MovieClip Frame 3
play();
n++;
Symbol 3988 MovieClip Frame 4
if (n < l) {
prevFrame();
} else {
n = 0;
}
Symbol 3988 MovieClip Frame 5
play();
n++;
Symbol 3988 MovieClip Frame 6
if (n < l) {
prevFrame();
} else {
n = 0;
}
Symbol 3989 Button
on (release) {
_root.Garage();
}
Symbol 3990 Button
on (release) {
chatHistory = "";
chatBox.text = chatHistory;
}
Symbol 3991 Button
on (release) {
showPopUp("select");
}
Symbol 3992 Button
on (release) {
tellTarget (_root) {
if (_root.connected) {
} else {
_root.prompt("Oops!", "Your Not Connected to ElectroServer!");
}
};
}
Symbol 3998 Button
on (release) {
cancel();
}
Symbol 4002 Button
on (release) {
ok();
}
Symbol 4017 Button
on (release) {
_parent.NewRoom();
}
Symbol 4020 Button
on (release) {
cancelChallenge();
cancel();
}
Symbol 4023 Button
on (release) {
challenge();
}
Symbol 4025 Button
on (release) {
messager();
}
Symbol 4027 Button
on (release) {
stats();
}
Symbol 4029 Button
on (release) {
carobj = new Object();
temp = new Object();
temp = _root.decodeCar(userob.cardt);
trace(temp);
for (i in temp) {
trace((i + " = ") + temp[i]);
}
_root.ViewCar(temp);
}
Symbol 4034 Button
on (release) {
sendChallenge();
}
Symbol 4063 Button
on (release) {
if (_root.Account.type > 0) {
d++;
ChUpdate();
} else {
_root.prompt("", "You Need A Tuner Account To Do This!");
}
}
Symbol 4064 Button
on (release) {
dr++;
ChUpdate();
}
Symbol 4065 Button
on (release) {
r++;
ChUpdate();
}
Symbol 4066 Button
on (release) {
if (_root.Account.type > 0) {
n++;
ChUpdate();
} else {
_root.prompt("", "You Need A Tuner Account To Do This!");
}
}
Symbol 4067 Button
on (release) {
if (_root.Account.type > 0) {
ps++;
ChUpdate();
} else {
_root.prompt("", "You Need A Tuner Account To Do This!");
}
}
Symbol 4068 Button
on (release) {
if (_root.Account.type > 0) {
c++;
ChUpdate();
} else {
_root.prompt("", "You Need A Tuner Account To Do This!");
}
}
Symbol 4069 Button
on (release) {
cn++;
ChUpdate();
}
Symbol 4074 Button
on (release) {
Decline();
}
Symbol 4076 Button
on (release) {
Accept();
}
Symbol 4089 Button
on (release) {
kick();
}
Symbol 4090 Button
on (release) {
ban();
}
Symbol 4092 MovieClip Frame 1
function messager() {
gotoAndStop ("Private");
}
function challenge() {
gotoAndStop ("Challenge");
}
function stats() {
gotoAndStop ("Stats");
}
function viewcar() {
gotoAndStop ("ViewCar");
}
function ChUpdate() {
if (d >= DV.length) {
d = 1;
}
if (dr >= DRV.length) {
dr = 1;
}
if (r > 2) {
r = 1;
}
if (n > 2) {
n = 1;
}
if (ps > 2) {
ps = 1;
}
if (c >= CV.length) {
c = 1;
}
if (cn >= CNV.length) {
cn = 1;
}
distance.gotoAndStop(d);
drcw.gotoAndStop(dr);
ranked.gotoAndStop(r);
nitrous.gotoAndStop(n);
pinkslips.gotoAndStop(ps);
maxclass.gotoAndStop(c);
control.gotoAndStop(cn);
}
function updateWindow() {
user.text = userob.label;
car = userob.car;
id = userob.id;
}
DV = new Array();
DV[1] = 300;
DV[2] = 400;
DV[3] = 600;
DV[4] = 800;
DV[5] = 1000;
DRV = new Array();
DRV[1] = 0;
DRV[2] = 10;
DRV[3] = 50;
DRV[4] = 75;
DRV[5] = 100;
DRV[6] = 200;
DRV[7] = 500;
CV = new Array();
CV[1] = "C";
CV[2] = "S";
CV[3] = "R";
CNV = new Array();
CNV[1] = 1;
CNV[2] = 2;
CNV[3] = 3;
challenging = false;
stop();
Symbol 4092 MovieClip Frame 4
function ok() {
_parent.es.joinRoom(name);
delete roomOb;
delete name;
gotoAndStop (1);
}
function cancel() {
delete roomOb;
delete name;
gotoAndStop (1);
}
roomName.text = name;
ok();
Symbol 4092 MovieClip Frame 12
function ok() {
_parent.es.joinRoom(name, pass.text);
delete roomOb;
delete name;
gotoAndStop (1);
}
function cancel() {
delete roomOb;
delete name;
gotoAndStop (1);
}
name = roomOb.name.value;
roomName.text = name;
Symbol 4092 MovieClip Frame 18
function ok() {
gotoAndStop (1);
}
Symbol 4092 MovieClip Frame 25
function makeRoom() {
var _local2 = new Object();
_local2.roomName = roomName.text;
_local2.Description = description.text;
_local2.password = pass.text;
_parent.es.createRoom(_local2);
}
function cancel() {
gotoAndStop (1);
}
function ok() {
makeRoom();
gotoAndStop (1);
}
Symbol 4092 MovieClip Frame 29
function Update() {
roomName.text = _root.room.text;
es = _root.es;
roomlist = es.getRoomList();
if (roomlist.length > 0) {
var _local7 = new Array();
var _local4 = 0;
while (_local4 < roomlist.length) {
var _local2 = roomlist[_local4];
var _local5;
if (_local2.attributes.IsPasswordProtected) {
_local5 = " [locked] ";
} else {
_local5 = "";
}
var _local6 = (((_local2.name.value + _local5) + " (") + _local2.attributes.users) + ")";
if (!_root.StartEq(_local2.name.value, "#RACE:")) {
var _local3 = new Object();
_local3.label = _local6;
_local3.data = _local2;
_local7.push(_local3);
}
_local4++;
}
roomListBox.setDataProvider(_local7);
} else {
var _local8 = new Object();
_local8.zone = "Chat Area";
_local8.roomName = "Lobby";
_local8.Description = "Chat with friends about anything.";
_local8.UserVariablesEnabled = true;
es.createRoom(_local8);
}
}
function cancel() {
gotoAndStop (1);
}
function ok() {
name = roomListBox.getSelectedItem().data.name.value;
roomOb = roomListBox.getSelectedItem().data;
if (roomOb.attributes.PasswordProtected) {
gotoAndStop ("Join Room2");
} else {
gotoAndStop ("Join Room");
}
}
Update();
Instance of Symbol 849 MovieClip [FListBoxSymbol] "roomListBox" in Symbol 4092 MovieClip Frame 29
//component parameters
onClipEvent (initialize) {
selectMultiple = false;
changeHandler = "";
}
Symbol 4092 MovieClip Frame 35
function cancel() {
gotoAndStop (1);
}
function ok() {
var _local2 = message.text;
if (_local2.length > 0) {
_parent.es.sendMessage("private", _local2, [user.text]);
gotoAndStop (1);
}
}
if (_root.Account.type > 1) {
gotoAndStop ("Moderator");
}
updateWindow();
Symbol 4092 MovieClip Frame 39
function sendChallenge() {
var _local2 = ((((((((((((("#chlng:d=" + d) + "&drc=") + dr) + "&r=") + r) + "&n=") + n) + "&ps=") + ps) + "&c=") + c) + "&cn=") + cn) + "&";
_parent.es.sendMessage("private", _local2, [user.text]);
gotoAndPlay ("ChWait");
}
d = 2;
dr = 1;
r = 1;
n = 1;
ps = 2;
c = 1;
cn = 1;
ChUpdate();
stop();
Symbol 4092 MovieClip Frame 43
function cancelChallenge() {
challenging = false;
var _local2 = "!chlng:canc";
_parent.es.sendMessage("private", _local2, [user.text]);
gotoAndStop (1);
}
challenging = true;
_root.OnlineChallenger = userob;
stop();
Symbol 4092 MovieClip Frame 49
play();
Symbol 4092 MovieClip Frame 53
_parent.gotoAndPlay("prerace");
Symbol 4092 MovieClip Frame 54
function Accept() {
var _local4 = "!chlng:true";
_parent.es.sendMessage("private", _local4, [user.text]);
var _local3 = new Object();
_local3.description = "";
_local3.roomName = (("#RACE:" + user.text) + "vs") + _root.Account.alias;
_local3.password = "";
_local3.attributes = new Object();
_local3.attributes.allowSpectators = false;
_local3.attributes.numPlayers = 2;
_local3.attributes.playersArrived = 1;
_local3.FloodingFilterEnabled = false;
_parent.es.createGameRoom(_local3);
_parent.joiningGame = true;
gotoAndStop (1);
_root.OnlineChallenger = userob;
}
function Decline() {
var _local2 = "!chlng:false";
_parent.es.sendMessage("private", _local2, [user.text]);
gotoAndStop (1);
}
d = _root.LoadVar(ChallengeInfo, "d");
dr = _root.LoadVar(ChallengeInfo, "dr");
r = _root.LoadVar(ChallengeInfo, "r");
n = _root.LoadVar(ChallengeInfo, "n");
ps = _root.LoadVar(ChallengeInfo, "ps");
c = _root.LoadVar(ChallengeInfo, "c");
cn = _root.LoadVar(ChallengeInfo, "cn");
ChUpdate();
updateWindow();
stop();
Symbol 4092 MovieClip Frame 58
function Login_Complete() {
for (i in DATA) {
this[i] = DATA[i];
trace((i + " = ") + DATA[i]);
}
typ.text = _root.Types[this.type];
tm.text = this.team;
rcd.text = ((this.wins + "W - ") + this.losses) + "L";
dc.text = this.drc;
eml.text = this.email;
}
DATA = new LoadVars();
DATA.onLoad = Login_Complete;
DATA.load("http://www.dragraceronline.net/PHP/users_idshowall.php?id=" add id);
stop();
Symbol 4092 MovieClip Frame 62
function cancel() {
gotoAndStop (1);
}
function ok() {
var _local2 = message.text;
if (_local2.length > 0) {
_parent.es.sendMessage("private", _local2, [user.text]);
gotoAndStop (1);
}
}
function kick() {
_parent.es.kick(username, message.text);
gotoAndStop (1);
}
function ban() {
_parent.es.ban(username, message.text);
gotoAndStop (1);
}
updateWindow();
Symbol 4097 Button
on (release) {
es.sendMessage("private", "#quitrace", OnlineChallenger.name.value);
joinLobby();
OnlineChallenger = new Object();
gotoAndStop ("Chat");
}
Symbol 4098 Button
on (release) {
ready = true;
es.sendMessage("private", "#prce:" + ready, [OnlineChallenger.name.value]);
RaceUpdate();
}