Combined Code
movieClip 5 fps {
}
movieClip 8 car_view {
frame 1 {
stop();
}
}
movieClip 12 fcs {
frame 91 {
removeMovieClip(this);
}
}
movieClip 19 aa {
}
movieClip 20 snow {
instance of movieClip 19 aa {
onClipEvent (load) {
this.gotoAndPlay(random(7) + 1);
}
}
}
movieClip 29 {
frame 9 {
stop();
}
}
movieClip 30 baozha {
frame 1 {
stop();
var aa = [11, 22, 33, 44, 1, 55, 66, 77, 88, 99];
b = random(10);
c = aa[b];
this.gotoAndPlay(c);
}
frame 10 {
stop();
a = 0;
c = random(20);
onEnterFrame = function () {
a = random(20);
if (a == c) {
gotoAndPlay(1);
}
};
}
frame 21 {
stop();
a = 0;
c = random(20);
onEnterFrame = function () {
a = random(20);
if (a == c) {
gotoAndPlay(1);
}
};
}
frame 32 {
stop();
a = 0;
c = random(20);
onEnterFrame = function () {
a = random(20);
if (a == c) {
gotoAndPlay(1);
}
};
}
frame 43 {
stop();
a = 0;
c = random(20);
onEnterFrame = function () {
a = random(20);
if (a == c) {
gotoAndPlay(1);
}
};
}
frame 54 {
stop();
a = 0;
c = random(20);
onEnterFrame = function () {
a = random(20);
if (a == c) {
gotoAndPlay(1);
}
};
}
frame 65 {
stop();
a = 0;
c = random(20);
onEnterFrame = function () {
a = random(20);
if (a == c) {
gotoAndPlay(1);
}
};
}
frame 76 {
stop();
a = 0;
c = random(20);
onEnterFrame = function () {
a = random(20);
if (a == c) {
gotoAndPlay(1);
}
};
}
frame 87 {
stop();
a = 0;
c = random(20);
onEnterFrame = function () {
a = random(20);
if (a == c) {
gotoAndPlay(1);
}
};
}
frame 98 {
stop();
a = 0;
c = random(20);
onEnterFrame = function () {
a = random(20);
if (a == c) {
gotoAndPlay(1);
}
};
}
}
frame 1 {
Stage.showMenu = false;
Stage.scaleMode = 'noScale';
fscommand('allowscale', false);
fscommand('showmenu', false);
_root.StageWidth = 500;
_root.StageHeight = 500;
_root.localization_url1 = 'http://moregames.agame.com/?utm_source=brandedgames&utm_medium=raccoon_racing';
_root.localization_url2 = 'http://freegames.agame.com/?utm_source=brandedgames&utm_medium=raccoon_racing';
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.moregameslink = _root.localization_url1;
_root.freegameslink = _root.localization_url2;
_root.logolink = _root.localization_url1;
stop();
var UIloadingTime = 100;
_root.UIloadingDmc.onEnterFrame = function () {
if (UIloadingTime < 100) {
++UIloadingTime;
}
var v3 = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100 * UIloadingTime / 100);
this.loadingbar.txt.text = v3 + '%';
this.loadingbar.bar._xscale = v3;
if (v3 >= 100) {
_root.gotoAndStop(3);
this.swapDepths(1);
this.removeMovieClip();
delete this.onEnterFrame;
}
};
}
movieClip 35 {
}
movieClip 36 {
frame 10 {
stop();
removeMovieClip(this._parent);
}
}
movieClip 37 {
}
movieClip 38 {
frame 8 {
i = 0;
onEnterFrame = function () {
duplicateMovieClip(star, 'star' + i, i);
a = 360 * Math.random();
b = random(95) + 5;
c = random(15);
this['star' + i]._yscale = b;
this['star' + i]._xscale = this['star' + i]._yscale;
this['star' + i]._y += c;
++i;
};
}
frame 26 {
stop();
}
}
movieClip 39 {
}
movieClip 42 {
frame 1 {
stop();
}
}
movieClip 43 {
frame 35 {
stop();
}
}
movieClip 59 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 62 {
}
movieClip 65 {
instance bar of movieClip 62 {
}
}
movieClip 68 {
}
movieClip 70 {
}
movieClip 71 {
}
movieClip 74 {
}
movieClip 75 {
}
movieClip 77 {
}
movieClip 79 {
}
movieClip 81 {
}
movieClip 83 {
}
movieClip 85 {
}
movieClip 87 {
}
movieClip 89 {
}
movieClip 91 {
}
movieClip 93 {
}
movieClip 95 {
}
movieClip 97 {
}
movieClip 99 {
}
movieClip 100 {
frame 1 {
gotoAndStop(_root.localization_branding_nr);
}
instance of movieClip 71 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 75 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 77 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 79 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 81 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 83 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 85 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 87 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 89 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 91 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 93 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 95 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 97 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 99 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
}
movieClip 101 {
}
movieClip 103 {
}
movieClip 2376 __Packages.as.Game {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Game) {
var v1 = function (dmc) {
this.Dmc = dmc;
as.Game.Instance = this;
this.moveObject = new Array();
this.InitSound();
as.LanguageData.init();
as.Player.Init();
as.Map.Init();
as.GameDate.Init();
this.Players = new Array();
this.effect = new as.Effect(this);
var v4 = dmc.createEmptyMovieClip('uiManageDmc', 50);
this.uiManage = new as.UiManage(v4, this);
var v3 = dmc.createEmptyMovieClip('MessageBoxDmc', 100);
as.MessageBox.AddMessageBoxType('Msg');
as.MessageBox.AddMessageBoxType('message_worryway');
as.MessageBox.AddMessageBoxType('Msg2');
as.MessageBox.MessageBoxDmc = v3;
v3._x = _root.StageWidth / 2;
v3._y = _root.StageHeight / 2;
this.SceneAngleMoveExpandPos = new as.Vector(150, 0);
this.SceneAngleMoveExpandNowPos = new as.Vector(0, 0);
Key.addListener(this);
if (this.__Debug__) {
this.uiManage.ShowMainScreen();
return undefined;
}
this.uiManage.ShowUiMainMenu();
this.gameSounds.FadeMusic();
this.gameSounds.StartMusic('mains');
this.gameSounds.setSoundVolume('mains', 30);
this.gameSounds.FadeVolume('mains', true, 3, 100);
};
as.Game = v1;
var v2 = v1.prototype;
v2.InitSound = function () {
var v2 = new Array();
v2.push('Go');
v2.push('Ready1');
v2.push('Ready2');
v2.push('Ready3');
v2.push('ButtonOver');
v2.push('ButtonRelease');
v2.push('ButtonWarning');
v2.push('GetProp');
v2.push('PropBoxRun');
v2.push('PropBoxOk');
v2.push('computercup');
v2.push('stat');
v2.push('map1');
v2.push('map2');
v2.push('map3');
v2.push('map4');
v2.push('mains');
v2.push('levelstart');
v2.push('invincilble');
v2.push('finish');
v2.push('failed');
this.gameSounds = new as.Sounds(this.Dmc, v2);
};
v2.Run = function () {
this.map.CutMaping();
if (this.Running) {
this.SceneCenterMoveToPos();
this.FocusCar(this.FcsCar);
this.DetectKey();
this.uiManage.run();
var v3 = 0;
while (v3 < this.Players.length) {
this.Players[v3].run();
++v3;
}
this.UpdateOrderResult();
var v2 = 0;
while (v2 < this.moveObject.length) {
this.moveObject[v2].Update();
++v2;
}
}
};
v2.StartCup = function () {
as.GameDate.clearRecord();
var v3 = new Array();
var v2 = 0;
while (v2 < as.Player.PlayerSelectList.length) {
if (as.GameDate.GetPlayerType() != v2) {
if (random(2) == 1) {
v3.push(v2);
} else {
v3.unshift(v2);
}
}
++v2;
}
as.GameDate.AiType[0] = v3[0];
as.GameDate.AiType[1] = v3[1];
as.GameDate.AiType[2] = v3[2];
as.GameDate.NowTotalScores = 0;
this.uiManage.ShowUIMapLoading();
as.Timer.AddTimer(this, 'WaitUIMapLoading', 200);
this.gameSounds.FadeMusic();
};
v2.WaitUIMapLoading = function () {
this.uiManage.ShowGameUi();
this.uiManage.HighGameUi();
this.InitMap(as.GameDate.GetMapId(), as.GameDate.GetRaceId());
};
v2.EndUIMapLoading = function () {
if (this.__Debug__) {
this.uiManage.DelMainScreen();
}
this.uiManage.HighGameUi();
this.uiManage.DelUIMapLoading();
this.RaceReady(as.GameDate.GetMapId(), as.GameDate.GetRaceId());
};
v2.CupCompleted = function () {
as.GameDate.SaveWinCup(as.GameDate.SelectCapId, as.GameDate.SelectLevelId + 1);
this.gameSounds.PlaySound('computercup');
this.uiManage.ShowUIcupcompleted();
};
v2.CupOver = function () {
this.uiManage.ShowUIgameover();
};
v2.NextRace = function () {
var v2 = as.GameDate.getNextMap();
if (v2 == -1) {
as.GameDate.RecordPoint.sortOn(new Array(1, 0), new Array(Array.DESCENDING | Array.NUMERIC, Array.NUMERIC));
if (as.GameDate.RecordPoint[0][0] == 0) {
this.CupCompleted();
} else {
this.CupOver();
}
} else {
this.uiManage.ShowUIMapLoading();
as.Timer.AddTimer(this, 'WaitUIMapLoading', 200);
this.gameSounds.FadeMusic();
}
};
v2.InitMap = function (MapId, RaceId) {
if (MapId == 0) {
this.map = new as.Map01(this, this.Dmc, this.uiManage.GetViewMap(), RaceId);
}
if (MapId == 1) {
this.map = new as.Map02(this, this.Dmc, this.uiManage.GetViewMap(), RaceId);
}
if (MapId == 2) {
this.map = new as.Map03(this, this.Dmc, this.uiManage.GetViewMap(), RaceId);
}
if (MapId == 3) {
this.map = new as.Map04(this, this.Dmc, this.uiManage.GetViewMap(), RaceId);
}
this.map.setLap(as.GameDate.GetLapNum());
this.map.__set__game(this);
};
v2.RaceReady = function (MapId, RaceId) {
this.gameSounds.PlaySound('levelstart');
this.PlayerInit();
this.Running = false;
this.Running = true;
as.MessageBox.ShowMessage(as.LanguageData.CUP_X_Race_Y__Z_K(as.GameDate.SelectCapId + 1, as.GameDate.NowCupLevel + 1, as.GameDate.getTotalCupLevelNum(), as.LanguageData[as.Map.MapSelectList[as.GameDate.GetMapId()]]), 3000, 2);
as.Timer.AddTimer(this.effect, 'ShowStartEffect', 3000, this.Dmc);
var cerf = this;
this.effect.OnStartEffectOver = function () {
cerf.RaceStart();
};
};
v2.RaceOver = function () {
this.Running = false;
var v2 = 0;
while (v2 < this.Players.length) {
this.Players[v2].Del();
delete this.Players[v2];
++v2;
}
this.Players = new Array();
this.map.Del();
delete this.map;
this.map = undefined;
};
v2.PlayerInit = function () {
this.Players.push(new as.Player(this, this.map, as.GameDate.GetPlayerType(), this.Players.length));
this.Players[this.Players.length - 1].MakeCar(this.map.CarMc);
this.Players[this.Players.length - 1].myCar.setControlByPlayer(true);
this.Players[this.Players.length - 1].AiReflect = 10;
this.Players[this.Players.length - 1].myCar.showArrow_move();
this.FcsCar = this.Players[this.Players.length - 1].myCar;
this.Players.push(new as.Ai(this, this.map, as.GameDate.GetPlayerType(1), this.Players.length));
this.Players[this.Players.length - 1].MakeCar(this.map.CarMc);
this.Players[this.Players.length - 1].myCar.setControlByPlayer(false);
this.Players[this.Players.length - 1].AiReflect = as.GameDate.getAiLevel(0, 0);
this.Players[this.Players.length - 1].AiUsePropReflect = as.GameDate.getAiLevel(0, 1);
this.Players[this.Players.length - 1].IsOnlyAttPlayer = as.GameDate.getAiLevel(0, 2);
this.Players.push(new as.Ai(this, this.map, as.GameDate.GetPlayerType(2), this.Players.length));
this.Players[this.Players.length - 1].MakeCar(this.map.CarMc);
this.Players[this.Players.length - 1].myCar.setControlByPlayer(false);
this.Players[this.Players.length - 1].AiReflect = as.GameDate.getAiLevel(1, 0);
this.Players[this.Players.length - 1].AiUsePropReflect = as.GameDate.getAiLevel(1, 1);
this.Players[this.Players.length - 1].IsOnlyAttPlayer = as.GameDate.getAiLevel(1, 2);
this.Players.push(new as.Ai(this, this.map, as.GameDate.GetPlayerType(3), this.Players.length));
this.Players[this.Players.length - 1].MakeCar(this.map.CarMc);
this.Players[this.Players.length - 1].myCar.setControlByPlayer(false);
this.Players[this.Players.length - 1].AiReflect = as.GameDate.getAiLevel(2, 0);
this.Players[this.Players.length - 1].AiUsePropReflect = as.GameDate.getAiLevel(2, 1);
this.Players[this.Players.length - 1].IsOnlyAttPlayer = as.GameDate.getAiLevel(2, 2);
this.ReadyCar();
this.OrderInfo = new Array();
var v2 = 0;
while (v2 < this.Players.length) {
this.OrderInfo[v2] = new Array(this.Players[v2].Alldistance, this.Players[v2].Id);
++v2;
}
this.uiManage.InitTopList();
};
v2.ReadyCar = function () {
var v2 = 0;
while (v2 < this.Players.length) {
var v3 = this.map.GetStartPos(v2);
this.Players[v2].myCar.ReSet(v3.x, v3.y, this.map.GetStartAngle(v2) - 90);
this.Players[v2].myCar.Laps = this.map.LapsTotal;
++v2;
}
};
v2.RaceStart = function () {
this.gameSounds.StartMusic('map' + String(as.GameDate.GetMapId() + 1));
as.GameDate.RecordTime = null;
this.uiManage.StartRecordTime();
var v2 = 0;
while (v2 < this.Players.length) {
this.Players[v2].StartRace();
++v2;
}
this.Players[0].myCar.DelArrow_move();
};
v2.RaceStop = function () {
as.GameDate.RecordTime = this.uiManage.StopRecordTime();
this.gameSounds.FadeMusic();
if (this.Players[0].Order == 0) {
this.gameSounds.PlaySound('finish');
} else {
this.gameSounds.PlaySound('failed');
}
this.effect.ShowFinishEffect(this.Dmc);
var cerf = this;
this.effect.OnFinishEffectOver = function () {
if (cerf.__Debug__) {
cerf.BackToMain();
return undefined;
}
cerf.uiManage.ShowUiOverScreen();
var v2 = new Object();
cerf.uiManage.UiOverMessageObject.addListener(v2);
v2.onUiOver = function () {
cerf.BackToMain();
cerf.uiManage.UiOverMessageObject.removeListener(this);
};
};
};
v2.BackToMain = function () {
as.GameDate.RecordPlayerSorce(this.OrderInfo);
as.GameDate.NowTotalScores += as.GameDate.getMapCompletesScores(as.GameDate.SelectCapId, as.GameDate.NowCupLevel, as.GameDate.SelectLevelId, as.GameDate.RecordTime, as.GameDate.RecordPoint[0][2]);
if (as.GameDate.RecordCUPTime == null) {
as.GameDate.RecordCUPTime = as.GameDate.RecordTime;
} else {
as.GameDate.RecordCUPTime += as.GameDate.RecordTime;
}
this.RaceOver();
this.uiManage.DelGameUi();
if (this.__Debug__) {
this.uiManage.ShowMainScreen();
return undefined;
}
this.uiManage.ShowUiScores();
this.gameSounds.StartMusic('stat');
};
v2.UpdateOrderResult = function () {
var v2 = 0;
while (v2 < this.Players.length) {
this.OrderInfo[v2][0] = this.Players[v2].Alldistance;
this.OrderInfo[v2][1] = this.Players[v2].Id;
++v2;
}
this.OrderInfo.sortOn(0, Array.DESCENDING | Array.NUMERIC);
v2 = 0;
while (v2 < this.OrderInfo.length) {
this.Players[this.OrderInfo[v2][1]].SetOrder(v2);
++v2;
}
};
v2.FocusCar = function (car) {
this.map.Dmc._yscale = 100 - car.jump_currheight * 0.5;
this.map.Dmc._xscale = this.map.Dmc._yscale;
this.SetSceneAngleExpand(new as.Vector(car.Dmc._x, car.Dmc._y), car.Dmc._rotation);
};
v2.SetSceneAngleExpand = function (nowPos, nowCarAngle) {
this.SceneAngleMoveExpandPos.x = 200;
this.SceneAngleMoveExpandPos.y = 0;
this.SceneAngleMoveExpandPos.rotate(nowCarAngle);
this.SceneAngleMoveExpandNowPos.x += ((this.SceneAngleMoveExpandPos.x - this.SceneAngleMoveExpandNowPos.x) / 8) * this.MoveSceneAngleSpeed;
this.SceneAngleMoveExpandNowPos.y += ((this.SceneAngleMoveExpandPos.y - this.SceneAngleMoveExpandNowPos.y) / 8) * this.MoveSceneAngleSpeed;
nowPos.plus(this.SceneAngleMoveExpandNowPos);
this.SetCenterPos(nowPos);
};
v2.SetCenterPos = function (nowPos) {
this.SceneCenterPos = nowPos;
if (this.SceneCenterPos.x < this.map.MapLx) {
this.SceneCenterPos.x = this.map.MapLx;
}
if (this.SceneCenterPos.x > this.map.MapRx) {
this.SceneCenterPos.x = this.map.MapRx;
}
if (this.SceneCenterPos.y < this.map.MapTy) {
this.SceneCenterPos.y = this.map.MapTy;
}
if (this.SceneCenterPos.y > this.map.MapBy) {
this.SceneCenterPos.y = this.map.MapBy;
}
};
v2.SceneCenterMoveToPos = function () {
this.Dmc.map._x += ((_root.StageWidth / 2 - this.SceneCenterPos.x * this.Dmc.map._xscale / 100 - this.Dmc.map._x) / 8) * this.MoveSceneCenterSpeed;
this.Dmc.map._y += ((_root.StageHeight / 2 - this.SceneCenterPos.y * this.Dmc.map._xscale / 100 - this.Dmc.map._y) / 8) * this.MoveSceneCenterSpeed;
};
v2.onKeyUp = function () {
if (this.__DebugKey__) {
this.DebugKey();
}
if (this.Running) {
if (Key.getCode() == 32) {
this.FcsCar.player.UseProp();
}
}
};
v2.DetectKey = function () {
if (Key.isDown(38)) {
this.Players[0].ActionCar(0);
} else {
if (Key.isDown(40)) {
this.Players[0].ActionCar(1);
} else {
this.Players[0].ActionCar(-1);
}
}
if (Key.isDown(37)) {
this.Players[0].ActionCar(2);
} else {
if (Key.isDown(39)) {
this.Players[0].ActionCar(3);
} else {
this.Players[0].ActionCar(4);
}
}
};
v2.GetPlayer = function (PlayerId) {
var v2 = 0;
while (v2 < this.Players.length) {
if (this.Players[v2].Id == PlayerId) {
return this.Players[v2];
}
++v2;
}
};
v2.DebugKey = function () {
var v3 = 1;
while (v3 < 10) {
if (Key.getCode() == v3 + 48) {
this.FcsCar.player.prop.NowPorpId = v3;
}
++v3;
}
if (Key.getCode() == 9) {
var v2 = 0;
while (v2 < this.Players.length) {
if (this.FcsCar.player.Id == this.Players[v2].Id) {
this.FcsCar = this.Players[v2 + 1].myCar;
if (v2 + 1 == this.Players.length) {
this.FcsCar = this.Players[0].myCar;
}
break;
}
++v2;
}
}
if (Key.getCode() == 82) {
this.FcsCar.player.ReSetCar();
}
if (Key.getCode() == 87) {
this.FcsCar.player.FinishRace();
}
};
v1.main = function (container) {
_quality = 'MEDIUM';
var game = new as.Game(container);
container.onEnterFrame = function () {
as.Timer.run();
game.Run();
game.calcFPS();
};
};
v2.calcFPS = function () {
var v3 = getTimer();
var v2 = v3 - this.startTime;
++this.numFrames;
if (v2 > 1000) {
this.startTime = getTimer();
this.actualFPS = Math.round(this.numFrames * 1000 / v2);
this.fps.fpsField.text = this.actualFPS;
this.numFrames = 0;
}
};
v2.__Debug__ = false;
v2.__DebugKey__ = false;
v2.Running = false;
v2.MapBy = 10000;
v2.MapTy = -10000;
v2.MapLx = -10000;
v2.MapRx = 10000;
v2.MoveSceneCenterSpeed = 2;
v2.MoveSceneAngleSpeed = 0.2;
v2.startTime = getTimer();
v2.numFrames = 0;
v2.actualFPS = 0;
ASSetPropFlags(as.Game.prototype, null, 1);
}
#endinitclip
}
movieClip 2377 __Packages.as.Car {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Car) {
var v1 = function (game, map, player, mapL, Type) {
this.CarFriction = 0;
this.CarMoveAngofCarAng = 0;
this.bs = false;
this.bsf = false;
this.IsAtIce = false;
this.IsLock = true;
this.tempx = 0;
this.tempy = 0;
this.stepx = 0;
this.stepy = 0;
this.Laps = 0;
this.jump_currheight = 0;
this.jump_prevheight = 0;
this.Dmc = mapL.attachMovie(Type, Type + player.Id, mapL.getNextHighestDepth());
this.game = game;
this.map = map;
this.player = player;
this.Dmc._xscale = this.scale * 100;
this.Dmc._yscale = this.scale * 100;
this.Dmc_view = game.map.ViewDmc.attachMovie('car_view', 'car_view' + player.Id, game.map.ViewDmc.getNextHighestDepth());
this.Speed = new as.Vector(0, 0);
this.PrevSpeed = new as.Vector(0, 0);
this.Horse = new as.Vector(this.CarHorse, 0);
this.GlideGratingNum = map.GlideGratingNum;
this.RollGratingNum = map.RollGratingNum;
this.GrassGratingNum = map.GrassGratingNum;
this.Wallspring = map.Wallspring;
this.carMaxWheelLength = this.MaxWheelLength;
this.carWheelLengthNum = this.WheelLengthNum;
this.IsBack = false;
this.initSound();
};
as.Car = v1;
var v2 = v1.prototype;
v2.initSound = function () {
var v2 = new Array();
if (this.map.RaceId == 1) {
v2.push('CarAddSpeed');
v2.push('CarRunSpeed');
v2.push('CarLostSpeed');
v2.push('CarFastSpeed');
v2.push('CarStop');
v2.push('CarBs');
v2.push('CarSmallBs');
v2.push('CarJumpEnd');
v2.push('Carbump');
}
if (this.map.RaceId == 2) {
v2.push('HCAddSpeed');
v2.push('HCRun');
v2.push('HCLostSpeed');
v2.push('HCEngine');
v2.push('HCEngineStart');
v2.push('HCJump');
v2.push('HCEndJump');
v2.push('HCbump');
}
v2.push('bomb');
v2.push('Shield');
v2.push('Petro');
v2.push('Missile');
v2.push('BeSleep');
v2.push('Bedump');
v2.push('dogS');
v2.push('PandaS');
v2.push('PandaSs');
v2.push('AddSpeed');
v2.push('mine');
v2.push('catS');
v2.push('BearS');
v2.push('Ice');
v2.push('useSleep');
v2.push('Jump');
v2.push('oil');
this.sounds = new as.Sounds(this.Dmc, v2);
this.soundsVolume = 100;
this.soundsPen = 0;
if (this.map.RaceId == 2) {
this.sounds.PlaySound('HCEngineStart', this.soundsVolume, 0, this.soundsPen);
var v3 = this.sounds.getsnd('HCEngineStart');
var cref = this;
v3.onSoundComplete = function () {
cref.sounds.LoopSound('HCEngine', cref.soundsVolume, cref.soundsPen);
};
}
};
v2.showArrow_move = function () {
this.arrow_move_mc = this.Dmc.car_mc.attachMovie('arrow_move', 'arrow_move', 12000);
this.arrow_move_mc.onEnterFrame = function () {
this._rotation = -this._parent._parent._rotation - 90;
};
};
v2.DelArrow_move = function () {
delete this.arrow_move_mc.onEnterFrame;
this.arrow_move_mc.removeMovieClip();
};
v2.Update = function () {
if (this.map.RaceId == 2) {
this.Water();
}
if (!this.IsLock) {
this.UpdateCarPos();
}
this.UpdateViewMap();
this.UpdateSpeed();
this.Jumping();
this.Loopsounds();
if (this.bs) {
this.Dmc._rotation += 1 * this.Speed.getLength() * (this.bsf ? -1 : 1);
}
if (this.bsEx > 0) {
this.Dmc._rotation += Math.min(this.bsEx, 50) * (this.bsf ? -1 : 1);
--this.bsEx;
}
if (this.CarFriction > 40 && this.Speed.getLength() > 2) {
if (this.Speed.getLength() > this.bsSpeed) {
if (this.CarFriction > 60) {
this.playTurnBsSound(0);
} else {
this.playTurnBsSound(1);
}
}
this.Smoke('smoke1', this.CarMoveAngofCarAng > 0);
if (this.CarFriction > 70) {
this.Smoke('smoke1', this.CarMoveAngofCarAng < 0);
}
} else {
if (this.Speed.getLength() > 0.5) {
this.AllWheel();
}
}
};
v2.Forward = function () {
this.AllWheel();
if (this.map.RaceId == 2) {
this.playHCRunSound();
}
if (!this.bs && this.CarFriction > this.bsWheelLenghth && this.Speed.getLength() > this.bsSpeed) {
this.bs = true;
this.playBsSound();
this.bsf = this.CarMoveAngofCarAng > 0;
}
if (this.Speed.getLength() < this.bsClearSpeed) {
this.bs = false;
}
if (!this.bs && this.bsEx <= 0) {
if (this.IsAtIce) {
this.Speed.plus((this.Horse.scaleNew(0.5)).rotateNew(this.Dmc._rotation));
} else {
this.Speed.plus(this.Horse.rotateNew(this.Dmc._rotation));
}
}
if (Math.abs(as.Vector.FormatAngle(this.Speed.getAngle() - this.Dmc._rotation)) > 140 || this.IsLock) {
this.Smoke('smoke1', true);
this.Smoke('smoke1', false);
}
};
v2.Backward = function () {
this.AllWheel();
if (!this.bs && this.bsEx <= 0) {
this.Speed.minus((this.Horse.rotateNew(this.Dmc._rotation)).scaleNew(0.5));
}
if (Math.abs(as.Vector.FormatAngle(this.Speed.getAngle() - this.Dmc._rotation)) < 40 || this.IsLock) {
this.Smoke('smoke1', true);
this.Smoke('smoke1', false);
}
};
v2.TurnLeft = function () {
if (!this.IsLock) {
if (!this.IsBack) {
if (Math.abs(as.Vector.FormatAngle(this.Speed.getAngle() - this.Dmc._rotation)) < 145) {
this.Dmc._rotation += -Math.min(this.Speed.getLength() * this.carWheelLengthNum, this.carMaxWheelLength);
} else {
this.IsBack = true;
this.Dmc._rotation += Math.min(this.Speed.getLength() * this.carWheelLengthNum / 2, this.carMaxWheelLength);
}
} else {
if (Math.abs(as.Vector.FormatAngle(this.Speed.getAngle() - this.Dmc._rotation)) < 60) {
this.IsBack = false;
this.Dmc._rotation += -Math.min(this.Speed.getLength() * this.carWheelLengthNum, this.carMaxWheelLength);
} else {
this.Dmc._rotation += Math.min(this.Speed.getLength() * this.carWheelLengthNum / 2, this.carMaxWheelLength);
}
}
}
this.Dmc.car_mc.gotoAndStop('left');
};
v2.TurnRight = function () {
if (!this.IsLock) {
if (!this.IsBack) {
if (Math.abs(as.Vector.FormatAngle(this.Speed.getAngle() - this.Dmc._rotation)) < 145) {
this.Dmc._rotation += Math.min(this.Speed.getLength() * this.carWheelLengthNum, this.carMaxWheelLength);
} else {
this.IsBack = true;
this.Dmc._rotation += -Math.min(this.Speed.getLength() * this.carWheelLengthNum, this.carMaxWheelLength);
}
} else {
if (Math.abs(as.Vector.FormatAngle(this.Speed.getAngle() - this.Dmc._rotation)) < 60) {
this.IsBack = false;
this.Dmc._rotation += Math.min(this.Speed.getLength() * this.carWheelLengthNum, this.carMaxWheelLength);
} else {
this.Dmc._rotation += -Math.min(this.Speed.getLength() * this.carWheelLengthNum, this.carMaxWheelLength);
}
}
}
this.Dmc.car_mc.gotoAndStop('right');
};
v2.CancelTurn = function () {
this.Dmc.car_mc.gotoAndStop('Normal');
};
v2.SetHorse = function (horse) {
this.Horse = new as.Vector(horse, 0);
};
v2.ReSet = function (x, y, r) {
this.Dmc._x = x;
this.Dmc._y = y;
this.Dmc._xscale = this.scale * 100;
this.Dmc._yscale = this.scale * 100;
this.jump_currheight = 0;
this.jump_prevheight = 0;
if (r != undefined) {
this.Dmc._rotation = r;
}
this.Update();
};
v2.JumpBySpeed = function (Height) {
if (this.jump_currheight < this.HeightOverWall) {
this.jump_currheight += Height * this.Speed.getLength() * this.jumpspeed;
this.playFastSound();
this.playHCJumpSound();
this.playJumpSound();
}
};
v2.Jump = function (Height) {
this.jump_prevheight = this.jump_currheight;
this.jump_currheight += Height;
this.playHCJumpSound();
};
v2.Jumping = function () {
var v2 = this.jump_currheight;
this.jump_currheight += this.jump_currheight - this.jump_prevheight + this.down_weight;
if (this.jump_currheight > 1) {
this.Dmc.swapDepths(this.Dmc._parent.getNextHighestDepth());
}
if (this.jump_currheight < this.jump_floorheight) {
if (this.jump_floorheight - this.jump_currheight > 0.5) {
this.playHCEndJumpSound();
}
this.jump_currheight = -this.jump_currheight * this.jump_spring;
this.jump_prevheight = -v2 * this.jump_spring;
} else {
this.jump_prevheight = v2;
}
this.jump_floorheight = 0;
this.Dmc.car_mc._yscale = 100 + this.jump_currheight * 1.75;
this.Dmc.car_mc._xscale = this.Dmc.car_mc._yscale;
};
v2.DoAction = function (Way) {
if (this.jump_currheight < 1) {
switch (Way) {
case -1:
this.Clearward();
break;
case 0:
this.Forward();
break;
case 1:
this.Backward();
break;
case 2:
this.TurnLeft();
break;
case 3:
this.TurnRight();
break;
default:
this.CancelTurn();
}
}
};
v2.Clearward = function () {
if (this.map.RaceId == 2) {
this.stopHCRunSound();
}
};
v2.setControlByPlayer = function (b) {
if (b) {
this.Dmc_view.gotoAndStop(1);
} else {
this.Dmc_view.gotoAndStop(2);
}
};
v2.UpdateViewMap = function () {
this.Dmc_view._x = this.Dmc._x * this.map.ScaledTimes;
this.Dmc_view._y = this.Dmc._y * this.map.ScaledTimes;
this.Dmc_view._rotation = this.Dmc._rotation;
};
v2.UpdateSpeed = function () {
if (this.jump_currheight < 1) {
this.CarMoveAngofCarAng = as.Vector.FormatAngle(this.Speed.getAngle() - this.Dmc._rotation);
this.CarFriction = Math.abs(as.Vector.FormatAngle(this.Speed.getAngle() - this.Dmc._rotation));
if (this.CarFriction > 90) {
this.CarFriction = 180 - this.CarFriction;
}
this.Speed.scale(1 - (this.RollGratingNum + int(this.CarFriction) * this.GlideGratingNum));
var v2;
if (this.CarMoveAngofCarAng < 90 && this.CarMoveAngofCarAng > 0 || this.CarMoveAngofCarAng < -90) {
v2 = -1;
} else {
v2 = 1;
}
this.Speed.plus((this.Speed.scaleNew(this.GlideGratingNum * int(90 - this.CarFriction))).rotateNew(90 * v2));
}
};
v2.UpdateCarPos = function () {
this.GetHitCar();
this.stepx = int(this.Speed.x * 10) / 10;
this.stepy = int(this.Speed.y * 10) / 10;
this.tempx = this.Dmc._x + this.stepx;
this.tempy = this.Dmc._y + this.stepy;
this.GetGrassStatus(this.tempx, this.tempy);
this.GetHitEvent(this.tempx, this.tempy);
this.GetHitStatus(this.tempx, this.tempy);
this.Dmc._x = this.tempx;
this.Dmc._y = this.tempy;
};
v2.GetGrassStatus = function (tx, ty) {
if (this.jump_currheight > this.HeightOverWall) {
return undefined;
}
if (this.player.IsReSeting) {
return undefined;
}
var v7 = 0;
var v2 = 1;
while (v2 < 5) {
var v3 = this.ToPointNow(this.Dmc['point' + v2]._x, this.Dmc['point' + v2]._y);
var v6 = tx + v3.x;
var v5 = ty + v3.y;
var v4 = this.map.edm.GetHitFace(v6, v5);
if (v4 != null) {
++v7;
}
++v2;
}
if (v7 == 0) {
return undefined;
}
this.Speed.scale(1 - this.GrassGratingNum * v7);
this.stepx = int(this.Speed.x * 10) / 10;
this.stepy = int(this.Speed.y * 10) / 10;
this.tempx = this.Dmc._x + this.stepx;
this.tempy = this.Dmc._y + this.stepy;
};
v2.GetHitEvent = function (tx, ty) {
if (this.jump_currheight > this.HeightOverWall) {
return undefined;
}
if (this.player.IsReSeting) {
return undefined;
}
var v2 = 1;
while (v2 < 5) {
var v4 = this.ToPointNow(this.Dmc['point' + v2]._x, this.Dmc['point' + v2]._y);
var v6 = tx + v4.x;
var v5 = ty + v4.y;
var v3 = this.map.edevent.GetHitFace(v6, v5);
if (v3 != null) {
this.map.GetHitEventStatus(v3.getId(), this.player.Id);
return undefined;
}
++v2;
}
};
v2.GetHitStatus = function (tx, ty) {
var v3 = this.getHitStatusAng(tx, ty);
if (v3 == null) {
return undefined;
}
this.playbumpsound();
var v4 = as.Vector.FormatAngle(-(this.Speed.getAngle() - v3) * 2);
var v2 = as.Vector.FormatAngle(v3 - this.Dmc._rotation);
var v5 = Math.abs(as.Vector.FormatAngle90((this.Speed.getAngle() - v3) % 180));
if (v2 >= 0 && v2 < 45 || v2 < -135) {
this.Dmc._rotation += ((this.Speed.getLength() * 1 + 1) / this.Wallspring) * 0.02;
}
if (v2 < 0 && v2 > -45 || v2 > 135) {
this.Dmc._rotation -= ((this.Speed.getLength() * 1 + 1) / this.Wallspring) * 0.02;
}
if (!(as.Vector.FormatAngle(this.Speed.getAngle() - v3) > 0 && as.Vector.FormatAngle(this.Speed.getAngle() - v3) < 180)) {
if (Math.abs(v4) < 60) {
v4 /= 2;
}
this.Speed.rotate(v4);
}
this.Speed.scale(1 - this.map.Wallspring * (v5 * Math.abs(Math.abs(v2) - 90) / 90));
this.Speed.plus((new as.Vector(0.1, 0)).rotateNew(v3 + 90));
this.stepx = int(this.Speed.x * 10) / 10;
this.stepy = int(this.Speed.y * 10) / 10;
this.tempx = this.Dmc._x + this.stepx;
this.tempy = this.Dmc._y + this.stepy;
};
v2.getHitStatusAng = function (tx, ty) {
var v4 = 1;
while (v4 < 5) {
var v5 = this.ToPointNow(this.Dmc['point' + v4]._x, this.Dmc['point' + v4]._y);
var v7 = tx + v5.x;
var v6 = ty + v5.y;
var v3 = this.map.ed.GetHitFace(v7, v6);
if (v3 != null) {
var v2 = 0;
while (v2 < this.map.CanBeJumpWall.length) {
if (this.jump_currheight > this.HeightOverWall && this.map.CanBeJumpWall[v2] == v3.getId()) {
return null;
}
++v2;
}
return v3.getAngle();
}
++v4;
}
return null;
};
v2.GetHitCar = function () {
var v2 = this.player.Id;
while (v2 < this.game.Players.length) {
if (this.game.Players[v2].Id != this.player.Id) {
if (this.Dmc.body.hitTest(this.game.Players[v2].myCar.Dmc.body)) {
this.BeAttacked(this.game.Players[v2].myCar);
}
}
++v2;
}
};
v2.BeAttacked = function (Who) {
if (Who.jump_currheight > this.HeightOverWall || this.jump_currheight > this.HeightOverWall) {
return undefined;
}
if (this.player.IsReSeting || Who.player.IsReSeting) {
return undefined;
}
this.playbumpsound();
var v4 = this.player.IsInvincible;
var v3 = Who.player.IsInvincible;
if (this.player.IsSmallState) {
v3 = true;
}
if (Who.player.IsSmallState) {
v4 = true;
}
if (!(v4 && !v3)) {
var v9 = Who.Speed.getClone();
}
if (!(!v4 && v3)) {
var v8 = this.Speed.getClone();
}
var v7 = this.Dmc._x - Who.Dmc._x;
var v6 = this.Dmc._y - Who.Dmc._y;
var v10 = v7 * v7 + v6 * v6;
var v11 = 0.005;
if (v10 < 2000) {
v11 = 0.005 + 0.05 * (2000 - v10) / 2000;
}
var v5 = (new as.Vector(v7, v6)).scaleNew(v11);
if (!v4 && v3) {
this.Speed = v9.plusNew(v5.scaleNew(40));
this.bs = true;
this.playBsSound();
} else {
if (v4 && !v3) {
Who.Speed = v8.minusNew(v5.scaleNew(40));
Who.bs = true;
this.playBsSound();
} else {
this.Speed = v9.plusNew(v5);
Who.Speed = v8.minusNew(v5);
}
}
};
v2.CheckPoint = function (obj, x, y) {
return obj.hitTest(x, y, true);
};
v2.ToPointNow = function (x, y) {
var v2 = new as.Vector(x, y);
v2.rotate(this.Dmc._rotation);
v2.scale(this.scale);
v2.scale(this.Dmc._xscale / 100);
return v2;
};
v2.AllWheel = function () {
this.Dmc.car_mc.wheel1.play();
this.Dmc.car_mc.wheel2.play();
this.Dmc.car_mc.wheel3.play();
this.Dmc.car_mc.wheel4.play();
};
v2.Water = function () {
if (this.jump_currheight < 1) {
var v4 = 'smoke2';
var v5 = this.Dmc._parent._parent.smokemc.getNextHighestDepth();
var v2 = this.Dmc._parent._parent.smokemc.attachMovie(v4, v4 + v5, v5);
var v3;
if (random(2) == 1) {
v3 = this.ToPointNow(this.Dmc.sm1._x + 5, this.Dmc.sm1._y);
}
if (random(2) == 1) {
v3 = this.ToPointNow(this.Dmc.sm2._x + 5, this.Dmc.sm2._y);
}
v2._yscale = ((random(40) + 30) * this.Dmc.car_mc._xscale / 100) * this.Dmc._xscale / 100;
v2._xscale = v2._yscale;
v2._x = this.Dmc._x + v3.x + Math.pow(-1, random(2)) * random(5);
v2._y = this.Dmc._y + v3.y;
v2._rotation = this.Dmc._rotation;
}
};
v2.Smoke = function (Type, lr) {
if (this.map.RaceId == 1 && this.jump_currheight < 1) {
var v4 = this.Dmc._parent._parent.smokemc.getNextHighestDepth();
var v2 = this.Dmc._parent._parent.smokemc.attachMovie(Type, Type + v4, v4);
var v3;
if (lr) {
v3 = this.ToPointNow(this.Dmc.point3._x - 5, this.Dmc.point3._y - 7);
} else {
v3 = this.ToPointNow(this.Dmc.point4._x - 5, this.Dmc.point4._y + 7);
}
v2._x = this.Dmc._x + v3.x;
v2._y = this.Dmc._y + v3.y;
v2._yscale = (100 * this.Dmc.car_mc._xscale / 100) * this.Dmc._xscale / 100;
v2._xscale = v2._yscale;
v2._rotation = this.Dmc._rotation;
}
};
v2.getClosestPoint = function (p) {
var v3 = 0;
var v2 = 0;
while (v2 < p.length) {
v3 = this.getMin(p, v3, v2);
++v2;
}
return v3;
};
v2.getMin = function (p, a, b) {
var v6 = (new as.Vector(p[a].x - this.Dmc._x, p[a].y - this.Dmc._y)).getLength();
var v5 = (new as.Vector(p[b].x - this.Dmc._x, p[b].y - this.Dmc._y)).getLength();
if (v6 < v5) {
return a;
} else {
return b;
}
};
v2.Del = function () {
this.sounds.StopSound('HCEngine');
this.sounds.del();
this.sounds = null;
this.Dmc.removeMovieClip();
this.Dmc_view.removeMovieClip();
};
v2.AddPetro = function () {
var v3 = this.Dmc._parent.getNextHighestDepth();
var v2;
if (this.map.RaceId == 1) {
v2 = this.Dmc._parent.attachMovie('car_Petro', 'car_Petro' + v3, v3);
} else {
v2 = this.Dmc._parent.attachMovie('car_Petro_water', 'car_Petro' + v3, v3);
}
var v4 = this.ToPointNow(-25, 0);
v2._yscale = ((random(60) + 40) * 0.7 * this.Dmc.car_mc._xscale / 100) * this.Dmc._xscale / 100;
v2._xscale = v2._yscale;
v2._x = this.Dmc._x + v4.x + Math.pow(-1, random(2)) * random(5);
v2._y = this.Dmc._y + v4.y;
v2._rotation = this.Dmc._rotation;
this.Dmc.swapDepths(v2);
};
v2.Loopsounds = function () {
var v5 = this.Dmc._x - this.game.FcsCar.Dmc._x;
var v6 = this.Dmc._y - this.game.FcsCar.Dmc._y;
var v7 = v5 * v5 + v6 * v6;
this.soundsVolume = (160000 - v7) / 1600;
if (v7 > 1000) {
this.soundsVolume -= 20;
}
if (this.soundsVolume < 0) {
this.soundsVolume = 0;
return undefined;
}
var v4 = 0;
var v2 = this.player.Id;
while (v2 < this.game.Players.length) {
v4 += this.game.Players[v2].myCar.soundsVolume;
++v2;
}
if (v4 > 150) {
this.soundsVolume *= 150 / v4;
}
this.soundsPen = (v5 - 400) / 4 + 100;
if (this.soundsPen > 100) {
this.soundsPen = 100;
}
if (this.soundsPen < -100) {
this.soundsPen = -100;
}
this.sounds.changeAllSoundVolumeAndPan(this.soundsVolume, this.soundsPen);
var v3 = this.Speed.getLength() / 16;
if (this.map.RaceId == 1) {
if (this.sounds.getIsPlaying('CarFastSpeed') && this.sounds.getposition('CarFastSpeed') < 400) {
return undefined;
}
if (v3 > 0.8) {
this.sounds.StopSound('CarAddSpeed');
this.sounds.StopSound('CarLostSpeed');
this.sounds.LoopSound('CarRunSpeed', this.soundsVolume, this.soundsPen);
} else {
var v8 = 3 < this.Speed.getLength() ? 0.05 : 0;
if (this.Speed.getLength() > this.PrevSpeed.getLength() - v8) {
v3 = this.sounds.getduration('CarAddSpeed') * v3;
if (!this.sounds.getIsPlaying('CarAddSpeed') || Math.abs(v3 - this.sounds.getposition('CarAddSpeed')) > this.sounds.getduration('CarAddSpeed') / 5) {
this.sounds.PlaySound('CarAddSpeed', this.soundsVolume, v3 / 1000, this.soundsPen);
}
this.sounds.StopSound('CarRunSpeed');
this.sounds.StopSound('CarLostSpeed');
} else {
v3 = this.sounds.getduration('CarLostSpeed') * v3;
if (!this.sounds.getIsPlaying('CarLostSpeed') || Math.abs(v3 - (this.sounds.getduration('CarAddSpeed') - this.sounds.getposition('CarLostSpeed'))) > this.sounds.getduration('CarAddSpeed') / 5) {
this.sounds.PlaySound('CarLostSpeed', this.soundsVolume, (this.sounds.getduration('CarAddSpeed') - v3) / 1000, this.soundsPen);
}
this.sounds.StopSound('CarRunSpeed');
this.sounds.StopSound('CarAddSpeed');
}
}
}
this.PrevSpeed = this.Speed.getClone();
};
v2.playHCRunSound = function () {
this.sounds.StopSound('HCLostSpeed');
if (this.sounds.getIsPlaying('HCAddSpeed') || this.sounds.getIsPlaying('HCRun')) {
return undefined;
}
this.sounds.PlaySound('HCAddSpeed', this.soundsVolume, 0, this.soundsPen);
var v2 = this.sounds.getsnd('HCAddSpeed');
var cref = this;
v2.onSoundComplete = function () {
cref.sounds.LoopSound('HCRun', cref.soundsVolume, cref.soundsPen);
};
};
v2.stopHCRunSound = function () {
if (this.sounds.getIsPlaying('HCAddSpeed') || this.sounds.getIsPlaying('HCRun')) {
this.sounds.StopSound('HCAddSpeed');
this.sounds.StopSound('HCRun');
this.sounds.PlaySound('HCLostSpeed', this.soundsVolume, 0, this.soundsPen);
}
};
v2.playFastSound = function () {
if (this.map.RaceId == 1) {
this.sounds.StopSound('CarAddSpeed');
this.sounds.StopSound('CarLostSpeed');
this.sounds.StopSound('CarRunSpeed');
this.sounds.PlaykeepSound('CarFastSpeed', this.soundsVolume, 0, this.soundsPen);
} else {}
};
v2.playTurnBsSound = function (type) {
if (this.map.RaceId == 1) {
if (type == 0) {
this.sounds.PlaykeepSound('CarBs', this.soundsVolume, 0, this.soundsPen);
}
if (type == 1) {
this.sounds.PlaykeepSound('CarSmallBs', this.soundsVolume, 0, this.soundsPen);
}
} else {}
};
v2.playBsSound = function () {
if (this.map.RaceId == 1) {
this.sounds.PlaykeepSound('CarStop', this.soundsVolume, 0, this.soundsPen);
}
};
v2.playAddSpeedSound = function () {
this.sounds.PlaykeepSound('AddSpeed', this.soundsVolume, 0, this.soundsPen);
};
v2.playJumpSound = function () {
this.sounds.PlaykeepSound('Jump', this.soundsVolume, 0, this.soundsPen);
};
v2.playHCJumpSound = function () {
if (this.map.RaceId == 2) {
this.sounds.PlaykeepSound('HCJump', this.soundsVolume, 0, this.soundsPen);
}
};
v2.playbumpsound = function () {
if (this.map.RaceId == 2) {
this.sounds.PlaykeepSound('HCbump', this.soundsVolume, 0, this.soundsPen);
} else {
this.sounds.PlaykeepSound('Carbump', this.soundsVolume, 0, this.soundsPen);
}
};
v2.playMissileSound = function () {
this.sounds.PlaySound('Missile', this.soundsVolume, 0, this.soundsPen);
};
v2.playHCEndJumpSound = function () {
if (this.map.RaceId == 2) {
this.sounds.PlaykeepSound('HCEndJump', this.soundsVolume, 0, this.soundsPen);
} else {
this.sounds.PlaykeepSound('CarJumpEnd', this.soundsVolume, 0, this.soundsPen);
}
};
v2.playerBombSound = function () {
this.sounds.PlayRepeatSound('bomb', this.soundsVolume, 0, this.soundsPen);
};
v2.playShieldSound = function () {
this.sounds.PlayRepeatSound('Shield', this.soundsVolume, 0, this.soundsPen);
};
v2.playPetroSound = function () {
this.sounds.PlayRepeatSound('Petro', this.soundsVolume, 0, this.soundsPen);
};
v2.playBeSleepSound = function () {
this.sounds.LoopSound('BeSleep', this.soundsVolume, this.soundsPen);
};
v2.StopBeSleepSound = function () {
this.sounds.StopSound('BeSleep');
};
v2.playBedumpSound = function () {
this.sounds.PlayRepeatSound('Bedump', this.soundsVolume, this.soundsPen);
};
v2.playdogSSound = function () {
this.sounds.LoopSound('dogS', this.soundsVolume, this.soundsPen);
};
v2.StopdogSSound = function () {
this.sounds.StopSound('dogS');
};
v2.playPandaSSound = function () {
this.sounds.StopSound('PandaS');
this.sounds.StopSound('PandaSs');
this.sounds.PlaySound('PandaSs', this.soundsVolume, 0, this.soundsPen);
this.sounds.LoopSound('PandaS', this.soundsVolume, this.soundsPen);
};
v2.StopPandaSSound = function () {
this.sounds.StopSound('PandaS');
this.sounds.StopSound('PandaSs');
};
v2.playmineSound = function () {
this.sounds.PlayRepeatSound('mine', this.soundsVolume, this.soundsPen);
};
v2.playCatSSound = function () {
this.sounds.PlayRepeatSound('catS', this.soundsVolume, this.soundsPen);
};
v2.playBearSSound = function () {
this.sounds.PlayRepeatSound('BearS', this.soundsVolume, this.soundsPen);
};
v2.playIceSound = function () {
this.sounds.PlaySound('Ice', this.soundsVolume, this.soundsPen);
};
v2.playuseSleepSound = function () {
this.sounds.PlayRepeatSound('useSleep', this.soundsVolume, this.soundsPen);
};
v2.playoilSound = function () {
this.sounds.PlayRepeatSound('oil', this.soundsVolume, this.soundsPen);
};
v2.MaxWheelLength = 4;
v2.WheelLengthNum = 1;
v2.bsWheelLenghth = 80;
v2.bsSpeed = 9;
v2.scale = 1;
v2.CarHorse = 0.3;
v2.jumpspeed = 0.05;
v2.down_weight = -0.1;
v2.jump_spring = 0.5;
v2.HeightOverWall = 10;
v2.jump_floorheight = 0;
v2.bsClearSpeed = 3;
ASSetPropFlags(as.Car.prototype, null, 1);
}
#endinitclip
}
movieClip 2378 __Packages.as.Vector {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Vector) {
var v1 = function (x, y) {
this.x = x;
this.y = y;
};
as.Vector = v1;
var v2 = v1.prototype;
v1.FormatAngle = function (r) {
if (r > 180) {
r -= 360;
}
if (r < -180) {
r += 360;
}
return r;
};
v1.FormatAngle90 = function (r) {
if (r > 90) {
r = 180 - r;
}
if (r < -90) {
r += 180;
}
return r;
};
v2.toString = function () {
var v3 = Math.round(this.x * 1000) / 1000;
var v2 = Math.round(this.y * 1000) / 1000;
return '[' + v3 + ', ' + v2 + ']';
};
v2.getMe = function () {
return {'x': this.x, 'y': this.y};
};
v2.reset = function (x, y) {
this.x = x;
this.y = y;
};
v2.getClone = function () {
return new as.Vector(this.x, this.y);
};
v2.plus = function (v) {
with (this) {
x += v.x;
y += v.y;
}
};
v2.plusNew = function (v) {
with (this) {
return new as.Vector(x + v.x, y + v.y);
}
};
v2.minus = function (v) {
with (this) {
x -= v.x;
y -= v.y;
}
};
v2.minusNew = function (v) {
with (this) {
return new as.Vector(x - v.x, y - v.y);
}
};
v2.negate = function () {
with (this) {
x = -x;
y = -y;
}
};
v2.negateNew = function () {
with (this) {
return new as.Vector(-x, -y);
}
};
v2.scale = function (s) {
this.x *= s;
this.y *= s;
};
v2.scaleNew = function (s) {
with (this) {
return new as.Vector(x * s, y * s);
}
};
v2.rotate = function (ang) {
var v3 = as.TF_Class.cosD(ang);
var v2 = as.TF_Class.sinD(ang);
var v5 = this.x * v3 - this.y * v2;
var v4 = this.x * v2 + this.y * v3;
this.x = v5;
this.y = v4;
};
v2.rotateNew = function (ang) {
with (this) {
var v = new as.Vector(x, y);
}
v.rotate(ang);
return v;
};
v2.dot = function (v) {
with (this) {
return x * v.x + y * v.y;
}
};
v2.getNormal = function () {
with (this) {
return new as.Vector(-y, x);
}
};
v2.isNormalTo = function (v) {
return this.dot(v) == 0;
};
v2.angleBetween = function (v) {
var v3 = this.dot(v);
var v2 = v3 / this.getLength() * v.getLength();
return as.TF_Class.acosD(v2);
};
v2.getLength = function () {
with (this) {
return Math.sqrt(x * x + y * y);
}
};
v2.setLength = function (len) {
var v2 = this.getLength();
if (v2) {
this.scale(len / v2);
} else {
this.x = len;
}
};
v2.getAngle = function () {
return as.TF_Class.atan2D(this.y, this.x);
};
v2.setAngle = function (ang) {
with (this) {
var r = getLength();
x = r * as.TF_Class.cosD(ang);
y = r * as.TF_Class.sinD(ang);
}
};
ASSetPropFlags(as.Vector.prototype, null, 1);
}
#endinitclip
}
movieClip 2379 __Packages.as.TF_Class {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.TF_Class) {
var v1 = function () {};
as.TF_Class = v1;
var v2 = v1.prototype;
v1.sinD = function (angle) {
return Math.sin(angle * 0.0174532925199433);
};
v1.cosD = function (angle) {
return Math.cos(angle * 0.0174532925199433);
};
v1.tanD = function (angle) {
return Math.tan(angle * 0.0174532925199433);
};
v1.asinD = function (ratio) {
return Math.asin(ratio) * 57.29577951308232;
};
v1.acosD = function (ratio) {
return Math.acos(ratio) * 57.29577951308232;
};
v1.atanD = function (ratio) {
return Math.atan(ratio) * 57.29577951308232;
};
v1.atan2D = function (y, x) {
return Math.atan2(y, x) * 57.29577951308232;
};
v1.distance = function (x1, y1, x2, y2) {
var v2 = x2 - x1;
var v1 = y2 - y1;
return Math.sqrt(v2 * v2 + v1 * v1);
};
v1.angleOfLine = function (x1, y1, x2, y2) {
return as.TF_Class.atan2D(y2 - y1, x2 - x1);
};
v1.degreesToRadians = function (angle) {
return angle * 0.0174532925199433;
};
v1.radiansToDegrees = function (angle) {
return angle * 57.29577951308232;
};
v1.fixAngle = function (angle) {
angle %= 360;
return angle < 0 ? angle + 360 : angle;
};
v1.cartesianToPolar = function (p) {
var v3 = Math.sqrt(p.x * p.x + p.y * p.y);
var v2 = as.TF_Class.atan2D(p.y, p.x);
return {'r': v3, 't': v2};
};
v1.polarToCartesian = function (p) {
var v3 = p.r * as.TF_Class.cosD(p.t);
var v2 = p.r * as.TF_Class.sinD(p.t);
return {'x': v3, 'y': v2};
};
ASSetPropFlags(as.TF_Class.prototype, null, 1);
}
#endinitclip
}
movieClip 2380 __Packages.as.Map {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Map) {
var v1 = function (game, Pmc, ViewDmc, RaceId, MapLinkName) {
this._game = game;
this.ViewDmc = ViewDmc;
this.RaceId = RaceId;
this.MapLinkName = MapLinkName;
this.Dmc = Pmc.attachMovie(MapLinkName, 'map', 0);
this.Dmc.Artmc.attachMovie(MapLinkName + '_Art', 'Art', 0);
this.PropMc = this.Dmc.propmc;
this.CarMc = this.Dmc.carmc;
this.BgMc = this.Dmc.bgmc;
};
as.Map = v1;
var v2 = v1.prototype;
v1.Init = function () {
as.Map.MapSelectList.push('Raccoon_City');
as.Map.MapSelectList.push('Pirate_Island');
as.Map.MapSelectList.push('North_Pole');
as.Map.MapSelectList.push('Hudsons_Harbor');
};
v2.initMap = function () {
this.CutMapArr = new Array();
this.CutMapArr.push(new Array(this.MapLinkName + '_bg', this.Dmc.bgmc, false));
this.CutMapArr.push(new Array(this.MapLinkName + '_top' + this.RaceId, this.Dmc.topmc, true));
this.CupMapj = 0;
this.StartCutMap(2);
this.MakeMapView();
this.InitWall();
this.InitGrass();
this.InitPoints();
this.InitEventInMap();
};
v2.__set__game = function (_game) {
this._game = _game;
return this.__get__game();
};
v2.MakeMapView = function () {
var v2 = this.ViewDmc.attachMovie(this.MapLinkName + '_dt' + this.RaceId, 'detector', this.ViewDmc.getNextHighestDepth());
v2._xscale = 100 * this.ScaledTimes;
v2._yscale = 100 * this.ScaledTimes;
};
v2.StartCutMap = function (num, w, h) {
this.tempCupMapMc = this.Dmc.createEmptyMovieClip('temp', this.Dmc.getNextHighestDepth());
this.tempCupMapMcbg = this.tempCupMapMc.attachMovie(this.CutMapArr[this.CupMapj][0], 'newmap', 1);
if (num == undefined) {
num = 4;
}
if (w == undefined) {
w = int(this.tempCupMapMcbg._width / num);
}
if (h == undefined) {
h = int(this.tempCupMapMcbg._height / num);
}
this.TileNum = num;
this.TileWidth = w;
this.TileHeight = h;
this.CupMapi = 0;
};
v2.CutMaping = function () {
var v2 = this.TileNum * this.TileNum;
if (this.CupMapi < v2) {
var v4;
if (this.CutMapArr[this.CupMapj][2]) {
v4 = new flash.display.BitmapData(this.TileWidth, this.TileHeight, true, 0);
} else {
v4 = new flash.display.BitmapData(this.TileWidth, this.TileHeight, true, 0);
}
var v7 = new flash.geom.Rectangle(0, 0, this.TileWidth, this.TileHeight);
var v6 = (this.CupMapi % this.TileNum - this.TileNum / 2) * this.TileWidth;
var v5 = (Math.floor(this.CupMapi / this.TileNum) - this.TileNum / 2) * this.TileHeight;
this.tempCupMapMcbg._x = -v6;
this.tempCupMapMcbg._y = -v5;
v4.draw(this.tempCupMapMc, new flash.geom.Matrix(), null, null, v7);
var v3 = this.CutMapArr[this.CupMapj][1].createEmptyMovieClip('tile' + this.CupMapi, this.CupMapi + 1000);
v3.bmp = v4;
v3._x = v6;
v3._y = v5;
v3.attachBitmap(v4, 1);
this._game.uiManage.UpdateUIMapLoading((this.CupMapi + this.CupMapj * v2) / v2 * this.CutMapArr.length);
if (this.CupMapi == v2 - 1) {
this.tempCupMapMcbg.removeMovieClip();
this.tempCupMapMc.removeMovieClip();
++this.CupMapj;
if (this.CupMapj >= this.CutMapArr.length) {
this._game.EndUIMapLoading();
} else {
this.tempCupMapMc = this.Dmc.createEmptyMovieClip('temp', this.Dmc.getNextHighestDepth());
this.tempCupMapMcbg = this.tempCupMapMc.attachMovie(this.CutMapArr[this.CupMapj][0], 'newmap', 1);
this.CupMapi = 0;
return undefined;
}
}
++this.CupMapi;
}
};
v2.InitWall = function () {
this.InitNormalWall();
this.InitJumpWall();
this.ed.ReTidyFace();
};
v2.InitNormalWall = function () {
var v7 = 0;
while (v7 < this.WallGroupNum) {
var v6 = null;
var v4 = 0;
while (v4 < this.WallNum) {
var v2 = this.ViewDmc.detector['wall' + v7 + '_' + v4];
if (!v2) {
++v4;
} else {
if (v6 == null) {
v6 = new as.Vector(v2._x, v2._y);
}
var v3 = v4 + 1;
while (v3 < this.WallNum) {
var v5 = this.ViewDmc.detector['wall' + v7 + '_' + v3];
if (v5) {
this.ed.AddLine(v2._x, v2._y, v5._x, v5._y);
v4 = v3;
v2.swapDepths(20000);
v2.removeMovieClip();
break;
}
++v3;
}
if (v4 != v3) {
this.ed.AddLine(v2._x, v2._y, v6.x, v6.y);
v2.swapDepths(20000);
v2.removeMovieClip();
break;
}
}
}
++v7;
}
};
v2.InitJumpWall = function () {
this.CanBeJumpWall = new Array();
var v7 = 0;
while (v7 < this.JumpWallGroupNum) {
var v6 = null;
var v4 = 0;
while (v4 < this.JumpWallNum) {
var v2 = this.ViewDmc.detector['Jumpwall' + v7 + '_' + v4];
if (!v2) {
++v4;
} else {
if (v6 == null) {
v6 = new as.Vector(v2._x, v2._y);
}
var v3 = v4 + 1;
while (v3 < this.JumpWallNum) {
var v5 = this.ViewDmc.detector['Jumpwall' + v7 + '_' + v3];
if (v5) {
this.AddJumpEdLine(v2._x, v2._y, v5._x, v5._y);
v4 = v3;
v2.swapDepths(20000);
v2.removeMovieClip();
break;
}
++v3;
}
if (v4 != v3) {
this.AddJumpEdLine(v2._x, v2._y, v6.x, v6.y);
v2.swapDepths(20000);
v2.removeMovieClip();
break;
}
}
}
++v7;
}
};
v2.AddJumpEdLine = function (x1, y1, x2, y2) {
var v2 = this.ed.AddLine(x1, y1, x2, y2);
v2.ReSetLineWidth(10);
this.CanBeJumpWall.push(v2.getId());
};
v2.InitPoints = function () {
this.Points = new Array();
var v3 = 0;
while (v3 < this.PointNum) {
var v2 = this.ViewDmc.detector['Point' + v3];
if (v2) {
this.Points.push(new as.Vector(v2._x, v2._y));
v2.swapDepths(20000);
v2.removeMovieClip();
}
++v3;
}
if (this.Points != undefined) {
}
};
v2.InitGrass = function () {
var v6 = 0;
while (v6 < this.GroupGrassGroupNum) {
var v8 = null;
var v4 = 0;
while (v4 < this.GroupGrassNum) {
var v2 = this.ViewDmc.detector['GroupGrass' + v6 + '_' + v4];
if (!v2) {
++v4;
} else {
if (v8 == null) {
v8 = new as.Vector(v2._x, v2._y);
}
var v3 = v4 + 1;
while (v3 < this.GroupGrassNum) {
var v5 = this.ViewDmc.detector['GroupGrass' + v6 + '_' + v3];
if (v5) {
this.edm.AddLine(v2._x, v2._y, v5._x, v5._y);
v4 = v3;
v2.swapDepths(20000);
v2.removeMovieClip();
break;
}
++v3;
}
if (v4 != v3) {
this.edm.AddLine(v2._x, v2._y, v8.x, v8.y);
v2.swapDepths(20000);
v2.removeMovieClip();
break;
}
}
}
++v6;
}
v6 = 0;
while (v6 < this.GrassNum) {
var v7 = this.ViewDmc.detector['Grass' + v6];
if (v7) {
var v9 = v7._rotation;
v7._rotation = 0;
this.edm.AddRectangle(v7._x, v7._y, v7._width, v7._height, v9);
v7.swapDepths(20000);
v7.removeMovieClip();
} else {
break;
}
++v6;
}
this.edm.ReTidyFace();
};
v2.InitEventInMap = function () {
this.Events = new Array();
var v3;
var v2;
var v4;
v3 = 0;
while (v3 < this.PropboxNum) {
v2 = this.ViewDmc.detector['propbox' + v3];
if (v2) {
v4 = v2._rotation;
v2._rotation = 0;
this.Events.push(new as.EventsInMap.PropInMap(this.PropMc, this, v2._x, v2._y, v2._width, v2._height, v4));
v2.swapDepths(20000);
v2.removeMovieClip();
} else {
break;
}
++v3;
}
v3 = 0;
while (v3 < this.JumpNum) {
v2 = this.ViewDmc.detector['jump' + v3];
if (v2) {
v4 = v2._rotation;
v2._rotation = 0;
this.Events.push(new as.EventsInMap.JumpInMap(this.PropMc, this, v2._x, v2._y, v2._width, v2._height, v4));
v2.swapDepths(20000);
v2.removeMovieClip();
} else {
break;
}
++v3;
}
v3 = 0;
while (v3 < this.AddspeedNum) {
v2 = this.ViewDmc.detector['addspeed' + v3];
if (v2) {
v4 = v2._rotation;
v2._rotation = 0;
this.Events.push(new as.EventsInMap.AddSpeedInMap(this.PropMc, this, v2._x, v2._y, v2._width, v2._height, v4));
v2.swapDepths(20000);
v2.removeMovieClip();
} else {
break;
}
++v3;
}
v3 = 0;
while (v3 < this.BsNum) {
v2 = this.ViewDmc.detector['bs' + v3];
if (v2) {
v4 = v2._rotation;
v2._rotation = 0;
this.Events.push(new as.EventsInMap.BsInMap(this.PropMc, this, v2._x, v2._y, v2._width, v2._height, v4));
v2.swapDepths(20000);
v2.removeMovieClip();
} else {
break;
}
++v3;
}
v3 = 0;
while (v3 < this.MoO) {
v2 = this.ViewDmc.detector['Moo' + v3];
if (v2) {
var v5 = this.PropMc.attachMovie('map_ball' + as.GameDate.GetMapId(), 'map_ball' + this._game.moveObject.length, this.PropMc.getNextHighestDepth());
v5._x = v2._x;
v5._y = v2._y;
this._game.moveObject.push(new as.Prop.MoveObject(this._game, this, v5, true, true));
v2.swapDepths(20000);
v2.removeMovieClip();
} else {
break;
}
++v3;
}
this.edevent.ReTidyFace();
};
v2.AddEventInMap = function (events) {
this.Events.push(events);
this.edevent.ReTidyFace();
};
v2.DelEventInMap = function (EventId) {
var v2 = 0;
while (v2 < this.Events.length) {
if (this.Events[v2].edface.getId() == EventId) {
this.Events[v2].del();
this.Events.splice(v2, 1);
}
++v2;
}
};
v2.GetHitEventStatus = function (EventId, PlayerId) {
var v2 = 0;
while (v2 < this.Events.length) {
if (this.Events[v2].edface.getId() == EventId) {
this.Events[v2].GetHitEventStatus(PlayerId);
return undefined;
}
++v2;
}
};
v2.Del = function () {
this.ViewDmc.detector.removeMovieClip();
var v2;
var v3 = this.TileNum * this.TileNum;
v2 = 0;
while (v2 < v3) {
this.Dmc.bgmc['tile' + v2].bmp.dispose();
this.Dmc.bgmc['tile' + v2].removeMovieClip();
this.Dmc.topmc['tile' + v2].bmp.dispose();
this.Dmc.topmc['tile' + v2].removeMovieClip();
++v2;
}
v2 = 0;
while (v2 < this.Events.length) {
this.Events[v2].del();
++v2;
}
v2 = 0;
while (v2 < this._game.moveObject.length) {
this._game.moveObject[v2].Del();
++v2;
}
this.ed.Dmc.removeMovieClip();
this.edm.Dmc.removeMovieClip();
this.edevent.Dmc.removeMovieClip();
delete this.ed;
delete this.edm;
delete this.edevent;
this.Dmc.removeMovieClip();
};
v2.GetStartPos = function (PosId) {
var v2 = this.ViewDmc.detector['startpos' + PosId];
return new as.Vector(v2._x, v2._y);
};
v2.GetStartAngle = function (PosId) {
var v2 = this.ViewDmc.detector['startpos' + PosId];
return v2._rotation;
};
v2.GetWinPos = function () {
var v2 = this.ViewDmc.detector.winpos;
return new as.Vector(v2._x, v2._y);
};
v2.PrintAIPoints = function () {
var v3 = this.Dmc.createEmptyMovieClip('Edddmc', this.Dmc.getNextHighestDepth());
v3.lineStyle(2, 0, 100);
v3.moveTo(this.Points[0].x, this.Points[0].y);
var v2 = 1;
while (v2 < this.Points.length) {
v3.lineTo(this.Points[v2].x, this.Points[v2].y);
++v2;
}
};
v2.IsLinePoint = function (NowPoint) {
var v2 = 0;
while (v2 < this.LinePointArr.length) {
if (this.LinePointArr[v2] == NowPoint) {
return true;
}
++v2;
}
return false;
};
v2.IsWanPoint = function (NowPoint) {
var v2 = 0;
while (v2 < this.WanPointArr.length) {
if (this.WanPointArr[v2] == NowPoint) {
return true;
}
++v2;
}
return false;
};
v2.IsPropPoint = function (NowPoint) {
var v2 = 0;
while (v2 < this.PropPointArr.length) {
if (this.PropPointArr[v2] == NowPoint) {
return true;
}
++v2;
}
return false;
};
v2.setLap = function (lap) {
this.LapsTotal = lap;
};
v1.MapSelectList = new Array();
v2.ScaledTimes = 0.02;
v2.TileWidth = 0;
v2.TileHeight = 0;
v2.TileNum = 0;
v2.CupMapi = 0;
v2.CupMapj = 0;
v2.MapBy = 10000;
v2.MapTy = -10000;
v2.MapLx = -10000;
v2.MapRx = 10000;
v2.MoO = 10;
v2.addProperty('game', function () {}, v2.__set__game);
ASSetPropFlags(as.Map.prototype, null, 1);
}
#endinitclip
}
movieClip 2381 __Packages.as.ED {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.ED) {
var v1 = function (Dmc) {
this.Dmc = Dmc;
this.SurfaceArr = new Array();
this.AddSurfaceArr = new Array();
this.newSurfaceArr = new Array();
};
as.ED = v1;
var v2 = v1.prototype;
v2.GetHitFace = function (x, y) {
var v4 = int((x - this.minX) / this.LengthX);
var v3 = int((y - this.minY) / this.LengthY);
var v2 = 0;
while (v2 < this.SurfaceArr[v4][v3].length) {
if (this.SurfaceArr[v4][v3][v2].HitTest(x, y)) {
return this.SurfaceArr[v4][v3][v2];
}
++v2;
}
v2 = 0;
while (v2 < this.newSurfaceArr.length) {
if (this.newSurfaceArr[v2].HitTest(x, y)) {
return this.newSurfaceArr[v2];
}
++v2;
}
return null;
};
v2.ReTidyFace = function () {
var v10 = this.AddSurfaceArr[0].maxX;
var v9 = this.AddSurfaceArr[0].maxY;
this.minX = this.AddSurfaceArr[0].minX;
this.minY = this.AddSurfaceArr[0].minY;
var v2 = 1;
while (v2 < this.AddSurfaceArr.length) {
if (this.AddSurfaceArr[v2].maxX > v10) {
v10 = this.AddSurfaceArr[v2].maxX;
}
if (this.AddSurfaceArr[v2].minX < this.minX) {
this.minX = this.AddSurfaceArr[v2].minX;
}
if (this.AddSurfaceArr[v2].maxY > v9) {
v9 = this.AddSurfaceArr[v2].maxY;
}
if (this.AddSurfaceArr[v2].minY < this.minY) {
this.minY = this.AddSurfaceArr[v2].minY;
}
++v2;
}
this.LengthX = (v10 - this.minX) / int(Math.sqrt(this.AddSurfaceArr.length));
this.LengthY = (v9 - this.minY) / int(Math.sqrt(this.AddSurfaceArr.length));
this.SurfaceArr = new Array();
v2 = 0;
while (v2 <= int(Math.sqrt(this.AddSurfaceArr.length))) {
this.SurfaceArr.push(new Array());
var v3 = 0;
while (v3 < int(Math.sqrt(this.AddSurfaceArr.length))) {
this.SurfaceArr[v2].push(new Array());
++v3;
}
++v2;
}
v2 = 0;
while (v2 < this.AddSurfaceArr.length) {
var v8 = int((this.AddSurfaceArr[v2].minX - this.minX) / this.LengthX);
var v7 = int((this.AddSurfaceArr[v2].maxX - this.minX) / this.LengthX);
var v6 = int((this.AddSurfaceArr[v2].minY - this.minY) / this.LengthY);
var v5 = int((this.AddSurfaceArr[v2].maxY - this.minY) / this.LengthY);
v3 = v8;
while (v3 <= v7) {
var v4 = v6;
while (v4 <= v5) {
this.SurfaceArr[v3][v4].push(this.AddSurfaceArr[v2]);
++v4;
}
++v3;
}
++v2;
}
this.newSurfaceArr = new Array();
};
v2.AddLine = function (x1, y1, x2, y2) {
var v2 = new as.EDLine(x1, y1, x2, y2);
this.AddSurfaceArr.push(v2);
this.newSurfaceArr.push(v2);
return v2;
};
v2.AddRectangle = function (x, y, width, height, angle) {
var v2 = new as.EDRectangle(x, y, width, height, angle);
this.AddSurfaceArr.push(v2);
this.newSurfaceArr.push(v2);
return v2;
};
v2.delED = function (EdId) {
var v2 = 0;
while (v2 < this.SurfaceArr.length) {
var v4 = 0;
while (v4 < this.SurfaceArr[v2].length) {
var v3 = 0;
while (v3 < this.SurfaceArr[v2][v4].length) {
if (this.SurfaceArr[v2][v4][v3].Id == EdId) {
delete this.SurfaceArr[v2][v4][v3];
this.SurfaceArr[v2][v4].splice(v3, 1);
}
++v3;
}
++v4;
}
++v2;
}
v2 = 0;
while (v2 < this.AddSurfaceArr.length) {
if (this.AddSurfaceArr[v2].Id == EdId) {
this.AddSurfaceArr.splice(v2, 1);
}
++v2;
}
v2 = 0;
while (v2 < this.newSurfaceArr.length) {
if (this.newSurfaceArr[v2].Id == EdId) {
this.newSurfaceArr.splice(v2, 1);
}
++v2;
}
};
v2.Print = function () {
var v2 = 0;
while (v2 < this.AddSurfaceArr.length) {
this.AddSurfaceArr[v2].paint(this.Dmc);
++v2;
}
};
ASSetPropFlags(as.ED.prototype, null, 1);
}
#endinitclip
}
movieClip 2382 __Packages.as.EdFace {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.EdFace) {
_global.as.EdFace = function () {};
}
#endinitclip
}
movieClip 2383 __Packages.as.EDLine {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.EDLine) {
var v1 = function (x1, y1, x2, y2) {
this.Id = as.EDLine.Addid++;
this.p1 = new as.Vector(x1, y1);
this.p2 = new as.Vector(x2, y2);
this.Ang = (Math.atan2(y2 - y1, x2 - x1) / Math.PI) * 180;
this.IsActivated = true;
var v4 = new as.Vector(this.LineWidth, 0);
v4.rotate(this.Ang - 90);
var v3 = new Array();
v3.push(this.p1);
v3.push(this.p2);
v3.push(new as.Vector(this.p2.x + v4.x, this.p2.y + v4.y));
v3.push(new as.Vector(this.p1.x + v4.x, this.p1.y + v4.y));
this.minX = v3[0].x;
this.maxX = v3[0].x;
this.minY = v3[0].y;
this.maxY = v3[0].y;
var v2 = 1;
while (v2 < v3.length) {
if (v3[v2].x < this.minX) {
this.minX = v3[v2].x;
}
if (v3[v2].x > this.maxX) {
this.maxX = v3[v2].x;
}
if (v3[v2].y < this.minY) {
this.minY = v3[v2].y;
}
if (v3[v2].y > this.maxY) {
this.maxY = v3[v2].y;
}
delete v3[v2];
++v2;
}
false;
};
as.EDLine = v1;
var v2 = v1.prototype;
_global.as.EDLine implements _global.as.EdFace;
v2.getId = function () {
return this.Id;
};
v2.getAngle = function () {
return this.Ang;
};
v2.HitTest = function (x, y) {
if (!this.IsActivated) {
return false;
}
if (x > this.maxX || x < this.minX || y > this.maxY || y < this.minY) {
return false;
}
var v2 = new as.Vector(x - this.p1.x, y - this.p1.y);
v2.rotate(-this.Ang);
var v3 = new as.Vector(this.p1.x + v2.x, this.p1.y + v2.y);
false;
v2 = new as.Vector(this.p2.x - this.p1.x, this.p2.y - this.p1.y);
v2.rotate(-this.Ang);
var v4 = new as.Vector(this.p1.x + v2.x, this.p1.y + v2.y);
if (v3.x > this.p1.x && v3.x < v4.x && v3.y < this.p1.y && v3.y > this.p1.y - this.LineWidth) {
false;
false;
false;
this.onConnect();
return true;
} else {
false;
false;
false;
return false;
}
};
v2.onConnect = function () {};
v2.ReSetLineWidth = function (LineWidth) {
this.LineWidth = LineWidth;
var v4 = new as.Vector(LineWidth, 0);
v4.rotate(this.Ang - 90);
var v3 = new Array();
v3.push(this.p1);
v3.push(this.p2);
v3.push(new as.Vector(this.p2.x + v4.x, this.p2.y + v4.y));
v3.push(new as.Vector(this.p1.x + v4.x, this.p1.y + v4.y));
this.minX = v3[0].x;
this.maxX = v3[0].x;
this.minY = v3[0].y;
this.maxY = v3[0].y;
var v2 = 1;
while (v2 < v3.length) {
if (v3[v2].x < this.minX) {
this.minX = v3[v2].x;
}
if (v3[v2].x > this.maxX) {
this.maxX = v3[v2].x;
}
if (v3[v2].y < this.minY) {
this.minY = v3[v2].y;
}
if (v3[v2].y > this.maxY) {
this.maxY = v3[v2].y;
}
delete v3[v2];
++v2;
}
};
v2.paint = function (Dmc) {
Dmc.lineStyle(2, 0, 100);
Dmc.moveTo(this.p1.x, this.p1.y);
Dmc.lineTo(this.p2.x, this.p2.y);
Dmc.lineTo(this.p2.x + 2, this.p2.y);
Dmc.lineTo(this.p2.x + 2, this.p2.y + 2);
Dmc.lineTo(this.p2.x, this.p2.y + 2);
Dmc.lineTo(this.p2.x, this.p2.y);
Dmc.lineStyle(1, 255, 100);
var v3 = new as.Vector(this.LineWidth, 0);
v3.rotate(this.Ang - 90);
Dmc.lineTo(this.p2.x + v3.x, this.p2.y + v3.y);
Dmc.lineTo(this.p1.x + v3.x, this.p1.y + v3.y);
Dmc.lineTo(this.p1.x, this.p1.y);
false;
};
v1.Addid = 0;
v2.LineWidth = 50;
ASSetPropFlags(as.EDLine.prototype, null, 1);
}
#endinitclip
}
movieClip 2384 __Packages.as.EDRectangle {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.EDRectangle) {
var v1 = function (x, y, width, height, ang) {
if (ang == undefined) {
ang = 0;
}
var v3 = new as.Vector(-width / 2, -height / 2);
v3.rotate(ang);
var v5 = new as.Vector(x + v3.x, y + v3.y);
v3.x = width / 2;
v3.y = -height / 2;
v3.rotate(ang);
var v4 = new as.Vector(x + v3.x, y + v3.y);
this.LineWidth = height;
super(v4.x, v4.y, v5.x, v5.y);
false;
};
as.EDRectangle = v1;
as.EDRectangle extends as.EDLine;
var v2 = v1.prototype;
_global.as.EDRectangle implements _global.as.EdFace;
ASSetPropFlags(as.EDRectangle.prototype, null, 1);
}
#endinitclip
}
movieClip 2385 __Packages.as.EventsInMap.EventsInMap {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.EventsInMap) {
_global.as.EventsInMap = new Object();
}
if (!_global.as.EventsInMap.EventsInMap) {
var v1 = function (map, x, y, width, height, angle) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.map = map;
this.angle = angle;
this.edface = map.edevent.AddRectangle(x, y, width, height, angle);
};
as.EventsInMap.EventsInMap = v1;
var v2 = v1.prototype;
v2.GetHitEventStatus = function (PlayerId) {};
v2.del = function () {
this.map.edevent.delED(this.edface.getId());
};
ASSetPropFlags(as.EventsInMap.EventsInMap.prototype, null, 1);
}
#endinitclip
}
movieClip 2386 __Packages.as.EventsInMap.PropInMap {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.EventsInMap) {
_global.as.EventsInMap = new Object();
}
if (!_global.as.EventsInMap.PropInMap) {
var v1 = function (Pmc, map, x, y, width, height, angle) {
super(map, x, y, width, height, angle);
this.Dmc = Pmc.attachMovie('prop_in_map', 'prop' + Pmc.getNextHighestDepth(), Pmc.getNextHighestDepth());
this.Dmc._xscale = 70;
this.Dmc._yscale = 70;
this.Dmc._x = x;
this.Dmc._y = y;
};
as.EventsInMap.PropInMap = v1;
as.EventsInMap.PropInMap extends as.EventsInMap.EventsInMap;
var v2 = v1.prototype;
v2.GetHitEventStatus = function (PlayerId) {
if (this.Dmc._visible == true) {
var v2 = {'x': this.Dmc._x, 'y': this.Dmc._y};
this.Dmc._parent.localToGlobal(v2);
(as.Game.Instance.GetPlayer(PlayerId)).RunPropBox(v2.x, v2.y);
this.Dmc._visible = false;
as.Timer.AddTimer(this, 'ReShowProp', this.TimePropReShow);
}
};
v2.ReShowProp = function () {
this.Dmc._visible = true;
};
v2.del = function () {
this.Dmc.removeMovieClip();
super.del();
};
v2.TimePropReShow = 3000;
ASSetPropFlags(as.EventsInMap.PropInMap.prototype, null, 1);
}
#endinitclip
}
movieClip 2387 __Packages.as.Timer {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Timer) {
var v1 = function (ob, functionname, Millisecond, CycleNum) {
this.CycleNum = CycleNum;
if (CycleNum == undefined || CycleNum == null) {
this.CycleNum = 0;
}
this.Id = ++as.Timer.TimerId;
this.ob = ob;
this.Millisecond = Millisecond;
this.functionname = functionname;
var v3 = new Date();
this.StartTime = v3.getTime();
this.parameters = new Array();
this.broadcastMessageObject = new AsBroadcaster();
AsBroadcaster.initialize(this.broadcastMessageObject);
this.broadcastMessageObject.addListener(ob);
};
as.Timer = v1;
var v2 = v1.prototype;
v2.AddParameters = function () {
this.parameters.push(arguments[0]);
};
v2.CheckTime = function () {
var v3 = new Date();
var v2 = v3.getTime();
if (v2 - this.StartTime > this.Millisecond) {
this.broadcastMessageObject.broadcastMessage(this.functionname, this.parameters);
this.StartTime = v2;
if (this.CycleNum > 0) {
--this.CycleNum;
}
if (this.CycleNum == 0) {
return this.Id;
}
}
return null;
};
v2.dele = function () {
this.broadcastMessageObject.removeListener(this.ob);
};
v1.run = function () {
var v1 = 0;
while (v1 < as.Timer.TimerArr.length) {
as.Timer.DelTimer(as.Timer.TimerArr[v1].CheckTime());
++v1;
}
};
v1.AddTimer = function (ob, functionname, Millisecond) {
var v3 = new as.Timer(ob, functionname, Millisecond);
as.Timer.TimerArr.push(v3);
var v2 = 3;
while (v2 < arguments.length) {
v3.AddParameters(arguments[v2]);
++v2;
}
return as.Timer.TimerId;
};
v1.AddCycleTimer = function (ob, functionname, Millisecond, CycleNum) {
if (CycleNum == undefined || CycleNum == null) {
CycleNum = -1;
}
var v3 = new as.Timer(ob, functionname, Millisecond, CycleNum);
as.Timer.TimerArr.push(v3);
var v2 = 4;
while (v2 < arguments.length) {
v3.AddParameters(arguments[v2]);
++v2;
}
return as.Timer.TimerId;
};
v1.DelTimer = function (TimerId) {
var v1 = 0;
while (v1 < as.Timer.TimerArr.length) {
if (as.Timer.TimerArr[v1].Id == TimerId) {
as.Timer.TimerArr[v1].dele();
delete as.Timer.TimerArr[v1];
as.Timer.TimerArr.splice(v1, 1);
--v1;
}
++v1;
}
};
v1.del = function () {
var v1 = 0;
while (v1 < as.Timer.TimerArr.length) {
as.Timer.TimerArr[v1].dele();
delete as.Timer.TimerArr[v1];
++v1;
}
};
v1.TimerArr = new Array();
v1.TimerId = 0;
ASSetPropFlags(as.Timer.prototype, null, 1);
}
#endinitclip
}
movieClip 2388 __Packages.as.EventsInMap.JumpInMap {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.EventsInMap) {
_global.as.EventsInMap = new Object();
}
if (!_global.as.EventsInMap.JumpInMap) {
var v1 = function (Pmc, map, x, y, width, height, angle) {
super(map, x, y, width, height, angle);
this.Dmc = Pmc.attachMovie('jump_in_map', 'jump' + Pmc.getNextHighestDepth(), Pmc.getNextHighestDepth());
this.Dmc._x = x;
this.Dmc._y = y;
this.Dmc._rotation = angle;
};
as.EventsInMap.JumpInMap = v1;
as.EventsInMap.JumpInMap extends as.EventsInMap.EventsInMap;
var v2 = v1.prototype;
v2.GetHitEventStatus = function (PlayerId) {
(as.Game.Instance.GetPlayer(PlayerId)).myCar.JumpBySpeed(0.5);
};
v2.del = function () {
this.Dmc.removeMovieClip();
super.del();
};
ASSetPropFlags(as.EventsInMap.JumpInMap.prototype, null, 1);
}
#endinitclip
}
movieClip 2389 __Packages.as.EventsInMap.AddSpeedInMap {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.EventsInMap) {
_global.as.EventsInMap = new Object();
}
if (!_global.as.EventsInMap.AddSpeedInMap) {
var v1 = function (Pmc, map, x, y, width, height, angle) {
super(map, x, y, width, height, angle);
this.Horse = new as.Vector(1, 0);
this.Dmc = Pmc.attachMovie('addspeed_in_map', 'addspeed' + Pmc.getNextHighestDepth(), Pmc.getNextHighestDepth());
this.Dmc._x = x;
this.Dmc._y = y;
this.Dmc._rotation = angle;
};
as.EventsInMap.AddSpeedInMap = v1;
as.EventsInMap.AddSpeedInMap extends as.EventsInMap.EventsInMap;
var v2 = v1.prototype;
v2.GetHitEventStatus = function (PlayerId) {
(as.Game.Instance.GetPlayer(PlayerId)).myCar.Speed.plus(this.Horse.rotateNew(this.angle - 90));
(as.Game.Instance.GetPlayer(PlayerId)).myCar.playFastSound();
(as.Game.Instance.GetPlayer(PlayerId)).myCar.playAddSpeedSound();
};
v2.del = function () {
this.Dmc.removeMovieClip();
super.del();
};
v2.TimePropReShow = 3000;
ASSetPropFlags(as.EventsInMap.AddSpeedInMap.prototype, null, 1);
}
#endinitclip
}
movieClip 2390 __Packages.as.EventsInMap.BsInMap {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.EventsInMap) {
_global.as.EventsInMap = new Object();
}
if (!_global.as.EventsInMap.BsInMap) {
var v1 = function (Pmc, map, x, y, width, height, angle) {
super(map, x, y, width, height, angle);
this.Dmc = Pmc.attachMovie('bs_in_map', 'bs' + Pmc.getNextHighestDepth(), Pmc.getNextHighestDepth());
this.Dmc._x = x;
this.Dmc._y = y;
this.Dmc._rotation = angle;
this.IsActivated = true;
};
as.EventsInMap.BsInMap = v1;
as.EventsInMap.BsInMap extends as.EventsInMap.EventsInMap;
var v2 = v1.prototype;
v2.GetHitEventStatus = function (PlayerId) {
if (this.IsActivated) {
if (!(as.Game.Instance.GetPlayer(PlayerId)).IsInvincible) {
(as.Game.Instance.GetPlayer(PlayerId)).myCar.bsf = (as.Game.Instance.GetPlayer(PlayerId)).myCar.Speed.getAngle() > this.Dmc._rotation;
(as.Game.Instance.GetPlayer(PlayerId)).myCar.bs = true;
(as.Game.Instance.GetPlayer(PlayerId)).myCar.playBsSound();
}
}
};
v2.del = function () {
this.Dmc.removeMovieClip();
super.del();
};
v2.TimePropReShow = 3000;
v2.IsActivated = true;
ASSetPropFlags(as.EventsInMap.BsInMap.prototype, null, 1);
}
#endinitclip
}
movieClip 2391 __Packages.as.GameDate {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.GameDate) {
var v1 = function () {};
as.GameDate = v1;
var v2 = v1.prototype;
v1.Init = function () {
as.GameDate.definedhighscores = new Array(8);
as.GameDate.definedhighscores[0] = new Array(null, null, null);
as.GameDate.definedhighscores[1] = new Array(null, null, null);
as.GameDate.definedhighscores[2] = new Array(null, null, null);
as.GameDate.definedhighscores[3] = new Array(null, null, null);
as.GameDate.definedhighscores[4] = new Array(null, null, null);
as.GameDate.definedhighscores[5] = new Array(null, null, null);
as.GameDate.definedhighscores[6] = new Array(null, null, null);
as.GameDate.definedhighscores[7] = new Array(null, null, null);
as.GameDate.AiType = new Array(3);
as.GameDate.NowCupLevel = 0;
as.GameDate.NowWinCup = as.GameDate.LoadWinCup();
as.GameDate.NoCupFinishRecord = as.GameDate.NowWinCup;
as.GameDate.HighScores = as.GameDate.LoadHighScores();
as.GameDate.helpRecord = as.GameDate.LoadhelpRecord();
as.GameDate.NowTotalScores = 0;
as.GameDate.RecordCUPTime = null;
as.GameDate.NewCupTimeRecord = null;
as.GameDate.mapScoresCountArr = new Array(8);
as.GameDate.mapScoresCountArr[0] = new Array(new Array(300000, 1), new Array(300000, 3), new Array(300000, 5));
as.GameDate.mapScoresCountArr[1] = new Array(new Array(300000, 1), new Array(300000, 3), new Array(300000, 5));
as.GameDate.mapScoresCountArr[2] = new Array(new Array(300000, 1), new Array(300000, 3), new Array(300000, 5));
as.GameDate.mapScoresCountArr[3] = new Array(new Array(300000, 1), new Array(300000, 3), new Array(300000, 5));
as.GameDate.mapScoresCountArr[4] = new Array(new Array(300000, 1), new Array(300000, 3), new Array(300000, 5));
as.GameDate.mapScoresCountArr[5] = new Array(new Array(300000, 1), new Array(300000, 3), new Array(300000, 5));
as.GameDate.mapScoresCountArr[6] = new Array(new Array(300000, 1), new Array(300000, 3), new Array(300000, 5));
as.GameDate.mapScoresCountArr[7] = new Array(new Array(300000, 1), new Array(300000, 3), new Array(300000, 5));
as.GameDate.CupEditArr = new Array(8);
as.GameDate.CupEditArr[0] = new Array(new Array(0, 3, new Array(15000, 45000, 135000)), new Array(2, 2, new Array(15000, 45000, 135000)));
as.GameDate.CupEditArr[1] = new Array(new Array(1, 3, new Array(15000, 45000, 135000)), new Array(3, 2, new Array(15000, 45000, 135000)));
as.GameDate.CupEditArr[2] = new Array(new Array(4, 2, new Array(15000, 45000, 135000)), new Array(0, 3, new Array(15000, 45000, 135000)));
as.GameDate.CupEditArr[3] = new Array(new Array(5, 2, new Array(15000, 45000, 135000)), new Array(1, 3, new Array(15000, 45000, 135000)));
as.GameDate.CupEditArr[4] = new Array(new Array(6, 3, new Array(15000, 45000, 135000)), new Array(2, 2, new Array(15000, 45000, 135000)), new Array(4, 2, new Array(15000, 45000, 135000)));
as.GameDate.CupEditArr[5] = new Array(new Array(7, 3, new Array(15000, 45000, 135000)), new Array(5, 2, new Array(15000, 45000, 135000)), new Array(3, 2, new Array(15000, 45000, 135000)));
as.GameDate.CupEditArr[6] = new Array(new Array(2, 3, new Array(30000, 60000, 150000)), new Array(1, 2, new Array(30000, 60000, 150000)), new Array(4, 2, new Array(30000, 60000, 150000)), new Array(7, 3, new Array(36000, 75000, 180000)));
as.GameDate.CupEditArr[7] = new Array(new Array(3, 4, new Array(36000, 75000, 180000)), new Array(0, 3, new Array(36000, 75000, 180000)), new Array(5, 3, new Array(36000, 75000, 180000)), new Array(6, 4, new Array(36000, 75000, 180000)));
as.GameDate.UnLockCup = new Array(8);
as.GameDate.UnLockCup[0] = new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0), 0);
as.GameDate.UnLockCup[1] = new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0), 0);
as.GameDate.UnLockCup[2] = new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0), 0);
as.GameDate.UnLockCup[3] = new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0), 0);
as.GameDate.UnLockCup[4] = new Array(new Array(1, 0, 1, 0, 0, 0, 0, 0), 0);
as.GameDate.UnLockCup[5] = new Array(new Array(0, 1, 0, 1, 0, 0, 0, 0), 0);
as.GameDate.UnLockCup[6] = new Array(new Array(2, 2, 2, 2, 2, 2, 0, 0), 0);
as.GameDate.UnLockCup[7] = new Array(new Array(0, 0, 0, 0, 0, 0, 2, 0), 1);
as.GameDate.UnLockCharactor = new Array(6);
as.GameDate.UnLockCharactor[0] = new Array(1, 0, 0, 0, 0, 0, 0, 0);
as.GameDate.UnLockCharactor[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0);
as.GameDate.UnLockCharactor[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0);
as.GameDate.UnLockCharactor[3] = new Array(0, 1, 0, 1, 0, 0, 0, 0);
as.GameDate.UnLockCharactor[4] = new Array(0, 0, 0, 0, 1, 1, 0, 0);
as.GameDate.UnLockCharactor[5] = new Array(2, 2, 2, 2, 2, 2, 2, 2);
as.GameDate.PointByOrder = new Array(4);
as.GameDate.PointByOrder[0] = 10;
as.GameDate.PointByOrder[1] = 8;
as.GameDate.PointByOrder[2] = 6;
as.GameDate.PointByOrder[3] = 4;
as.GameDate.AiLevel = new Array(3);
as.GameDate.AiLevel[0] = new Array(new Array(18, 1000, false), new Array(20, 100, false), new Array(25, 500, false));
as.GameDate.AiLevel[1] = new Array(new Array(15, 80, true), new Array(20, 80, false), new Array(25, 80, false));
as.GameDate.AiLevel[2] = new Array(new Array(10, 30, true), new Array(12, 40, true), new Array(15, 60, true));
as.GameDate.RecordPoint = new Array(4);
as.GameDate.RecordPoint[0] = new Array(0, 0, 0, -1);
as.GameDate.RecordPoint[1] = new Array(1, 0, 0, -1);
as.GameDate.RecordPoint[2] = new Array(2, 0, 0, -1);
as.GameDate.RecordPoint[3] = new Array(3, 0, 0, -1);
};
v1.getMapCompletesScores = function (cupid, NowCupLevel, levelNum, finishtime, point) {
var v3 = as.GameDate.CupEditArr[cupid][NowCupLevel][2][levelNum] * point;
var v2 = as.GameDate.CupEditArr[cupid][NowCupLevel][0];
var v1 = as.GameDate.mapScoresCountArr[v2][levelNum][0] - finishtime;
if (v1 < 0) {
v1 = 0;
}
var v4 = Math.floor(v1 * as.GameDate.mapScoresCountArr[v2][levelNum][1]);
return v3 + v4;
};
v1.getrandommap = function (type, nomapId) {
var v4;
if (type == 0) {
v4 = new Array(0, 1, 2, 3, 4, 5, 6, 7);
}
if (type == 1) {
v4 = new Array(0, 2, 4, 6);
}
if (type == 2) {
v4 = new Array(1, 3, 5, 7);
}
var v5 = new Array();
var v2 = 0;
while (v2 < v4.length) {
var v1 = 0;
while (v1 < nomapId.length) {
if (nomapId[v1] == v2) {
} else {}
++v1;
}
if (random(2) == 1) {
v5.push(v4[v2]);
} else {
v5.unshift(v4[v2]);
}
++v2;
}
return v5;
};
v1.clearRecord = function () {
as.GameDate.RecordCUPTime = null;
as.GameDate.NowCupLevel = 0;
as.GameDate.RecordPoint[0] = new Array(0, 0, 0, -1);
as.GameDate.RecordPoint[1] = new Array(1, 0, 0, -1);
as.GameDate.RecordPoint[2] = new Array(2, 0, 0, -1);
as.GameDate.RecordPoint[3] = new Array(3, 0, 0, -1);
};
v1.GetMapId = function () {
return Math.floor(as.GameDate.CupEditArr[as.GameDate.SelectCapId][as.GameDate.NowCupLevel][0] / 2);
};
v1.GetRaceId = function () {
return (as.GameDate.CupEditArr[as.GameDate.SelectCapId][as.GameDate.NowCupLevel][0] % 2 == 0) ? 1 : 2;
};
v1.GetLapNum = function () {
return as.GameDate.CupEditArr[as.GameDate.SelectCapId][as.GameDate.NowCupLevel][1];
};
v1.GetPlayerType = function (playerId) {
if (1 == playerId) {
return as.GameDate.AiType[0];
}
if (2 == playerId) {
return as.GameDate.AiType[1];
}
if (3 == playerId) {
return as.GameDate.AiType[2];
}
return as.GameDate.SelectPlayerId;
};
v1.CheckCupLock = function (CupId) {
var v1 = 0;
while (v1 < as.GameDate.UnLockCup[CupId][0].length) {
if (as.GameDate.UnLockCup[CupId][0][v1] > as.GameDate.NowWinCup[v1]) {
return true;
}
++v1;
}
return false;
};
v1.CheckCharactorLock = function (CharId) {
var v1 = 0;
while (v1 < as.GameDate.UnLockCharactor[CharId].length) {
if (as.GameDate.UnLockCharactor[CharId][v1] > as.GameDate.NowWinCup[v1]) {
return true;
}
++v1;
}
return false;
};
v1.SaveWinCup = function (CapId, LevelId) {
as.GameDate.NoCupFinishRecord = as.GameDate.NowWinCup.slice(0);
if (1 == LevelId) {
if (0 == as.GameDate.NowWinCup[CapId] % 2) {
as.GameDate.NowWinCup[CapId] += 1;
} else {}
} else {
if (2 == LevelId) {
if (0 == as.GameDate.NowWinCup[CapId] || 1 == as.GameDate.NowWinCup[CapId] || 4 == as.GameDate.NowWinCup[CapId] || 5 == as.GameDate.NowWinCup[CapId]) {
as.GameDate.NowWinCup[CapId] += 2;
} else {}
} else {
if (3 == LevelId) {
if (as.GameDate.NowWinCup[CapId] < 4) {
as.GameDate.NowWinCup[CapId] += 4;
} else {}
} else {}
}
}
if (as.GameDate.HighScores[CapId][LevelId - 1] == null) {
as.GameDate.HighScores[CapId][LevelId - 1] = as.GameDate.RecordCUPTime;
as.GameDate.NewCupTimeRecord = new Array(CapId, LevelId);
} else {
if (as.GameDate.HighScores[CapId][LevelId - 1] > as.GameDate.RecordCUPTime) {
as.GameDate.HighScores[CapId][LevelId - 1] = as.GameDate.RecordCUPTime;
as.GameDate.NewCupTimeRecord = new Array(CapId, LevelId);
} else {
as.GameDate.NewCupTimeRecord = null;
}
}
as.GameDate.my_so.data.WinCupDate = as.GameDate.NowWinCup;
as.GameDate.my_so.data.HighScores = as.GameDate.HighScores;
as.GameDate.my_so.flush();
as.GameDate.my_so.onStatus = function (infoObject) {
for (var v2 in infoObject) {
if (infoObject[v2] == 'status') {
as.GameDate.my_so.data.WinCupDate = as.GameDate.NowWinCup;
as.GameDate.my_so.data.HighScores = as.GameDate.HighScores;
as.GameDate.my_so.flush();
}
}
};
};
v1.LoadWinCup = function () {
as.GameDate.my_so = SharedObject.getLocal('raccoon_racing');
var temparr = as.GameDate.my_so.data.WinCupDate;
as.GameDate.my_so.onStatus = function (infoObject) {
for (var v2 in infoObject) {
if (infoObject[v2] == 'status') {
temparr = new Array(0, 0, 0, 0, 0, 0, 0, 0);
as.GameDate.my_so.data.WinCupDate = temparr;
as.GameDate.my_so.flush();
}
}
};
if (temparr.length != 8) {
temparr = new Array(0, 0, 0, 0, 0, 0, 0, 0);
as.GameDate.my_so.data.WinCupDate = temparr;
as.GameDate.my_so.flush();
}
return temparr;
};
v1.SaveHighScores = function (scores, name) {
as.GameDate.HighScores[8] = new Array(scores, name);
as.GameDate.HighScores.sortOn(0, Array.DESCENDING | Array.NUMERIC);
as.GameDate.my_so.data.HighScores = as.GameDate.HighScores;
as.GameDate.my_so.flush();
as.GameDate.my_so.onStatus = function (infoObject) {
for (var v2 in infoObject) {
if (infoObject[v2] == 'status') {
as.GameDate.my_so.data.HighScores = as.GameDate.HighScores;
as.GameDate.my_so.flush();
}
}
};
};
v1.SaveHelpRecord = function (Id) {
as.GameDate.helpRecord[Id] = true;
as.GameDate.my_so.data.helpRecord = as.GameDate.helpRecord;
as.GameDate.my_so.flush();
as.GameDate.my_so.onStatus = function (infoObject) {
for (var v2 in infoObject) {
if (infoObject[v2] == 'status') {
as.GameDate.my_so.data.helpRecord = as.GameDate.helpRecord;
as.GameDate.my_so.flush();
}
}
};
};
v1.LoadhelpRecord = function () {
as.GameDate.my_so = SharedObject.getLocal('raccoon_racing');
var temparr = as.GameDate.my_so.data.helpRecord;
as.GameDate.my_so.onStatus = function (infoObject) {
for (var v2 in infoObject) {
if (infoObject[v2] == 'status') {
temparr = new Array(false, false);
as.GameDate.my_so.data.helpRecord = temparr;
as.GameDate.my_so.flush();
}
}
};
if (temparr.length != 2) {
temparr = new Array(false, false);
as.GameDate.my_so.data.helpRecord = temparr;
as.GameDate.my_so.flush();
}
return temparr;
};
v1.LoadHighScores = function () {
as.GameDate.my_so = SharedObject.getLocal('raccoon_racing');
var temparr = as.GameDate.my_so.data.HighScores;
as.GameDate.my_so.onStatus = function (infoObject) {
for (var v2 in infoObject) {
if (infoObject[v2] == 'status') {
temparr = as.GameDate.definedhighscores;
as.GameDate.my_so.data.HighScores = temparr;
as.GameDate.my_so.flush();
}
}
};
if (temparr.length != 8) {
temparr = as.GameDate.definedhighscores;
as.GameDate.my_so.data.HighScores = temparr;
as.GameDate.my_so.flush();
}
return temparr;
};
v1.getNextMap = function () {
++as.GameDate.NowCupLevel;
if (as.GameDate.NowCupLevel >= as.GameDate.CupEditArr[as.GameDate.SelectCapId].length) {
as.GameDate.NowCupLevel = 0;
return -1;
} else {
return Math.floor(as.GameDate.CupEditArr[as.GameDate.SelectCapId][as.GameDate.NowCupLevel][0] / 2);
}
};
v1.RecordPlayerSorce = function (OrderArr) {
as.GameDate.RecordPoint.sortOn(new Array(1, 0), new Array(Array.DESCENDING | Array.NUMERIC, Array.NUMERIC));
var v1 = 0;
while (v1 < 4) {
if (as.GameDate.RecordPoint[v1][1] != 0) {
as.GameDate.RecordPoint[v1][3] = v1;
} else {
as.GameDate.RecordPoint[v1][3] = -1;
}
++v1;
}
OrderArr.sortOn(0, Array.DESCENDING | Array.NUMERIC);
as.GameDate.RecordPoint.sortOn(0, Array.NUMERIC);
v1 = 0;
while (v1 < 4) {
as.GameDate.RecordPoint[OrderArr[v1][1]][1] += as.GameDate.PointByOrder[v1];
as.GameDate.RecordPoint[OrderArr[v1][1]][2] = as.GameDate.PointByOrder[v1];
++v1;
}
};
v1.getAiLevel = function (AiId, pId) {
return as.GameDate.AiLevel[as.GameDate.SelectLevelId][AiId][pId];
};
v1.getTotalCupLevelNum = function () {
return as.GameDate.CupEditArr[as.GameDate.SelectCapId].length;
};
ASSetPropFlags(as.GameDate.prototype, null, 1);
}
#endinitclip
}
movieClip 2392 __Packages.as.Prop.MoveObject {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.MoveObject) {
var v1 = function (game, map, Dmc, IsHitWall, IsHitCar) {
if (IsHitWall) {
this.IsHitWall = true;
} else {
this.IsHitWall = false;
}
if (IsHitCar) {
this.IsHitCar = true;
} else {
this.IsHitCar = false;
}
this.bsEx = 0;
this.CarFriction = 0;
this.CarMoveAngofCarAng = 0;
this.tempx = 0;
this.tempy = 0;
this.stepx = 0;
this.stepy = 0;
this.game = game;
this.map = map;
this.Dmc = Dmc;
this.Speed = new as.Vector(0, 0);
this.Horse = new as.Vector(this.SpeedHorse, 0);
};
as.Prop.MoveObject = v1;
var v2 = v1.prototype;
v2.Update = function () {
this.UpdateCarPos();
this.UpdateViewMap();
this.UpdateSpeed();
if (this.bsEx > 0) {
this.Dmc._rotation += Math.min(this.bsEx, 50);
--this.bsEx;
}
};
v2.Forward = function () {
this.Speed.plus(this.Horse.rotateNew(this.Dmc._rotation));
};
v2.TurnLeft = function () {
this.Dmc._rotation += -Math.min(this.Speed.getLength() * this.WheelLengthNum, this.MaxWheelLength);
};
v2.TurnRight = function () {
this.Dmc._rotation += Math.min(this.Speed.getLength() * this.WheelLengthNum, this.MaxWheelLength);
};
v2.SetHorse = function (horse) {
this.Horse = new as.Vector(horse, 0);
};
v2.ReSet = function (x, y, r) {
this.Dmc._x = x;
this.Dmc._y = y;
if (r != undefined) {
this.Dmc._rotation = r;
}
this.Update();
};
v2.DoAction = function (Way) {
switch (Way) {
case 0:
this.Forward();
break;
case 2:
this.TurnLeft();
break;
case 3:
this.TurnRight();
}
};
v2.UpdateViewMap = function () {
this.Dmc_view._x = this.Dmc._x * this.map.ScaledTimes;
this.Dmc_view._y = this.Dmc._y * this.map.ScaledTimes;
this.Dmc_view._rotation = this.Dmc._rotation;
};
v2.UpdateSpeed = function () {
this.CarMoveAngofCarAng = as.Vector.FormatAngle(this.Speed.getAngle() - this.Dmc._rotation);
this.CarFriction = Math.abs(as.Vector.FormatAngle(this.Speed.getAngle() - this.Dmc._rotation));
if (this.CarFriction > 90) {
this.CarFriction = 180 - this.CarFriction;
}
this.Speed.scale(1 - (0.02 + int(this.CarFriction) * 0.0008));
var v2;
if (this.CarMoveAngofCarAng < 90 && this.CarMoveAngofCarAng > 0 || this.CarMoveAngofCarAng < -90) {
v2 = -1;
} else {
v2 = 1;
}
this.Speed.plus((this.Speed.scaleNew(0.0008 * int(90 - this.CarFriction))).rotateNew(90 * v2));
};
v2.UpdateCarPos = function () {
this.GetHitCar();
this.stepx = int(this.Speed.x * 10) / 10;
this.stepy = int(this.Speed.y * 10) / 10;
this.tempx = this.Dmc._x + this.stepx;
this.tempy = this.Dmc._y + this.stepy;
this.GetHitStatus(this.tempx, this.tempy);
this.Dmc._x = this.tempx;
this.Dmc._y = this.tempy;
};
v2.GetHitStatus = function (tx, ty) {
var v3 = this.getHitStatusAng(tx, ty);
if (v3 == null) {
return undefined;
}
this.onHitStatus();
if (this.IsHitWall) {
var v4 = as.Vector.FormatAngle(-(this.Speed.getAngle() - v3) * 2);
var v2 = as.Vector.FormatAngle(v3 - this.Dmc._rotation);
var v5 = Math.abs(as.Vector.FormatAngle90((this.Speed.getAngle() - v3) % 180));
if (v2 >= 0 && v2 < 45 || v2 < -135) {
this.Dmc._rotation += ((this.Speed.getLength() * 1 + 1) / this.map.Wallspring) * 0.02;
}
if (v2 < 0 && v2 > -45 || v2 > 135) {
this.Dmc._rotation -= ((this.Speed.getLength() * 1 + 1) / this.map.Wallspring) * 0.02;
}
if (!(as.Vector.FormatAngle(this.Speed.getAngle() - v3) > 0 && as.Vector.FormatAngle(this.Speed.getAngle() - v3) < 180)) {
if (Math.abs(v4) < 60) {
v4 /= 2;
}
this.Speed.rotate(v4);
}
this.Speed.scale(1 - this.map.Wallspring * (v5 * Math.abs(Math.abs(v2) - 90) / 90));
this.Speed.plus((new as.Vector(0.1, 0)).rotateNew(v3 + 90));
this.stepx = int(this.Speed.x * 10) / 10;
this.stepy = int(this.Speed.y * 10) / 10;
this.tempx = this.Dmc._x + this.stepx;
this.tempy = this.Dmc._y + this.stepy;
}
};
v2.getHitStatusAng = function (tx, ty) {
var v3 = this.ToPointNow(this.Dmc.point._x, this.Dmc.point._y);
var v5 = tx + v3.x;
var v4 = ty + v3.y;
var v2 = this.map.ed.GetHitFace(v5, v4);
if (v2 != null) {
return v2.getAngle();
}
return null;
};
v2.GetHitCar = function () {
var v2 = 0;
while (v2 < this.game.Players.length) {
if (this.Dmc.body.hitTest(this.game.Players[v2].myCar.Dmc.body)) {
this.BeAttacked(this.game.Players[v2].myCar);
}
++v2;
}
};
v2.BeAttacked = function (Who) {
if (Who.player.IsReSeting) {
return undefined;
}
this.onHitCar(Who);
if (this.IsHitCar) {
if (Who.jump_currheight > Who.HeightOverWall) {
return undefined;
}
Who.playbumpsound();
var v7 = Who.Speed.getClone();
var v4 = this.Dmc._x - Who.Dmc._x;
var v3 = this.Dmc._y - Who.Dmc._y;
var v5 = v4 * v4 + v3 * v3;
var v6 = 0.005;
if (v5 < 2000) {
v6 = 0.005 + 0.05 * (2000 - v5) / 2000;
}
var v8 = (new as.Vector(v4, v3)).scaleNew(v6);
this.Speed = v7.plusNew(v8.scaleNew(40));
this.bsEx = 40;
}
};
v2.CheckPoint = function (obj, x, y) {
return obj.hitTest(x, y, true);
};
v2.ToPointNow = function (x, y) {
var v2 = new as.Vector(x, y);
v2.rotate(this.Dmc._rotation);
v2.scale(this.Dmc._xscale / 100);
return v2;
};
v2.Smoke = function (Type, lr) {
if (this.map.RaceId == 1) {
var v4 = this.Dmc._parent.getNextHighestDepth();
var v2 = this.Dmc._parent.attachMovie(Type, Type + v4, v4);
var v3;
if (lr) {
v3 = this.ToPointNow(this.Dmc.point3._x - 5, this.Dmc.point3._y - 7);
} else {
v3 = this.ToPointNow(this.Dmc.point4._x - 5, this.Dmc.point4._y + 7);
}
v2._x = this.Dmc._x + v3.x;
v2._y = this.Dmc._y + v3.y;
v2._yscale = (100 * this.Dmc.car_mc._xscale / 100) * this.Dmc._xscale / 100;
v2._xscale = v2._yscale;
v2._rotation = this.Dmc._rotation;
this.Dmc.swapDepths(v2);
}
};
v2.getClosestPoint = function (p) {
var v3 = 0;
var v2 = 0;
while (v2 < p.length) {
v3 = this.getMin(p, v3, v2);
++v2;
}
return v3;
};
v2.getMin = function (p, a, b) {
var v6 = (new as.Vector(p[a].x - this.Dmc._x, p[a].y - this.Dmc._y)).getLength();
var v5 = (new as.Vector(p[b].x - this.Dmc._x, p[b].y - this.Dmc._y)).getLength();
if (v6 < v5) {
return a;
} else {
return b;
}
};
v2.Del = function () {
this.Dmc.removeMovieClip();
this.Dmc_view.removeMovieClip();
};
v2.onHitStatus = function () {};
v2.onHitCar = function (car) {};
v2.AddPetro = function () {
var v3 = this.Dmc._parent.getNextHighestDepth();
var v2;
v2 = this.Dmc._parent.attachMovie('car_Petro', 'car_Petro' + v3, v3);
var v4 = this.ToPointNow(-this.petrolength, 0);
v2._yscale = (random(60) + 40) * 0.7 * this.petrowidth;
v2._xscale = v2._yscale;
v2._x = this.Dmc._x + v4.x + Math.pow(-1, random(2)) * random(5);
v2._y = this.Dmc._y + v4.y;
v2._rotation = this.Dmc._rotation;
this.Dmc.swapDepths(v2);
};
v2.MaxWheelLength = 10;
v2.WheelLengthNum = 0.5;
v2.SpeedHorse = 1;
v2.petrolength = 0;
v2.petrowidth = 0;
ASSetPropFlags(as.Prop.MoveObject.prototype, null, 1);
}
#endinitclip
}
movieClip 2393 __Packages.as.Prop.Prop {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.Prop) {
var v1 = function (game, player) {
this.game = game;
this.player = player;
};
as.Prop.Prop = v1;
var v2 = v1.prototype;
v2.run = function () {};
v2.del = function () {};
ASSetPropFlags(as.Prop.Prop.prototype, null, 1);
}
#endinitclip
}
movieClip 2394 __Packages.as.Player {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Player) {
var v1 = function (game, map, PlayerType, PlayerId) {
this.IsWorryRoad = false;
this.NowPointId = 0;
this.distance = 0;
this.Alldistance = 0;
this.LastAlldistance = 0;
this.Laps = 1;
this.LapsLock = true;
this.Order = 0;
this.PlayerPlayering = true;
this.IsReSeting = false;
this.IsInvincible = false;
this.IsSmallState = false;
this.IsSleep = false;
this.Id = PlayerId;
this.map = map;
this.game = game;
this.PlayerType = PlayerType;
this.prop = new as.Prop.PropManage(game, this);
};
as.Player = v1;
var v2 = v1.prototype;
v1.Init = function () {
as.Player.PlayerSelectList[0] = 'Bear';
as.Player.PlayerSelectList[1] = 'Raccoon';
as.Player.PlayerSelectList[2] = 'Cat';
as.Player.PlayerSelectList[3] = 'penguin';
as.Player.PlayerSelectList[4] = 'dog';
as.Player.PlayerSelectList[5] = 'panda';
as.Player.PlayerNameList[0] = 'Mambo';
as.Player.PlayerNameList[1] = 'Rocko';
as.Player.PlayerNameList[2] = 'Vixen';
as.Player.PlayerNameList[3] = 'Pingo';
as.Player.PlayerNameList[4] = 'Hudson';
as.Player.PlayerNameList[5] = 'Banzai';
};
v2.MakeCar = function (mc) {
this.CarDmc = mc;
this.myCar = new as.Car(this.game, this.map, this, this.CarDmc, as.Player.PlayerSelectList[this.PlayerType] + '_' + this.map.RaceId);
};
v2.StartRace = function () {
this.PlayerPlayering = true;
this.myCar.IsLock = false;
if (this.myCar.Speed.getLength() > 2) {
this.myCar.Speed.x = 0;
this.myCar.Speed.y = 0;
} else {
if (this.myCar.Speed.getLength() > 0.5) {
this.prop.NowPorpId = 8;
this.UseProp();
}
}
this.WorryRoadJudgeTimeId = as.Timer.AddCycleTimer(this, 'RaceJudge', 2000, -1);
};
v2.run = function () {
this.UpdatePoint();
this.myCar.Update();
this.prop.run();
};
v2.ActionCar = function (keynum) {
if (this.PlayerPlayering && !this.IsSleep) {
this.myCar.DoAction(keynum);
}
};
v2.WinJudge = function () {
if (this.NowPointId == 1) {
this.LapsLock = false;
}
if (this.NowPointId == 0 && !this.LapsLock) {
var v4 = this.map.GetWinPos();
var v3 = v4.x - this.map.Points[0].x;
var v2 = v4.y - this.map.Points[0].y;
var v5 = Math.sqrt(v3 * v3 + v2 * v2);
if (this.distance < v5) {
if (this.Laps == this.map.LapsTotal) {
this.FinishRace();
return undefined;
}
++this.Laps;
if (this.Id == 0) {
this.game.uiManage.ClearLapRecordTime();
if (this.Laps == this.map.LapsTotal) {
as.MessageBox.ShowMessage(as.LanguageData.FINAL_LAP, 3000, 1, new as.Vector(0, -50));
} else {
as.MessageBox.ShowMessage(as.LanguageData.LAP_X_Y(this.Laps, this.map.LapsTotal), 3000, 1, new as.Vector(0, -50));
}
}
this.LapsLock = true;
}
}
};
v2.SetOrder = function (order) {
this.Order = order;
};
v2.FinishRace = function () {
this.Alldistance = 100000000 * (this.game.Players.length - this.Order);
this.Stoprace();
};
v2.RaceJudge = function () {
if (this.LastAlldistance > this.Alldistance + 100 && !this.IsWorryRoad) {
this.IsWorryRoad = true;
this.WorryRoadShowMessageId = as.MessageBox.ShowMessage(as.LanguageData.WRONG_WAY, -1, 1);
}
if (this.LastAlldistance < this.Alldistance && this.IsWorryRoad) {
this.IsWorryRoad = false;
as.MessageBox.DelMessage(this.WorryRoadShowMessageId);
}
this.LastAlldistance = this.Alldistance;
};
v2.Stoprace = function () {
this.PlayerPlayering = false;
as.Timer.DelTimer(this.WorryRoadJudgeTimeId);
this.game.RaceStop();
};
v2.ReSetCar = function () {
this.PlayerPlayering = false;
this.IsReSeting = true;
var v2 = this.map.Points[this.NowPointId - 1];
if (this.NowPointId == 0) {
v2 = this.map.GetStartPos(this.Id);
}
var v3 = (new as.Vector(this.map.Points[this.NowPointId].x - v2.x, this.map.Points[this.NowPointId].y - v2.y)).getAngle();
this.myCar.ReSet(v2.x, v2.y, v3);
this.myCar.Speed.reset(0, 0);
as.Timer.DelTimer(this.ReSetCarEffectTimer);
as.Timer.DelTimer(this.ReStartRaceTimer);
this.ReSetCarEffectTimer = as.Timer.AddCycleTimer(this, 'ReSetCarEffect', 100, 3);
this.ReStartRaceTimer = as.Timer.AddTimer(this, 'ReStartRace', 1000);
};
v2.ReSetCarEffect = function () {
this.myCar.Dmc._visible = !this.myCar.Dmc._visible;
};
v2.ReStartRace = function () {
this.IsReSeting = false;
this.myCar.Dmc._visible = true;
this.PlayerPlayering = true;
};
v2.UpdatePoint = function () {
if (this.PlayerPlayering) {
var v4;
if (this.NowPointId + 1 < this.map.Points.length) {
v4 = this.map.Points[this.NowPointId + 1];
} else {
v4 = this.map.Points[0];
}
var v3 = v4.x - this.myCar.Dmc._x;
var v2 = v4.y - this.myCar.Dmc._y;
var v6 = Math.sqrt(v3 * v3 + v2 * v2);
v3 = this.map.Points[this.NowPointId].x - v4.x;
v2 = this.map.Points[this.NowPointId].y - v4.y;
var v5 = Math.sqrt(v3 * v3 + v2 * v2);
v3 = this.map.Points[this.NowPointId].x - this.myCar.Dmc._x;
v2 = this.map.Points[this.NowPointId].y - this.myCar.Dmc._y;
this.distance = Math.sqrt(v3 * v3 + v2 * v2);
if (this.NowPointId == 0 && !this.LapsLock) {
this.Alldistance = (this.Laps + 1) * 10000000 + this.NowPointId * 10000 + (10000 - this.distance);
} else {
this.Alldistance = this.Laps * 10000000 + this.NowPointId * 10000 + (10000 - this.distance);
}
this.WinJudge();
if (v6 + 200 < v5 || this.distance < 200) {
++this.NowPointId;
if (this.NowPointId >= this.map.Points.length) {
this.NowPointId = 0;
}
}
}
};
v2.GetProp = function (porpid) {
this.prop.NowPorpId = porpid[0];
this.PorpBoxRunTimerId = null;
if (this.Id == 0 && !this._showSpace1 && as.GameDate.helpRecord[0] == false) {
this._showSpace1 = true;
this.game.uiManage.ShowSpace();
} else {
if (this.Id == 0 && this.Order == 3 && !this._showSpace2 && as.GameDate.helpRecord[0] == false) {
this._showSpace2 = true;
this.game.uiManage.ShowSpace();
}
}
};
v2.RunPropBox = function (x, y) {
this.game.gameSounds.PlaySound('GetProp');
if (this.prop.NowPorpId != 0) {
return undefined;
}
var v2 = 1500;
var v3 = this.GetPropPer();
if (this.PorpBoxRunTimerId) {
as.Timer.DelTimer(this.PorpBoxRunTimerId);
}
this.PorpBoxRunTimerId = as.Timer.AddTimer(this, 'GetProp', v2, v3);
this.game.uiManage.StartPropBox(v2, v3);
this.game.uiManage.propmove(x, y);
};
v2.GetPropPer = function () {
var v5 = random(100);
if (this.PlayerType == 1 && this.Order == 0 && this.Id == 0) {
v5 = random(90);
}
if (this.PlayerType == 1 && this.Order == 1 && this.Id == 0) {
v5 = random(80);
}
var v2 = new Array();
if (this.Id == 0 || as.GameDate.SelectLevelId < 2) {
if (this.Order == 0) {
v2[1] = 0;
v2[2] = 0;
v2[3] = 30;
v2[4] = 30;
v2[5] = 0;
v2[6] = 0;
v2[7] = 30;
v2[8] = 0;
v2[9] = 10;
} else {
if (this.Order == 1) {
v2[1] = 5;
v2[2] = 0;
v2[3] = 20;
v2[4] = 10;
v2[5] = 5;
v2[6] = 20;
v2[7] = 10;
v2[8] = 10;
v2[9] = 20;
} else {
if (this.Order == 2) {
v2[1] = 10;
v2[2] = 5;
v2[3] = 0;
v2[4] = 0;
v2[5] = 10;
v2[6] = 25;
v2[7] = 0;
v2[8] = 30;
v2[9] = 20;
} else {
v2[1] = 10;
v2[2] = 5;
v2[3] = 0;
v2[4] = 0;
v2[5] = 10;
v2[6] = 25;
v2[7] = 0;
v2[8] = 30;
v2[9] = 20;
}
}
}
} else {
if (this.Order == 0) {
var v6 = new as.Vector(this.game.Players[0].myCar.Dmc._x - this.myCar.Dmc._x, this.game.Players[0].myCar.Dmc._y - this.myCar.Dmc._y);
if (v6.getLength() < 300) {
v2[1] = 30;
v2[2] = 0;
v2[3] = 10;
v2[4] = 20;
v2[5] = 0;
v2[6] = 0;
v2[7] = 20;
v2[8] = 10;
v2[9] = 10;
} else {
v2[1] = 0;
v2[2] = 0;
v2[3] = 30;
v2[4] = 30;
v2[5] = 0;
v2[6] = 0;
v2[7] = 30;
v2[8] = 0;
v2[9] = 10;
}
} else {
if (this.Order == 1) {
var v6 = new as.Vector(this.game.Players[0].myCar.Dmc._x - this.myCar.Dmc._x, this.game.Players[0].myCar.Dmc._y - this.myCar.Dmc._y);
if (v6.getLength() < 300) {
if (this.game.Players[0].Order == 0) {
v2[1] = 40;
v2[2] = 0;
v2[3] = 0;
v2[4] = 0;
v2[5] = 5;
v2[6] = 5;
v2[7] = 0;
v2[8] = 30;
v2[9] = 20;
} else {
v2[1] = 30;
v2[2] = 0;
v2[3] = 10;
v2[4] = 15;
v2[5] = 0;
v2[6] = 0;
v2[7] = 15;
v2[8] = 10;
v2[9] = 20;
}
} else {
if (this.game.Players[0].Order == 0) {
v2[1] = 0;
v2[2] = 0;
v2[3] = 0;
v2[4] = 0;
v2[5] = 10;
v2[6] = 30;
v2[7] = 0;
v2[8] = 40;
v2[9] = 20;
} else {
v2[1] = 0;
v2[2] = 0;
v2[3] = 20;
v2[4] = 25;
v2[5] = 0;
v2[6] = 0;
v2[7] = 25;
v2[8] = 10;
v2[9] = 20;
}
}
} else {
if (this.Order == 2) {
var v6 = new as.Vector(this.game.Players[0].myCar.Dmc._x - this.myCar.Dmc._x, this.game.Players[0].myCar.Dmc._y - this.myCar.Dmc._y);
if (v6.getLength() < 300) {
if (this.game.Players[0].Order < 2) {
v2[1] = 40;
v2[2] = 0;
v2[3] = 0;
v2[4] = 0;
v2[5] = 5;
v2[6] = 15;
v2[7] = 0;
v2[8] = 20;
v2[9] = 20;
} else {
v2[1] = 0;
v2[2] = 0;
v2[3] = 10;
v2[4] = 30;
v2[5] = 0;
v2[6] = 0;
v2[7] = 30;
v2[8] = 10;
v2[9] = 20;
}
} else {
if (this.game.Players[0].Order == 0) {
v2[1] = 0;
v2[2] = 5;
v2[3] = 0;
v2[4] = 0;
v2[5] = 20;
v2[6] = 15;
v2[7] = 0;
v2[8] = 30;
v2[9] = 30;
} else {
if (this.game.Players[0].Order == 1) {
v2[1] = 0;
v2[2] = 5;
v2[3] = 0;
v2[4] = 0;
v2[5] = 10;
v2[6] = 15;
v2[7] = 0;
v2[8] = 40;
v2[9] = 30;
} else {
v2[1] = 0;
v2[2] = 0;
v2[3] = 10;
v2[4] = 30;
v2[5] = 0;
v2[6] = 0;
v2[7] = 30;
v2[8] = 10;
v2[9] = 20;
}
}
}
} else {
var v6 = new as.Vector(this.game.Players[0].myCar.Dmc._x - this.myCar.Dmc._x, this.game.Players[0].myCar.Dmc._y - this.myCar.Dmc._y);
if (v6.getLength() < 300) {
v2[1] = 30;
v2[2] = 0;
v2[3] = 0;
v2[4] = 0;
v2[5] = 5;
v2[6] = 15;
v2[7] = 0;
v2[8] = 30;
v2[9] = 20;
} else {
if (this.game.Players[0].Order == 0) {
v2[1] = 0;
v2[2] = 5;
v2[3] = 0;
v2[4] = 0;
v2[5] = 30;
v2[6] = 5;
v2[7] = 0;
v2[8] = 30;
v2[9] = 30;
} else {
v2[1] = 0;
v2[2] = 10;
v2[3] = 0;
v2[4] = 0;
v2[5] = 10;
v2[6] = 10;
v2[7] = 0;
v2[8] = 40;
v2[9] = 30;
}
}
}
}
}
}
var v3 = 1;
var v4 = 0;
while (v3 < v2.length) {
v4 += v2[v3];
if (v5 < v4) {
return v3;
}
++v3;
}
};
v2.UseProp = function () {
if (this.PlayerPlayering && !this.IsSleep) {
this.prop.UseProp();
if (this.Id == 0) {
this.game.uiManage.DelSpace();
}
}
};
v2.Del = function () {
if (this.Id == 0) {
if (this._showSpace1) {
as.GameDate.SaveHelpRecord(0);
}
if (this._showSpace2) {
as.GameDate.SaveHelpRecord(1);
}
}
this.myCar.Del();
delete this.myCar;
};
v2.ClearPropBox = function (EmtryPropId) {
this.game.uiManage.ClearPropBox(EmtryPropId);
};
v1.PlayerSelectList = new Array();
v1.PlayerNameList = new Array();
ASSetPropFlags(as.Player.prototype, null, 1);
}
#endinitclip
}
movieClip 2395 __Packages.as.Prop.PropManage {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.PropManage) {
var v1 = function (game, player) {
this.game = game;
this.player = player;
this.propArr = new Array();
this.IsUseShield = false;
};
as.Prop.PropManage = v1;
var v2 = v1.prototype;
v2.run = function () {
var v2 = 0;
while (v2 < this.propArr.length) {
this.propArr[v2].run();
++v2;
}
};
v2.UseProp = function () {
switch (this.NowPorpId) {
case 0:
break;
case 1:
this.propArr.push(new as.Prop.PropInvincible(this.game, this.player));
this.ClearPropBox();
break;
case 2:
var v2 = 0;
while (v2 < this.game.Players.length) {
if (this.game.Players[v2].Id != this.player.Id) {
} else {
if (this.game.Players[j].IsReSeting) {
if (!this.game.Players[v2].IsInvincible) {
this.game.Players[v2].prop.propArr.push(new as.Prop.PropSleep(this.game, this.game.Players[v2]));
}
} else {
as.Prop.PropSleep.SleepShotArt(this.player);
}
}
++v2;
}
this.ClearPropBox();
break;
case 3:
this.propArr.push(new as.Prop.PropShield(this.game, this.player));
this.ClearPropBox();
break;
case 4:
this.propArr.push(new as.Prop.PropMine(this.game, this.player));
this.ClearPropBox();
break;
case 5:
this.propArr.push(new as.Prop.Propkn1(this.game, this.player));
this.ClearPropBox();
break;
case 6:
this.propArr.push(new as.Prop.PropHomingMissile(this.game, this.player));
this.ClearPropBox();
break;
case 7:
this.propArr.push(new as.Prop.PropOil(this.game, this.player));
this.ClearPropBox();
break;
case 8:
this.propArr.push(new as.Prop.PropPetro(this.game, this.player));
this.ClearPropBox();
break;
case 9:
switch (this.player.PlayerType) {
case 0:
this.propArr.push(new as.Prop.PropHoneyBomb(this.game, this.player));
this.ClearPropBox();
break;
case 1:
this.propArr.push(new as.Prop.PropPetro(this.game, this.player));
this.NowPorpId = 8;
this.player.ClearPropBox(8);
break;
case 2:
this.propArr.push(new as.Prop.PropFurballs(this.game, this.player));
this.ClearPropBox();
break;
case 3:
this.propArr.push(new as.Prop.PropIceTrail(this.game, this.player));
this.ClearPropBox();
break;
case 4:
this.propArr.push(new as.Prop.PropBone(this.game, this.player));
this.ClearPropBox();
break;
case 5:
var j = 0;
while (j < this.game.Players.length) {
if (this.game.Players[j].Id == this.player.Id) {
} else {
if (this.game.Players[j].IsInvincible) {
} else {
if (this.game.Players[j].IsReSeting) {
} else {
if (this.game.Players[j].Alldistance < this.player.Alldistance) {
} else {
var v4 = this.game.Players[j].myCar.Dmc._x - this.player.myCar.Dmc._x;
var v3 = this.game.Players[j].myCar.Dmc._y - this.player.myCar.Dmc._y;
var v5 = v4 * v4 + v3 * v3;
if (v5 < 100000) {
this.game.Players[j].prop.propArr.push(new as.Prop.PropShrinkRay(this.game, this.game.Players[j], this.player));
this.ClearPropBox();
break;
}
}
}
}
}
++j;
}
if (j >= this.game.Players.length) {
this.propArr.push(new as.Prop.PropShrinkRay(this.game, this.player, null));
this.ClearPropBox();
}
break;
default:
as.MessageBox.ShowMessage('Error UseProp Playertype');
}
break;
default:
as.MessageBox.ShowMessage('Error UseProp Id');
}
};
v2.ClearPropBox = function () {
this.NowPorpId = 0;
this.player.ClearPropBox();
};
v2.Delprop = function (prop) {
var v2 = 0;
while (v2 < this.propArr.length) {
if (this.propArr[v2] == prop) {
this.propArr[v2].del();
this.propArr.splice(v2, 1);
false;
return undefined;
}
++v2;
}
};
v2.IsHavePropType = function (typeid) {
var v2 = 0;
while (v2 < this.propArr.length) {
if (this.propArr[v2].proptype == typeid) {
return true;
}
++v2;
}
return false;
};
v2.Delpropbytype = function (typeid) {
var v2 = 0;
while (v2 < this.propArr.length) {
if (this.propArr[v2].proptype == typeid) {
this.propArr[v2].del();
delete this.propArr[v2];
this.propArr.splice(v2, 1);
--v2;
}
++v2;
}
};
v2.NowPorpId = 0;
ASSetPropFlags(as.Prop.PropManage.prototype, null, 1);
}
#endinitclip
}
movieClip 2396 __Packages.as.Prop.PropInvincible {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.PropInvincible) {
var v1 = function (game, player) {
super(game, player);
this.proptype = 1;
if (player.Id == 0 && !player.IsInvincible) {
game.gameSounds.StopSound('map' + String(as.GameDate.GetMapId() + 1));
game.gameSounds.StartMusic('invincilble');
}
player.prop.Delpropbytype(this.proptype);
player.IsInvincible = true;
player.myCar.Dmc.car_mc.attachMovie('car_Invincible', 'car_Invincible', 10003);
player.myCar.Dmc.car_mc.car_Invincible._rotation = 90;
player.myCar.SetHorse(player.myCar.CarHorse * this.AddHorse);
this.EndTimerId = as.Timer.AddTimer(this, 'delme', this.UseTime);
};
as.Prop.PropInvincible = v1;
as.Prop.PropInvincible extends as.Prop.Prop;
var v2 = v1.prototype;
v2.run = function () {};
v2.delme = function () {
if (this.player.Id == 0) {
this.game.gameSounds.StopSound('invincilble');
this.game.gameSounds.StartMusic('map' + String(as.GameDate.GetMapId() + 1));
}
this.player.prop.Delprop(this);
};
v2.del = function () {
this.player.IsInvincible = false;
this.player.myCar.SetHorse(this.player.myCar.CarHorse);
this.player.myCar.Dmc.car_mc.car_Invincible.removeMovieClip();
as.Timer.DelTimer(this.EndTimerId);
};
v2.UseTime = 6000;
v2.AddHorse = 1.5;
ASSetPropFlags(as.Prop.PropInvincible.prototype, null, 1);
}
#endinitclip
}
movieClip 2397 __Packages.as.Prop.PropSleep {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.PropSleep) {
var v1 = function (game, player) {
super(game, player);
this.proptype = 2;
player.prop.Delpropbytype(this.proptype);
player.IsSleep = true;
var v4 = player.myCar.Dmc.car_mc.attachMovie('sleep_fang', 'sleep_fang', 20002);
game.uiManage.showUiZZZ(player.Id);
v4.onEnterFrame = function () {
this._rotation = -this._parent._parent._rotation - 90;
};
v4 = player.myCar.Dmc.car_mc.attachMovie('car_Speed', 'car_Speed', 10002);
v4.onEnterFrame = function () {
this._rotation = -this._parent._parent._rotation - 90;
};
player.myCar.playBeSleepSound();
this.EndTimerId = as.Timer.AddTimer(this, 'delme', this.UseTime);
};
as.Prop.PropSleep = v1;
as.Prop.PropSleep extends as.Prop.Prop;
var v2 = v1.prototype;
v1.SleepShotArt = function (player) {
var v2 = player.myCar.Dmc.car_mc.attachMovie('Sleep', 'Sleep', 10002);
v2.onEnterFrame = function () {
this._rotation = -this._parent._parent._rotation - 90;
};
player.myCar.playuseSleepSound();
};
v2.run = function () {};
v2.delme = function () {
this.player.prop.Delprop(this);
};
v2.del = function () {
this.game.uiManage.DelUIZZZ(this.player.Id);
as.Timer.DelTimer(this.EndTimerId);
this.player.myCar.StopBeSleepSound();
this.player.IsSleep = false;
this.player.myCar.Dmc.car_mc.car_Speed.removeMovieClip();
};
v2.UseTime = 3000;
ASSetPropFlags(as.Prop.PropSleep.prototype, null, 1);
}
#endinitclip
}
movieClip 2398 __Packages.as.Prop.PropShield {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.PropShield) {
var v1 = function (game, player) {
super(game, player);
this.proptype = 3;
player.prop.Delpropbytype(this.proptype);
player.prop.IsUseShield = true;
player.myCar.Dmc.car_mc.attachMovie('car_Shield', 'car_Shield', 10003);
player.myCar.playShieldSound();
this.EndTimerId = as.Timer.AddTimer(this, 'delme', this.UseTime);
};
as.Prop.PropShield = v1;
as.Prop.PropShield extends as.Prop.Prop;
var v2 = v1.prototype;
v2.run = function () {};
v2.delme = function () {
this.player.prop.Delprop(this);
};
v2.del = function () {
this.player.prop.IsUseShield = false;
this.player.myCar.Dmc.car_mc.car_Shield.gotoAndPlay('Out');
as.Timer.DelTimer(this.EndTimerId);
};
v2.UseTime = 15000;
ASSetPropFlags(as.Prop.PropShield.prototype, null, 1);
}
#endinitclip
}
movieClip 2399 __Packages.as.Prop.PropMine {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.PropMine) {
var v1 = function (game, player) {
super(game, player);
this.proptype = 4;
var v4 = player.myCar.ToPointNow(-20, 0);
this.bomb_in_map = new as.EventsInMap.BombInMap(game.map.PropMc, game.map, player.myCar.Dmc._x + v4.x, player.myCar.Dmc._y + v4.y, 25, 25, 0);
this.bomb_in_map.IsActivated = false;
game.map.AddEventInMap(this.bomb_in_map);
player.myCar.playmineSound();
this.ActivatedTimerId = as.Timer.AddTimer(this, 'usebomb', 300);
};
as.Prop.PropMine = v1;
as.Prop.PropMine extends as.Prop.Prop;
var v2 = v1.prototype;
v2.usebomb = function () {
this.bomb_in_map.IsActivated = true;
this.delme();
};
v2.run = function () {};
v2.delme = function () {
this.player.prop.Delprop(this);
};
v2.del = function () {};
ASSetPropFlags(as.Prop.PropMine.prototype, null, 1);
}
#endinitclip
}
movieClip 2400 __Packages.as.EventsInMap.BombInMap {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.EventsInMap) {
_global.as.EventsInMap = new Object();
}
if (!_global.as.EventsInMap.BombInMap) {
var v1 = function (Pmc, map, x, y, width, height, angle) {
super(map, x, y, width, height, angle);
this.Dmc = Pmc.attachMovie('bomb_in_map', 'bomb_in_map' + Pmc.getNextHighestDepth(), Pmc.getNextHighestDepth());
this.Dmcview = map.ViewDmc.attachMovie('bomb_view', 'bomb_view' + map.ViewDmc.getNextHighestDepth(), map.ViewDmc.getNextHighestDepth());
this.Dmc._x = x;
this.Dmc._y = y;
this.Dmc._rotation = angle;
this.Dmcview._x = this.Dmc._x * map.ScaledTimes;
this.Dmcview._y = this.Dmc._y * map.ScaledTimes;
this.IsActivated = true;
};
as.EventsInMap.BombInMap = v1;
as.EventsInMap.BombInMap extends as.EventsInMap.EventsInMap;
var v2 = v1.prototype;
v2.GetHitEventStatus = function (PlayerId) {
if (this.IsActivated) {
if (!(as.Game.Instance.GetPlayer(PlayerId)).IsInvincible) {
if ((as.Game.Instance.GetPlayer(PlayerId)).myCar.jump_currheight < this.jumphigh - 1) {
if (!(as.Game.Instance.GetPlayer(PlayerId)).myCar.player.prop.IsUseShield) {
var v2 = (as.Game.Instance.GetPlayer(PlayerId)).myCar;
var v6 = v2.Dmc._x - this.Dmc._x;
var v5 = v2.Dmc._y - this.Dmc._y;
v2.bsEx = this.bsValume;
v2.Jump(this.jumphigh);
v2.Speed.scale(0.3);
v2.Speed.plus((new as.Vector(v6, v5)).scaleNew(0.03));
} else {
(as.Game.Instance.GetPlayer(PlayerId)).myCar.player.prop.Delpropbytype(3);
}
storedv2.playerBombSound();
var v4 = this.map.Dmc.attachMovie('Bomb', 'Bomb' + this.map.Dmc.getNextHighestDepth(), this.map.Dmc.getNextHighestDepth());
v4._x = this.Dmc._x;
v4._y = this.Dmc._y;
this.map.DelEventInMap(this.edface.getId());
}
}
}
};
v2.del = function () {
this.Dmc.removeMovieClip();
this.Dmcview.removeMovieClip();
super.del();
};
v2.IsActivated = true;
v2.jumphigh = 3;
v2.bsValume = 60;
ASSetPropFlags(as.EventsInMap.BombInMap.prototype, null, 1);
}
#endinitclip
}
movieClip 2401 __Packages.as.Prop.PropHomingMissile {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.PropHomingMissile) {
var v1 = function (game, player) {
super(game, player);
this.map = game.map;
this.proptype = 6;
this.SetDmc();
this.Aimplayer = as.Prop.PropHomingMissile.SetAimPlayer(game, player);
var cerf = this;
this.HomingMissile.onHitStatus = function () {
cerf.onHitStatus();
};
this.HomingMissile.onHitCar = function (car) {
if (car.player.Id == cerf.Aimplayer.Id) {
cerf.onHitCar(car);
}
};
};
as.Prop.PropHomingMissile = v1;
as.Prop.PropHomingMissile extends as.Prop.Prop;
var v2 = v1.prototype;
v2.SetDmc = function () {
var v2 = this.player.myCar.ToPointNow(25, 0);
var v3 = this.player.CarDmc.attachMovie('prop_HomingMissile', 'prop_HomingMissile' + this.player.CarDmc.getNextHighestDepth(), this.player.CarDmc.getNextHighestDepth());
this.HomingMissile = new as.Prop.MoveObject(this.game, this.map, v3);
this.HomingMissile.Dmc_view = this.game.map.ViewDmc.attachMovie('missile_view', 'missile_view' + this.game.map.ViewDmc.getNextHighestDepth(), this.game.map.ViewDmc.getNextHighestDepth());
this.HomingMissile.Speed = this.player.myCar.Speed.getClone();
this.HomingMissile.petrolength = 10;
this.HomingMissile.petrowidth = 1;
this.HomingMissile.ReSet(this.player.myCar.Dmc._x + v2.x, this.player.myCar.Dmc._y + v2.y, this.player.myCar.Dmc._rotation);
this.NowPointId = this.player.NowPointId;
this.player.myCar.playMissileSound();
};
v1.SetAimPlayer = function (game, player) {
var v2 = new Array();
var v4;
var v1 = 0;
while (v1 < game.Players.length) {
v2[v1] = new Array(game.Players[v1].Alldistance % 10000000, game.Players[v1].Id);
++v1;
}
v2.sortOn(0, Array.DESCENDING | Array.NUMERIC);
v1 = 0;
while (v1 < v2.length) {
if (game.Players[v2[v1][1]].Id == player.Id) {
if (v1 == 0) {
v4 = game.Players[v2[v2.length - 1][1]];
} else {
v4 = game.Players[v2[v1 - 1][1]];
}
}
++v1;
}
return v4;
};
v2.run = function () {
this.AutoPlay();
this.UpdatePoint();
this.HomingMissile.Update();
this.HomingMissile.AddPetro();
};
v2.onHitStatus = function () {};
v2.onHitCar = function (car) {
if (!car.player.IsInvincible && !car.player.prop.IsUseShield) {
var v5 = car.Dmc._x - this.HomingMissile.Dmc._x;
var v4 = car.Dmc._y - this.HomingMissile.Dmc._y;
car.bsEx = 50;
car.playBsSound();
car.Speed.plus((new as.Vector(v5, v4)).scaleNew(0.1));
}
if (car.player.prop.IsUseShield) {
car.player.prop.Delpropbytype(3);
}
var v3 = this.player.CarDmc.attachMovie('Bomb', 'Bomb' + this.player.CarDmc.getNextHighestDepth(), this.player.CarDmc.getNextHighestDepth());
v3._x = this.HomingMissile.Dmc._x;
v3._y = this.HomingMissile.Dmc._y;
car.playBedumpSound();
this.delme();
};
v2.AutoPlay = function () {
this.HomingMissile.DoAction(0);
var v3;
if (this.NowPointId == this.Aimplayer.NowPointId || this.LockAim) {
v3 = (Math.atan2(this.Aimplayer.myCar.Dmc._y - this.HomingMissile.Dmc._y, this.Aimplayer.myCar.Dmc._x - this.HomingMissile.Dmc._x) / Math.PI) * 180;
this.LockAim = true;
} else {
v3 = (Math.atan2(this.map.Points[this.NowPointId].y - this.HomingMissile.Dmc._y, this.map.Points[this.NowPointId].x - this.HomingMissile.Dmc._x) / Math.PI) * 180;
}
var v2 = as.Vector.FormatAngle(v3 - this.HomingMissile.Dmc._rotation);
if (v2 > 5 && v2 < 180) {
this.HomingMissile.DoAction(3);
} else {
if (v2 < -5 && v2 > -180) {
this.HomingMissile.DoAction(2);
}
}
};
v2.UpdatePoint = function () {
if (!this.LockAim) {
var v4;
if (this.NowPointId + 1 < this.map.Points.length) {
v4 = this.map.Points[this.NowPointId + 1];
} else {
v4 = this.map.Points[0];
}
var v3 = v4.x - this.HomingMissile.Dmc._x;
var v2 = v4.y - this.HomingMissile.Dmc._y;
var v6 = Math.sqrt(v3 * v3 + v2 * v2);
v3 = this.map.Points[this.NowPointId].x - v4.x;
v2 = this.map.Points[this.NowPointId].y - v4.y;
var v5 = Math.sqrt(v3 * v3 + v2 * v2);
v3 = this.map.Points[this.NowPointId].x - this.HomingMissile.Dmc._x;
v2 = this.map.Points[this.NowPointId].y - this.HomingMissile.Dmc._y;
var v7 = Math.sqrt(v3 * v3 + v2 * v2);
if (v6 + 200 < v5 || v7 < 200) {
++this.NowPointId;
if (this.NowPointId >= this.map.Points.length) {
this.NowPointId = 0;
}
}
}
};
v2.delme = function () {
this.player.prop.Delprop(this);
};
v2.del = function () {
this.HomingMissile.Del();
delete this.HomingMissile;
};
v2.EndTime = 30000;
v2.LockAim = false;
ASSetPropFlags(as.Prop.PropHomingMissile.prototype, null, 1);
}
#endinitclip
}
movieClip 2402 __Packages.as.Prop.Propkn1 {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.Propkn1) {
var v1 = function (game, player) {
super(game, player);
this.proptype = 5;
this.SetAimPlayer();
};
as.Prop.Propkn1 = v1;
as.Prop.Propkn1 extends as.Prop.PropHomingMissile;
var v2 = v1.prototype;
v2.SetDmc = function () {
var v2 = this.player.myCar.ToPointNow(25, 0);
var v3 = this.player.CarDmc.attachMovie('prop_kn1', 'prop_kn1' + this.player.CarDmc.getNextHighestDepth(), this.player.CarDmc.getNextHighestDepth());
this.HomingMissile = new as.Prop.MoveObject(this.game, this.map, v3);
this.HomingMissile.Dmc_view = this.game.map.ViewDmc.attachMovie('kn1_view', 'kn1_view' + this.game.map.ViewDmc.getNextHighestDepth(), this.game.map.ViewDmc.getNextHighestDepth());
this.HomingMissile.Speed = this.player.myCar.Speed.getClone();
this.HomingMissile.petrolength = 10;
this.HomingMissile.petrowidth = 1;
this.HomingMissile.ReSet(this.player.myCar.Dmc._x + v2.x, this.player.myCar.Dmc._y + v2.y, this.player.myCar.Dmc._rotation);
this.NowPointId = this.player.NowPointId;
this.player.myCar.playMissileSound();
};
v2.SetAimPlayer = function () {
this.Aimplayer = this.game.Players[this.game.OrderInfo[0][1]];
};
v2.onHitCar = function (car) {
if (!car.player.IsInvincible && !car.player.prop.IsUseShield) {
var v5 = car.Dmc._x - this.HomingMissile.Dmc._x;
var v4 = car.Dmc._y - this.HomingMissile.Dmc._y;
car.bsEx = 90;
car.Jump(this.jumphigh);
car.Speed.scale(0.1);
car.Speed.plus((new as.Vector(v5, v4)).scaleNew(0.03));
car.playerBombSound();
}
if (car.player.prop.IsUseShield) {
car.player.prop.Delpropbytype(3);
}
var v3 = this.player.CarDmc.attachMovie('Bomb', 'Bomb' + this.player.CarDmc.getNextHighestDepth(), this.player.CarDmc.getNextHighestDepth());
v3._x = this.HomingMissile.Dmc._x;
v3._y = this.HomingMissile.Dmc._y;
car.playBedumpSound();
this.delme();
};
v2.jumphigh = 4;
ASSetPropFlags(as.Prop.Propkn1.prototype, null, 1);
}
#endinitclip
}
movieClip 2403 __Packages.as.Prop.PropOil {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.PropOil) {
var v1 = function (game, player) {
super(game, player);
this.proptype = 7;
var v4 = player.myCar.ToPointNow(-20, 0);
this.bs_in_map = new as.EventsInMap.BsInMap(game.map.PropMc, game.map, player.myCar.Dmc._x + v4.x, player.myCar.Dmc._y + v4.y, 50, 50, player.myCar.Dmc._rotation);
this.bs_in_map.IsActivated = false;
game.map.AddEventInMap(this.bs_in_map);
player.myCar.playoilSound();
this.EndTimerId = as.Timer.AddTimer(this, 'delme', this.UseTime);
this.ActivatedTimerId = as.Timer.AddTimer(this, 'useoil', 300);
};
as.Prop.PropOil = v1;
as.Prop.PropOil extends as.Prop.Prop;
var v2 = v1.prototype;
v2.useoil = function () {
this.bs_in_map.IsActivated = true;
};
v2.run = function () {};
v2.delme = function () {
this.player.prop.Delprop(this);
};
v2.del = function () {
this.game.map.DelEventInMap(this.bs_in_map.edface.getId());
as.Timer.DelTimer(this.EndTimerId);
};
v2.UseTime = 30000;
ASSetPropFlags(as.Prop.PropOil.prototype, null, 1);
}
#endinitclip
}
movieClip 2404 __Packages.as.Prop.PropPetro {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.PropPetro) {
var v1 = function (game, player) {
super(game, player);
this.proptype = 8;
player.prop.Delpropbytype(this.proptype);
player.myCar.playPetroSound();
this.EndTimerId = as.Timer.AddTimer(this, 'delme', this.UseTime);
};
as.Prop.PropPetro = v1;
as.Prop.PropPetro extends as.Prop.Prop;
var v2 = v1.prototype;
v2.run = function () {
if ((as.Game.Instance.GetPlayer(this.player.Id)).myCar.jump_currheight < 1) {
(as.Game.Instance.GetPlayer(this.player.Id)).myCar.Speed.plus((new as.Vector(this.AddHorsebyAuto, 0)).rotateNew(this.player.myCar.Dmc._rotation));
}
this.player.myCar.AddPetro();
};
v2.delme = function () {
this.player.prop.Delprop(this);
};
v2.del = function () {
as.Timer.DelTimer(this.EndTimerId);
};
v2.UseTime = 4000;
v2.AddHorse = 1.8;
v2.AddHorsebyAuto = 0.2;
ASSetPropFlags(as.Prop.PropPetro.prototype, null, 1);
}
#endinitclip
}
movieClip 2405 __Packages.as.Prop.PropHoneyBomb {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.PropHoneyBomb) {
var v1 = function (game, player) {
super(game, player);
this.proptype = 9;
var v4 = player.myCar.ToPointNow(-50, -25);
this.HoneyBomb_in_map1 = new as.EventsInMap.HoneyBombInMap(game.map.PropMc, game.map, player.myCar.Dmc._x + v4.x, player.myCar.Dmc._y + v4.y, 25, 25, player.myCar.Dmc._rotation + 180 + 30);
v4 = player.myCar.ToPointNow(-50, 25);
this.HoneyBomb_in_map2 = new as.EventsInMap.HoneyBombInMap(game.map.PropMc, game.map, player.myCar.Dmc._x + v4.x, player.myCar.Dmc._y + v4.y, 25, 25, player.myCar.Dmc._rotation + 180 - 30);
this.HoneyBomb_in_map1.IsActivated = false;
this.HoneyBomb_in_map2.IsActivated = false;
game.map.AddEventInMap(this.HoneyBomb_in_map1);
game.map.AddEventInMap(this.HoneyBomb_in_map2);
player.myCar.playBearSSound();
this.ActivatedTimerId = as.Timer.AddTimer(this, 'usebomb', 100);
};
as.Prop.PropHoneyBomb = v1;
as.Prop.PropHoneyBomb extends as.Prop.Prop;
var v2 = v1.prototype;
v2.usebomb = function () {
this.HoneyBomb_in_map1.IsActivated = true;
this.HoneyBomb_in_map2.IsActivated = true;
this.delme();
};
v2.run = function () {};
v2.delme = function () {
this.player.prop.Delprop(this);
};
v2.del = function () {};
ASSetPropFlags(as.Prop.PropHoneyBomb.prototype, null, 1);
}
#endinitclip
}
movieClip 2406 __Packages.as.EventsInMap.HoneyBombInMap {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.EventsInMap) {
_global.as.EventsInMap = new Object();
}
if (!_global.as.EventsInMap.HoneyBombInMap) {
var v1 = function (Pmc, map, x, y, width, height, angle) {
super(map, x, y, width, height, angle);
this.Dmc = Pmc.attachMovie('HoneyBomb_in_map', 'HoneyBomb_in_map' + Pmc.getNextHighestDepth(), Pmc.getNextHighestDepth());
this.Dmc._x = x;
this.Dmc._y = y;
this.Dmc._rotation = angle;
this.IsActivated = true;
};
as.EventsInMap.HoneyBombInMap = v1;
as.EventsInMap.HoneyBombInMap extends as.EventsInMap.EventsInMap;
var v2 = v1.prototype;
v2.GetHitEventStatus = function (PlayerId) {
if (this.IsActivated) {
if (!(as.Game.Instance.GetPlayer(PlayerId)).IsInvincible) {
if ((as.Game.Instance.GetPlayer(PlayerId)).myCar.jump_currheight < this.jumphigh - 1) {
var v2 = (as.Game.Instance.GetPlayer(PlayerId)).myCar;
var v5 = v2.Dmc._x - this.Dmc._x;
var v4 = v2.Dmc._y - this.Dmc._y;
v2.bsEx = this.bsValume;
v2.Jump(this.jumphigh);
v2.Speed.scale(0.3);
v2.Speed.plus((new as.Vector(v5, v4)).scaleNew(0.03));
v2.playerBombSound();
var v3 = this.map.Dmc.attachMovie('Bomb', 'Bomb' + this.map.Dmc.getNextHighestDepth(), this.map.Dmc.getNextHighestDepth());
v3._x = this.Dmc._x;
v3._y = this.Dmc._y;
this.map.DelEventInMap(this.edface.getId());
}
}
}
};
v2.del = function () {
this.Dmc.removeMovieClip();
super.del();
};
v2.IsActivated = true;
v2.jumphigh = 2;
v2.bsValume = 40;
ASSetPropFlags(as.EventsInMap.HoneyBombInMap.prototype, null, 1);
}
#endinitclip
}
movieClip 2407 __Packages.as.Prop.PropFurballs {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.PropFurballs) {
var v1 = function (game, player) {
super(game, player);
this.proptype = 9;
this.FurballArr = new Array();
var cerf = this;
player.myCar.playCatSSound();
var v4 = 0;
while (v4 < 6) {
var v5 = new as.Vector(25, 0);
v5.rotate(v4 * 360 / 6);
var v6 = player.myCar.ToPointNow(v5.x, v5.y);
var v7 = player.CarDmc.attachMovie('prop_Furballs', 'prop_Furballs' + player.CarDmc.getNextHighestDepth(), player.CarDmc.getNextHighestDepth());
this.Furballs1 = new as.Prop.MoveObject(game, game.map, v7);
this.Furballs1.Speed = player.myCar.Speed.getClone();
this.Furballs1.petrolength = 10;
this.Furballs1.petrowidth = 0.5;
this.Furballs1.ReSet(player.myCar.Dmc._x + v6.x, player.myCar.Dmc._y + v6.y, player.myCar.Dmc._rotation + 60 * v4);
this.Furballs1.PId = v4;
this.Furballs1.onHitStatus = function () {
cerf.onHitStatus(this);
cerf.FurballArr[this.PId] = null;
};
this.Furballs1.onHitCar = function (car) {
if (car.player.Id != cerf.player.Id) {
cerf.onHitCar(this, car);
cerf.FurballArr[this.PId] = null;
}
};
this.FurballArr.push(this.Furballs1);
++v4;
}
this.EndTimerId = as.Timer.AddTimer(this, 'delme', this.EndTime);
};
as.Prop.PropFurballs = v1;
as.Prop.PropFurballs extends as.Prop.Prop;
var v2 = v1.prototype;
v2.run = function () {
var v2 = 0;
while (v2 < this.FurballArr.length) {
this.FurballArr[v2].Update();
this.FurballArr[v2].AddPetro();
this.FurballArr[v2].Forward();
++v2;
}
v2 = 0;
while (v2 < this.FurballArr.length) {
if (this.FurballArr[v2]) {
return undefined;
}
++v2;
}
this.delme();
};
v2.onHitStatus = function (p) {
var v3 = this.player.CarDmc.attachMovie('Bomb', 'Bomb' + this.player.CarDmc.getNextHighestDepth(), this.player.CarDmc.getNextHighestDepth());
v3._x = p.Dmc._x;
v3._y = p.Dmc._y;
p.Del();
false;
delete p.onHitStatus;
delete p.onHitCar;
};
v2.onHitCar = function (p, car) {
if (!car.player.IsInvincible && !car.player.prop.IsUseShield) {
var v6 = car.Dmc._x - p.Dmc._x;
var v5 = car.Dmc._y - p.Dmc._y;
car.bsEx = 50;
car.playBsSound();
car.Speed.plus((new as.Vector(v6, v5)).scaleNew(0.1));
}
if (car.player.prop.IsUseShield) {
car.player.prop.Delpropbytype(3);
}
var v4 = this.player.CarDmc.attachMovie('Bomb', 'Bomb' + this.player.CarDmc.getNextHighestDepth(), this.player.CarDmc.getNextHighestDepth());
v4._x = p.Dmc._x;
v4._y = p.Dmc._y;
car.playBedumpSound();
p.Del();
false;
delete p.onHitStatus;
delete p.onHitCar;
};
v2.delme = function () {
this.player.prop.Delprop(this);
};
v2.del = function () {
var v2 = 0;
while (v2 < this.FurballArr.length) {
this.FurballArr[v2].Del();
delete this.FurballArr[v2];
++v2;
}
as.Timer.DelTimer(this.EndTimerId);
};
v2.EndTime = 30000;
ASSetPropFlags(as.Prop.PropFurballs.prototype, null, 1);
}
#endinitclip
}
movieClip 2408 __Packages.as.Prop.PropIceTrail {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.PropIceTrail) {
var v1 = function (game, player) {
super(game, player);
this.CarUse = true;
this.proptype = 9;
var v3 = 'PropIceTrail';
if (game.map.RaceId == 2) {
v3 = 'PropIceTrail2';
}
this.myBitmapData = flash.display.BitmapData.loadBitmap(v3);
this.UseTimerId = as.Timer.AddTimer(this, 'EndUse', this.UseTime);
this.EndTimerId = as.Timer.AddTimer(this, 'delme', this.EndTime);
this.bmp_fill_mc = game.map.Dmc.propmc.createEmptyMovieClip('bmp_fill_mc_' + this.EndTimerId, this.EndTimerId - 10000);
player.myCar.playIceSound();
};
as.Prop.PropIceTrail = v1;
as.Prop.PropIceTrail extends as.Prop.Prop;
var v2 = v1.prototype;
v2.run = function () {
this.makeIce();
var v3 = 0;
while (v3 < this.game.Players.length) {
this.game.Players[v3].myCar.carMaxWheelLength = this.game.Players[v3].myCar.MaxWheelLength;
this.game.Players[v3].myCar.carWheelLengthNum = this.game.Players[v3].myCar.WheelLengthNum;
this.game.Players[v3].myCar.IsAtIce = false;
this.game.Players[v3].myCar.GlideGratingNum = this.game.map.GlideGratingNum;
this.game.Players[v3].myCar.RollGratingNum = this.game.map.RollGratingNum;
this.game.Players[v3].myCar.GrassGratingNum = this.game.map.GrassGratingNum;
this.game.Players[v3].myCar.Wallspring = this.game.map.Wallspring;
if (this.game.Players[v3].myCar.jump_currheight >= this.player.myCar.HeightOverWall) {
} else {
if (this.game.Players[v3].IsInvincible) {
} else {
var v2 = this.game.Players[v3].myCar;
var v5 = 1;
while (v5 < 5) {
var v4 = new as.Vector(v2.Dmc['point' + v5]._x, v2.Dmc['point' + v5]._y);
v4.rotate(v2.Dmc._rotation);
v4.scale(v2.scale);
v4.scale(v2.Dmc._xscale / 100);
var v6 = {'x': v2.Dmc._x + v4.x, 'y': v2.Dmc._y + v4.y};
this.player.CarDmc.localToGlobal(v6);
if (this.bmp_fill_mc.hitTest(v6.x, v6.y, true)) {
v2.carMaxWheelLength *= v2.MaxWheelLength * 1.2;
v2.carWheelLengthNum *= v2.WheelLengthNum * 1.2;
v2.IsAtIce = true;
v2.GlideGratingNum = 0;
v2.RollGratingNum = 0;
v2.GrassGratingNum = 0;
v2.Wallspring = 0.5;
}
++v5;
}
}
}
++v3;
}
};
v2.makeIce = function () {
if (this.CarUse) {
if (this.player.myCar.jump_currheight >= this.player.myCar.HeightOverWall) {
return undefined;
}
var v4 = new flash.geom.Matrix();
v4.rotate(0.3926990816987241);
var v6 = true;
var v5 = true;
var v2 = this.player.myCar.ToPointNow(-70, 0);
this.bmp_fill_mc.beginBitmapFill(this.myBitmapData, v4, v6, v5);
var v3 = (this.IceWidth * this.player.myCar.Dmc._xscale / 100) * this.player.myCar.Dmc.car_mc._xscale / 100;
this.bmp_fill_mc.moveTo(this.player.myCar.Dmc._x + v2.x - v3 + random(20), this.player.myCar.Dmc._y + v2.y - v3 + random(20));
this.bmp_fill_mc.lineTo(this.player.myCar.Dmc._x + v2.x - v3 + random(20), this.player.myCar.Dmc._y + v2.y + random(10));
this.bmp_fill_mc.lineTo(this.player.myCar.Dmc._x + v2.x - v3 + random(20), this.player.myCar.Dmc._y + v2.y + v3 + random(20));
this.bmp_fill_mc.lineTo(this.player.myCar.Dmc._x + v2.x + random(10), this.player.myCar.Dmc._y + v2.y + v3 + random(10));
this.bmp_fill_mc.lineTo(this.player.myCar.Dmc._x + v2.x + v3 + random(20), this.player.myCar.Dmc._y + v2.y + v3 + random(20));
this.bmp_fill_mc.lineTo(this.player.myCar.Dmc._x + v2.x + v3 + random(20), this.player.myCar.Dmc._y + v2.y + random(10));
this.bmp_fill_mc.lineTo(this.player.myCar.Dmc._x + v2.x + v3 + random(20), this.player.myCar.Dmc._y + v2.y - v3 + random(20));
this.bmp_fill_mc.lineTo(this.player.myCar.Dmc._x + v2.x + random(10), this.player.myCar.Dmc._y + v2.y - v3);
this.bmp_fill_mc.lineTo(this.player.myCar.Dmc._x + v2.x - v3 + random(20), this.player.myCar.Dmc._y + v2.y - v3 + random(20));
this.bmp_fill_mc.endFill();
}
};
v2.EndUse = function () {
this.CarUse = false;
};
v2.delme = function () {
this.player.prop.Delprop(this);
};
v2.del = function () {
var v2 = 0;
while (v2 < this.game.Players.length) {
this.game.Players[v2].myCar.carMaxWheelLength = this.game.Players[v2].myCar.MaxWheelLength;
this.game.Players[v2].myCar.carWheelLengthNum = this.game.Players[v2].myCar.WheelLengthNum;
this.game.Players[v2].myCar.IsAtIce = false;
this.game.Players[v2].myCar.GlideGratingNum = this.game.map.GlideGratingNum;
this.game.Players[v2].myCar.RollGratingNum = this.game.map.RollGratingNum;
this.game.Players[v2].myCar.GrassGratingNum = this.game.map.GrassGratingNum;
this.game.Players[v2].myCar.Wallspring = this.game.map.Wallspring;
++v2;
}
this.bmp_fill_mc.swapDepths(20009);
this.bmp_fill_mc.removeMovieClip();
as.Timer.DelTimer(this.EndTimerId);
};
v2.EndTime = 20000;
v2.UseTime = 2000;
v2.IceWidth = 30;
ASSetPropFlags(as.Prop.PropIceTrail.prototype, null, 1);
}
#endinitclip
}
movieClip 2409 __Packages.as.Prop.PropBone {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.PropBone) {
var v1 = function (game, player) {
super(game, player);
this.proptype = 9;
player.prop.Delpropbytype(this.proptype);
player.myCar.Dmc.car_mc.attachMovie('prop_Bone', 'prop_Bone', 10009);
player.myCar.playdogSSound();
this.EndTimerId = as.Timer.AddTimer(this, 'delme', this.UseTime);
};
as.Prop.PropBone = v1;
as.Prop.PropBone extends as.Prop.Prop;
var v2 = v1.prototype;
v2.run = function () {
this.player.myCar.Dmc.car_mc.prop_Bone._yscale = this.player.myCar.Dmc.car_mc.prop_Bone._xscale * 1.007;
this.player.myCar.Dmc.car_mc.prop_Bone._xscale = this.player.myCar.Dmc.car_mc.prop_Bone._yscale;
if (this.player.myCar.jump_currheight >= this.player.myCar.HeightOverWall) {
return undefined;
}
var v2 = 0;
while (v2 < this.game.Players.length) {
if (this.game.Players[v2].Id == this.player.Id) {
} else {
if (this.game.Players[v2].myCar.jump_currheight >= this.player.myCar.HeightOverWall) {
} else {
if (this.game.Players[v2].IsReSeting) {
} else {
if (this.player.myCar.Dmc.car_mc.prop_Bone.hitTest(this.game.Players[v2].myCar.Dmc.body)) {
this.delme();
if (this.game.Players[v2].IsInvincible) {
return undefined;
}
if (this.game.Players[v2].prop.IsUseShield) {
this.game.Players[v2].prop.Delpropbytype(3);
return undefined;
}
var v4 = this.player.myCar.Dmc._x - this.game.Players[v2].myCar.Dmc._x;
var v3 = this.player.myCar.Dmc._y - this.game.Players[v2].myCar.Dmc._y;
var v6 = v4 * v4 + v3 * v3;
var v7 = 0.005;
if (v6 < 2000) {
v7 = 0.005 + 0.05 * (2000 - v6) / 2000;
}
var v8 = (new as.Vector(v4, v3)).scaleNew(v7);
this.game.Players[v2].myCar.Speed = this.player.myCar.Speed.minusNew(v8.scaleNew(40));
this.game.Players[v2].myCar.bs = true;
var v5 = this.player.CarDmc.attachMovie('Bomb', 'Bomb' + this.player.CarDmc.getNextHighestDepth(), this.player.CarDmc.getNextHighestDepth());
v5._x = this.player.myCar.Dmc.car_mc.prop_Bone._x;
v5._y = this.player.myCar.Dmc.car_mc.prop_Bone._y;
this.game.Players[v2].myCar.playBedumpSound();
}
}
}
}
++v2;
}
};
v2.delme = function () {
this.player.prop.Delprop(this);
};
v2.del = function () {
this.player.myCar.StopdogSSound();
this.player.myCar.Dmc.car_mc.prop_Bone.removeMovieClip();
as.Timer.DelTimer(this.EndTimerId);
};
v2.UseTime = 4000;
ASSetPropFlags(as.Prop.PropBone.prototype, null, 1);
}
#endinitclip
}
movieClip 2410 __Packages.as.Prop.PropShrinkRay {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Prop) {
_global.as.Prop = new Object();
}
if (!_global.as.Prop.PropShrinkRay) {
var v1 = function (game, player, Useplayer) {
super(game, player);
if (Useplayer == null) {
this.useplayer = null;
this.proptype = 10;
player.prop.Delpropbytype(this.proptype);
this.ShrinkRay = player.myCar.Dmc.car_mc.attachMovie('car_ShrinkRay', 'car_ShrinkRay', 10010);
player.myCar.playPandaSSound();
this.EndTimerId = as.Timer.AddTimer(this, 'delme', 500);
return undefined;
}
this.useplayer = Useplayer;
this.proptype = 10;
player.prop.Delpropbytype(this.proptype);
this.ShrinkRay = this.useplayer.myCar.Dmc.car_mc.attachMovie('car_ShrinkRay', 'car_ShrinkRay', 10010);
if (!player.prop.IsUseShield) {
player.myCar.SetHorse(player.myCar.CarHorse * this.AddHorse);
this.Smallscale = 33.33333333333334;
this.EndTimerId = as.Timer.AddTimer(this, 'returnnormal', this.UseTime);
} else {
this.Smallscale = 95;
this.EndTimerId = as.Timer.AddTimer(this, 'returnnormal', 300);
}
Useplayer.myCar.playPandaSSound();
};
as.Prop.PropShrinkRay = v1;
as.Prop.PropShrinkRay extends as.Prop.Prop;
var v2 = v1.prototype;
v2.run = function () {
var v9;
var v7;
if (this.useplayer == null) {
v9 = this.player.myCar.Dmc._rotation - 180;
v7 = 800;
} else {
var v8 = new as.Vector(this.useplayer.myCar.Dmc._x - this.player.myCar.Dmc._x, this.useplayer.myCar.Dmc._y - this.player.myCar.Dmc._y);
v9 = v8.getAngle();
v7 = v8.getLength();
}
this.ShrinkRay._rotation = -this.ShrinkRay._parent._parent._rotation + v9;
this.ShrinkRay.Ray.bbt._x = 0;
this.ShrinkRay.Ray.bbt._y = 0;
this.ShrinkRay.Ray.bbt2._x = 0;
this.ShrinkRay.Ray.bbt2._y = v7;
var v5 = v7;
this.ShrinkRay.Ray.sd.removeMovieClip();
var v6 = this.ShrinkRay.Ray.createEmptyMovieClip('sd', 1);
v6.lineStyle(3, 16776695, 100);
v6.moveTo(0, 0);
v6.lineTo(0, 1);
var v2 = 1;
while (v2 < 10) {
var v4 = Math.pow(-1, random(2));
var v3 = Math.pow(-1, random(2));
v6.lineTo(v4 * random(15) * ((10 - v2) * 0.5) * Math.min(Math.abs(100 / v5), 1), v2 * v5 / 10 + random(15) * v3);
++v2;
}
v6.lineTo(0, v5);
if (this.useplayer == null) {
return undefined;
}
this.player.IsSmallState = true;
if (this.player.myCar.Dmc._xscale > this.Smallscale) {
this.player.myCar.Dmc._xscale -= 5;
this.player.myCar.Dmc._yscale -= 5;
}
if (this.player.myCar.Dmc._xscale < this.Smallscale) {
this.player.myCar.Dmc._xscale += 5;
this.player.myCar.Dmc._yscale += 5;
}
if (this.player.myCar.Dmc._xscale >= 100) {
this.player.myCar.Dmc._yscale = 100;
this.player.myCar.Dmc._xscale = 100;
this.delme();
}
};
v2.returnnormal = function () {
this.player.prop.Delpropbytype(3);
this.Smallscale = 100;
};
v2.delme = function () {
this.player.prop.Delprop(this);
};
v2.del = function () {
this.useplayer.myCar.StopPandaSSound();
this.player.myCar.StopPandaSSound();
this.ShrinkRay.removeMovieClip();
this.Smallscale = 100;
this.player.IsSmallState = false;
as.Timer.DelTimer(this.EndTimerId);
this.player.myCar.SetHorse(this.player.myCar.CarHorse);
};
v2.UseTime = 3000;
v2.AddHorse = 0.5;
v2.Smallscale = 100;
ASSetPropFlags(as.Prop.PropShrinkRay.prototype, null, 1);
}
#endinitclip
}
movieClip 2411 __Packages.as.MessageBox {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.MessageBox) {
var v1 = function (Message, Showtime, MsgType, StartPoint) {
this.Id = ++as.MessageBox.MessageId;
var v2 = as.MessageBox.MessageBoxDmc.getNextHighestDepth();
this.dmc = as.MessageBox.MessageBoxDmc.attachMovie(as.MessageBox.MessageBoxInitNameArr[MsgType], as.MessageBox.MessageBoxInitNameArr[MsgType] + v2, v2);
this.dmc._x = StartPoint.x;
this.dmc._y = StartPoint.y;
this.dmc.Message = Message;
this.dmc.getMessage = function () {
return Message;
};
if (Showtime >= 0) {
this.TimerId = as.Timer.AddTimer(this, 'DelmewithTimer', Showtime);
}
};
as.MessageBox = v1;
var v2 = v1.prototype;
v1.AddMessageBoxType = function (MsgMcLinkName) {
as.MessageBox.MessageBoxInitNameArr.push(MsgMcLinkName);
};
v2.DelmewithTimer = function () {
as.MessageBox.DelMessage(this.Id);
};
v2.dele = function () {
as.Timer.DelTimer(this.TimerId);
this.dmc.gotoAndPlay('end');
};
v1.ShowMessage = function (Message, Showtime, MsgType, StartPoint) {
if (Showtime == undefined || Showtime == null) {
Showtime = as.MessageBox.definedMessageShowTime;
}
if (MsgType == undefined || MsgType == null) {
MsgType = 0;
}
if (StartPoint == undefined || StartPoint == null) {
StartPoint = new as.Vector(0, 0);
}
if (as.MessageBox.MessageArr.length >= as.MessageBox.MessageMaxNum) {
as.MessageBox.DelMessage(as.MessageBox.MessageArr[0].Id);
}
as.MessageBox.MessageArr.push(new as.MessageBox(Message, Showtime, MsgType, StartPoint));
return as.MessageBox.MessageId;
};
v1.DelMessage = function (MessageId) {
var v1 = 0;
while (v1 < as.MessageBox.MessageArr.length) {
if (as.MessageBox.MessageArr[v1].Id == MessageId) {
as.MessageBox.MessageArr[v1].dele();
delete as.MessageBox.MessageArr[v1];
as.MessageBox.MessageArr.splice(v1, 1);
}
++v1;
}
};
v1.del = function () {
var v1 = 0;
while (v1 < as.MessageBox.MessageArr.length) {
as.MessageBox.MessageArr[v1].dele();
delete as.MessageBox.MessageArr[v1];
++v1;
}
};
v1.MessageMaxNum = 5;
v1.MessageBoxInitNameArr = new Array();
v1.definedMessageShowTime = 2000;
v1.MessageBoxDmc = _root;
v1.MessageArr = new Array();
v1.MessageId = 0;
v2.Id = 5;
ASSetPropFlags(as.MessageBox.prototype, null, 1);
}
#endinitclip
}
movieClip 2412 __Packages.as.LanguageData {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.LanguageData) {
var v1 = function () {};
as.LanguageData = v1;
var v2 = v1.prototype;
v1.init = function () {
switch (_root.localization_language_nr) {
case 1:
as.LanguageData.CUP = 'CUP';
as.LanguageData.EASY = 'EASY';
as.LanguageData.NORMAL = 'NORMAL';
as.LanguageData.HARD = 'HARD';
as.LanguageData.normal = 'normal';
as.LanguageData.hard = 'hard';
as.LanguageData.Raccoon_City = 'Raccoon City';
as.LanguageData.Pirate_Island = 'Pirate Island';
as.LanguageData.North_Pole = 'North Pole';
as.LanguageData.Hudsons_Harbor = 'Hudson`s Harbor';
as.LanguageData.BEST_TIME = 'BEST TIME';
as.LanguageData.LAP_TIME = 'LAP TIME';
as.LanguageData.RACE_TIME = 'RACE TIME';
as.LanguageData.CUP_TIME = 'CUP TIME';
as.LanguageData.NEW_RECORD = 'NEW RECORD';
as.LanguageData.Cup_Time = 'Cup Time';
as.LanguageData.The_trophy_is_yours = 'The trophy is yours';
as.LanguageData.SOUND = 'SOUND';
as.LanguageData.ON = 'ON';
as.LanguageData.OFF = 'OFF';
as.LanguageData.QUALITY = 'QUALITY';
as.LanguageData.HIGH = 'HIGH';
as.LanguageData.MEDIUM = 'MEDIUM';
as.LanguageData.LOW = 'LOW';
as.LanguageData.WRONG_WAY = 'WRONG WAY!';
as.LanguageData.TOTAL_TIME = 'TOTAL TIME';
as.LanguageData.FINAL_LAP = 'FINAL LAP';
as.LanguageData.Complete_normal_to_unlock = 'Complete normal\nto unlock';
as.LanguageData.Complete_easy_to_unlock = 'Complete easy\nto unlock';
as.LanguageData.Mambo = 'Mambo';
as.LanguageData.Rocko = 'Rocko';
as.LanguageData.Vixen = 'Vixen';
as.LanguageData.Pingo = 'Pingo';
as.LanguageData.Hudson = 'Hudson';
as.LanguageData.Banzai = 'Banzai';
as.LanguageData.CUP_RECORD = 'Cup record';
as.LanguageData.Do_you_think_you_can_beat_your_own_score_again = 'Do you think you can beat your own score again';
as.LanguageData.COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'COMPLETE\nAll CUPS\nIN NORMAL\nMODE TO\nUNLOCK';
as.LanguageData.COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'COMPLETE\nAll CUPS\nIN EASY\nMODE TO\nUNLOCK';
as.LanguageData.COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'COMPLETE\nCUPS 1-6\nIN NORMAL\nMODE TO\nUNLOCK';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'COMPLETE\nAll CUPS\nIN NORMAL\nMODE TO UNLOCK';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'COMPLETE\nAll CUPS\nIN EASY\nMODE TO UNLOCK';
as.LanguageData.CUP_COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'COMPLETE\nCUPS 1-6\nIN NORMAL\nMODE TO UNLOCK';
as.LanguageData._CUP_X = 'CUP [x]';
as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'COMPLETE\nCUP [x]\nIN [y]\nMODE TO UNLOCK';
as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'COMPLETE\nCUP [x]\nIN [y]\nMODE TO\nUNLOCK';
as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'COMPLETE\nCUP [x]\nIN [y]\nMODE TO UNLOCK';
as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'COMPLETE\nCUP [x]\nIN [y]\nMODE TO\nUNLOCK';
as.LanguageData._CUP_X_Race_Y__Z_K = 'CUP [x]\nRace [y] / [z]\n[k]';
as.LanguageData._Race_X__Y = 'Race [x] / [y]';
as.LanguageData._LAP_X_Y = 'LAP [x] / [y]';
as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode = 'Can you also beat this cup in [x] mode';
as.LanguageData._Cup_X_is_now_available_Good_luck = 'Cup [x] is now available! Good luck';
as.LanguageData._New_player_unlocked_You_can_now_play_as_X = 'New driver unlocked! You can now play as [x]';
break;
case 2:
as.LanguageData.CUP = 'CUP';
as.LanguageData.EASY = 'MAKKELIJK';
as.LanguageData.NORMAL = 'NORMAAL';
as.LanguageData.HARD = 'MOEILIJK';
as.LanguageData.normal = 'normaal';
as.LanguageData.hard = 'moeilijk';
as.LanguageData.Raccoon_City = 'Wasbeerstad';
as.LanguageData.Pirate_Island = 'Pirateneiland';
as.LanguageData.North_Pole = 'Noordpool';
as.LanguageData.Hudsons_Harbor = 'Hudson\'s Haven';
as.LanguageData.BEST_TIME = 'BESTE TIJD';
as.LanguageData.LAP_TIME = 'RONDETIJD';
as.LanguageData.RACE_TIME = 'RACETIJD';
as.LanguageData.CUP_TIME = 'CUP TIJD';
as.LanguageData.NEW_RECORD = 'NIEUW RECORD';
as.LanguageData.Cup_Time = 'Cup tijd';
as.LanguageData.The_trophy_is_yours = 'Je hebt de trofee gewonnen';
as.LanguageData.SOUND = 'GELUID';
as.LanguageData.ON = 'AAN';
as.LanguageData.OFF = 'UIT';
as.LanguageData.QUALITY = 'KWALITEIT';
as.LanguageData.HIGH = 'HOOG';
as.LanguageData.MEDIUM = 'NORMAAL';
as.LanguageData.LOW = 'LAAG';
as.LanguageData.WRONG_WAY = 'VERKEERDE RICHTING!';
as.LanguageData.TOTAL_TIME = 'TOTALE TIJD';
as.LanguageData.FINAL_LAP = 'LAATSTE RONDE';
as.LanguageData.Complete_normal_to_unlock = 'Win op normaal\nom vrij te spelen';
as.LanguageData.Complete_easy_to_unlock = 'Win op makkelijk\nom vrij te spelen';
as.LanguageData.Mambo = 'Mambo';
as.LanguageData.Rocko = 'Rocko';
as.LanguageData.Vixen = 'Vixen';
as.LanguageData.Pingo = 'Pingo';
as.LanguageData.Hudson = 'Hudson';
as.LanguageData.Banzai = 'Banzai';
as.LanguageData.CUP_RECORD = 'Cup record';
as.LanguageData.Do_you_think_you_can_beat_your_own_score_again = 'Denk je dat je je eigen score kunt verslaan';
as.LanguageData.COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'SPEEL ALLE\nCUPS UIT OP\nNORMAAL OM\nVRIJ TE SPELEN';
as.LanguageData.COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'SPEEL ALLE\nCUPS UIT OP\nMAKKELIJK OM\nVRIJ TE SPELEN';
as.LanguageData.COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'SPEEL CUPS\n1-6 UIT OP\nNORMAAL OM\nVRIJ TE SPELEN';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'SPEEL ALLE\nCUPS UIT OP\nNORMAAL OM\nVRIJ TE SPELEN';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'SPEEL ALLE\nCUPS UIT OP\nMAKKELIJK OM\nVRIJ TE SPELEN';
as.LanguageData.CUP_COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'SPEEL CUPS\n1-6 UIT OP\nNORMAAL OM\nVRIJ TE SPELEN';
as.LanguageData._CUP_X = 'CUP [x]';
as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'SPEEL CUP\n[x] UIT OP\n[y] OM\nVRIJ TE SPELEN';
as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'SPEEL CUP\n[x] UIT OP\n[y] OM\nVRIJ TE SPELEN';
as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'SPEEL CUPS\n[x] UIT OP\n[y] OM\nVRIJ TE SPELEN';
as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'SPEEL CUPS\n[x] UIT OP\n[y] OM\nVRIJ TE SPELEN';
as.LanguageData._CUP_X_Race_Y__Z_K = 'CUP [x]\nRace [y] / [z]\n[k]';
as.LanguageData._Race_X__Y = 'Race [x] / [y]';
as.LanguageData._LAP_X_Y = 'RONDE [x] / [y]';
as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode = 'Kan je deze cup ook aan op [x]';
as.LanguageData._Cup_X_is_now_available_Good_luck = 'Cup [x] is beschikbaar! Succes';
as.LanguageData._New_player_unlocked_You_can_now_play_as_X = 'Nieuw racebeest vrijgespeeld! Je kan nu als [x] spelen';
break;
case 3:
as.LanguageData.CUP = 'COUPE';
as.LanguageData.EASY = 'FACILE';
as.LanguageData.NORMAL = 'NORMAL';
as.LanguageData.HARD = 'DIFFICILE';
as.LanguageData.normal = 'normal';
as.LanguageData.hard = 'difficile';
as.LanguageData.Raccoon_City = 'La ville du raton laveur';
as.LanguageData.Pirate_Island = 'L\'île des pirates';
as.LanguageData.North_Pole = 'Le pôle Nord';
as.LanguageData.Hudsons_Harbor = 'Le port Hudson';
as.LanguageData.BEST_TIME = 'MEILLEUR TEMPS';
as.LanguageData.LAP_TIME = 'TEMPS DU TOUR';
as.LanguageData.RACE_TIME = 'TEMPS DE LA COURSE';
as.LanguageData.CUP_TIME = 'TEMPS DE LA COUPE';
as.LanguageData.NEW_RECORD = 'NOUVEAU RECORD';
as.LanguageData.Cup_Time = 'Temps de la coupe';
as.LanguageData.The_trophy_is_yours = 'Le trophée est pour toi';
as.LanguageData.SOUND = 'SON';
as.LanguageData.ON = 'ACTIVÉ';
as.LanguageData.OFF = 'DESACTIVÉ';
as.LanguageData.QUALITY = 'QUALITÉ';
as.LanguageData.HIGH = 'HAUTE';
as.LanguageData.MEDIUM = 'NORMALE';
as.LanguageData.LOW = 'BASSE';
as.LanguageData.WRONG_WAY = 'MAUVAISE DIRECTION!';
as.LanguageData.TOTAL_TIME = 'TEMPS TOTAL';
as.LanguageData.FINAL_LAP = 'TOUR FINAL';
as.LanguageData.Complete_normal_to_unlock = 'Complète le mode normal\npour le débloquer';
as.LanguageData.Complete_easy_to_unlock = 'Complète le mode facile\npour le débloquer';
as.LanguageData.Mambo = 'Mambo';
as.LanguageData.Rocko = 'Rocko';
as.LanguageData.Vixen = 'Vixen';
as.LanguageData.Pingo = 'Pingo';
as.LanguageData.Hudson = 'Hudson';
as.LanguageData.Banzai = 'Banzai';
as.LanguageData.CUP_RECORD = 'Record de la course';
as.LanguageData.Do_you_think_you_can_beat_your_own_score_again = 'Penses-tu pouvoir battre ton propre record';
as.LanguageData.COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'COMPLÈTE\nTOUTES LES\nCOUPES EN\nMODE NORMAL\nPOUR LE\nDÉBLOQUER';
as.LanguageData.COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'COMPLÈTE\nTOUTES LES\nCOUPES EN\nMODE FACILE\nPOUR LE\nDÉBLOQUER';
as.LanguageData.COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'COMPLÈTE LES\nCOUPES 1-6 EN\nMODE NORMAL\nPOUR LE\nDÉBLOQUER';
as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'COMPLÈTE\nLA COUPE\n[x] EN\nMODE [y]\nPOUR LE\nDÉBLOQUER';
as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'COMPLÈTE\nLES COUPES\n[x] EN\nMODE [y]\nPOUR LE\nDÉBLOQUER';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'COMPLÈTE TOUTES\nLES COUPES EN\nMODE NORMAL POUR\nLE DÉBLOQUER';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'COMPLÈTE TOUTES\nLES COUPES EN\nMODE FACILE POUR\nLE DÉBLOQUER';
as.LanguageData.CUP_COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'COMPLÈTE LES\nCOUPES 1-6 EN\nMODE NORMAL POUR\nLE DÉBLOQUER';
as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'COMPLÈTE LES\nCOUPES [x] EN\nMODE [y] POUR\nLE DÉBLOQUER';
as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'COMPLÈTE LES\nCOUPES [x] EN\nMODE [y] POUR\nLE DÉBLOQUER';
as.LanguageData._CUP_X = 'COUPE [x]';
as.LanguageData._CUP_X_Race_Y__Z_K = 'COUPE [x]\nCourse [y] / [z]\n[k]';
as.LanguageData._Race_X__Y = 'Course [x] / [y]';
as.LanguageData._LAP_X_Y = 'TOUR: [x] / [y]';
as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode = 'Penses-tu pouvoir aussi gagner une coupe dans le mode [x]';
as.LanguageData._Cup_X_is_now_available_Good_luck = 'La coupe [x] est maintenant disponible! Bonne chance';
as.LanguageData._New_player_unlocked_You_can_now_play_as_X = 'Nouvelle personnage débloquée! Tu peux maintenant jouer avec [x]';
break;
case 4:
as.LanguageData.CUP = 'CUP';
as.LanguageData.EASY = 'EINFACH';
as.LanguageData.NORMAL = 'NORMAL';
as.LanguageData.HARD = 'SCHWER';
as.LanguageData.normal = 'normalen';
as.LanguageData.hard = 'schweren';
as.LanguageData.Raccoon_City = 'Waschbärstadt';
as.LanguageData.Pirate_Island = 'Pirateninsel';
as.LanguageData.North_Pole = 'Nordpol';
as.LanguageData.Hudsons_Harbor = 'Hudsons Hafen';
as.LanguageData.BEST_TIME = 'SCHNELLSTE ZEIT';
as.LanguageData.LAP_TIME = 'RUNDENZEIT';
as.LanguageData.RACE_TIME = 'RENNENZEIT';
as.LanguageData.CUP_TIME = 'CUP-ZEIT';
as.LanguageData.NEW_RECORD = 'NEUER REKORD';
as.LanguageData.Cup_Time = 'Cup-Zeit';
as.LanguageData.The_trophy_is_yours = 'Die Trophäe gehört dir';
as.LanguageData.SOUND = 'TON';
as.LanguageData.ON = 'AN';
as.LanguageData.OFF = 'AUS';
as.LanguageData.QUALITY = 'QUALITÄT';
as.LanguageData.HIGH = 'HOCH';
as.LanguageData.MEDIUM = 'NORMAL';
as.LanguageData.LOW = 'NIEDRIG';
as.LanguageData.WRONG_WAY = 'Falsche Richtung!';
as.LanguageData.TOTAL_TIME = 'GESAMTZEIT';
as.LanguageData.FINAL_LAP = 'LETZTE RUNDE';
as.LanguageData.Complete_normal_to_unlock = 'Zum Freischalten im Modus normal\nbeenden';
as.LanguageData.Complete_easy_to_unlock = 'Zum Freischalten im Modus einfach\nbeenden';
as.LanguageData.Mambo = 'Mambo';
as.LanguageData.Rocko = 'Rocko';
as.LanguageData.Vixen = 'Vixen';
as.LanguageData.Pingo = 'Pingo';
as.LanguageData.Hudson = 'Hudson';
as.LanguageData.Banzai = 'Banzai';
as.LanguageData.CUP_RECORD = 'Cup-Rekord';
as.LanguageData.Do_you_think_you_can_beat_your_own_score_again = 'Kannst du deine eigene Punktzahl übertreffen';
as.LanguageData.COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'ZUM\nFREISCHALTEN\nALLE CUPS IM\nMODUS NORMAL\nBEENDEN';
as.LanguageData.COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'ZUM\nFREISCHALTEN\nALLE CUPS IM\nMODUS EINFACH\nBEENDEN';
as.LanguageData.COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'ZUM\nFREISCHALTEN\nCUPS 1-6 IM\nMODUS NORMAL\nBEENDEN';
as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'ZUM\nFREISCHALTEN\nCUP [x] IM\nMODUS [y]\nBEENDEN';
as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'ZUM\nFREISCHALTEN\nCUP [x] IM\nMODUS [y]\nBEENDEN';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'ZUM FREISCHALTEN\nALLE CUPS IM\nMODUS NORMAL\nBEENDEN';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'ZUM FREISCHALTEN\nALLE CUPS IM\nMODUS EINFACH\nBEENDEN';
as.LanguageData.CUP_COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'ZUM FREISCHALTEN\nCUPS 1-6 IM\nMODUS NORMAL\nBEENDEN';
as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'ZUM FREISCHALTEN\nCUP [x] IM\nMODUS [y]\nBEENDEN';
as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'ZUM FREISCHALTEN\nCUP [x] IM\nMODUS [y]\nBEENDEN';
as.LanguageData._CUP_X = 'CUP [x]';
as.LanguageData._CUP_X_Race_Y__Z_K = 'COUPE [x]\nRennen [y] / [z]\n[k]';
as.LanguageData._Race_X__Y = 'Rennen [x] / [y]';
as.LanguageData._LAP_X_Y = 'RUNDE: [x] / [y]';
as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode = 'Schaffst du diesen Cup auch im [x] Modus';
as.LanguageData._Cup_X_is_now_available_Good_luck = 'Cup [x] ist jetzt freigeschaltet. Viel Glück.';
as.LanguageData._New_player_unlocked_You_can_now_play_as_X = 'Neuer Fahrer freigeschaltet, Du kannst jetzt als [x] spielen.';
break;
case 5:
as.LanguageData.CUP = 'COPA';
as.LanguageData.EASY = 'FÃCIL';
as.LanguageData.NORMAL = 'NORMAL';
as.LanguageData.HARD = 'DIFÃCIL';
as.LanguageData.normal = 'normal';
as.LanguageData.hard = 'difÃcil';
as.LanguageData.Raccoon_City = 'Ciudad mapache';
as.LanguageData.Pirate_Island = 'Isla pirata';
as.LanguageData.North_Pole = 'Polo Norte';
as.LanguageData.Hudsons_Harbor = 'Puerto de Hudson';
as.LanguageData.BEST_TIME = 'MEJOR TIEMPO';
as.LanguageData.LAP_TIME = 'TIEMPO DE VUELTA';
as.LanguageData.RACE_TIME = 'TIEMPO DE CARRERA';
as.LanguageData.CUP_TIME = 'TIEMPO DE COPA';
as.LanguageData.NEW_RECORD = '¡NUEVO RÉCORD';
as.LanguageData.Cup_Time = 'Tiempo de copa';
as.LanguageData.The_trophy_is_yours = '¡El trofeo es tuyo';
as.LanguageData.SOUND = 'SONIDO';
as.LanguageData.ON = 'SÃ';
as.LanguageData.OFF = 'NO';
as.LanguageData.QUALITY = 'CALIDAD';
as.LanguageData.HIGH = 'ALTA';
as.LanguageData.MEDIUM = 'NORMAL';
as.LanguageData.LOW = 'BAJA';
as.LanguageData.WRONG_WAY = '¡CAMINO EQUIVOCADO!';
as.LanguageData.TOTAL_TIME = 'TIEMPO TOTAL';
as.LanguageData.FINAL_LAP = 'ÚLTIMA VUELTA';
as.LanguageData.Complete_normal_to_unlock = 'Completa en normal\npara desbloquear';
as.LanguageData.Complete_easy_to_unlock = 'Completa en fácil\npara desbloquear';
as.LanguageData.Mambo = 'Mambo';
as.LanguageData.Rocko = 'Rocko';
as.LanguageData.Vixen = 'Vixen';
as.LanguageData.Pingo = 'Pingo';
as.LanguageData.Hudson = 'Hudson';
as.LanguageData.Banzai = 'Banzai';
as.LanguageData.CUP_RECORD = 'Récord de copa';
as.LanguageData.Do_you_think_you_can_beat_your_own_score_again = '¿Crees que puedes superar tu propia puntuación otra vez';
as.LanguageData.COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'COMPLETA TODAS\nLAS COPAS EN\nNORMAL PARA\nDESBLOQUEAR';
as.LanguageData.COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'COMPLETA TODAS\nLAS COPAS EN\nFÃCIL PARA\nDESBLOQUEAR';
as.LanguageData.COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'COMPLETA LA\nCOPAS 1-6 EN\nNORMAL PARA\nDESBLOQUEAR';
as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'COMPLETA LA\nCOPA [x] EN\n[y] PARA\nDESBLOQUEAR';
as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'COMPLETA LA\nCOPA [x] EN\n[y] PARA\nDESBLOQUEAR';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'COMPLETA TODAS\nLAS COPAS EN\nNORMAL PARA\nDESBLOQUEAR';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'COMPLETA TODAS\nLAS COPAS EN\nFÃCIL PARA\nDESBLOQUEAR';
as.LanguageData.CUP_COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'COMPLETA LA\nCOPAS 1-6 EN\nNORMAL PARA\nDESBLOQUEAR';
as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'COMPLETA LA\nCOPA [x] EN\n[y] PARA\nDESBLOQUEAR';
as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'COMPLETA LA\nCOPA [x] EN\n[y] PARA\nDESBLOQUEAR';
as.LanguageData._CUP_X = 'COPA [x]';
as.LanguageData._CUP_X_Race_Y__Z_K = 'COPA [x]\nCarrera [y] / [z]\n[k]';
as.LanguageData._Race_X__Y = 'Carrera [x] / [y]';
as.LanguageData._LAP_X_Y = 'VUELTA: [x] / [y]';
as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode = '¿Puedes superar esta copa en el modo [x]';
as.LanguageData._Cup_X_is_now_available_Good_luck = '¡La copa [x] está disponible! Buena suerte.';
as.LanguageData._New_player_unlocked_You_can_now_play_as_X = '¡Nuevo conductor desbloqueado! Ahora puedes jugar como [x].';
break;
case 6:
as.LanguageData.CUP = 'COPA';
as.LanguageData.EASY = 'FÃCIL';
as.LanguageData.NORMAL = 'NORMAL';
as.LanguageData.HARD = 'DIFÃCIL';
as.LanguageData.normal = 'normal';
as.LanguageData.hard = 'difÃcil';
as.LanguageData.Raccoon_City = 'Cidade Texugo';
as.LanguageData.Pirate_Island = 'Ilha dos Piratas';
as.LanguageData.North_Pole = 'Polo Norte';
as.LanguageData.Hudsons_Harbor = 'Porto Hudson';
as.LanguageData.BEST_TIME = 'MELHOR TEMPO';
as.LanguageData.LAP_TIME = 'TEMPO DA VOLTA';
as.LanguageData.RACE_TIME = 'TEMPO DA CORRIDA';
as.LanguageData.CUP_TIME = 'TEMPO DA COPA';
as.LanguageData.NEW_RECORD = 'NOVO RECORDE';
as.LanguageData.Cup_Time = 'Tempo da copa';
as.LanguageData.The_trophy_is_yours = 'O troféu é seu';
as.LanguageData.SOUND = 'SOM';
as.LanguageData.ON = 'LIGADO';
as.LanguageData.OFF = 'DESLIGADO';
as.LanguageData.QUALITY = 'QUALIDADE';
as.LanguageData.HIGH = 'ÓTIMA';
as.LanguageData.MEDIUM = 'NORMAL';
as.LanguageData.LOW = 'POBRE';
as.LanguageData.WRONG_WAY = 'CAMINHO ERRADO!';
as.LanguageData.TOTAL_TIME = 'TEMPO TOTAL';
as.LanguageData.FINAL_LAP = 'ÚLTIMA VOLTA';
as.LanguageData.Complete_normal_to_unlock = 'Conclua normal\npara destravar';
as.LanguageData.Complete_easy_to_unlock = 'Conclua fácil\npara destravar';
as.LanguageData.Mambo = 'Mambo';
as.LanguageData.Rocko = 'Romeu';
as.LanguageData.Vixen = 'Raposa';
as.LanguageData.Pingo = 'Pingo';
as.LanguageData.Hudson = 'Hudson';
as.LanguageData.Banzai = 'Banzai';
as.LanguageData.CUP_RECORD = 'Recorde da copa';
as.LanguageData.Do_you_think_you_can_beat_your_own_score_again = 'Será que você consegue bater o seu próprio placar';
as.LanguageData.COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'CONCLUA\nTODAS AS\nCOPAS EM\nNORMAL PARA\nDESTRAVAR';
as.LanguageData.COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'CONCLUA\nTODAS AS\nCOPAS EM\nFÃCIL PARA\nDESTRAVAR';
as.LanguageData.COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'CONCLUA COPAS\n1-6 EM\nNORMAL PARA\nDESTRAVAR';
as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'CONCLUA COPA\n[x] EM\n[y] PARA\nDESTRAVAR';
as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'CONCLUA COPA\n[x] EM\n[y] PARA\nDESTRAVAR';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'CONCLUA\nTODAS AS COPAS\nEM NORMAL\nPARA DESTRAVAR';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'CONCLUA\nTODAS AS COPAS\nEM FÃCIL\nPARA DESTRAVAR';
as.LanguageData.CUP_COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'CONCLUA\nCOPAS 1-6\nEM NORMAL\nPARA DESTRAVAR';
as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'CONCLUA\nCOPA [x]\nEM [y]\nPARA DESTRAVAR';
as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'CONCLUA\nCOPA [x]\nEM [y]\nPARA DESTRAVAR';
as.LanguageData._CUP_X = 'COPA [x]';
as.LanguageData._CUP_X_Race_Y__Z_K = 'COPA [x]\nCorrida [y] / [z]\n[k]';
as.LanguageData._Race_X__Y = 'Corrida [x] / [y]';
as.LanguageData._LAP_X_Y = 'VOLTA: [x] / [y]';
as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode = 'Consegue ganhar esta copa também no modo [x]';
as.LanguageData._Cup_X_is_now_available_Good_luck = 'A Copa [x] já está disponÃvel! Boa sorte.';
as.LanguageData._New_player_unlocked_You_can_now_play_as_X = 'Novo piloto destravado! Agora você pode ser [x].';
break;
case 7:
as.LanguageData.CUP = 'CAMPEONATO';
as.LanguageData.EASY = 'FÃCIL';
as.LanguageData.NORMAL = 'NORMAL';
as.LanguageData.HARD = 'DIFÃCIL';
as.LanguageData.normal = 'normal';
as.LanguageData.hard = 'difÃcil';
as.LanguageData.Raccoon_City = 'Racoon City';
as.LanguageData.Pirate_Island = 'Ilha Pirata';
as.LanguageData.North_Pole = 'Pólo Norte';
as.LanguageData.Hudsons_Harbor = 'Porto Hudson';
as.LanguageData.BEST_TIME = 'MELHOR TEMPO';
as.LanguageData.LAP_TIME = 'TEMPO DA VOLTA';
as.LanguageData.RACE_TIME = 'TEMPO DA CORRIDA';
as.LanguageData.CUP_TIME = 'TEMPO DO CAMPEONATO';
as.LanguageData.NEW_RECORD = 'NOVO RECORDE';
as.LanguageData.Cup_Time = 'Tempo do campeonato';
as.LanguageData.The_trophy_is_yours = 'O troféu é seu';
as.LanguageData.SOUND = 'SOM';
as.LanguageData.ON = 'LIGADO';
as.LanguageData.OFF = 'DESLIGADO';
as.LanguageData.QUALITY = 'QUALIDADE';
as.LanguageData.HIGH = 'MAIS ALTA';
as.LanguageData.MEDIUM = 'NORMAL';
as.LanguageData.LOW = 'BAIXA';
as.LanguageData.WRONG_WAY = 'DIRECÇÃO ERRADA!';
as.LanguageData.TOTAL_TIME = 'TEMPO TOTAL';
as.LanguageData.FINAL_LAP = 'VOLTA FINAL';
as.LanguageData.Complete_normal_to_unlock = 'Conclua normal\npara desbloquear';
as.LanguageData.Complete_easy_to_unlock = 'Conclua fácil\npara desbloquear';
as.LanguageData.Mambo = 'Mambo';
as.LanguageData.Rocko = 'Rocko';
as.LanguageData.Vixen = 'Vixen';
as.LanguageData.Pingo = 'Pingo';
as.LanguageData.Hudson = 'Hudson';
as.LanguageData.Banzai = 'Banzai';
as.LanguageData.CUP_RECORD = 'Recorde do campeonato';
as.LanguageData.Do_you_think_you_can_beat_your_own_score_again = 'Acha que consegue voltar a bater o seu próprio recorde';
as.LanguageData.COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'CONCLUA\nTODOS OS\nCAMPEONATOS\nEM NORMAL\nPARA\nDESBLOQUEAR';
as.LanguageData.COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'CONCLUA\nTODOS OS\nCAMPEONATOS\nEM FÃCIL\nPARA\nDESBLOQUEAR';
as.LanguageData.COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'CONCLUIR\nCAMPEONATOS\n1-6 EM\nNORMAL PARA\nDESBLOQUEAR';
as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'CONCLUIR\nCAMPEONATO\n[x] EM\n[y] PARA\nDESBLOQUEAR';
as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'CONCLUIR\nCAMPEONATO\n[x] EM\n[y] PARA\nDESBLOQUEAR';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'CONCLUA TODOS\nOS CAMPEONATOS\nEM NORMAL\nPARA DESBLOQUEAR';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'CONCLUA TODOS\nOS CAMPEONATOS\nEM FÃCIL\nPARA DESBLOQUEAR';
as.LanguageData.CUP_COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'CONCLUIR\nCAMPEONATOS 1-6\nEM NORMAL\nPARA DESBLOQUEAR';
as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'CONCLUIR\nCAMPEONATO [x]\nEM [y]\nPARA DESBLOQUEAR';
as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'CONCLUIR\nCAMPEONATO [x]\nEM [y]\nPARA DESBLOQUEAR';
as.LanguageData._CUP_X = 'CAMPEONATO [x]';
as.LanguageData._CUP_X_Race_Y__Z_K = 'CAMPEONATO [x]\nCorrida [y] / [z]\n[k]';
as.LanguageData._Race_X__Y = 'Corrida [x] / [y]';
as.LanguageData._LAP_X_Y = 'VOLTA: [x] / [y]';
as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode = 'Consegue ganhar este campeonato também no modo [x]';
as.LanguageData._Cup_X_is_now_available_Good_luck = 'O torneio [x] está agora disponÃvel! Boa sorte.';
as.LanguageData._New_player_unlocked_You_can_now_play_as_X = 'Novo condutor desbloqueado! Pode agora jogar como [x].';
break;
case 8:
as.LanguageData.CUP = 'COPPA';
as.LanguageData.EASY = 'FACILE';
as.LanguageData.NORMAL = 'NORMALE';
as.LanguageData.HARD = 'ARDUO';
as.LanguageData.normal = 'normale';
as.LanguageData.hard = 'ardua';
as.LanguageData.Raccoon_City = 'Raccoonopoli';
as.LanguageData.Pirate_Island = 'Isola dei pirati';
as.LanguageData.North_Pole = 'Polo Nord';
as.LanguageData.Hudsons_Harbor = 'Porto di Hudson';
as.LanguageData.BEST_TIME = 'MIGLIOR TEMPO';
as.LanguageData.LAP_TIME = 'TEMPO GIRO';
as.LanguageData.RACE_TIME = 'TEMPO GARA';
as.LanguageData.CUP_TIME = 'TEMPO COPPA';
as.LanguageData.NEW_RECORD = 'NUOVO RECORD';
as.LanguageData.Cup_Time = 'Tempo coppa';
as.LanguageData.The_trophy_is_yours = 'Il trofeo è tuo';
as.LanguageData.SOUND = 'AUDIO';
as.LanguageData.ON = 'ON';
as.LanguageData.OFF = 'OFF';
as.LanguageData.QUALITY = 'QUALITÀ';
as.LanguageData.HIGH = 'ALTA';
as.LanguageData.MEDIUM = 'NORMALE';
as.LanguageData.LOW = 'BASSA';
as.LanguageData.WRONG_WAY = 'DIREZIONE SBAGLIATA!';
as.LanguageData.TOTAL_TIME = 'TEMPO TOTALE';
as.LanguageData.FINAL_LAP = 'ULTIMO GIRO';
as.LanguageData.Complete_normal_to_unlock = 'Completa la mod. normale\nper sbloccare';
as.LanguageData.Complete_easy_to_unlock = 'Completa la mod. facile\nper sbloccare';
as.LanguageData.Mambo = 'Mambo';
as.LanguageData.Rocko = 'Rocko';
as.LanguageData.Vixen = 'Vixen';
as.LanguageData.Pingo = 'Pingo';
as.LanguageData.Hudson = 'Hudson';
as.LanguageData.Banzai = 'Banzai';
as.LanguageData.CUP_RECORD = 'Record coppa';
as.LanguageData.Do_you_think_you_can_beat_your_own_score_again = 'Pensi di poter battere ancora il tuo punteggio';
as.LanguageData.COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'COMPLETA\nTUTTE LE\nCOPPE IN MOD.\nNORMALE PER\nSBLOCCARLA';
as.LanguageData.COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'COMPLETA\nTUTTE LE\nCOPPE IN MOD.\nFACILE PER\nSBLOCCARLA';
as.LanguageData.COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'COMPLETA\nLA COPPE\n1-6 IN MOD.\nNORMALE PER\nSBLOCCARLA';
as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'COMPLETA LA\nCOPPA [x]\nIN MOD.\n[y] PER\nSBLOCCARLA';
as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'COMPLETA LA\nCOPPA [x]\nIN MOD.\n[y] PER\nSBLOCCARLA';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'COMPLETA\nTUTTE LE COPPE\nIN MOD. NORMALE\nPER SBLOCCARLA';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'COMPLETA\nTUTTE LE COPPE\nIN MOD. FACILE\nPER SBLOCCARLA';
as.LanguageData.CUP_COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'COMPLETA\nLA COPPE 1-6\nIN MOD. NORMALE\nPER SBLOCCARLA';
as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'COMPLETA\nLA COPPA [x]\nIN MOD. [y]\nPER SBLOCCARLA';
as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'COMPLETA\nLA COPPA [x]\nIN MOD. [y]\nPER SBLOCCARLA';
as.LanguageData._CUP_X = 'COPPA [x]';
as.LanguageData._CUP_X_Race_Y__Z_K = 'COPPA [x]\nGara [y] / [z]\n[k]';
as.LanguageData._Race_X__Y = 'Gara [x] / [y]';
as.LanguageData._LAP_X_Y = 'GIRO: [x] / [y]';
as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode = 'Riesci a vincere la coppa in modalità [x]';
as.LanguageData._Cup_X_is_now_available_Good_luck = 'La coppa [x] è ora disponibile! Buona fortuna.';
as.LanguageData._New_player_unlocked_You_can_now_play_as_X = 'Nuovo pilota sbloccato! Ora puoi giocare come [x].';
break;
case 9:
as.LanguageData.CUP = 'KUPP';
as.LanguageData.EASY = 'LÄTT';
as.LanguageData.NORMAL = 'NORMAL';
as.LanguageData.HARD = 'SVÃ…RT';
as.LanguageData.normal = 'normalt';
as.LanguageData.hard = 'svårt';
as.LanguageData.Raccoon_City = 'Storstaden';
as.LanguageData.Pirate_Island = 'Piratön';
as.LanguageData.North_Pole = 'Nordpolen';
as.LanguageData.Hudsons_Harbor = 'Hamnen';
as.LanguageData.BEST_TIME = 'BÄSTA TID';
as.LanguageData.LAP_TIME = 'VARVTID';
as.LanguageData.RACE_TIME = 'RACINGTID';
as.LanguageData.CUP_TIME = 'KUPPTID';
as.LanguageData.NEW_RECORD = 'NYTT REKORD';
as.LanguageData.Cup_Time = 'Kuptid';
as.LanguageData.The_trophy_is_yours = 'Trofén är din';
as.LanguageData.SOUND = 'LJUD';
as.LanguageData.ON = 'PÃ…';
as.LanguageData.OFF = 'AV';
as.LanguageData.QUALITY = 'KVALITET';
as.LanguageData.HIGH = 'HÖG';
as.LanguageData.MEDIUM = 'NORMAL';
as.LanguageData.LOW = 'LÃ…G';
as.LanguageData.WRONG_WAY = 'FEL HÃ…LL!';
as.LanguageData.TOTAL_TIME = 'TID TOTALT';
as.LanguageData.FINAL_LAP = 'SISTA VARVET';
as.LanguageData.Complete_normal_to_unlock = 'Klara normal\nför att låsa upp';
as.LanguageData.Complete_easy_to_unlock = 'Klara lätt\nför att låsa upp';
as.LanguageData.Mambo = 'Mambo';
as.LanguageData.Rocko = 'Rocko';
as.LanguageData.Vixen = 'Vixen';
as.LanguageData.Pingo = 'Pingo';
as.LanguageData.Hudson = 'Hudson';
as.LanguageData.Banzai = 'Banzai';
as.LanguageData.CUP_RECORD = 'Kupprekord';
as.LanguageData.Do_you_think_you_can_beat_your_own_score_again = 'Kan du slå din egen poäng igen';
as.LanguageData.COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'KLARA ALLA\nKUPPER I\nNORMAL FÖR\nATT LÅSA UPP';
as.LanguageData.COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'KLARA ALLA\nKUPPER I\nLÄTT FÖR\nATT LÅSA UPP';
as.LanguageData.COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'KLARA KUPPER\n1-6 I\nNORMAL FÖR\nATT LÅSA UPP';
as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'KLARA KUPP\n[x] I\n[y] FÖR\nATT LÅSA UPP';
as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'KLARA KUPP\n[x] I\n[y] FÖR\nATT LÅSA UPP';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'KLARA\nALLA KUPPER\nI NORMAL\nFÖR ATT LÅSA UPP';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'KLARA\nALLA KUPPER\nI LÄTT\nFÖR ATT LÅSA UPP';
as.LanguageData.CUP_COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'KLARA\nKUPPER 1-6\nI NORMAL\nFÖR ATT LÅSA UPP';
as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'KLARA\nKUPP [x]\nI [y]\nFÖR ATT LÅSA UPP';
as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'KLARA\nKUPP [x]\nI [y]\nFÖR ATT LÅSA UPP';
as.LanguageData._CUP_X = 'KUPP [x]';
as.LanguageData._CUP_X_Race_Y__Z_K = 'KUPP [x]\nRace [y] / [z]\n[k]';
as.LanguageData._Race_X__Y = 'Race [x] / [y]';
as.LanguageData._LAP_X_Y = 'VARV: [x] / [y]';
as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode = 'Kan du även klara kuppen i [x] läge';
as.LanguageData._Cup_X_is_now_available_Good_luck = 'Kupp [x] är nu tillgänglig! Lycka till.';
as.LanguageData._New_player_unlocked_You_can_now_play_as_X = 'Ny förare upplåst! Du kan nu spela som [x].';
break;
case 10:
as.LanguageData.CUP = 'ZAWODY';
as.LanguageData.EASY = 'ÅATWY';
as.LanguageData.NORMAL = 'NORMALNY';
as.LanguageData.HARD = 'TRUDNY';
as.LanguageData.normal = 'normalnym';
as.LanguageData.hard = 'trudnym';
as.LanguageData.Raccoon_City = 'Miasto Racoon';
as.LanguageData.Pirate_Island = 'Wyspa Piratów';
as.LanguageData.North_Pole = 'Biegun Północny';
as.LanguageData.Hudsons_Harbor = 'Port Hudson';
as.LanguageData.BEST_TIME = 'NAJLEPSZY CZAS';
as.LanguageData.LAP_TIME = 'CZAS OKRĄŻENIA';
as.LanguageData.RACE_TIME = 'CZAS WYÅšCIGU';
as.LanguageData.CUP_TIME = 'CZAS ZAWODÓW';
as.LanguageData.NEW_RECORD = 'NOWY REKORD';
as.LanguageData.Cup_Time = 'Czas zawodów';
as.LanguageData.The_trophy_is_yours = 'Nagroda jest twoja';
as.LanguageData.SOUND = 'DŹWIĘK';
as.LanguageData.ON = 'WÅÄ„CZ';
as.LanguageData.OFF = 'WYÅÄ„CZ';
as.LanguageData.QUALITY = 'JAKOŚĆ';
as.LanguageData.HIGH = 'DOBRA';
as.LanguageData.MEDIUM = 'ÅšREDNIA';
as.LanguageData.LOW = 'NISKA';
as.LanguageData.WRONG_WAY = 'NIE TĘDY!';
as.LanguageData.TOTAL_TIME = 'ÅÄ„CZNY CZAS';
as.LanguageData.FINAL_LAP = 'OSTATNIE OKRĄŻENIE';
as.LanguageData.Complete_normal_to_unlock = 'Ukończ poziom normalny\n, aby odblokować';
as.LanguageData.Complete_easy_to_unlock = 'Ukończ poziom łatwy\n, aby odblokować';
as.LanguageData.Mambo = 'Mambo';
as.LanguageData.Rocko = 'Rocko';
as.LanguageData.Vixen = 'Vixen';
as.LanguageData.Pingo = 'Pingo';
as.LanguageData.Hudson = 'Hudson';
as.LanguageData.Banzai = 'Banzai';
as.LanguageData.CUP_RECORD = 'Rekord wyścigu';
as.LanguageData.Do_you_think_you_can_beat_your_own_score_again = 'Czy dasz radę jeszcze raz pobić swój własny wynik';
as.LanguageData.COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'UKOŃCZ\nWSZYSTKIE\nWYŚCIGI NA\nPOZIOMIE\nNORMALNY,ABY\nODBLOKOWAĆ';
as.LanguageData.COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'UKOŃCZ\nWSZYSTKIE\nWYÅšCIGI NA\nPOZIOMIE\nÅATWY,ABY\nODBLOKOWAĆ';
as.LanguageData.COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'UKOŃCZ\nZAWODY 1-6\nNA POZIOMIE\nNORMALNY,ABY\nODBLOKOWAĆ';
as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'UKOŃCZ\nZAWODY [x]\nNA POZIOMIE\n[y],ABY\nODBLOKOWAĆ';
as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'UKOŃCZ\nZAWODY [x]\nNA POZIOMIE\n[y],ABY\nODBLOKOWAĆ';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'UKOŃCZ WSZYSTKIE\nWYŚCIGI NA POZIOMIE\nNORMALNY,ABY\nODBLOKOWAĆ';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'UKOŃCZ WSZYSTKIE\nWYÅšCIGI NA POZIOMIE\nÅATWY,ABY\nODBLOKOWAĆ';
as.LanguageData.CUP_COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'UKOŃCZ ZAWODY\n1-6 NA POZIOMIE\nNORMALNY,ABY\nODBLOKOWAĆ';
as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'UKOŃCZ ZAWODY\n[x] NA POZIOMIE\n[y],ABY\nODBLOKOWAĆ';
as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'UKOŃCZ ZAWODY\n[x] NA POZIOMIE\n[y],ABY\nODBLOKOWAĆ';
as.LanguageData._CUP_X = 'ZAWODY [x]';
as.LanguageData._CUP_X_Race_Y__Z_K = 'ZAWODY [x]\nWyścig [y] / [z]\n[k]';
as.LanguageData._Race_X__Y = 'Wyścig [x] / [y]';
as.LanguageData._LAP_X_Y = 'OKRĄŻENIE: [x] / [y]';
as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode = 'Czy ukończysz ten wyścig także w trybie [x]';
as.LanguageData._Cup_X_is_now_available_Good_luck = 'Zawody [x] są teraz dostępne! Powodzenia.';
as.LanguageData._New_player_unlocked_You_can_now_play_as_X = 'Odblokowałeś nowego kierowcę! Teraz możesz grać jako [x].';
break;
case 11:
as.LanguageData.CUP = 'СОРЕВÐОВÐÐИЯ';
as.LanguageData.EASY = 'ЛЕГКИЙ';
as.LanguageData.NORMAL = 'ÐОРМÐЛЬÐЫЙ';
as.LanguageData.HARD = 'ТРУДÐЫЙ';
as.LanguageData.normal = 'нормальном';
as.LanguageData.hard = 'трудном';
as.LanguageData.Raccoon_City = 'Город Ракун';
as.LanguageData.Pirate_Island = 'ПиратÑкий оÑтров';
as.LanguageData.North_Pole = 'Северный полюÑ';
as.LanguageData.Hudsons_Harbor = 'Порт ХадÑон';
as.LanguageData.BEST_TIME = 'ÐÐИЛУЧШИЙ РЕЗУЛЬТÐТ';
as.LanguageData.LAP_TIME = 'ВРЕМЯ КРУГÐ';
as.LanguageData.RACE_TIME = 'ВРЕМЯ ГОÐКИ';
as.LanguageData.CUP_TIME = 'ВРЕМЯ СОРЕВÐОВÐÐИЙ';
as.LanguageData.NEW_RECORD = 'ÐОВЫЙ РЕКОРД';
as.LanguageData.Cup_Time = 'Ð’Ñ€ÐµÐ¼Ñ Ñоревнований';
as.LanguageData.The_trophy_is_yours = 'Приз - ваш';
as.LanguageData.SOUND = 'ЗВУК';
as.LanguageData.ON = 'ВКЛЮЧИТЬ';
as.LanguageData.OFF = 'ВЫКЛЮЧИТЬ';
as.LanguageData.QUALITY = 'КÐЧЕСТВО';
as.LanguageData.HIGH = 'ХОРОШЕЕ';
as.LanguageData.MEDIUM = 'СРЕДÐЕЕ';
as.LanguageData.LOW = 'ÐИЗКОЕ';
as.LanguageData.WRONG_WAY = 'ÐЕПРÐВИЛЬÐОЕ ÐÐПРÐВЛЕÐИЕ!';
as.LanguageData.TOTAL_TIME = 'ОБЩЕЕ ВРЕМЯ';
as.LanguageData.FINAL_LAP = 'ФИÐÐЛЬÐЫЙ КРУГ';
as.LanguageData.Complete_normal_to_unlock = 'Завершите уровень нормальный\n, чтобы отблокировать';
as.LanguageData.Complete_easy_to_unlock = 'Завершите уровень легкий\n, чтобы отблокировать';
as.LanguageData.Mambo = 'Мамбо';
as.LanguageData.Rocko = 'Роко';
as.LanguageData.Vixen = 'ВикÑен';
as.LanguageData.Pingo = 'Пинго';
as.LanguageData.Hudson = 'ХадÑон';
as.LanguageData.Banzai = 'Банзаи';
as.LanguageData.CUP_RECORD = 'Рекорд Ñоревнований';
as.LanguageData.Do_you_think_you_can_beat_your_own_score_again = 'УдаÑÑ‚ÑÑ Ð»Ð¸ вам превзойти ÑобÑтвенный результат';
as.LanguageData.COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'ЗÐВЕРШИТЕ ВСЕ\nСОРЕВÐОВÐÐИЯ\nÐРУРОВÐЕ\nÐОРМÐЛЬÐЫЙ,\nЧТОБЫ\nОТБЛОКИРОВÐТЬ.';
as.LanguageData.COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'ЗÐВЕРШИТЕ ВСЕ\nСОРЕВÐОВÐÐИЯ\nÐРУРОВÐЕ\nЛЕГКИЙ,\nЧТОБЫ\nОТБЛОКИРОВÐТЬ.';
as.LanguageData.COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'ЗÐВЕРШИТЕ\nСОРЕВÐОВÐÐИЯ\n1-6 ÐРУРОВÐЕ\nÐОРМÐЛЬÐЫЙ,\nЧТОБЫ\nОТБЛОКИРОВÐТЬ.';
as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'ЗÐВЕРШИТЕ\nСОРЕВÐОВÐÐИЯ\n[x] ÐРУРОВÐЕ\n[y],\nЧТОБЫ\nОТБЛОКИРОВÐТЬ.';
as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'ЗÐВЕРШИТЕ\nСОРЕВÐОВÐÐИЯ\n[x] ÐРУРОВÐЕ\n[y],\nЧТОБЫ\nОТБЛОКИРОВÐТЬ.';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'ЗÐВЕРШИТЕ ВСЕ\nСОРЕВÐОВÐÐИЯ ÐРУРОВÐЕ\nÐОРМÐЛЬÐЫЙ,ЧТОБЫ\nОТБЛОКИРОВÐТЬ.';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'ЗÐВЕРШИТЕ ВСЕ\nСОРЕВÐОВÐÐИЯ ÐРУРОВÐЕ\nЛЕГКИЙ,ЧТОБЫ\nОТБЛОКИРОВÐТЬ.';
as.LanguageData.CUP_COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'ЗÐВЕРШИТЕ СОРЕВÐОВÐÐИЯ\n1-6 ÐРУРОВÐЕ\nÐОРМÐЛЬÐЫЙ,ЧТОБЫ\nОТБЛОКИРОВÐТЬ.';
as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'ЗÐВЕРШИТЕ СОРЕВÐОВÐÐИЯ\n[x] ÐРУРОВÐЕ\n[y],ЧТОБЫ\nОТБЛОКИРОВÐТЬ.';
as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'ЗÐВЕРШИТЕ СОРЕВÐОВÐÐИЯ\n[x] ÐРУРОВÐЕ\n[y],ЧТОБЫ\nОТБЛОКИРОВÐТЬ.';
as.LanguageData._CUP_X = 'СОРЕВÐОВÐÐИЯ [x]';
as.LanguageData._CUP_X_Race_Y__Z_K = 'СОРЕВÐОВÐÐИЯ [x]\nГонка [y] / [z]\n[k]';
as.LanguageData._Race_X__Y = 'Гонка [x] / [y]';
as.LanguageData._LAP_X_Y = 'КРУГ: [x] / [y]';
as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode = 'УдаÑÑ‚ÑÑ Ð»Ð¸ вам завершить Ñти ÑÐ¾Ñ€ÐµÐ²Ð½Ð¾Ð²Ð°Ð½Ð¸Ñ Ñ‚Ð°ÐºÐ¶Ðµ на [x]';
as.LanguageData._Cup_X_is_now_available_Good_luck = 'Ð¡Ð¾Ñ€ÐµÐ²Ð½Ð¾Ð²Ð°Ð½Ð¸Ñ [x] теперь доÑтупны! Удачи.';
as.LanguageData._New_player_unlocked_You_can_now_play_as_X = 'Вы отблокировали нового гонщика! Теперь вы можете играть как [x].';
break;
case 12:
as.LanguageData.CUP = 'PIALA';
as.LanguageData.EASY = 'MUDAH';
as.LanguageData.NORMAL = 'NORMAL';
as.LanguageData.HARD = 'SUKAR';
as.LanguageData.normal = 'normal';
as.LanguageData.hard = 'sukar';
as.LanguageData.Raccoon_City = 'Kota Binatang Serupa Kucing';
as.LanguageData.Pirate_Island = 'Pulau Bajak Laut';
as.LanguageData.North_Pole = 'Kutub Utara';
as.LanguageData.Hudsons_Harbor = 'Pelabuhan Hudson';
as.LanguageData.BEST_TIME = 'WAKTU TERBAIK';
as.LanguageData.LAP_TIME = 'WAKTU PUTARAN';
as.LanguageData.RACE_TIME = 'WAKTU BALAPAN';
as.LanguageData.CUP_TIME = 'WAKTU PIALA';
as.LanguageData.NEW_RECORD = 'REKOR BARU';
as.LanguageData.Cup_Time = 'Waktu piala';
as.LanguageData.The_trophy_is_yours = 'Piala tersebut adalah milik anda';
as.LanguageData.SOUND = 'SUARA';
as.LanguageData.ON = 'HIDUPKAN';
as.LanguageData.OFF = 'MATIKAN';
as.LanguageData.QUALITY = 'KUALITAS';
as.LanguageData.HIGH = 'TERBAIK';
as.LanguageData.MEDIUM = 'NORMAL';
as.LanguageData.LOW = 'BURUK';
as.LanguageData.WRONG_WAY = 'SALAH JALAN!';
as.LanguageData.TOTAL_TIME = 'TOTAL WAKTU';
as.LanguageData.FINAL_LAP = 'PUTARAN TERAKHIR';
as.LanguageData.Complete_normal_to_unlock = 'Lengkapi normal\nuntuk membuka';
as.LanguageData.Complete_easy_to_unlock = 'Lengkapi mudah\nuntuk membuka';
as.LanguageData.Mambo = 'Mambo';
as.LanguageData.Rocko = 'Rocko';
as.LanguageData.Vixen = 'Vixen';
as.LanguageData.Pingo = 'Pingo';
as.LanguageData.Hudson = 'Hudson';
as.LanguageData.Banzai = 'Banzai';
as.LanguageData.CUP_RECORD = 'Rekor piala';
as.LanguageData.Do_you_think_you_can_beat_your_own_score_again = 'Menurut anda, apakah anda bisa mengalahkan skor anda sekali lagi';
as.LanguageData.COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'LENGKAPI\nSEMUA PIALA\nDI NORMAL\nUNTUK\nMEMBUKA';
as.LanguageData.COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'LENGKAPI\nSEMUA PIALA\nDI MUDAH\nUNTUK\nMEMBUKA';
as.LanguageData.COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'LENGKAPI\nPIALA 1-6\nDI NORMAL\nUNTUK\nMEMBUKA';
as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'LENGKAPI\nPIALA [x]\nDI [y]\nUNTUK\nMEMBUKA';
as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'LENGKAPI\nPIALA [x]\nDI [y]\nUNTUK\nMEMBUKA';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK = 'LENGKAPI\nSEMUA PIALA\nDI NORMAL\nUNTUK MEMBUKA';
as.LanguageData.CUP_COMPLETE_All_CUPS_ON_EASY_TO_UNLOCK = 'LENGKAPI\nSEMUA PIALA\nDI MUDAH\nUNTUK MEMBUKA';
as.LanguageData.CUP_COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK = 'LENGKAPI\nPIALA 1-6\nDI NORMAL\nUNTUK MEMBUKA';
as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK = 'LENGKAPI\nPIALA [x]\nDI [y]\nUNTUK MEMBUKA';
as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK = 'LENGKAPI\nPIALA [x]\nDI [y]\nUNTUK MEMBUKA';
as.LanguageData._CUP_X = 'PIALA [x]';
as.LanguageData._CUP_X_Race_Y__Z_K = 'PIALA [x]\nBalapan [y] / [z]\n[k]';
as.LanguageData._Race_X__Y = 'Balapan [x] / [y]';
as.LanguageData._LAP_X_Y = 'PUTARAN: [x] / [y]';
as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode = 'Apakah anda juga bisa mengalahkan piala ini dalam mode [x]';
as.LanguageData._Cup_X_is_now_available_Good_luck = 'Piala [x] tersedia saat ini! Semoga beruntung.';
as.LanguageData._New_player_unlocked_You_can_now_play_as_X = 'Supir baru dibuka! Saat ini anda bisa bermain sebagai [x].';
break;
case 13:
}
};
v1.Race_X__Y = function (i, j) {
return as.LanguageData._Race_X__Y.substr(0, as.LanguageData._Race_X__Y.indexOf('[x]')) + i + as.LanguageData._Race_X__Y.substring(as.LanguageData._Race_X__Y.indexOf('[x]') + 3, as.LanguageData._Race_X__Y.indexOf('[y]')) + j + as.LanguageData._Race_X__Y.substr(as.LanguageData._Race_X__Y.indexOf('[y]') + 3);
};
v1.LAP_X_Y = function (i, j) {
return as.LanguageData._LAP_X_Y.substr(0, as.LanguageData._LAP_X_Y.indexOf('[x]')) + i + as.LanguageData._LAP_X_Y.substring(as.LanguageData._LAP_X_Y.indexOf('[x]') + 3, as.LanguageData._LAP_X_Y.indexOf('[y]')) + j + as.LanguageData._LAP_X_Y.substr(as.LanguageData._LAP_X_Y.indexOf('[y]') + 3);
};
v1.CUP_X = function (i) {
return as.LanguageData._CUP_X.substr(0, as.LanguageData._CUP_X.indexOf('[x]')) + i + as.LanguageData._CUP_X.substr(as.LanguageData._CUP_X.indexOf('[x]') + 3);
};
v1.COMPLETE_CUP_X_ON_Y_TO_UNLOCK = function (CupId, LevelString) {
if (CupId.length > 1) {
return as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK.substr(0, as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK.indexOf('[x]')) + CupId.toString() + as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK.substring(as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK.indexOf('[x]') + 3, as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK.indexOf('[y]')) + LevelString + as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK.substr(as.LanguageData._COMPLETE_CUP_X_ON_Y_TO_UNLOCK.indexOf('[y]') + 3);
} else {
return as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK.substr(0, as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK.indexOf('[x]')) + CupId.toString() + as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK.substring(as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK.indexOf('[x]') + 3, as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK.indexOf('[y]')) + LevelString + as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK.substr(as.LanguageData._COMPLETE_CUPS_X_ON_Y_TO_UNLOCK.indexOf('[y]') + 3);
}
};
v1.CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK = function (CupId, LevelString) {
if (CupId.length > 1) {
return as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK.substr(0, as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK.indexOf('[x]')) + CupId.toString() + as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK.substring(as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK.indexOf('[x]') + 3, as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK.indexOf('[y]')) + LevelString + as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK.substr(as.LanguageData._CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK.indexOf('[y]') + 3);
} else {
return as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK.substr(0, as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK.indexOf('[x]')) + CupId.toString() + as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK.substring(as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK.indexOf('[x]') + 3, as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK.indexOf('[y]')) + LevelString + as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK.substr(as.LanguageData._CUP_COMPLETE_CUPS_X_ON_Y_TO_UNLOCK.indexOf('[y]') + 3);
}
};
v1.CUP_X_Race_Y__Z_K = function (CupId, NowRace, TotalRace, LevelString) {
return as.LanguageData._CUP_X_Race_Y__Z_K.substr(0, as.LanguageData._CUP_X_Race_Y__Z_K.indexOf('[x]')) + CupId + as.LanguageData._CUP_X_Race_Y__Z_K.substring(as.LanguageData._CUP_X_Race_Y__Z_K.indexOf('[x]') + 3, as.LanguageData._CUP_X_Race_Y__Z_K.indexOf('[y]')) + NowRace + as.LanguageData._CUP_X_Race_Y__Z_K.substring(as.LanguageData._CUP_X_Race_Y__Z_K.indexOf('[y]') + 3, as.LanguageData._CUP_X_Race_Y__Z_K.indexOf('[z]')) + TotalRace + as.LanguageData._CUP_X_Race_Y__Z_K.substring(as.LanguageData._CUP_X_Race_Y__Z_K.indexOf('[z]') + 3, as.LanguageData._CUP_X_Race_Y__Z_K.indexOf('[k]')) + LevelString + as.LanguageData._CUP_X_Race_Y__Z_K.substr(as.LanguageData._CUP_X_Race_Y__Z_K.indexOf('[k]') + 3);
};
v1.Can_you_also_beat_this_cup_in_the_X_mode = function (LevelString) {
return as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode.substr(0, as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode.indexOf('[x]')) + LevelString + as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode.substr(as.LanguageData._Can_you_also_beat_this_cup_in_the_X_mode.indexOf('[x]') + 3);
};
v1.Cup_X_is_now_available_Good_luck = function (i) {
return as.LanguageData._Cup_X_is_now_available_Good_luck.substr(0, as.LanguageData._Cup_X_is_now_available_Good_luck.indexOf('[x]')) + i + as.LanguageData._Cup_X_is_now_available_Good_luck.substr(as.LanguageData._Cup_X_is_now_available_Good_luck.indexOf('[x]') + 3);
};
v1.New_player_unlocked_You_can_now_play_as_X = function (PlayerNameString) {
return as.LanguageData._New_player_unlocked_You_can_now_play_as_X.substr(0, as.LanguageData._New_player_unlocked_You_can_now_play_as_X.indexOf('[x]')) + PlayerNameString + as.LanguageData._New_player_unlocked_You_can_now_play_as_X.substr(as.LanguageData._New_player_unlocked_You_can_now_play_as_X.indexOf('[x]') + 3);
};
ASSetPropFlags(as.LanguageData.prototype, null, 1);
}
#endinitclip
}
movieClip 2413 __Packages.as.Sounds {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Sounds) {
var v1 = function (mc, SoundnameArr) {
this.dmc = mc.createEmptyMovieClip('sounds', 150);
this.sounds = new Array();
this.soundsmc = new Array();
var v4 = 0;
while (v4 < SoundnameArr.length) {
var v2 = SoundnameArr[v4];
var v3 = this.dmc.createEmptyMovieClip(v2, this.dmc.getNextHighestDepth());
v3.isPlaying = false;
var v5 = new Sound(v3);
v5.attachSound('snd_' + v2);
this.sounds[v2] = v5;
this.soundsmc[v2] = v3;
++v4;
}
as.Sounds.SoundsArr.push(this);
};
as.Sounds = v1;
var v2 = v1.prototype;
v2.PlaySound = function (soundName, Volume, StartPos, Panvalue) {
if (Volume == null) {
Volume = 100;
}
if (Volume == 0) {
this.StopSound(soundName);
return undefined;
}
if (StartPos == null) {
StartPos = 0;
}
if (Panvalue == null) {
Panvalue = 0;
}
if (as.Sounds.soundEnabled) {
var v3 = this.soundsmc[soundName];
v3.isPlaying = true;
v3.onEnterFrame = null;
var v2 = this.sounds[soundName];
v2.stop('snd_' + soundName);
v2.setVolume(Volume);
v2.setPan(Panvalue);
v2.start(StartPos, 1);
}
};
v2.PlayRepeatSound = function (soundName, Volume, StartPos, Panvalue) {
if (Volume == null) {
Volume = 100;
}
if (Volume == 0) {
this.StopSound(soundName);
return undefined;
}
if (StartPos == null) {
StartPos = 0;
}
if (Panvalue == null) {
Panvalue = 0;
}
if (as.Sounds.soundEnabled) {
var v3 = this.soundsmc[soundName];
v3.isPlaying = true;
v3.onEnterFrame = null;
var v2 = this.sounds[soundName];
v2.setVolume(Volume);
v2.setPan(Panvalue);
v2.start(StartPos, 1);
}
};
v2.getduration = function (soundName) {
var v2 = this.sounds[soundName];
return v2.duration;
};
v2.getposition = function (soundName) {
var v2 = this.sounds[soundName];
return v2.position;
};
v2.getIsPlaying = function (soundName) {
var v2 = this.soundsmc[soundName];
return v2.isPlaying;
};
v2.PlaykeepSound = function (soundName, Volume, StartPos, Panvalue) {
if (Volume == null) {
Volume = 100;
}
if (Volume == 0) {
this.StopSound(soundName);
return undefined;
}
if (StartPos == null) {
StartPos = 0;
}
if (Panvalue == null) {
Panvalue = 0;
}
if (as.Sounds.soundEnabled) {
var mc = this.soundsmc[soundName];
var v2 = this.sounds[soundName];
if (mc.isPlaying == false) {
mc.isPlaying = true;
mc.onEnterFrame = null;
v2.setVolume(Volume);
v2.setPan(Panvalue);
v2.start(StartPos, 1);
v2.onSoundComplete = function () {
mc.isPlaying = false;
};
} else {
v2.setVolume(Volume);
v2.setPan(Panvalue);
}
}
};
v2.StopSound = function (soundName) {
var v2 = this.sounds[soundName];
var v3 = this.soundsmc[soundName];
v2.stop('snd_' + soundName);
v3.isPlaying = false;
v2.onSoundComplete = null;
};
v2.getSoundVolume = function (soundName) {
var v2 = this.sounds[soundName];
return v2.getVolume();
};
v2.setSoundVolume = function (soundName, Volume) {
var v2 = this.sounds[soundName];
v2.setVolume(Volume);
};
v2.changeAllSoundVolumeAndPan = function (Volume, Panvalue) {
for (var v4 in this.sounds) {
var v2 = this.sounds[v4];
v2.setVolume(Volume);
v2.setPan(Panvalue);
}
};
v2.LoopSound = function (soundName, Volume, Panvalue) {
if (Volume == null) {
Volume = 100;
}
if (Volume == 0) {
this.StopSound(soundName);
return undefined;
}
if (Panvalue == null) {
Panvalue = 0;
}
if (as.Sounds.soundEnabled) {
var v2 = this.sounds[soundName];
var v4 = this.soundsmc[soundName];
if (!v4.isPlaying) {
v4.isPlaying = true;
v2.start(0, 999);
v2.setVolume(Volume);
v2.setPan(Panvalue);
} else {
v2.setVolume(Volume);
v2.setPan(Panvalue);
}
}
};
v2.StartMusic = function (musicName, Volume) {
if (Volume == null) {
Volume = 100;
}
this.FadeMusic();
if (as.Sounds.soundEnabled) {
var v4 = this.soundsmc[musicName];
v4.onEnterFrame = null;
var v2 = this.sounds[musicName];
v2.stop('snd_' + musicName);
v2.setVolume(Volume);
v2.start(0, 999);
}
this.currentMusicName = musicName;
};
v2.FadeMusic = function () {
if (this.currentMusicName != null) {
this.FadeVolume(this.currentMusicName, false, 5);
this.currentMusicName = null;
}
};
v1.ToggleSound = function () {
as.Sounds.soundEnabled = !as.Sounds.soundEnabled;
if (as.Sounds.soundEnabled) {
for (var v2 in as.Sounds.SoundsArr) {
if (as.Sounds.SoundsArr[v2].currentMusicName != null) {
as.Sounds.SoundsArr[v2].StartMusic(as.Sounds.SoundsArr[v2].currentMusicName);
}
}
return true;
} else {
for (var v3 in as.Sounds.SoundsArr) {
for (var v1 in as.Sounds.SoundsArr[v3].sounds) {
as.Sounds.SoundsArr[v3].FadeVolume(v1, false);
}
}
return false;
}
};
v2.FadeVolume = function (soundName, louder, speed, Volume) {
if (speed == null) {
speed = 3;
}
if (Volume == null) {
Volume = 100;
}
var snd = this.sounds[soundName];
var v2 = this.soundsmc[soundName];
if (louder) {
v2.onEnterFrame = function () {
snd.setVolume(snd.getVolume() + speed);
if (snd.getVolume() >= Volume - 1) {
snd.setVolume(Volume);
delete this.onEnterFrame;
}
};
} else {
v2.onEnterFrame = function () {
snd.setVolume(snd.getVolume() - speed);
if (snd.getVolume() <= 0) {
snd.stop('snd_' + soundName);
snd.setVolume(Volume);
this.isPlaying = false;
delete this.onEnterFrame;
}
};
}
};
v2.getsnd = function (soundName) {
return this.sounds[soundName];
};
v2.del = function () {
for (var v5 in this.sounds) {
var v3 = this.sounds[v5];
v3.setVolume(0);
v3.stop('snd_' + v5);
false;
v3 = null;
}
delete this.sounds;
this.sounds = null;
for (var v4 in this.soundsmc) {
var v2 = this.soundsmc[v4];
delete v2.onEnterFrame;
v2.removeMovieClip();
false;
v2 = null;
}
delete this.soundsmc;
this.soundsmc = null;
};
v1.SoundsArr = new Array();
v1.soundEnabled = true;
ASSetPropFlags(as.Sounds.prototype, null, 1);
}
#endinitclip
}
movieClip 2414 __Packages.as.UiManage {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.UiManage) {
var v1 = function (mc, game) {
this.game = game;
this.Dmc = mc;
this.UiManageOverScreen = this.Dmc._parent.createEmptyMovieClip('UiManageOverScreen', this.Dmc.getDepth() + 1);
this.UiOverMessageObject = new AsBroadcaster();
AsBroadcaster.initialize(this.UiOverMessageObject);
};
as.UiManage = v1;
var v2 = v1.prototype;
v2.ShowWinScreen = function () {
this.WinSrceenDmc = this.Dmc.attachMovie(this.WinSrceenLinkName, this.WinSrceenLinkName, this.Dmc.getNextHighestDepth());
this.WinSrceenDmc._x = 250;
this.WinSrceenDmc._y = 250;
var cerf = this;
this.WinSrceenDmc.onRelease = function () {
cerf.game.RaceOver();
cerf.DelGameUi();
cerf.game.RaceReady(0, 1, 0);
removeMovieClip(this);
};
};
v2.ShowUiHighScores = function (IsFromMainScreen) {
this.UiHighScoresDmc = this.Dmc.attachMovie(this.UiHighScoresLinkName, this.UiHighScoresLinkName, this.Dmc.getNextHighestDepth());
this.UiHighScoresDmc._x = _root.StageWidth / 2;
this.UiHighScoresDmc._y = _root.StageHeight / 2;
var v4 = 0;
while (v4 < 8) {
if (as.GameDate.HighScores[v4][0] == null) {
this.UiHighScoresDmc['easy' + v4].text = '-`--`--';
} else {
var v6 = as.GameDate.HighScores[v4][0];
var v7 = int(v6 / 60000);
var v3 = int((v6 - v7 * 60000) / 1000);
var v5 = int((v6 - v7 * 60000 - v3 * 1000) / 100);
this.UiHighScoresDmc['easy' + v4].text = v7 + '\'' + (v3 < 10 ? '0' + v3 : v3) + '\'' + (v5 < 10 ? '0' + v5 : v5);
}
if (as.GameDate.HighScores[v4][1] == null) {
this.UiHighScoresDmc['normal' + v4].text = '-`--`--';
} else {
v6 = as.GameDate.HighScores[v4][1];
v7 = int(v6 / 60000);
v3 = int((v6 - v7 * 60000) / 1000);
v5 = int((v6 - v7 * 60000 - v3 * 1000) / 100);
this.UiHighScoresDmc['normal' + v4].text = v7 + '\'' + (v3 < 10 ? '0' + v3 : v3) + '\'' + (v5 < 10 ? '0' + v5 : v5);
}
if (as.GameDate.HighScores[v4][2] == null) {
this.UiHighScoresDmc['hard' + v4].text = '-`--`--';
} else {
v6 = as.GameDate.HighScores[v4][2];
v7 = int(v6 / 60000);
v3 = int((v6 - v7 * 60000) / 1000);
v5 = int((v6 - v7 * 60000 - v3 * 1000) / 100);
this.UiHighScoresDmc['hard' + v4].text = v7 + '\'' + (v3 < 10 ? '0' + v3 : v3) + '\'' + (v5 < 10 ? '0' + v5 : v5);
}
++v4;
}
var cref = this;
this.UiHighScoresDmc.btn_back.onRollOver = function () {
cref.game.gameSounds.PlaySound('ButtonOver');
};
this.UiHighScoresDmc.btn_back.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
cref.DelUiHighScores();
cref.ShowUiMainMenu();
if (!IsFromMainScreen) {
cref.game.gameSounds.FadeMusic();
cref.game.gameSounds.StartMusic('mains');
}
};
};
v2.DelUiHighScores = function () {
this.UiHighScoresDmc.removeMovieClip();
};
v2.ShowUiScores = function () {
this.UiScoresDmc = this.Dmc.attachMovie(this.UiScoresLinkName, this.UiScoresLinkName, this.Dmc.getNextHighestDepth());
this.UiScoresDmc._x = _root.StageWidth / 2;
this.UiScoresDmc._y = _root.StageHeight / 2;
this.UiScoresDmc.firstRelease = true;
this.UiScoresDmc.CanSocresoListMove = true;
this.ScroceFaceListXYArr = new Array();
var v4 = 0;
while (v4 < 4) {
this.ScroceFaceListXYArr[v4] = new as.Vector(this.UiScoresDmc.factlist['group' + v4]._x, this.UiScoresDmc.factlist['group' + v4]._y);
++v4;
}
this.UiScoresDmc.txt_world.text = as.LanguageData[as.Map.MapSelectList[as.GameDate.GetMapId()]] + ' ' + as.LanguageData.Race_X__Y(as.GameDate.NowCupLevel + 1, as.GameDate.getTotalCupLevelNum());
var v14 = this.UiScoresDmc.txt_world._width / this.UiScoresDmc.txt_world.textWidth;
if (v14 > 1) {
v14 = 1;
}
var v15 = new TextFormat();
v15.size = 24 * v14;
this.UiScoresDmc.txt_world.setTextFormat(v15);
as.GameDate.RecordPoint.sortOn(new Array(3, 1, 0), new Array(Array.NUMERIC, Array.DESCENDING | Array.NUMERIC, Array.NUMERIC));
this.UiScoresDmc.scorestime.txtTime = as.LanguageData.RACE_TIME;
this.UiScoresDmc.scorestime.txtScores = as.LanguageData.CUP_TIME;
var v12 = as.GameDate.RecordTime;
var v13 = int(v12 / 60000);
var v10 = int((v12 - v13 * 60000) / 1000);
var v11 = int((v12 - v13 * 60000 - v10 * 1000) / 100);
this.UiScoresDmc.scorestime.time = v13 + '\'' + (v10 < 10 ? '0' + v10 : v10) + '\'' + (v11 < 10 ? '0' + v11 : v11);
var v7 = String(as.GameDate.NowTotalScores);
var v8 = 0;
while (v8 < 8 - v7.length) {
v7 = '0' + v7;
}
v12 = as.GameDate.RecordCUPTime;
v13 = int(v12 / 60000);
v10 = int((v12 - v13 * 60000) / 1000);
v11 = int((v12 - v13 * 60000 - v10 * 1000) / 100);
this.UiScoresDmc.scorestime.scores = v13 + '\'' + (v10 < 10 ? '0' + v10 : v10) + '\'' + (v11 < 10 ? '0' + v11 : v11);
var v5 = 0;
while (v5 < 4) {
var v3 = this.UiScoresDmc.factlist['group' + v5];
v3.Arrow._visible = false;
if (as.GameDate.RecordPoint[v5][0] == 0) {
v3.playerbgmc._visible = true;
} else {
v3.playerbgmc._visible = false;
}
v3.pic_head.gotoAndStop(as.GameDate.GetPlayerType(as.GameDate.RecordPoint[v5][0]) + 1);
v3.txt_name.text = as.LanguageData[as.Player.PlayerNameList[as.GameDate.GetPlayerType(as.GameDate.RecordPoint[v5][0])]];
v3.txt_score.Numallsorce = as.GameDate.RecordPoint[v5][1] - as.GameDate.RecordPoint[v5][2];
v3.txt_score.Numaddsorce = as.GameDate.RecordPoint[v5][2];
v3.txt_score.NumTotalsorce = as.GameDate.RecordPoint[v5][1];
as.Timer.AddTimer(this, 'UiScoresaddScoreEffect', 500 * v5, v5);
++v5;
}
var v9 = false;
as.GameDate.RecordPoint.sortOn(new Array(1, 0), new Array(Array.DESCENDING | Array.NUMERIC, Array.NUMERIC));
v5 = 0;
while (v5 < 4) {
var v6 = this.UiScoresDmc.factlist['group' + v5];
if (as.GameDate.RecordPoint[v5][3] == -1 || as.GameDate.RecordPoint[v5][3] == v5) {
v6.Arrow.gotoAndStop(3);
} else {
if (as.GameDate.RecordPoint[v5][3] > v5) {
v9 = true;
v6.Arrow.gotoAndStop(1);
} else {
v9 = true;
v6.Arrow.gotoAndStop(2);
}
}
++v5;
}
as.Timer.AddTimer(this, 'UiScoresaddScoreEffect', 2000, -1);
as.Timer.AddTimer(this, 'UiScoresaddScoreEffect', 3500, -3);
if (v9) {
as.Timer.AddTimer(this, 'UiScoresaddScoreEffect', 4500, -2);
} else {
as.Timer.AddTimer(this, 'UiScoresaddScoreEffect', 3500, -2);
}
var cref = this;
var keyListener = new Object();
Key.addListener(keyListener);
this.UiScoresDmc.btn_continue.onRollOver = function () {
cref.game.gameSounds.PlaySound('ButtonOver');
};
this.UiScoresDmc.btn_continue.onRelease = function () {
if (cref.UiScoresDmc.firstRelease) {
var v1 = 0;
while (v1 < 4) {
if (cref.UiScoresDmc.factlist['group' + v1].txt_score._currentframe != 4) {
cref.UiScoresDmc.factlist['group' + v1].txt_score.gotoAndStop(4);
}
++v1;
}
cref.UiScoresDmc.scorestime.gotoAndStop('End');
cref.UiScoresaddScoreEffect(new Array(-3, 0));
cref.UiScoresDmc.firstRelease = false;
} else {
cref.game.gameSounds.PlaySound('ButtonRelease');
cref.ShowUiOverScreen();
cref.UiOverMessageObject.addListener(cref.UiScoresDmc);
cref.UiScoresDmc.onUiOver = function () {
cref.UiOverMessageObject.removeListener(cref.UiScoresDmc);
cref.DelUiScores();
cref.game.NextRace();
};
Key.removeListener(keyListener);
}
};
keyListener.onKeyDown = function () {
if (Key.getCode() == 32) {
cref.UiScoresDmc.btn_continue.onRelease();
}
};
};
v2.UiScoresaddScoreEffect = function (SorceNum) {
if (SorceNum[0] == -3 && this.UiScoresDmc.firstRelease && this.UiScoresDmc.CanSocresoListMove) {
as.GameDate.RecordPoint.sortOn(new Array(1, 0), new Array(Array.DESCENDING | Array.NUMERIC, Array.NUMERIC));
var v2 = 0;
while (v2 < 4) {
if (as.GameDate.RecordPoint[v2][3] != v2) {
this.SocresoListGoto(as.GameDate.RecordPoint[v2][3], v2);
}
++v2;
}
this.UiScoresDmc.CanSocresoListMove = false;
}
if (SorceNum[0] == -1) {
var v3 = 0;
while (v3 < 4) {
if (this.UiScoresDmc.factlist['group' + v3].txt_score._currentframe != 4) {
this.UiScoresDmc.factlist['group' + v3].txt_score.gotoAndStop(3);
}
++v3;
}
return undefined;
}
if (SorceNum[0] == -2) {
if (this.UiScoresDmc.scorestime._currentframe == 1) {
this.UiScoresDmc.firstRelease = false;
this.UiScoresDmc.scorestime.gotoAndPlay(2);
}
}
if (this.UiScoresDmc.factlist['group' + SorceNum[0]].txt_score._currentframe != 4) {
this.UiScoresDmc.factlist['group' + SorceNum[0]].txt_score.gotoAndStop(2);
}
};
v2.DelUiScores = function () {
this.UiScoresDmc.removeMovieClip();
};
v2.ShowUIgameover = function () {
this.UIgameoverDmc = this.Dmc.attachMovie(this.UIgameoverLinkName, this.UIgameoverLinkName, this.Dmc.getNextHighestDepth());
this.UIgameoverDmc._x = _root.StageWidth / 2;
this.UIgameoverDmc._y = _root.StageHeight / 2;
var cref = this;
this.UIgameoverDmc.btn_continue.onRollOver = function () {
cref.game.gameSounds.PlaySound('ButtonOver');
};
this.UIgameoverDmc.btn_continue.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
cref.DelUIgameover();
cref.ShowUiHighScores();
};
};
v2.DelUIgameover = function () {
this.UIgameoverDmc.removeMovieClip();
};
v2.ShowUIcupcompleted = function () {
this.UIcupcompletedDmc = this.Dmc.attachMovie(this.UIcupcompletedLinkName, this.UIcupcompletedLinkName, this.Dmc.getNextHighestDepth());
this.UIcupcompletedDmc.txt_1.wordWrap = true;
this.UIcupcompletedDmc.txt_2.wordWrap = true;
this.UIcupcompletedDmc.txt_3.wordWrap = true;
var cref = this;
var v8 = as.GameDate.RecordCUPTime;
var v9 = int(v8 / 60000);
var v6 = int((v8 - v9 * 60000) / 1000);
var v7 = int((v8 - v9 * 60000 - v6 * 1000) / 100);
this.UIcupcompletedDmc.txt_time2.text = as.LanguageData.Cup_Time + ': ' + v9 + '\'' + (v6 < 10 ? '0' + v6 : v6) + '\'' + (v7 < 10 ? '0' + v7 : v7);
this.UIcupcompletedDmc.txt_time.text = this.UIcupcompletedDmc.txt_time2.text;
this.UIcupcompletedDmc.newRecord = as.LanguageData.NEW_RECORD + '!';
this.UIcupcompletedDmc.trophytxt = as.LanguageData.The_trophy_is_yours + '!';
if (as.GameDate.NewCupTimeRecord != null) {
this.UIcupcompletedDmc.txt_time._visible = true;
this.UIcupcompletedDmc.txt_time2._visible = false;
} else {
this.UIcupcompletedDmc.txt_time2._visible = true;
this.UIcupcompletedDmc.txt_time._visible = false;
this.UIcupcompletedDmc.txt_newRecord._visible = false;
}
if (as.GameDate.NowWinCup[as.GameDate.SelectCapId] <= 1) {
this.UIcupcompletedDmc.txt_1.text = as.LanguageData.Can_you_also_beat_this_cup_in_the_X_mode(as.LanguageData.normal) + '?';
} else {
if (as.GameDate.NowWinCup[as.GameDate.SelectCapId] <= 3) {
this.UIcupcompletedDmc.txt_1.text = as.LanguageData.Can_you_also_beat_this_cup_in_the_X_mode(as.LanguageData.hard) + '?';
} else {
if (as.GameDate.NowWinCup[as.GameDate.SelectCapId] <= 7) {
this.UIcupcompletedDmc.txt_1.text = as.LanguageData.Do_you_think_you_can_beat_your_own_score_again + '?';
} else {}
}
}
var v5 = null;
var v2 = 0;
while (v2 < as.GameDate.UnLockCup.length) {
var v4 = 0;
while (v4 < as.GameDate.UnLockCup[v2][0].length) {
if (as.GameDate.UnLockCup[v2][0][v4] > as.GameDate.NoCupFinishRecord[v4]) {
var v3 = 0;
while (v3 < as.GameDate.UnLockCup[v2][0].length) {
if (as.GameDate.UnLockCup[v2][0][v3] > as.GameDate.NowWinCup[v3]) {
break;
}
++v3;
}
if (v3 >= as.GameDate.UnLockCup[v2][0].length) {
v5 = v2;
}
break;
}
++v4;
}
++v2;
}
if (v5 != null) {
this.UIcupcompletedDmc.txt_2.text = as.LanguageData.Cup_X_is_now_available_Good_luck(v5 + 1) + '!';
} else {
this.UIcupcompletedDmc.txt_2._visible = false;
}
v5 = null;
v2 = 0;
while (v2 < as.GameDate.UnLockCharactor.length) {
v4 = 0;
while (v4 < as.GameDate.UnLockCharactor[v2].length) {
if (as.GameDate.UnLockCharactor[v2][v4] > as.GameDate.NoCupFinishRecord[v4]) {
v3 = 0;
while (v3 < as.GameDate.UnLockCharactor[v2].length) {
if (as.GameDate.UnLockCharactor[v2][v3] > as.GameDate.NowWinCup[v3]) {
break;
}
++v3;
}
if (v3 >= as.GameDate.UnLockCharactor[v2].length) {
v5 = v2;
}
break;
}
++v4;
}
++v2;
}
if (v5 != null) {
this.UIcupcompletedDmc.txt_3.text = as.LanguageData.New_player_unlocked_You_can_now_play_as_X(as.LanguageData[as.Player.PlayerNameList[v5]]) + '!';
this.UIcupcompletedDmc.CFace.gotoAndStop(v5 + 1);
} else {
this.UIcupcompletedDmc.txt_3._visible = false;
this.UIcupcompletedDmc.CFace._visible = false;
}
this.UIcupcompletedDmc.btn_continue.onRollOver = function () {
cref.game.gameSounds.PlaySound('ButtonOver');
};
this.UIcupcompletedDmc.btn_continue.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
cref.game.gameSounds.FadeVolume('computercup', false, 1);
cref.DelUIcupcompleted();
cref.ShowUiHighScores();
};
};
v2.DelUIcupcompleted = function () {
this.UIcupcompletedDmc.removeMovieClip();
};
v2.ShowUiSelectPlayer = function () {
this.UiSelectPlayerDmc = this.Dmc.attachMovie(this.UiSelectPlayerLinkName, this.UiSelectPlayerLinkName, this.Dmc.getNextHighestDepth());
var cref = this;
this.UiSelectPlayerDmc.onUseBtn = function () {
this.btn_back.onRollOver = function () {
cref.game.gameSounds.PlaySound('ButtonOver');
};
this.btn_back.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
cref.DelUiSelectPlayer();
cref.ShowUiMainMenu();
};
var v2 = 0;
while (v2 < 6) {
this['player' + v2].id = v2;
if (as.GameDate.CheckCharactorLock(v2)) {
this['player' + v2].Lock = true;
this['player' + v2].gotoAndStop(3);
var v5 = new Array();
var v4;
var v3 = 0;
while (v3 < as.GameDate.UnLockCharactor[v2].length) {
if (as.GameDate.UnLockCharactor[v2][v3] != 0) {
v5.push(v3 + 1);
if (as.GameDate.UnLockCharactor[v2][v3] == 1) {
v4 = as.LanguageData.EASY;
}
if (as.GameDate.UnLockCharactor[v2][v3] == 2) {
v4 = as.LanguageData.NORMAL;
}
if (as.GameDate.UnLockCharactor[v2][v3] == 4) {
v4 = as.LanguageData.HARD;
}
}
++v3;
}
if (v2 == 5) {
this['player' + v2].unlock_txt = as.LanguageData.COMPLETE_All_CUPS_ON_NORMAL_TO_UNLOCK;
} else {
this['player' + v2].unlock_txt = as.LanguageData.COMPLETE_CUP_X_ON_Y_TO_UNLOCK(v5, v4);
}
} else {
this['player' + v2].Lock = false;
}
this['player' + v2].onRollOver = function () {
cref.game.gameSounds.PlaySound('ButtonOver');
if (this.Lock) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(2);
}
};
this['player' + v2].onRollOut = function () {
if (this.Lock) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
};
this['player' + v2].onRelease = function () {
if (!this.Lock) {
cref.game.gameSounds.PlaySound('ButtonRelease');
as.GameDate.SelectPlayerId = this.id;
cref.ShowUiOverScreen();
cref.UiOverMessageObject.addListener(cref.UiSelectPlayerDmc);
cref.UiSelectPlayerDmc.onUiOver = function () {
cref.UiOverMessageObject.removeListener(cref.UiSelectPlayerDmc);
cref.DelUiSelectPlayer();
cref.ShowUicup();
};
} else {
cref.game.gameSounds.PlaySound('ButtonWarning');
}
};
++v2;
}
};
};
v2.ShowUicup = function () {
this.UicupDmc = this.Dmc.attachMovie(this.UicupLinkName, this.UicupLinkName, this.Dmc.getNextHighestDepth());
this.UicupDmc._x = _root.StageWidth / 2;
this.UicupDmc._y = _root.StageHeight / 2;
this.UicupDmc.selectlevel._visible = false;
this.UicupDmc.selectlevel.btn_select.level2locktxt = as.LanguageData.Complete_easy_to_unlock;
this.UicupDmc.selectlevel.btn_select.level4locktxt = as.LanguageData.Complete_normal_to_unlock;
this.UicupDmc.selectlevel.btn_select.cuprc1 = '';
this.UicupDmc.selectlevel.btn_select.cuprc2 = '';
this.UicupDmc.selectlevel.btn_select.cuprc3 = '';
var cref = this;
this.UicupDmc.onSelectLevel = function (level) {
if (cref.UicupDmc.selectlevel.btn_select.levelt + 1 >= level) {
cref.game.gameSounds.PlaySound('ButtonRelease');
} else {
cref.game.gameSounds.PlaySound('ButtonWarning');
return undefined;
}
as.GameDate.SelectLevelId = level - 1;
cref.ShowUiOverScreen();
cref.UiOverMessageObject.addListener(cref.UicupDmc);
cref.UicupDmc.onUiOver = function () {
cref.UiOverMessageObject.removeListener(cref.UicupDmc);
cref.DelUicup();
cref.game.StartCup();
};
};
this.UicupDmc.selectlevel.btn_back.onRollOver = function () {
cref.game.gameSounds.PlaySound('ButtonOver');
};
this.UicupDmc.selectlevel.btn_back.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
cref.UicupDmc.selectlevel._visible = false;
};
this.UicupDmc.btn_back.onRollOver = function () {
cref.game.gameSounds.PlaySound('ButtonOver');
};
this.UicupDmc.btn_back.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
cref.DelUicup();
cref.ShowUiSelectPlayer();
};
var v3 = 0;
while (v3 < 8) {
this.UicupDmc['cup' + v3].id = v3;
this.UicupDmc['cup' + v3].cup.mapselect.gotoAndStop(as.GameDate.CupEditArr[v3][0][0] + 1);
var v11 = (as.GameDate.CupEditArr[v3][0][0] % 2 == 0) ? 1 : 2;
var v9 = 1;
while (v9 < as.GameDate.CupEditArr[v3].length) {
if (v11 != (as.GameDate.CupEditArr[v3][v9][0] % 2 == 0) ? 1 : 2) {
v11 = 3;
}
++v9;
}
this.UicupDmc['cup' + v3].cup.carselect.gotoAndStop(v11);
this.UicupDmc['cup' + v3].cup.cup_txt.text = as.LanguageData.CUP_X(v3 + 1);
this.UicupDmc['cup' + v3].cup.cup_txt.autoSize = 'right';
if (as.GameDate.NowWinCup[v3] == 1 || as.GameDate.NowWinCup[v3] == 3 || as.GameDate.NowWinCup[v3] == 5 || as.GameDate.NowWinCup[v3] == 7) {
this.UicupDmc['cup' + v3].cup.level1._visible = true;
} else {
this.UicupDmc['cup' + v3].cup.level1._visible = false;
}
if (as.GameDate.NowWinCup[v3] == 2 || as.GameDate.NowWinCup[v3] == 3 || as.GameDate.NowWinCup[v3] == 6 || as.GameDate.NowWinCup[v3] == 7) {
this.UicupDmc['cup' + v3].cup.level2._visible = true;
} else {
this.UicupDmc['cup' + v3].cup.level2._visible = false;
}
if (as.GameDate.NowWinCup[v3] >= 4) {
this.UicupDmc['cup' + v3].cup.level4._visible = true;
} else {
this.UicupDmc['cup' + v3].cup.level4._visible = false;
}
if (as.GameDate.CheckCupLock(v3)) {
this.UicupDmc['cup' + v3].Lock = true;
this.UicupDmc['cup' + v3].gotoAndStop(3);
var v12 = new Array();
var v10;
var v4 = 0;
while (v4 < as.GameDate.UnLockCup[v3][0].length) {
if (as.GameDate.UnLockCup[v3][0][v4] != 0) {
v12.push(v4 + 1);
if (as.GameDate.UnLockCup[v3][0][v4] == 1) {
v10 = as.LanguageData.EASY;
}
if (as.GameDate.UnLockCup[v3][0][v4] == 2) {
v10 = as.LanguageData.NORMAL;
}
if (as.GameDate.UnLockCup[v3][0][v4] == 4) {
v10 = as.LanguageData.HARD;
}
}
++v4;
}
if (v3 == 6) {
this.UicupDmc['cup' + v3].unlock_txt = as.LanguageData.CUP_COMPLETE_CUPS_1_6_ON_NORMAL_TO_UNLOCK;
} else {
this.UicupDmc['cup' + v3].unlock_txt = as.LanguageData.CUP_COMPLETE_CUP_X_ON_Y_TO_UNLOCK(v12, v10);
}
} else {
this.UicupDmc['cup' + v3].Lock = false;
}
this.UicupDmc['cup' + v3].onRollOver = function () {
cref.game.gameSounds.PlaySound('ButtonOver');
if (this.Lock) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(2);
}
};
this.UicupDmc['cup' + v3].onRollOut = function () {
if (this.Lock) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
};
this.UicupDmc['cup' + v3].onRelease = function () {
if (!this.Lock) {
cref.game.gameSounds.PlaySound('ButtonRelease');
as.GameDate.SelectCapId = this.id;
cref.UicupDmc.selectlevel.btn_select.levelt = as.GameDate.NowWinCup[this.id];
if (as.GameDate.HighScores[this.id][0] != null) {
var v4 = as.GameDate.HighScores[this.id][0];
var v5 = int(v4 / 60000);
var v2 = int((v4 - v5 * 60000) / 1000);
var v3 = int((v4 - v5 * 60000 - v2 * 1000) / 100);
cref.UicupDmc.selectlevel.btn_select.cuprc1 = as.LanguageData.CUP_RECORD + ': ' + v5 + '\'' + (v2 < 10 ? '0' + v2 : v2) + '\'' + (v3 < 10 ? '0' + v3 : v3);
} else {
cref.UicupDmc.selectlevel.btn_select.cuprc1 = as.LanguageData.CUP_RECORD + ': ' + '--:--:--';
}
if (as.GameDate.HighScores[this.id][1] != null) {
var v4 = as.GameDate.HighScores[this.id][1];
var v5 = int(v4 / 60000);
var v2 = int((v4 - v5 * 60000) / 1000);
var v3 = int((v4 - v5 * 60000 - v2 * 1000) / 100);
cref.UicupDmc.selectlevel.btn_select.cuprc2 = as.LanguageData.CUP_RECORD + ': ' + v5 + '\'' + (v2 < 10 ? '0' + v2 : v2) + '\'' + (v3 < 10 ? '0' + v3 : v3);
} else {
cref.UicupDmc.selectlevel.btn_select.cuprc2 = as.LanguageData.CUP_RECORD + ': ' + '--:--:--';
}
if (as.GameDate.HighScores[this.id][2] != null) {
var v4 = as.GameDate.HighScores[this.id][2];
var v5 = int(v4 / 60000);
var v2 = int((v4 - v5 * 60000) / 1000);
var v3 = int((v4 - v5 * 60000 - v2 * 1000) / 100);
cref.UicupDmc.selectlevel.btn_select.cuprc3 = as.LanguageData.CUP_RECORD + ': ' + v5 + '\'' + (v2 < 10 ? '0' + v2 : v2) + '\'' + (v3 < 10 ? '0' + v3 : v3);
} else {
cref.UicupDmc.selectlevel.btn_select.cuprc3 = as.LanguageData.CUP_RECORD + ': ' + '--:--:--';
}
cref.UicupDmc.selectlevel._visible = true;
} else {
cref.game.gameSounds.PlaySound('ButtonWarning');
}
};
++v3;
}
};
v2.DelUicup = function () {
this.UicupDmc.removeMovieClip();
};
v2.DelUiSelectPlayer = function () {
this.UiSelectPlayerDmc.removeMovieClip();
};
v2.ShowUiOverScreen = function () {
this.UiOverScreenDmc = this.UiManageOverScreen.attachMovie(this.UiOverScreenLinkName, this.UiOverScreenLinkName, this.UiManageOverScreen.getNextHighestDepth());
var cerf = this;
this.UiOverScreenDmc.onOverScreen = function () {
cerf.UiOverMessageObject.broadcastMessage('onUiOver');
};
};
v2.DelUiOverScreen = function () {
this.UiOverScreenDmc.removeMovieClip();
};
v2.ShowUIhowtoplay = function () {
this.UIhowtoplayDmc = this.Dmc.attachMovie(this.UIhowtoplayLinkName, this.UIhowtoplayLinkName, this.Dmc.getNextHighestDepth());
this.UIhowtoplayDmc._x = _root.StageWidth / 2;
this.UIhowtoplayDmc._y = _root.StageHeight / 2;
var cref = this;
this.UIhowtoplayDmc.btn_back.onRollOver = function () {
cref.game.gameSounds.PlaySound('ButtonOver');
};
this.UIhowtoplayDmc.btn_back.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
cref.DelUIhowtoplay();
cref.ShowUiMainMenu();
};
this.UIhowtoplayDmc.btn_moregames.onRollOver = function () {
cref.game.gameSounds.PlaySound('ButtonOver');
};
this.UIhowtoplayDmc.btn_moregames.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
_root.getURL(_root.moregameslink, '_blank');
};
};
v2.DelUIhowtoplay = function () {
this.UIhowtoplayDmc.removeMovieClip();
};
v2.ShowUIMapLoading = function () {
this.UIMapLoadingDmc = this.Dmc.attachMovie(this.UIMapLoadingLinkName, this.UIMapLoadingLinkName, this.Dmc.getNextHighestDepth());
};
v2.DelUIMapLoading = function () {
this.UIMapLoadingDmc.removeMovieClip();
};
v2.ShowUiMainMenu = function () {
this.UIMainMenuDmc = this.Dmc.attachMovie(this.UIMainMenuLinkName, this.UIMainMenuLinkName, this.Dmc.getNextHighestDepth());
this.UIMainMenuDmc._x = _root.StageWidth / 2;
this.UIMainMenuDmc._y = _root.StageHeight / 2;
this.UIMainMenuDmc.btn_quality.txt.autoSize = 'left';
var cref = this;
var BtnId;
this.UIMainMenuDmc.onUseBtn = function () {
this.btn_quality.onRollOver = function () {
cref.game.gameSounds.PlaySound('ButtonOver');
};
this.btn_sound.onRollOver = this.btn_quality.onRollOver;
this.btn_freegames.onRollOver = this.btn_quality.onRollOver;
this.btn_moregames.onRollOver = this.btn_quality.onRollOver;
this.btn_highscores.onRollOver = this.btn_quality.onRollOver;
this.btn_how2play.onRollOver = this.btn_quality.onRollOver;
this.btn_start.onRollOver = this.btn_quality.onRollOver;
this.btn_start.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
BtnId = 1;
this._parent.play();
};
this.btn_how2play.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
BtnId = 2;
this._parent.play();
};
this.btn_highscores.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
BtnId = 3;
this._parent.play();
};
this.btn_moregames.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
_root.getURL(_root.moregameslink, '_blank');
};
this.btn_freegames.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
_root.getURL(_root.freegameslink, '_blank');
};
this.btn_logo.onRelease = function () {
_root.getURL(_root.logolink, '_blank');
};
this.btn_sound.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
if (as.Sounds.ToggleSound()) {
this.txt.text = as.LanguageData.SOUND + ':' + as.LanguageData.ON;
} else {
this.txt.text = as.LanguageData.SOUND + ':' + as.LanguageData.OFF;
}
};
this.btn_quality.onRelease = function () {
cref.game.gameSounds.PlaySound('ButtonRelease');
if (_quality == 'HIGH') {
_quality = 'LOW';
} else {
if (_quality == 'MEDIUM') {
_quality = 'HIGH';
} else {
if (_quality == 'LOW') {
_quality = 'MEDIUM';
}
}
}
this.txt.text = as.LanguageData.QUALITY + ':' + as.LanguageData[_quality];
this._parent.btn_sound._x = this._x + this.txt.textWidth + 10;
};
this.btn_quality.txt.text = as.LanguageData.QUALITY + ':' + as.LanguageData[_quality];
if (as.Sounds.soundEnabled) {
this.btn_sound.txt.text = as.LanguageData.SOUND + ':' + as.LanguageData.ON;
} else {
this.btn_sound.txt.text = as.LanguageData.SOUND + ':' + as.LanguageData.OFF;
}
this.btn_sound._x = this.btn_quality._x + this.btn_quality.txt.textWidth + 10;
};
this.UIMainMenuDmc.onUnload = function () {
if (BtnId == 1) {
cref.ShowUiSelectPlayer();
}
if (BtnId == 2) {
cref.ShowUIhowtoplay();
}
if (BtnId == 3) {
cref.ShowUiHighScores(true);
}
};
};
v2.DelUiMainMenu = function () {
this.UIMainMenuDmc.removeMovieClip();
};
v2.ShowMainScreen = function () {
this.MainSrceenDmc = this.Dmc.attachMovie(this.MainSrceenLinkName, this.MainSrceenLinkName, this.Dmc.getNextHighestDepth());
var SelectedCar = 0;
var RaceId = 1;
var cref = this;
var v2 = 1;
while (v2 < 7) {
this.MainSrceenDmc['Car' + v2].id = v2;
this.MainSrceenDmc['Car' + v2].onPress = function () {
SelectedCar = this.id - 1;
};
++v2;
}
this.MainSrceenDmc.map1.onPress = function () {
RaceId = 1;
cref.game.RaceReady(0, RaceId, SelectedCar);
removeMovieClip(this._parent);
};
this.MainSrceenDmc.map2.onPress = function () {
RaceId = 2;
cref.game.RaceReady(0, RaceId, SelectedCar);
removeMovieClip(this._parent);
};
this.MainSrceenDmc.map3.onPress = function () {
RaceId = 1;
cref.game.RaceReady(1, RaceId, SelectedCar);
removeMovieClip(this._parent);
};
this.MainSrceenDmc.map4.onPress = function () {
RaceId = 2;
cref.game.RaceReady(1, RaceId, SelectedCar);
removeMovieClip(this._parent);
};
this.MainSrceenDmc.map5.onPress = function () {
RaceId = 1;
cref.game.RaceReady(2, RaceId, SelectedCar);
removeMovieClip(this._parent);
};
this.MainSrceenDmc.map6.onPress = function () {
RaceId = 2;
cref.game.RaceReady(2, RaceId, SelectedCar);
removeMovieClip(this._parent);
};
this.MainSrceenDmc.map7.onPress = function () {
RaceId = 1;
cref.game.RaceReady(3, RaceId, SelectedCar);
removeMovieClip(this._parent);
};
this.MainSrceenDmc.map8.onPress = function () {
RaceId = 2;
cref.game.RaceReady(3, RaceId, SelectedCar);
removeMovieClip(this._parent);
};
};
v2.DelMainScreen = function () {
this.MainSrceenDmc.removeMovieClip();
};
v2.ShowGameUi = function () {
this.GameUiDmc = this.Dmc.attachMovie(this.GameUiLinkName, this.GameUiLinkName, this.Dmc.getNextHighestDepth());
this.GameUiDmc.propbox.propbox.gotoAndStop(10);
this.GameUiDmc.pp.removeMovieClip();
this.GameUiDmc.txtTime1.text = as.LanguageData.TOTAL_TIME + ': -:--:--';
this.GameUiDmc.txtTime2.text = as.LanguageData.LAP_TIME + ': -:--:--' + '\n' + as.LanguageData.BEST_TIME + ': -:--:--';
};
v2.DelGameUi = function () {
this.GameUiDmc.removeMovieClip();
};
v2.GetViewMap = function () {
return this.GameUiDmc.view;
};
v2.HighGameUi = function () {
this.GameUiDmc._visible = !this.GameUiDmc._visible;
};
v2.run = function () {
this.UpdateCarSpeed();
this.UpdateRaceTime();
this.UpdateResult();
this.UpdateLap();
this.runpropmove();
};
v2.StartRecordTime = function () {
var v2 = new Date();
this.RaceStartTime = v2.getTime();
this.RaceLapStartTime = this.RaceStartTime;
this.RaceBestTime = null;
this.StringRaceLapStartTime = '-:--:--';
this.StringRaceBestTime = '-:--:--';
};
v2.ClearLapRecordTime = function () {
var v5 = new Date();
if (this.RaceBestTime == null || this.RaceBestTime > v5.getTime() - this.RaceLapStartTime) {
this.RaceBestTime = v5.getTime() - this.RaceLapStartTime;
var v4 = this.RaceBestTime;
var v6 = int(v4 / 60000);
var v2 = int((v4 - v6 * 60000) / 1000);
var v3 = int((v4 - v6 * 60000 - v2 * 1000) / 100);
this.StringRaceBestTime = v6 + ':' + (v2 < 10 ? '0' + v2 : v2) + ':' + (v3 < 10 ? '0' + v3 : v3);
}
this.RaceLapStartTime = v5.getTime();
};
v2.UpdateCarSpeed = function () {
if (this.GameUiDmc) {
this.GameUiDmc.SpeedMap.SpeedMapTxt.text = int(this.game.FcsCar.Speed.getLength() * 10);
this.GameUiDmc.SpeedMap.SpeedMapShow.gotoAndStop(int(this.game.FcsCar.Speed.getLength() / 3) + 1);
}
};
v2.UpdateRaceTime = function () {
if (this.GameUiDmc && this.RaceStartTime) {
var v7 = new Date();
var v6 = v7.getTime() - this.RaceStartTime;
var v4 = v6;
var v5 = int(v4 / 60000);
var v2 = int((v4 - v5 * 60000) / 1000);
var v3 = int((v4 - v5 * 60000 - v2 * 1000) / 100);
this.GameUiDmc.txtTime1.text = as.LanguageData.TOTAL_TIME + ': ' + v5 + ':' + (v2 < 10 ? '0' + v2 : v2) + ':' + (v3 < 10 ? '0' + v3 : v3);
v6 = v7.getTime() - this.RaceLapStartTime;
if (v6 > 3000 || this.game.Players[0].Laps == 1) {
v4 = v6;
v5 = int(v4 / 60000);
v2 = int((v4 - v5 * 60000) / 1000);
v3 = int((v4 - v5 * 60000 - v2 * 1000) / 100);
this.StringRaceLapStartTime = v5 + ':' + (v2 < 10 ? '0' + v2 : v2) + ':' + (v3 < 10 ? '0' + v3 : v3);
}
this.GameUiDmc.txtTime2.text = as.LanguageData.LAP_TIME + ': ' + this.StringRaceLapStartTime + '\n' + as.LanguageData.BEST_TIME + ': ' + this.StringRaceBestTime;
}
};
v2.UpdateLap = function () {
if (this.GameUiDmc) {
var v4 = this.game.Players[0].Laps;
if (v4 > this.game.map.LapsTotal) {
v4 = this.game.map.LapsTotal;
}
this.GameUiDmc.txtLaps.text = as.LanguageData.LAP_X_Y(this.game.Players[0].Laps, this.game.map.LapsTotal);
var v2 = this.GameUiDmc.txtLaps._width / this.GameUiDmc.txtLaps.textWidth;
if (v2 > 1) {
v2 = 1;
}
var v3 = new TextFormat();
v3.size = 20 * v2;
this.GameUiDmc.txtLaps.setTextFormat(v3);
}
};
v2.InitTopList = function () {
this.IsTopListChange = false;
this.TopListOrderInfo = new Array();
this.TopListXYArr = new Array();
var v2 = 0;
while (v2 < this.game.Players.length) {
this.TopListXYArr[this.game.Players[v2].Id] = new as.Vector(this.GameUiDmc.TopList['Top' + this.game.Players[v2].Id]._x, this.GameUiDmc.TopList['Top' + this.game.Players[v2].Id]._y);
this.GameUiDmc.TopList['Top' + this.game.Players[v2].Id].gotoAndStop(this.game.Players[v2].PlayerType + 1);
this.TopListOrderInfo.push(this.game.Players[v2].Id);
this.GameUiDmc.TopList['Top' + this.game.Players[v2]].swapDepths(100 - v2);
++v2;
}
};
v2.UpdateResult = function () {
if (this.GameUiDmc) {
if (!this.IsTopListChange) {
var v3 = 0;
while (v3 < this.TopListOrderInfo.length) {
var v2 = 0;
while (v2 < this.game.OrderInfo.length) {
if (this.TopListOrderInfo[v3] == this.game.OrderInfo[v2][1] && v3 != v2) {
this.IsTopListChange = true;
this.TopListGoto(this.TopListOrderInfo[v3], v2);
}
++v2;
}
this.TopListOrderInfo[v3] = this.game.OrderInfo[v3][1];
++v3;
}
}
}
};
v2.SocresoListGoto = function (i, j) {
this.UiScoresDmc.factlist['group' + i].StepY = (this.ScroceFaceListXYArr[j].y - this.UiScoresDmc.factlist['group' + i]._y) / 15;
this.UiScoresDmc.factlist['group' + i].StepX = (this.ScroceFaceListXYArr[j].x - this.UiScoresDmc.factlist['group' + i]._x) / 15;
this.UiScoresDmc.factlist['group' + i].gotoY = this.ScroceFaceListXYArr[j].y;
this.UiScoresDmc.factlist['group' + i].gotoX = this.ScroceFaceListXYArr[j].x;
this.UiScoresDmc.factlist['group' + i].swapDepths(100 - j);
this.UiScoresDmc.factlist['group' + i].SetBack = this;
this.UiScoresDmc.factlist['group' + i].Stepi = 0;
this.UiScoresDmc.factlist['group' + i].onEnterFrame = function () {
++this.Stepi;
var v2 = (7 - Math.abs(7 - this.Stepi)) * 2;
if (this.StepY > 0) {
this._xscale = 100 - v2;
this._yscale = 100 - v2;
} else {
this._xscale = 100 + v2;
this._yscale = 100 + v2;
}
this._y += this.StepY;
this._x += this.StepX;
if (Math.abs(this._y - this.gotoY) < Math.abs(this.StepY)) {
this._y = this.gotoY;
this._x = this.gotoX;
this._xscale = 100;
this._yscale = 100;
this.SetBack.IsTopListChange = false;
delete this.onEnterFrame;
}
};
};
v2.TopListGoto = function (i, j) {
this.GameUiDmc.TopList['Top' + i].StepY = (this.TopListXYArr[j].y - this.GameUiDmc.TopList['Top' + i]._y) / 15;
this.GameUiDmc.TopList['Top' + i].gotoY = this.TopListXYArr[j].y;
this.GameUiDmc.TopList['Top' + i].swapDepths(100 - j);
this.GameUiDmc.TopList['Top' + i].SetBack = this;
this.GameUiDmc.TopList['Top' + i].Stepi = 0;
this.GameUiDmc.TopList['Top' + i].onEnterFrame = function () {
var v2 = 0.8;
if (this._name.charAt(3) == '0') {
v2 = 1;
}
++this.Stepi;
var v3 = (7 - Math.abs(7 - this.Stepi)) * 2;
if (this.StepY > 0) {
this._xscale = (100 - v3) * v2;
this._yscale = (100 - v3) * v2;
} else {
this._xscale = (100 + v3) * v2;
this._yscale = (100 + v3) * v2;
}
this._y += this.StepY;
if (Math.abs(this._y - this.gotoY) < Math.abs(this.StepY)) {
this._y = this.gotoY;
this._xscale = 100 * v2;
this._yscale = 100 * v2;
this.SetBack.IsTopListChange = false;
delete this.onEnterFrame;
}
};
};
v2.propmove = function (x, y) {
this.propmovemc.removeMovieClip();
delete this.propmovemc.onUnload;
this.propmovemc = this.GameUiDmc.attachMovie('prop_move', 'prop_move', this.GameUiDmc.getNextHighestDepth());
this.propmovemc._x = x;
this.propmovemc._y = y;
this.propmovemc.antx = this.GameUiDmc.propbox._x;
this.propmovemc.anty = this.GameUiDmc.propbox._y;
this.propmovemc.allfram = 17;
var cerf = this;
this.propmovemc.onUnload = function () {
cerf.propmovemc = null;
cerf.showprop = true;
cerf.GameUiDmc.propbox.gotoAndPlay('show');
};
};
v2.runpropmove = function () {
if (this.propmovemc) {
--this.propmovemc.allfram;
if (this.propmovemc.allfram < 12) {
this.propmovemc._x += (this.propmovemc.antx - this.propmovemc._x) / this.propmovemc.allfram;
this.propmovemc._y += (this.propmovemc.anty - this.propmovemc._y) / this.propmovemc.allfram;
}
}
};
v2.StartPropBox = function (PropBoxRunTime, propId) {
this.game.gameSounds.PlaySound('PropBoxRun');
this.PropBoxRunTime = PropBoxRunTime;
this.PropId = propId;
if (this.RunPropBoxTimerId) {
as.Timer.DelTimer(this.RunPropBoxTimerId);
} else {
this.GameUiDmc.propbox.gotoAndPlay('down');
this.showprop = false;
}
this.RunPropBoxTimerId = as.Timer.AddCycleTimer(this, 'RunPropBox', 50, -1);
};
v2.ClearPropBox = function (EmtryPropId) {
if (this.RunPropBoxTimerId) {
as.Timer.DelTimer(this.RunPropBoxTimerId);
this.RunPropBoxTimerId = null;
}
if (!EmtryPropId) {
EmtryPropId = 10;
}
this.GameUiDmc.propbox.propbox.gotoAndStop(EmtryPropId);
if (EmtryPropId == 10) {
if (this.GameUiDmc.propbox._currentframe > 2) {
this.GameUiDmc.propbox.gotoAndPlay('up');
}
}
};
v2.RunPropBox = function () {
if (!this.showprop) {
return undefined;
}
this.PropBoxRunTime -= 50;
var v3 = int(this.PropBoxRunTime / 50);
if (v3 != 1 && v3 != 2 && v3 != 3 && v3 != 4 && v3 != 6 && v3 != 7 && v3 != 8 && v3 != 10 && v3 != 11 && v3 != 13) {
var v2 = random(9) + 1;
while (v2 == this.GameUiDmc.propbox.propbox._currentframe) {
v2 = random(9) + 1;
}
this.GameUiDmc.propbox.propbox.gotoAndStop(v2);
if (v2 == 9) {
this.GameUiDmc.propbox.propbox.pro.gotoAndStop(this.game.Players[0].PlayerType + 1);
}
}
if (this.PropBoxRunTime <= 50) {
this.game.gameSounds.StopSound('PropBoxRun');
this.game.gameSounds.PlaySound('PropBoxOk');
as.Timer.DelTimer(this.RunPropBoxTimerId);
this.RunPropBoxTimerId = null;
this.GameUiDmc.propbox.propbox.gotoAndStop(this.PropId);
if (this.PropId == 9) {
this.GameUiDmc.propbox.propbox.pro.gotoAndStop(this.game.Players[0].PlayerType + 1);
}
}
};
v2.ShowSpace = function () {
this.GameUiDmc.space.removeMovieClip();
var v3 = this.GameUiDmc.attachMovie('space', 'space', this.GameUiDmc.getNextHighestDepth());
v3._x = _root.StageWidth / 2;
v3._y = _root.StageHeight / 2;
};
v2.DelSpace = function () {
this.GameUiDmc.space.removeMovieClip();
};
v2.showUiZZZ = function (Id) {
var v2 = this.GameUiDmc.TopList.attachMovie('car_Speed', 'car_Speed' + Id, this.GameUiDmc.TopList.getNextHighestDepth());
v2._x = this.GameUiDmc.TopList['Top' + Id]._x + 30;
v2._y = this.GameUiDmc.TopList['Top' + Id]._y;
v2._yscale = 70;
v2._xscale = 70;
};
v2.DelUIZZZ = function (Id) {
this.GameUiDmc.TopList['car_Speed' + Id].removeMovieClip();
};
v2.StopRecordTime = function () {
var v2 = new Date();
var v3 = v2.getTime() - this.RaceStartTime;
this.RaceStartTime = null;
return v3;
};
v2.UpdateUIMapLoading = function (per) {
per = int(per * 100);
this.UIMapLoadingDmc.loadingbar.txt.text = per + '%';
this.UIMapLoadingDmc.loadingbar.bar._xscale = per;
};
v2.MainSrceenLinkName = 'MainScreen';
v2.WinSrceenLinkName = 'WinScreen';
v2.UIhowtoplayLinkName = 'UIhowtoplay';
v2.UIMainMenuLinkName = 'UIMainMenu';
v2.UicupLinkName = 'Uicup';
v2.UiSelectPlayerLinkName = 'UISelectPlayer';
v2.UiOverScreenLinkName = 'UiOverScreen';
v2.GameUiLinkName = 'GameUi';
v2.UiHighScoresLinkName = 'UIHIGHSCORES';
v2.UiScoresLinkName = 'UIScores';
v2.UIgameoverLinkName = 'UIgameover';
v2.UIcupcompletedLinkName = 'UIcupcompleted';
v2.UIMapLoadingLinkName = 'UIMaploading';
ASSetPropFlags(as.UiManage.prototype, null, 1);
}
#endinitclip
}
movieClip 2415 __Packages.as.Effect {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Effect) {
var v1 = function (game) {
this.game = game;
};
as.Effect = v1;
var v2 = v1.prototype;
v2.ShowStartEffect = function (Dmc) {
var v3 = Dmc[0].attachMovie('timer', 'timer', Dmc[0].getNextHighestDepth());
v3._x = _root.StageWidth / 2;
v3._y = _root.StageHeight / 2;
this.game.gameSounds.PlaySound('Ready3');
as.Timer.AddTimer(this, 'Ready', 1000, v3, 2);
as.Timer.AddTimer(this, 'Ready', 2000, v3, 1);
as.Timer.AddTimer(this, 'Ready', 3000, v3, 0);
var cerf = this;
v3.go = function () {
cerf.OnStartEffectOver();
};
};
v2.Ready = function (T) {
if (T[1] == 0) {
T[0].gotoAndPlay('Go');
this.game.gameSounds.PlaySound('Go');
} else {
T[0].gotoAndPlay('Ready' + T[1]);
this.game.gameSounds.PlaySound('Ready' + T[1]);
}
};
v2.OnStartEffectOver = function () {};
v2.ShowFinishEffect = function (Dmc) {
var v3 = Dmc.attachMovie('gamefinish', 'gamefinish', Dmc.getNextHighestDepth());
v3._x = _root.StageWidth / 2;
v3._y = _root.StageHeight / 2;
var cerf = this;
v3.onUnload = function () {
cerf.OnFinishEffectOver();
};
};
v2.OnFinishEffectOver = function () {};
ASSetPropFlags(as.Effect.prototype, null, 1);
}
#endinitclip
}
movieClip 2416 __Packages.as.Map01 {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Map01) {
var v1 = function (game, Dmc, ViewDmc, RaceId) {
super(game, Dmc, ViewDmc, RaceId, 'Map01');
this.JumpWallGroupNum = 10;
this.JumpWallNum = 100;
this.WallGroupNum = 10;
this.WallNum = 100;
this.GrassNum = 0;
this.GroupGrassNum = 0;
this.GroupGrassGroupNum = 0;
this.PointNum = 50;
this.PropboxNum = 20;
this.JumpNum = 10;
this.AddspeedNum = 10;
this.BsNum = 10;
this.ScaledTimes = 0.03333333333333333;
this.GlideGratingNum = 0.0002;
this.RollGratingNum = 0.02;
this.GrassGratingNum = 0.01;
this.Wallspring = 0.02;
this.MapBy = 1700;
this.MapTy = -1700;
this.MapLx = -1700;
this.MapRx = 1700;
var v3 = this.CarMc.createEmptyMovieClip('Eddmc', this.CarMc.getNextHighestDepth());
this.ed = new as.ED(v3);
v3 = this.CarMc.createEmptyMovieClip('Edmdmc', this.CarMc.getNextHighestDepth());
this.edm = new as.ED(v3);
v3 = this.CarMc.createEmptyMovieClip('EdEvent', this.CarMc.getNextHighestDepth());
this.edevent = new as.ED(v3);
this.initMap();
if (this.RaceId == 1) {
this.LinePointArr = new Array(0, 2, 3, 4, 5, 8, 9, 11, 17);
this.WanPointArr = new Array(0, 1, 2, 4, 7, 8, 11, 13, 14, 15, 16, 17);
this.PropPointArr = new Array(1, 8, 13);
} else {
this.LinePointArr = new Array(0, 2, 3, 4, 5, 6, 7, 8, 9, 15, 17, 19, 21, 23);
this.WanPointArr = new Array(0, 1, 8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 23, 24);
this.PropPointArr = new Array(1, 4, 8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 23);
}
};
as.Map01 = v1;
as.Map01 extends as.Map;
var v2 = v1.prototype;
v2.LapsTotal = 3;
ASSetPropFlags(as.Map01.prototype, null, 1);
}
#endinitclip
}
movieClip 2417 __Packages.as.Map02 {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Map02) {
var v1 = function (game, Dmc, ViewDmc, RaceId) {
super(game, Dmc, ViewDmc, RaceId, 'Map02');
this.JumpWallGroupNum = 10;
this.JumpWallNum = 200;
this.WallGroupNum = 10;
this.WallNum = 200;
this.GrassNum = 0;
this.GroupGrassNum = 0;
this.GroupGrassGroupNum = 0;
this.PointNum = 50;
this.PropboxNum = 70;
this.JumpNum = 10;
this.AddspeedNum = 10;
this.BsNum = 10;
this.ScaledTimes = 0.02857142857142857;
this.GlideGratingNum = 0.0002;
this.RollGratingNum = 0.02;
this.GrassGratingNum = 0.01;
this.Wallspring = 0.02;
this.MapBy = 2035;
this.MapTy = -2010;
this.MapLx = -2100;
this.MapRx = 2075;
var v3 = this.CarMc.createEmptyMovieClip('Eddmc', this.CarMc.getNextHighestDepth());
this.ed = new as.ED(v3);
v3 = this.CarMc.createEmptyMovieClip('Edmdmc', this.CarMc.getNextHighestDepth());
this.edm = new as.ED(v3);
v3 = this.CarMc.createEmptyMovieClip('EdEvent', this.CarMc.getNextHighestDepth());
this.edevent = new as.ED(v3);
this.initMap();
if (this.RaceId == 1) {
this.LinePointArr = new Array(8, 26, 27);
this.WanPointArr = new Array(0, 2, 3, 4, 7, 8, 10, 11, 13, 17, 19, 22, 26, 29, 31);
this.PropPointArr = new Array(3, 8, 12, 23, 31);
} else {
this.LinePointArr = new Array(0, 1, 2, 12, 13, 26, 34, 35, 39, 40, 42);
this.WanPointArr = new Array(0, 3, 4, 12, 18, 19, 24, 25, 28, 29, 30, 31, 32, 33, 34, 38, 41);
this.PropPointArr = new Array(0, 6, 12, 18, 24, 29, 37, 40);
}
};
as.Map02 = v1;
as.Map02 extends as.Map;
var v2 = v1.prototype;
v2.LapsTotal = 3;
ASSetPropFlags(as.Map02.prototype, null, 1);
}
#endinitclip
}
movieClip 2418 __Packages.as.Map03 {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Map03) {
var v1 = function (game, Dmc, ViewDmc, RaceId) {
super(game, Dmc, ViewDmc, RaceId, 'Map03');
this.JumpWallGroupNum = 10;
this.JumpWallNum = 200;
this.WallGroupNum = 10;
this.WallNum = 200;
this.GrassNum = 200;
this.GroupGrassNum = 200;
this.GroupGrassGroupNum = 10;
this.PointNum = 50;
this.PropboxNum = 70;
this.JumpNum = 10;
this.AddspeedNum = 10;
this.BsNum = 10;
this.ScaledTimes = 0.02857142857142857;
this.GlideGratingNum = 0.0001;
this.RollGratingNum = 0.02;
this.GrassGratingNum = 0.01;
this.Wallspring = 0.02;
this.MapBy = 2100;
this.MapTy = -2058;
this.MapLx = -2088;
this.MapRx = 2108;
var v3 = this.CarMc.createEmptyMovieClip('Eddmc', this.CarMc.getNextHighestDepth());
this.ed = new as.ED(v3);
v3 = this.CarMc.createEmptyMovieClip('Edmdmc', this.CarMc.getNextHighestDepth());
this.edm = new as.ED(v3);
v3 = this.CarMc.createEmptyMovieClip('EdEvent', this.CarMc.getNextHighestDepth());
this.edevent = new as.ED(v3);
this.initMap();
if (this.RaceId == 1) {
this.LinePointArr = new Array(0, 5, 6, 11, 13, 21, 22, 23, 24);
this.WanPointArr = new Array(1, 2, 3, 4, 7, 8, 10, 11, 12, 15, 17, 18, 19, 20, 21, 22, 23);
this.PropPointArr = new Array(1, 5, 8, 12, 19, 23);
} else {
this.LinePointArr = new Array(0, 5, 8, 9, 12, 13, 15, 17, 18, 19, 20, 21);
this.WanPointArr = new Array(0, 1, 2, 3, 6, 7, 10, 11, 14, 16, 18, 22);
this.PropPointArr = new Array(0, 3, 5, 8, 13, 15, 18, 20, 22);
}
};
as.Map03 = v1;
as.Map03 extends as.Map;
var v2 = v1.prototype;
v2.LapsTotal = 3;
ASSetPropFlags(as.Map03.prototype, null, 1);
}
#endinitclip
}
movieClip 2419 __Packages.as.Map04 {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Map04) {
var v1 = function (game, Dmc, ViewDmc, RaceId) {
super(game, Dmc, ViewDmc, RaceId, 'Map04');
this.JumpWallGroupNum = 10;
this.JumpWallNum = 200;
this.WallGroupNum = 10;
this.WallNum = 200;
this.GrassNum = 0;
this.GroupGrassNum = 0;
this.GroupGrassGroupNum = 0;
this.PointNum = 50;
this.PropboxNum = 70;
this.JumpNum = 10;
this.AddspeedNum = 10;
this.BsNum = 10;
this.ScaledTimes = 0.02857142857142857;
this.GlideGratingNum = 0.0002;
this.RollGratingNum = 0.02;
this.GrassGratingNum = 0.01;
this.Wallspring = 0.02;
this.MapBy = 1237;
this.MapTy = -1232;
this.MapLx = -2088;
this.MapRx = 2090;
var v3 = this.CarMc.createEmptyMovieClip('Eddmc', this.CarMc.getNextHighestDepth());
this.ed = new as.ED(v3);
v3 = this.CarMc.createEmptyMovieClip('Edmdmc', this.CarMc.getNextHighestDepth());
this.edm = new as.ED(v3);
v3 = this.CarMc.createEmptyMovieClip('EdEvent', this.CarMc.getNextHighestDepth());
this.edevent = new as.ED(v3);
this.initMap();
if (this.RaceId == 1) {
this.LinePointArr = new Array(2, 8, 10, 14, 17);
this.WanPointArr = new Array(0, 1, 3, 5, 7, 9, 11, 13, 15, 16);
this.PropPointArr = new Array(0, 1, 8, 9, 14, 16, 17);
} else {
this.LinePointArr = new Array(3, 13, 19);
this.WanPointArr = new Array(0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22);
this.PropPointArr = new Array(0, 2, 4, 9, 13, 18, 20, 21);
}
};
as.Map04 = v1;
as.Map04 extends as.Map;
var v2 = v1.prototype;
v2.LapsTotal = 3;
ASSetPropFlags(as.Map04.prototype, null, 1);
}
#endinitclip
}
movieClip 2420 __Packages.as.Ai {
#initclip
if (!_global.as) {
_global.as = new Object();
}
if (!_global.as.Ai) {
var v1 = function (game, map, PlayerType, PlayerId) {
super(game, map, PlayerType, PlayerId);
this.AiReflect = 150;
this.AiUsePropReflect = 150;
this.Aiplayering = false;
};
as.Ai = v1;
as.Ai extends as.Player;
var v2 = v1.prototype;
v2.StartRace = function () {
this.Aiplayering = true;
this.PlayerPlayering = true;
this.myCar.IsLock = false;
if (random(Math.floor(this.AiReflect / 5)) == 0) {
this.prop.NowPorpId = 8;
this.UseProp();
}
this.WorryRoadJudgeTimeId = as.Timer.AddCycleTimer(this, 'RaceJudge', 2000, -1);
};
v2.run = function () {
if (this.Aiplayering && this.PlayerPlayering) {
this.AutoPlay();
this.AutoUseProp();
this.AutoReSetCar();
}
this.UpdatePoint();
this.myCar.Update();
this.prop.run();
};
v2.AutoReSetCar = function () {
if (this.AiLastCheckPoint != this.NowPointId) {
as.Timer.DelTimer(this.AiLastCheckPointTimer);
this.AiLastCheckPointTimer = as.Timer.AddTimer(this, 'ReSetCar', this.AiLastCheckPointReSetTime);
this.AiLastCheckPoint = this.NowPointId;
}
};
v2.AutoUseProp = function () {
++this.AiUsePropTime;
if (this.AiUsePropTime > this.AiUsePropReflect) {
this.AiUsePropTime = 0;
var v2;
var v3;
if (this.map.IsPropPoint(this.NowPointId) && this.prop.NowPorpId != 5) {
if (this.IsOnlyAttPlayer) {
return undefined;
}
this.UseProp();
return undefined;
}
switch (this.prop.NowPorpId) {
break;
case 0:
case 1:
v2 = 0;
while (v2 < this.game.Players.length) {
if (this.game.Players[v2].Id != this.Id) {
if (this.game.Players[v2].prop.IsHavePropType(5)) {
this.UseProp();
return undefined;
}
if (this.game.Players[v2].prop.IsHavePropType(6)) {
this.UseProp();
return undefined;
}
if (this.game.Players[v2].prop.IsHavePropType(9) && this.game.Players[v2].PlayerType == 2) {
this.UseProp();
return undefined;
}
v3 = new as.Vector(this.game.Players[v2].myCar.Dmc._x - this.myCar.Dmc._x, this.game.Players[v2].myCar.Dmc._y - this.myCar.Dmc._y);
if (v3.getLength() < 300) {
if (this.IsOnlyAttPlayer && this.game.Players[v2].Id != 0) {
} else {
this.UseProp();
return undefined;
}
}
}
++v2;
}
v2 = 0;
while (v2 < this.game.map.Events.length) {
if (this.game.map.Events[v2] instanceof as.EventsInMap.BombInMap) {
v3 = new as.Vector(this.game.map.Events[v2].x - this.myCar.Dmc._x, this.game.map.Events[v2].y - this.myCar.Dmc._y);
if (v3.getLength() < 300) {
this.UseProp();
return undefined;
}
}
if (this.game.map.Events[v2] instanceof as.EventsInMap.BsInMap) {
v3 = new as.Vector(this.game.map.Events[v2].x - this.myCar.Dmc._x, this.game.map.Events[v2].y - this.myCar.Dmc._y);
if (v3.getLength() < 300) {
this.UseProp();
return undefined;
}
}
if (this.game.map.Events[v2] instanceof as.EventsInMap.HoneyBombInMap) {
v3 = new as.Vector(this.game.map.Events[v2].x - this.myCar.Dmc._x, this.game.map.Events[v2].y - this.myCar.Dmc._y);
if (v3.getLength() < 300) {
this.UseProp();
return undefined;
}
}
++v2;
}
break;
case 2:
this.UseProp();
return undefined;
break;
case 3:
v2 = 0;
while (v2 < this.game.Players.length) {
if (this.game.Players[v2].Id != this.Id) {
if (this.game.Players[v2].prop.IsHavePropType(5)) {
this.UseProp();
return undefined;
}
if (this.game.Players[v2].prop.IsHavePropType(6)) {
this.UseProp();
return undefined;
}
if (this.game.Players[v2].prop.IsHavePropType(9) && this.game.Players[v2].PlayerType == 2) {
this.UseProp();
return undefined;
}
}
++v2;
}
break;
case 4:
case 7:
v2 = 0;
while (v2 < this.game.Players.length) {
if (this.game.Players[v2].Id != this.Id) {
if (this.IsOnlyAttPlayer && this.game.Players[v2].Id != 0) {
} else {
if (this.game.Players[v2].IsInvincible) {
} else {
v3 = new as.Vector(this.game.Players[v2].myCar.Dmc._x - this.myCar.Dmc._x, this.game.Players[v2].myCar.Dmc._y - this.myCar.Dmc._y);
if (v3.getLength() < 300) {
if (this.NowPointId - this.game.Players[v2].NowPointId > 0) {
this.UseProp();
return undefined;
}
if (this.NowPointId - this.game.Players[v2].NowPointId < -10) {
this.UseProp();
return undefined;
}
if (this.NowPointId - this.game.Players[v2].NowPointId == 0) {
if (this.distance < this.game.Players[v2].distance) {
this.UseProp();
return undefined;
}
}
}
}
}
}
++v2;
}
if (this.map.IsWanPoint(this.NowPointId)) {
if (this.IsOnlyAttPlayer) {
if (this.Order >= this.game.Players.length - 1) {
if (this.game.OrderInfo[0][1] != 0) {
return undefined;
}
} else {
if (this.game.OrderInfo[this.Order + 1][1] != 0) {
return undefined;
}
}
}
this.UseProp();
return undefined;
}
break;
case 5:
if (this.Order != 0) {
if (this.IsOnlyAttPlayer && this.game.OrderInfo[0][1] != 0) {
return undefined;
}
this.UseProp();
return undefined;
}
break;
case 6:
if (this.IsOnlyAttPlayer && (as.Prop.PropHomingMissile.SetAimPlayer(this.game, this)).Id != 0) {
return undefined;
}
this.UseProp();
return undefined;
break;
case 8:
if (this.map.IsLinePoint(this.NowPointId)) {
this.UseProp();
return undefined;
}
break;
case 9:
switch (this.PlayerType) {
case 0:
v2 = 0;
while (v2 < this.game.Players.length) {
if (this.IsOnlyAttPlayer && this.game.Players[v2].Id != 0) {
} else {
if (this.game.Players[v2].IsInvincible) {
} else {
if (this.game.Players[v2].Id != this.Id) {
v3 = new as.Vector(this.game.Players[v2].myCar.Dmc._x - this.myCar.Dmc._x, this.game.Players[v2].myCar.Dmc._y - this.myCar.Dmc._y);
if (v3.getLength() < 300) {
if (this.NowPointId - this.game.Players[v2].NowPointId > 0) {
this.UseProp();
return undefined;
}
if (this.NowPointId - this.game.Players[v2].NowPointId < -10) {
this.UseProp();
return undefined;
}
if (this.NowPointId - this.game.Players[v2].NowPointId == 0) {
if (this.distance < this.game.Players[v2].distance) {
this.UseProp();
return undefined;
}
}
}
}
}
}
++v2;
}
if (this.map.IsWanPoint(this.NowPointId)) {
if (this.IsOnlyAttPlayer) {
if (this.Order >= this.game.Players.length - 1) {
if (this.game.OrderInfo[0][1] != 0) {
return undefined;
}
} else {
if (this.game.OrderInfo[this.Order + 1][1] != 0) {
return undefined;
}
}
}
this.UseProp();
return undefined;
}
break;
case 1:
if (this.map.IsLinePoint(this.NowPointId)) {
this.UseProp();
return undefined;
}
break;
case 2:
v2 = 0;
while (v2 < this.game.Players.length) {
if (this.game.Players[v2].Id != this.Id) {
if (this.IsOnlyAttPlayer && this.game.Players[v2].Id != 0) {
} else {
if (this.game.Players[v2].IsInvincible) {
} else {
if (this.game.Players[v2].prop.IsUseShield) {
} else {
v3 = new as.Vector(this.game.Players[v2].myCar.Dmc._x - this.myCar.Dmc._x, this.game.Players[v2].myCar.Dmc._y - this.myCar.Dmc._y);
if (v3.getLength() < 300) {
this.UseProp();
return undefined;
}
}
}
}
}
++v2;
}
break;
case 3:
v2 = 0;
while (v2 < this.game.Players.length) {
if (this.game.Players[v2].Id != this.Id) {
if (this.IsOnlyAttPlayer && this.game.Players[v2].Id != 0) {
} else {
if (this.game.Players[v2].IsInvincible) {
} else {
v3 = new as.Vector(this.game.Players[v2].myCar.Dmc._x - this.myCar.Dmc._x, this.game.Players[v2].myCar.Dmc._y - this.myCar.Dmc._y);
if (v3.getLength() < 300) {
if (this.NowPointId - this.game.Players[v2].NowPointId > 0) {
this.UseProp();
return undefined;
}
if (this.NowPointId - this.game.Players[v2].NowPointId < -10) {
this.UseProp();
return undefined;
}
if (this.NowPointId - this.game.Players[v2].NowPointId == 0) {
if (this.distance < this.game.Players[v2].distance) {
this.UseProp();
return undefined;
}
}
}
}
}
}
++v2;
}
if (this.map.IsWanPoint(this.NowPointId)) {
if (this.IsOnlyAttPlayer) {
if (this.Order >= this.game.Players.length - 1) {
if (this.game.OrderInfo[0][1] != 0) {
return undefined;
}
} else {
if (this.game.OrderInfo[this.Order + 1][1] != 0) {
return undefined;
}
}
}
this.UseProp();
return undefined;
}
break;
case 4:
v2 = 0;
while (v2 < this.game.Players.length) {
if (this.game.Players[v2].Id != this.Id) {
if (this.IsOnlyAttPlayer && this.game.Players[v2].Id != 0) {
} else {
if (this.game.Players[v2].IsInvincible) {
} else {
v3 = new as.Vector(this.game.Players[v2].myCar.Dmc._x - this.myCar.Dmc._x, this.game.Players[v2].myCar.Dmc._y - this.myCar.Dmc._y);
if (v3.getLength() < 300) {
this.UseProp();
return undefined;
}
}
}
}
++v2;
}
break;
case 5:
v2 = 0;
while (v2 < this.game.Players.length) {
if (this.IsOnlyAttPlayer && this.game.Players[v2].Id != 0) {
} else {
if (this.game.Players[v2].Id == this.Id) {
} else {
if (this.game.Players[v2].IsInvincible) {
} else {
if (this.game.Players[v2].IsReSeting) {
} else {
if (this.game.Players[v2].Alldistance < this.Alldistance) {
} else {
var v5 = this.game.Players[v2].myCar.Dmc._x - this.myCar.Dmc._x;
var v4 = this.game.Players[v2].myCar.Dmc._y - this.myCar.Dmc._y;
var distance = v5 * v5 + v4 * v4;
if (distance < 100000) {
this.UseProp();
return undefined;
break;
}
}
}
}
}
}
++v2;
}
break;
default:
as.MessageBox.ShowMessage('Error UseProp Playertype');
}
break;
default:
as.MessageBox.ShowMessage('Error UseProp Id');
}
}
};
v2.AutoPlay = function () {
this.ActionCar(0);
if (this.AiNowPushButtonTimeNow < this.AiNowPushButtonTime) {
this.ActionCar(this.AiNowPushButton);
++this.AiNowPushButtonTimeNow;
} else {
this.AiNowPushButtonTimeNow = 0;
var v3 = (Math.atan2(this.map.Points[this.NowPointId].y - this.myCar.Dmc._y, this.map.Points[this.NowPointId].x - this.myCar.Dmc._x) / Math.PI) * 180;
var v2 = as.Vector.FormatAngle(v3 - this.myCar.Dmc._rotation);
if (v2 > 5 && v2 < 180) {
this.AiNowPushButton = 3;
this.AiNowPushButtonTime = v2 / this.AiReflect;
} else {
if (v2 < -5 && v2 > -180) {
this.AiNowPushButton = 2;
this.AiNowPushButtonTime = Math.abs(v2) / 45 + this.AiReflect;
} else {
this.AiNowPushButtonTime = this.AiReflect;
this.AiNowPushButton = 4;
}
}
}
};
v2.RaceJudge = function () {};
v2.Stoprace = function () {
this.Aiplayering = false;
this.PlayerPlayering = false;
as.Timer.DelTimer(this.AiLastCheckPointTimer);
};
v2.RunPropBox = function () {
var v2 = 1500;
var v3 = this.GetPropPer();
if (this.PorpBoxRunTimerId) {
as.Timer.DelTimer(this.PorpBoxRunTimerId);
}
this.PorpBoxRunTimerId = as.Timer.AddTimer(this, 'GetProp', v2, v3);
};
v2.ClearPropBox = function () {};
v2.AiUsePropTime = 0;
v2.AiNowPushButton = 4;
v2.AiNowPushButtonTime = 0;
v2.AiNowPushButtonTimeNow = 0;
v2.Aiplayering = true;
v2.AiLastCheckPoint = 0;
v2.AiLastCheckPointTimer = 0;
v2.AiLastCheckPointReSetTime = 10000;
v2.IsOnlyAttPlayer = true;
ASSetPropFlags(as.Ai.prototype, null, 1);
}
#endinitclip
}
movieClip 105 {
}
movieClip 112 {
}
movieClip 121 {
}
movieClip 123 {
}
movieClip 138 {
frame 1 {
stop();
}
}
movieClip 139 {
}
movieClip 176 {
}
movieClip 177 {
frame 1 {
stop();
}
}
movieClip 186 {
frame 1 {
stop();
}
frame 6 {
stop();
}
frame 14 {
stop();
}
}
movieClip 187 GameUi {
}
movieClip 217 MainScreen {
}
movieClip 219 {
}
movieClip 222 Msg {
frame 1 {
Message.text = this.getMessage();
}
frame 10 {
stop();
}
frame 22 {
removeMovieClip(this);
}
}
movieClip 224 Flag {
frame 1 {
this._visible = false;
}
}
movieClip 238 {
}
movieClip 243 {
}
movieClip 245 {
}
movieClip 247 {
}
movieClip 253 {
}
movieClip 267 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 281 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 285 {
}
movieClip 286 {
}
movieClip 288 {
}
movieClip 294 {
}
movieClip 295 {
}
movieClip 308 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 321 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 336 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 349 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 363 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 376 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 391 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 405 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 408 {
}
movieClip 410 {
}
movieClip 411 {
frame 1 {
gotoAndStop(_root.localization_branding_nr);
}
instance of movieClip 71 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 75 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 77 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 79 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 81 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 83 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 85 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 87 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 89 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 91 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 93 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 95 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 97 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 99 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
}
movieClip 415 {
}
movieClip 416 UIMainMenu {
frame 41 {
stop();
this.onUseBtn();
}
frame 53 {
this.removeMovieClip();
}
}
movieClip 423 {
}
movieClip 427 {
}
movieClip 430 {
}
movieClip 435 {
}
movieClip 438 {
frame 25 {
stop();
removeMovieClip(this);
}
}
movieClip 439 {
frame 1 {
i = 0;
onEnterFrame = function () {
if (int(Math.random(10) * 10) == 1) {
++i;
duplicateMovieClip(qq, 'qq' + i, i);
}
};
}
}
movieClip 445 {
frame 25 {
stop();
removeMovieClip(this);
}
}
movieClip 446 {
frame 1 {
i = 0;
onEnterFrame = function () {
if (int(Math.random(10) * 10) == 1) {
++i;
duplicateMovieClip(qq, 'qq' + i, i);
}
};
}
}
movieClip 447 {
frame 25 {
stop();
removeMovieClip(this);
}
}
movieClip 448 {
frame 1 {
i = 0;
onEnterFrame = function () {
if (int(Math.random(10) * 10) == 1) {
++i;
duplicateMovieClip(qq, 'qq' + i, i);
}
};
}
}
movieClip 449 {
}
movieClip 450 {
}
movieClip 451 {
frame 1 {
gotoAndStop(_root.localization_branding_nr);
}
instance of movieClip 71 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 75 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 77 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 79 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 81 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 83 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 85 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 87 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 89 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 91 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 93 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 95 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 97 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
instance of movieClip 99 {
onClipEvent (release) {
getURL(_root.localization_url1, '_blank');
}
}
}
movieClip 457 {
}
movieClip 459 {
}
movieClip 461 {
}
movieClip 463 {
}
movieClip 465 {
}
movieClip 467 {
}
movieClip 481 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 495 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 501 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 505 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 508 {
}
movieClip 509 {
}
movieClip 511 {
}
movieClip 513 {
frame 1 {
stop();
}
frame 4 {
stop();
var ttt = mytext._width / mytext.textWidth;
if (ttt > 1) {
ttt = 1;
}
var myformat = new TextFormat();
myformat.size = 14 * ttt;
mytext.setTextFormat(myformat);
}
}
movieClip 518 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 523 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 525 {
frame 1 {
stop();
}
frame 4 {
stop();
var ttt = mytext._width / mytext.textWidth;
if (ttt > 1) {
ttt = 1;
}
var myformat = new TextFormat();
myformat.size = 14 * ttt;
mytext.setTextFormat(myformat);
}
}
movieClip 530 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 535 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 537 {
frame 1 {
stop();
}
frame 4 {
stop();
var ttt = mytext._width / mytext.textWidth;
if (ttt > 1) {
ttt = 1;
}
var myformat = new TextFormat();
myformat.size = 14 * ttt;
mytext.setTextFormat(myformat);
}
}
movieClip 542 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 547 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 549 {
frame 1 {
stop();
}
frame 4 {
stop();
var ttt = mytext._width / mytext.textWidth;
if (ttt > 1) {
ttt = 1;
}
var myformat = new TextFormat();
myformat.size = 14 * ttt;
mytext.setTextFormat(myformat);
}
}
movieClip 553 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 557 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 559 {
frame 1 {
stop();
}
frame 4 {
stop();
var ttt = mytext._width / mytext.textWidth;
if (ttt > 1) {
ttt = 1;
}
var myformat = new TextFormat();
myformat.size = 14 * ttt;
mytext.setTextFormat(myformat);
}
}
movieClip 563 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 567 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 569 {
frame 1 {
stop();
}
frame 4 {
stop();
var ttt = mytext._width / mytext.textWidth;
if (ttt > 1) {
ttt = 1;
}
var myformat = new TextFormat();
myformat.size = 14 * ttt;
mytext.setTextFormat(myformat);
}
}
movieClip 570 UISelectPlayer {
frame 82 {
stop();
this.onUseBtn();
}
}
movieClip 578 UiOverScreen {
frame 26 {
this.onOverScreen();
}
frame 27 {
this.removeMovieClip();
}
}
movieClip 582 {
}
movieClip 597 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 607 {
}
movieClip 612 {
}
movieClip 615 {
}
movieClip 616 {
}
movieClip 617 {
}
movieClip 618 {
}
movieClip 619 {
}
movieClip 622 {
}
movieClip 623 {
}
movieClip 625 {
frame 1 {
stop();
}
frame 4 {
stop();
var ttt = mytext._width / mytext.textWidth;
if (ttt > 1) {
ttt = 1;
}
var myformat = new TextFormat();
myformat.size = 14 * ttt;
mytext.setTextFormat(myformat);
}
}
movieClip 638 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 641 {
frame 1 {
this.txt.text = _parent._parent.level4locktxt;
this.txt.wordWrap = true;
if (_parent._parent.levelt >= 2) {
this._visible = false;
this._alpha = 0;
} else {
this._visible = true;
this._alpha = 100;
}
this.onEnterFrame = function () {
if (_parent._parent.levelt >= 2) {
this._visible = false;
this._alpha = 0;
} else {
this._visible = true;
this._alpha = 100;
}
};
}
}
button 642 {
on (release) {
this._parent._parent.onSelectLevel(3);
}
}
movieClip 650 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 652 {
frame 1 {
this.txt.text = _parent._parent.level2locktxt;
this.txt.wordWrap = true;
if (_parent._parent.levelt >= 1) {
this._visible = false;
this._alpha = 0;
} else {
this._visible = true;
this._alpha = 100;
}
this.onEnterFrame = function () {
if (_parent._parent.levelt >= 1) {
this._visible = false;
this._alpha = 0;
} else {
this._visible = true;
this._alpha = 100;
}
};
}
}
button 653 {
on (release) {
this._parent._parent.onSelectLevel(2);
}
}
movieClip 664 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
button 665 {
on (release) {
this._parent._parent.onSelectLevel(1);
}
}
button 669 {
on (release) {
this._parent._parent.onSelectLevel(3);
}
on (rollOver) {
this.gotoAndPlay(15);
}
}
button 670 {
on (release) {
this._parent._parent.onSelectLevel(2);
}
on (rollOver) {
this.gotoAndPlay(8);
}
}
button 671 {
on (release) {
this._parent._parent.onSelectLevel(1);
}
on (rollOver) {
this.gotoAndPlay(1);
}
}
movieClip 672 {
frame 7 {
stop();
}
frame 14 {
stop();
}
frame 21 {
stop();
}
}
movieClip 673 {
}
movieClip 674 UIcup {
}
movieClip 687 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 692 {
}
movieClip 695 {
}
movieClip 698 {
}
movieClip 710 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 724 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 736 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 750 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 764 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 772 {
frame 10 {
stop();
}
}
movieClip 786 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 787 UIhowtoplay {
}
movieClip 789 {
}
movieClip 826 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 854 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 865 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 874 UIHIGHSCORES {
}
movieClip 877 {
}
movieClip 878 {
}
movieClip 880 {
}
movieClip 882 {
}
movieClip 913 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 914 {
}
movieClip 915 {
frame 1 {
stop();
}
frame 16 {
stop();
}
}
movieClip 930 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 969 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 975 {
frame 1 {
stop();
}
frame 6 {
stop();
_parent.addsorce.gotoAndPlay(2);
}
}
movieClip 977 {
}
movieClip 978 {
frame 1 {
}
frame 9 {
stop();
}
}
movieClip 980 {
}
movieClip 982 {
}
movieClip 983 {
frame 1 {
stop();
}
frame 7 {
stop();
}
}
movieClip 985 {
frame 1 {
aa.fen = _parent.Numallsorce;
var a = _parent.Numallsorce + _parent.Numaddsorce;
fen2 = _parent.Numaddsorce;
}
frame 4 {
if (aa.fen < a) {
aa.fen += 1;
fen2 -= 1;
}
}
frame 5 {
cc.gotoAndPlay(2);
}
frame 7 {
if (aa.fen == a) {
_parent.gotoAndStop(4);
} else {
gotoAndPlay(2);
}
}
}
movieClip 987 {
frame 1 {
stop();
}
}
movieClip 988 {
frame 1 {
stop();
}
}
movieClip 992 {
}
movieClip 993 {
}
movieClip 994 {
}
movieClip 999 UIScores {
}
movieClip 1001 {
}
movieClip 1014 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 1015 {
}
movieClip 1032 {
frame 16 {
stop();
}
}
movieClip 1045 {
frame 16 {
stop();
}
}
movieClip 1058 {
frame 16 {
stop();
}
}
movieClip 1071 {
frame 16 {
stop();
}
}
movieClip 1086 {
frame 16 {
stop();
}
}
movieClip 1101 {
frame 16 {
stop();
}
}
movieClip 1116 {
frame 16 {
stop();
}
}
movieClip 1131 {
frame 16 {
stop();
}
}
movieClip 1132 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 1136 {
}
movieClip 1137 UIgameover {
}
movieClip 1151 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 1155 {
frame 7 {
stop();
}
}
movieClip 1162 {
}
movieClip 1163 {
frame 35 {
stop();
}
}
movieClip 1166 {
}
movieClip 1172 UIcupcompleted {
instance of movieClip 20 snow {
onClipEvent (load) {
this._visible = false;
var num = 70;
var i = 1;
while (num >= i) {
this._parent.attachMovie('snow', 'snow' + i, i);
var scale = random(90) + 10;
this._parent['snow' + i]._xscale = scale;
this._parent['snow' + i]._yscale = scale;
this._parent['snow' + i]._x = random(500);
this._parent['snow' + i]._y = -random(500);
this._parent['snow' + i]._rotation = random(360);
this._parent['snow' + i].dir = -random(180);
this._parent['snow' + i].v = random(2) + 2;
++i;
}
}
onClipEvent (enterFrame) {
var i = 1;
while (num >= i) {
this._parent['snow' + i]._x += Math.cos(this._parent['snow' + i].dir);
this._parent['snow' + i]._y += this._parent['snow' + i].v;
if (this._parent['snow' + i]._x > 500) {
this._parent['snow' + i]._x = 0;
}
if (this._parent['snow' + i]._x < 0) {
this._parent['snow' + i]._x = 500;
}
if (this._parent['snow' + i]._y > 500) {
this._parent['snow' + i]._y = 0;
}
++i;
}
}
}
}
movieClip 1187 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 1191 {
}
movieClip 1194 {
}
movieClip 1197 {
}
movieClip 1200 {
}
movieClip 1204 {
}
movieClip 1207 {
}
movieClip 1210 {
}
movieClip 1213 {
}
movieClip 1217 {
}
movieClip 1220 {
}
movieClip 1223 {
}
movieClip 1226 {
}
movieClip 1229 {
}
movieClip 1232 {
}
movieClip 1233 {
frame 1 {
var ran = random(100);
if (ran < 50) {
gotoAndStop(1);
} else {
gotoAndStop(random(14) + 2);
}
}
}
movieClip 1234 UIMaploading {
}
movieClip 1235 {
}
movieClip 1238 smoke1 {
frame 71 {
this.removeMovieClip();
}
}
movieClip 1242 {
frame 1 {
stop();
}
}
movieClip 1252 {
frame 1 {
stop();
}
}
movieClip 1254 {
frame 1 {
stop();
this._visible = false;
}
}
movieClip 1256 {
frame 1 {
this._visible = false;
}
}
movieClip 1257 Bear_1 {
}
movieClip 1260 {
}
movieClip 1262 {
}
movieClip 1263 {
}
movieClip 1265 {
}
movieClip 1271 {
frame 1 {
stop();
}
}
movieClip 1272 Bear_2 {
}
movieClip 1275 {
}
movieClip 1281 {
frame 1 {
stop();
}
}
movieClip 1282 Cat_2 {
}
movieClip 1285 {
}
movieClip 1291 {
frame 1 {
stop();
}
}
movieClip 1292 dog_2 {
}
movieClip 1295 {
}
movieClip 1301 {
frame 1 {
stop();
}
}
movieClip 1302 panda_2 {
}
movieClip 1305 {
}
movieClip 1311 {
frame 1 {
stop();
}
}
movieClip 1312 penguin_2 {
}
movieClip 1315 {
}
movieClip 1321 {
frame 1 {
stop();
}
}
movieClip 1322 Raccoon_2 {
}
movieClip 1329 {
frame 1 {
stop();
}
}
movieClip 1330 Raccoon_1 {
}
movieClip 1333 {
frame 1 {
stop();
}
}
movieClip 1334 Cat_1 {
}
movieClip 1341 {
frame 1 {
stop();
}
}
movieClip 1342 penguin_1 {
}
movieClip 1346 {
frame 1 {
stop();
}
}
movieClip 1347 dog_1 {
}
movieClip 1350 {
frame 1 {
stop();
}
}
movieClip 1351 panda_1 {
}
movieClip 1355 smoke2 {
frame 9 {
stop();
removeMovieClip(this);
}
}
movieClip 1356 {
}
movieClip 1358 {
}
movieClip 1359 Map01_dt1 {
}
movieClip 1361 {
}
movieClip 1362 Map01_dt2 {
}
movieClip 1363 Map01 {
frame 1 {
dt1.swapDepths(1);
dt1.removeMovieClip();
dt2.swapDepths(1);
dt2.removeMovieClip();
bgtemp.swapDepths(1);
bgtemp.removeMovieClip();
}
}
movieClip 1365 {
}
movieClip 1366 Map02_dt1 {
}
movieClip 1368 {
}
movieClip 1369 Map02_dt2 {
}
movieClip 1370 Map02 {
frame 1 {
dt1.swapDepths(1);
dt1.removeMovieClip();
dt2.swapDepths(1);
dt2.removeMovieClip();
bgtemp.swapDepths(1);
bgtemp.removeMovieClip();
}
}
movieClip 1372 {
}
movieClip 1373 map03_dt1 {
}
movieClip 1375 {
}
movieClip 1376 Map03_dt2 {
}
movieClip 1377 Map03 {
frame 1 {
dt1.swapDepths(1);
dt1.removeMovieClip();
dt2.swapDepths(1);
dt2.removeMovieClip();
bgtemp.swapDepths(1);
bgtemp.removeMovieClip();
}
}
movieClip 1379 {
}
movieClip 1380 map04_dt1 {
}
movieClip 1382 {
}
movieClip 1383 Map04_dt2 {
}
movieClip 1384 Map04 {
frame 1 {
dt1.swapDepths(1);
dt1.removeMovieClip();
dt2.swapDepths(1);
dt2.removeMovieClip();
bgtemp.swapDepths(1);
bgtemp.removeMovieClip();
}
}
movieClip 1389 {
}
movieClip 1391 {
}
movieClip 1393 {
}
movieClip 1399 {
}
movieClip 1401 {
}
movieClip 1403 {
}
movieClip 1406 {
}
movieClip 1408 {
}
movieClip 1411 {
}
movieClip 1413 {
}
movieClip 1416 {
}
movieClip 1418 {
}
movieClip 1422 {
}
movieClip 1424 {
}
movieClip 1426 {
}
movieClip 1467 {
}
movieClip 1477 {
}
movieClip 1479 {
}
movieClip 1505 {
}
movieClip 1524 {
}
movieClip 1531 {
}
movieClip 1532 {
}
movieClip 1540 {
}
movieClip 1542 {
}
movieClip 1544 {
}
movieClip 1546 {
}
movieClip 1548 {
}
movieClip 1550 {
}
movieClip 1552 {
}
movieClip 1560 {
frame 1 {
gotoAndStop(_root.localization_branding_nr);
}
}
movieClip 1562 {
}
movieClip 1564 {
}
movieClip 1568 {
}
movieClip 1570 {
}
movieClip 1571 map04_bg {
}
movieClip 1575 {
}
movieClip 1578 {
}
movieClip 1580 {
}
movieClip 1582 {
}
movieClip 1584 {
}
movieClip 1586 {
}
movieClip 1588 {
}
movieClip 1590 {
}
movieClip 1592 {
}
movieClip 1594 {
}
movieClip 1596 {
}
movieClip 1598 {
}
movieClip 1600 {
}
movieClip 1602 {
}
movieClip 1604 {
}
movieClip 1607 {
}
movieClip 1609 {
}
movieClip 1611 {
}
movieClip 1613 {
}
movieClip 1615 {
}
movieClip 1616 {
}
movieClip 1619 {
}
movieClip 1620 {
}
movieClip 1623 {
}
movieClip 1625 {
}
movieClip 1627 {
}
movieClip 1629 {
}
movieClip 1631 {
}
movieClip 1633 {
}
movieClip 1635 {
}
movieClip 1637 {
}
movieClip 1639 {
}
movieClip 1641 {
}
movieClip 1643 {
}
movieClip 1645 {
}
movieClip 1647 {
}
movieClip 1649 {
}
movieClip 1653 {
}
movieClip 1655 {
}
movieClip 1657 {
}
movieClip 1660 {
}
movieClip 1663 {
}
movieClip 1667 {
}
movieClip 1672 {
}
movieClip 1681 {
}
movieClip 1683 {
}
movieClip 1695 {
}
movieClip 1697 {
}
movieClip 1699 {
}
movieClip 1701 {
}
movieClip 1703 {
}
movieClip 1705 {
}
movieClip 1708 {
}
movieClip 1710 {
}
movieClip 1712 {
}
movieClip 1715 {
}
movieClip 1717 {
}
movieClip 1721 {
}
movieClip 1723 {
}
movieClip 1725 {
}
movieClip 1727 {
}
movieClip 1729 {
}
movieClip 1731 {
}
movieClip 1732 {
}
movieClip 1733 map03_bg {
}
movieClip 1736 {
}
movieClip 1740 {
}
movieClip 1745 {
}
movieClip 1748 {
}
movieClip 1750 {
}
movieClip 1752 {
}
movieClip 1756 {
}
movieClip 1757 {
}
movieClip 1759 {
}
movieClip 1761 {
}
movieClip 1762 {
}
movieClip 1765 {
}
movieClip 1767 {
}
movieClip 1768 {
}
movieClip 1771 {
}
movieClip 1773 {
}
movieClip 1775 {
}
movieClip 1778 {
}
movieClip 1781 {
}
movieClip 1783 {
}
movieClip 1785 {
}
movieClip 1787 {
}
movieClip 1789 {
}
movieClip 1791 {
}
movieClip 1793 {
}
movieClip 1795 {
}
movieClip 1797 {
}
movieClip 1805 {
}
movieClip 1809 {
}
movieClip 1812 {
}
movieClip 1813 {
}
movieClip 1815 {
}
movieClip 1817 {
}
movieClip 1825 {
}
movieClip 1830 {
}
movieClip 1835 {
}
movieClip 1848 jews3 {
}
movieClip 1850 jews5 {
}
movieClip 1852 jews6 {
}
movieClip 1854 jews9 {
}
movieClip 1856 jews10 {
}
movieClip 1859 jews8 {
}
movieClip 1861 {
}
movieClip 1863 jews2 {
}
movieClip 1865 jews4 {
}
movieClip 1867 jews12 {
}
movieClip 1869 jews7 {
}
movieClip 1876 jews11 {
}
movieClip 1909 {
}
movieClip 1915 {
}
movieClip 1919 {
}
movieClip 1922 {
}
movieClip 1923 {
}
movieClip 1928 {
}
movieClip 1929 map02_bg {
}
movieClip 1932 {
}
movieClip 1940 {
}
movieClip 1943 {
}
movieClip 1945 {
}
movieClip 1950 {
}
movieClip 1952 {
}
movieClip 1959 {
}
movieClip 1960 {
}
movieClip 1963 {
}
movieClip 1967 {
}
movieClip 1980 {
}
movieClip 1982 {
}
movieClip 1988 {
}
movieClip 1990 {
}
movieClip 1994 {
}
movieClip 1997 {
}
movieClip 2005 {
}
movieClip 2012 {
}
movieClip 2015 {
}
movieClip 2019 {
}
movieClip 2021 {
}
movieClip 2023 {
}
movieClip 2024 {
}
movieClip 2026 {
}
movieClip 2028 {
}
movieClip 2032 {
}
movieClip 2034 {
}
movieClip 2045 {
}
movieClip 2046 map01_bg {
}
movieClip 2048 {
}
movieClip 2050 {
}
movieClip 2052 {
}
movieClip 2056 {
}
movieClip 2058 {
}
movieClip 2060 {
}
movieClip 2062 {
}
movieClip 2063 {
}
movieClip 2069 {
}
movieClip 2070 Map01_Art {
}
movieClip 2074 {
}
movieClip 2078 {
}
movieClip 2079 map01_top2 {
}
movieClip 2083 map01_top1 {
}
movieClip 2084 {
}
movieClip 2085 map02_top1 {
}
movieClip 2086 map02_top2 {
}
movieClip 2093 {
}
movieClip 2103 {
}
movieClip 2105 {
}
movieClip 2106 {
}
movieClip 2120 {
}
movieClip 2121 {
}
movieClip 2122 map02_Art {
}
movieClip 2123 {
}
movieClip 2124 map03_Art {
}
movieClip 2127 {
}
movieClip 2129 {
}
movieClip 2131 {
}
movieClip 2133 {
}
movieClip 2135 {
}
movieClip 2137 {
}
movieClip 2139 {
}
movieClip 2147 {
frame 1 {
gotoAndStop(_root.localization_branding_nr);
}
}
movieClip 2148 map03_top1 {
}
movieClip 2150 map03_top2 {
}
movieClip 2151 {
}
movieClip 2152 map04_top1 {
}
movieClip 2155 map04_top2 {
}
movieClip 2157 {
}
movieClip 2158 map04_Art {
}
movieClip 2159 {
}
movieClip 2161 HoneyBomb_in_map {
frame 5 {
stop();
}
}
movieClip 2163 bomb_in_map {
}
movieClip 2166 {
}
movieClip 2167 {
frame 1 {
zhuansu = 10;
onEnterFrame = function () {
xz._rotation += zhuansu;
if (xz._rotation == 360) {
xz._rotation = 0;
}
};
}
}
movieClip 2168 prop_in_map {
}
movieClip 2171 {
}
movieClip 2172 addspeed_in_map {
}
movieClip 2174 bs_in_map {
}
movieClip 2176 jump_in_map {
}
movieClip 2180 {
}
movieClip 2181 {
}
movieClip 2182 car_ShrinkRay {
}
movieClip 2184 {
}
movieClip 2185 prop_HomingMissile {
}
movieClip 2187 {
}
movieClip 2188 prop_kn1 {
}
movieClip 2190 missile_view {
}
movieClip 2192 kn1_view {
}
movieClip 2194 prop_Furballs {
}
movieClip 2196 {
}
movieClip 2197 prop_Bone {
}
movieClip 2200 {
}
movieClip 2201 {
frame 17 {
stop();
removeMovieClip(this);
}
}
movieClip 2202 {
frame 1 {
var i = 0;
while (i < 5) {
duplicateMovieClip(star, 'star' + i, i);
this['star' + i]._rotation = Math.random() * 360;
this['star' + i]._yscale = a;
this['star' + i]._xscale = this['star' + i]._yscale;
a = random(80) + 20;
++i;
}
}
}
movieClip 2206 {
}
movieClip 2207 {
frame 17 {
stop();
removeMovieClip(this);
}
}
movieClip 2208 {
frame 1 {
var i = 0;
while (i < 5) {
duplicateMovieClip(star, 'star' + i, i);
this['star' + i]._rotation = Math.random() * 360;
this['star' + i]._yscale = a;
this['star' + i]._xscale = this['star' + i]._yscale;
a = random(80) + 20;
++i;
}
}
}
movieClip 2214 {
}
movieClip 2215 {
frame 17 {
stop();
removeMovieClip(this);
}
}
movieClip 2216 {
frame 1 {
var i = 0;
while (i < 5) {
duplicateMovieClip(star, 'star' + i, i);
this['star' + i]._rotation = Math.random() * 360;
this['star' + i]._yscale = a;
this['star' + i]._xscale = this['star' + i]._yscale;
a = random(80) + 20;
++i;
}
}
}
movieClip 2218 Bomb {
frame 31 {
this.removeMovieClip();
}
}
movieClip 2221 {
}
movieClip 2224 {
}
movieClip 2228 car_Invincible {
}
movieClip 2230 {
}
movieClip 2233 {
frame 1 {
stop();
}
}
movieClip 2234 {
}
movieClip 2235 car_Shield {
frame 25 {
stop();
}
frame 32 {
this.removeMovieClip();
}
}
movieClip 2237 car_Speed {
}
movieClip 2239 {
}
movieClip 2243 {
frame 7 {
stop();
}
}
movieClip 2244 car_Petro {
frame 7 {
stop();
removeMovieClip(this);
}
}
movieClip 2245 car_Petro_water {
frame 7 {
stop();
removeMovieClip(this);
}
}
movieClip 2247 {
}
movieClip 2249 {
}
movieClip 2250 bomb_view {
}
movieClip 2253 {
}
movieClip 2256 {
}
movieClip 2258 {
}
movieClip 2260 Sleep {
frame 43 {
this.removeMovieClip();
}
}
movieClip 2262 {
}
movieClip 2264 {
}
movieClip 2266 {
}
movieClip 2279 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 2280 timer {
frame 20 {
stop();
}
frame 40 {
stop();
}
frame 60 {
stop();
}
frame 71 {
this.go();
}
frame 80 {
removeMovieClip(this);
}
}
movieClip 2293 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 2294 gamefinish {
frame 70 {
this.removeMovieClip();
}
}
movieClip 2296 {
frame 1 {
var ttttxt_world = mytext._width / mytext.textWidth;
if (ttttxt_world > 1) {
ttttxt_world = 1;
}
var myformat = new TextFormat();
myformat.size = 28 * ttttxt_world;
mytext.setTextFormat(myformat);
}
}
movieClip 2297 message_worryway {
frame 1 {
var Message = this.getMessage();
}
frame 30 {
this.gotoAndPlay(1);
}
frame 31 {
removeMovieClip(this);
}
}
movieClip 2299 {
frame 1 {
var ttttxt_world = mytext._width / mytext.textWidth;
if (ttttxt_world > 1) {
ttttxt_world = 1;
}
var myformat = new TextFormat();
myformat.size = 38 * ttttxt_world;
mytext.setTextFormat(myformat);
}
}
movieClip 2300 Msg2 {
frame 1 {
var Message = this.getMessage();
}
frame 15 {
stop();
}
frame 20 {
stop();
this.removeMovieClip();
}
}
movieClip 2304 {
}
movieClip 2305 arrow_move {
frame 1 {
stop();
}
}
movieClip 2309 {
}
movieClip 2310 prop_move {
frame 17 {
this.removeMovieClip();
}
}
movieClip 2311 map_ball2 {
}
movieClip 2312 sleep_fang {
frame 33 {
this.removeMovieClip();
}
}
movieClip 2317 space {
}
movieClip 2328 {
}
movieClip 2375 {
}
frame 3 {
stop();
_root.createEmptyMovieClip('game', mask.getDepth() - 1);
as.Game.main(_root.game);
}