home *** CD-ROM | disk | FTP | other *** search
- _root.lights_mc._visible = true;
- _root.leagueGame = true;
- _root.currentDrift_str = "";
- var i = 1;
- while(i <= 3)
- {
- game_mc["powerup" + i].gotoAndStop(1);
- i++;
- }
- _root.game_mc.video_mc.gotoAndPlay("crowd");
- stopAllSounds();
- Stage.scaleMode = "noscale";
- _root.driftScoreMultiplier = 1;
- _root.DRIFT_SCORE_MULTIPLIER_INTERVAL = 15;
- _root.driftScoreMultiplier_str = "";
- _root.score = 0;
- _root.gateCount = 6;
- _root.lapCount = 1;
- _root.gameTicks = 0;
- _root.timerMinutes = 0;
- captureKeys = false;
- _root.startBonus = "";
- _root.readyToGo = true;
- _root.raceStarted = false;
- if(!_root.spaceToStart)
- {
- _root.lights_mc.gotoAndPlay(2);
- }
- _root.donutChallenge = false;
- game_mc.car.MULTIPLIER_TIMEOUT = 15;
- _root.ghostPlayback = false;
- game_mc.car._x = game_mc.car.startX;
- game_mc.car._y = game_mc.car.startY;
- if(game_mc.car.currentSkidmarkDepth > 0)
- {
- var i = 1;
- while(i <= game_mc.car.currentSkidmarkDepth)
- {
- eval("game_mc.tracks" + i).removeMovieClip();
- i++;
- }
- }
- new mx.transitions.Tween(_root.garageButton_mc,"_alpha",easeType,_root.garageButton_mc._alpha,100,20);
- new mx.transitions.Tween(_root.donutButton_mc,"_alpha",easeType,_root.donutButton_mc._alpha,100,20);
- _root.leagueInterface_mc._visible = true;
- _root.lights_mc._visible = true;
- game_mc.gate1_mc.gotoAndStop(1);
- game_mc.gate2_mc.gotoAndStop(1);
- game_mc.gate3_mc.gotoAndStop(1);
- game_mc.gate4_mc.gotoAndStop(1);
- game_mc.gate5_mc.gotoAndStop(1);
- clockOn = false;
- _root.timerMinutes = 0;
- _root.timerSeconds = 0;
- _root.timerTicks = 0;
- _root.timerSeconds_str = "00";
- _root.timerTicks_str = "000";
- _root.gameActive = false;
- _root.readyToGo = true;
- if(!_root.ghostPlayback)
- {
- keyCapture_array = new Array();
- }
- removeMovieClip(game_mc.car);
- game_mc.originalCar.duplicateMovieClip("car",999999);
- game_mc.car._alpha = 100;
- game_mc.originalCar._alpha = 0;
- if(_root.selectedCar)
- {
- game_mc.car.carNumber = _root.selectedCar;
- }
- game_mc.car.setCarStats(game_mc.car.carNumber);
- game_mc.car.gotoAndStop(game_mc.car.carNumber);
- game_mc.car.active = true;
- gameStartTime = getTimer();
- _root.ghostPlayback = false;
- keyPlayback_str = "0000000000000444444444455555444444444455554444466666666664444446666666666666666444466666444444444455555555555555444444555555555555555444445555555444444444666666444444666666666666666666664444444444446666666666444444444466664444444444444444445555555555444444444444446666644446666666644444666666444444444555555544444444555444444444666444446666666666666666666666444444444444555554444444444444445555555555555555554444444000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000undefined";
- keyPlayback_array = keyPlayback_str.split("");
- for(i in keyPlayback_array)
- {
- if(keyPlayback_array[i] == "A")
- {
- keyPlayback_array[i] = 10;
- }
- else if(keyPlayback_array[i] == "B")
- {
- keyPlayback_array[i] = 11;
- }
- else if(keyPlayback_array[i] == "C")
- {
- keyPlayback_array[i] = 12;
- }
- else if(keyPlayback_array[i] == "D")
- {
- keyPlayback_array[i] = 13;
- }
- else if(keyPlayback_array[i] == "E")
- {
- keyPlayback_array[i] = 14;
- }
- else if(keyPlayback_array[i] == "F")
- {
- keyPlayback_array[i] = 15;
- }
- else
- {
- keyPlayback_array[i] = Number(keyPlayback_array[i]);
- }
- }
- getLeagueInfo_lv = new LoadVars();
- getLeagueInfo_lv.onLoad = function(success)
- {
- trace("got league information from server");
- _root.leagueName = this.LeagueName;
- _root.yourName = this.YourName;
- _root.yourScore = Number(this.YourScore);
- _root.player_array = new Array();
- _root.player_array[0] = new Array();
- _root.player_array[0].name = _root.yourName;
- _root.player_array[0].score = _root.yourScore;
- var _loc3_ = 1;
- while(_loc3_ <= 15)
- {
- var _loc4_ = this["player" + _loc3_ + "Name"];
- var _loc6_ = Number(this["player" + _loc3_ + "Score"]);
- if(_loc4_ != undefined)
- {
- _root.player_array[_loc3_] = new Array();
- _root.player_array[_loc3_].name = _loc4_;
- _root.player_array[_loc3_].score = _loc6_;
- }
- _loc3_ = _loc3_ + 1;
- }
- _root.player_array.sortOn("score",18);
- _loc3_ = 1;
- while(_loc3_ <= 15)
- {
- var _loc5_ = _root.player_array[_loc3_ - 1].name;
- if(_loc5_ != undefined)
- {
- _root["leagueTableNumber" + _loc3_] = _loc3_;
- _root["leagueTableName" + _loc3_] = _root.player_array[_loc3_ - 1].name.toUpperCase();
- _root["leagueTableScore" + _loc3_] = _root.player_array[_loc3_ - 1].score;
- }
- else
- {
- _root["leagueTableName" + _loc3_] = "";
- _root["leagueTableNumber" + _loc3_] = "";
- _root["leagueTableScore" + _loc3_] = "";
- }
- if(_root.player_array.length < 15)
- {
- leagueInterface_mc.add_player_button_mc.gotoAndStop(_root.player_array.length + 1);
- }
- else
- {
- leagueInterface_mc.add_player_button_mc.gotoAndStop(1);
- }
- if(_loc5_ == _root.yourName)
- {
- leagueInterface_mc["leagueTableName" + _loc3_ + "_txt"].textColor = "0xB3FF00";
- leagueInterface_mc["leagueTableScore" + _loc3_ + "_txt"].textColor = "0xB3FF00";
- }
- else
- {
- leagueInterface_mc["leagueTableName" + _loc3_ + "_txt"].textColor = "0xFFFFFF";
- leagueInterface_mc["leagueTableScore" + _loc3_ + "_txt"].textColor = "0xFFFFFF";
- }
- _loc3_ = _loc3_ + 1;
- }
- };
- getLeagueInfo_lv.LID = id;
- var serverURL = _root.serverPath + "getLeagueInfo.cfm";
- getLeagueInfo_lv.sendAndLoad(serverURL,getLeagueInfo_lv,"post");
-