Section 1
//aswheels_13 (mountain_fla.aswheels_13)
package mountain_fla {
import flash.display.*;
public dynamic class aswheels_13 extends MovieClip {
public function aswheels_13(){
addFrameScript(14, frame15);
}
function frame15(){
}
}
}//package mountain_fla
Section 2
//congrSymbol1_80 (mountain_fla.congrSymbol1_80)
package mountain_fla {
import flash.display.*;
public dynamic class congrSymbol1_80 extends MovieClip {
public function congrSymbol1_80(){
addFrameScript(0, frame1, 41, frame42);
}
function frame42(){
stop();
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 3
//constant_38 (mountain_fla.constant_38)
package mountain_fla {
import flash.display.*;
public dynamic class constant_38 extends MovieClip {
public function constant_38(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 4
//decompt_63 (mountain_fla.decompt_63)
package mountain_fla {
import flash.display.*;
public dynamic class decompt_63 extends MovieClip {
public function decompt_63(){
addFrameScript(0, frame1, 21, frame22);
}
function frame1(){
stop();
}
function frame22(){
stop();
MovieClip(this.root).gotoAndStop("carRace");
}
}
}//package mountain_fla
Section 5
//decupid_60 (mountain_fla.decupid_60)
package mountain_fla {
import flash.display.*;
public dynamic class decupid_60 extends MovieClip {
public var p1:MovieClip;
public var p2:MovieClip;
public var c1:MovieClip;
public function decupid_60(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame2(){
stop();
p1.gotoAndPlay(2);
}
function frame3(){
stop();
p2.gotoAndPlay(2);
}
function frame4(){
stop();
c1.gotoAndPlay(2);
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 6
//dedslr_71 (mountain_fla.dedslr_71)
package mountain_fla {
import flash.display.*;
public dynamic class dedslr_71 extends MovieClip {
public var speedMeeter2:MovieClip;
public var turbo2:MovieClip;
public function dedslr_71(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mountain_fla
Section 7
//dehowitposs_74 (mountain_fla.dehowitposs_74)
package mountain_fla {
import flash.display.*;
import flash.text.*;
public dynamic class dehowitposs_74 extends MovieClip {
public var player2Lap:TextField;
public function dehowitposs_74(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 8
//deplayer1_61 (mountain_fla.deplayer1_61)
package mountain_fla {
import flash.display.*;
public dynamic class deplayer1_61 extends MovieClip {
public function deplayer1_61(){
addFrameScript(0, frame1, 21, frame22);
}
function frame1(){
stop();
}
function frame22(){
stop();
MovieClip(this.root).gotoAndStop("Levelup");
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package mountain_fla
Section 9
//despeespeedpointer_68 (mountain_fla.despeespeedpointer_68)
package mountain_fla {
import flash.display.*;
public dynamic class despeespeedpointer_68 extends MovieClip {
public function despeespeedpointer_68(){
addFrameScript(0, frame1, 68, frame69);
}
function frame69(){
stop();
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 10
//despeeturbopointer_70 (mountain_fla.despeeturbopointer_70)
package mountain_fla {
import flash.display.*;
public dynamic class despeeturbopointer_70 extends MovieClip {
public function despeeturbopointer_70(){
addFrameScript(0, frame1, 54, frame55);
}
function frame1(){
stop();
}
function frame55(){
stop();
}
}
}//package mountain_fla
Section 11
//deSymbol4_62 (mountain_fla.deSymbol4_62)
package mountain_fla {
import flash.display.*;
public dynamic class deSymbol4_62 extends MovieClip {
public function deSymbol4_62(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
MovieClip(this.root).gotoAndStop("Levelup");
MovieClip(this.parent).gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 12
//detimerbox_73 (mountain_fla.detimerbox_73)
package mountain_fla {
import flash.display.*;
import flash.text.*;
public dynamic class detimerbox_73 extends MovieClip {
public var timeText:TextField;
public function detimerbox_73(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 13
//dsf_76 (mountain_fla.dsf_76)
package mountain_fla {
import flash.display.*;
public dynamic class dsf_76 extends MovieClip {
public function dsf_76(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 14
//enson_27 (mountain_fla.enson_27)
package mountain_fla {
import flash.display.*;
public dynamic class enson_27 extends MovieClip {
public function enson_27(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mountain_fla
Section 15
//ensoption_21 (mountain_fla.ensoption_21)
package mountain_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class ensoption_21 extends MovieClip {
public var low:MovieClip;
public var btnLow:SimpleButton;
public var btnOn:SimpleButton;
public var btnHigh:SimpleButton;
public var high:MovieClip;
public var backHome:SimpleButton;
public var btnMedium:SimpleButton;
public var btnOff:SimpleButton;
public var offBtn:MovieClip;
public var medium:MovieClip;
public var onBtn:MovieClip;
public function ensoption_21(){
addFrameScript(0, frame1);
}
public function soundLow(_arg1:MouseEvent):void{
if (low.currentFrame == 1){
low.gotoAndStop(2);
medium.gotoAndStop(1);
high.gotoAndStop(1);
MovieClip(this.root).sndVolume = 0.2;
} else {
MovieClip(this.root).sndVolume = 1;
low.gotoAndStop(1);
};
}
public function soundOn(_arg1:MouseEvent):void{
if (onBtn.currentFrame == 1){
onBtn.gotoAndStop(2);
offBtn.gotoAndStop(1);
} else {
onBtn.gotoAndStop(1);
};
}
public function soundHigh(_arg1:MouseEvent):void{
if (high.currentFrame == 1){
low.gotoAndStop(1);
medium.gotoAndStop(1);
high.gotoAndStop(2);
MovieClip(this.root).sndVolume = 1;
} else {
MovieClip(this.root).sndVolume = 1;
high.gotoAndStop(1);
};
}
public function soundOff(_arg1:MouseEvent):void{
if (offBtn.currentFrame == 1){
offBtn.gotoAndStop(2);
onBtn.gotoAndStop(1);
MovieClip(this.root).soundOff = true;
} else {
MovieClip(this.root).soundOff = false;
offBtn.gotoAndStop(1);
};
}
public function soundMedium(_arg1:MouseEvent):void{
if (medium.currentFrame == 1){
medium.gotoAndStop(2);
low.gotoAndStop(1);
high.gotoAndStop(1);
MovieClip(this.root).sndVolume = 0.5;
} else {
MovieClip(this.root).sndVolume = 1;
medium.gotoAndStop(1);
};
}
public function goHome(_arg1:MouseEvent):void{
MovieClip(this).x = -397;
}
function frame1(){
stop();
btnOn.addEventListener(MouseEvent.CLICK, soundOn);
btnOff.addEventListener(MouseEvent.CLICK, soundOff);
btnLow.addEventListener(MouseEvent.CLICK, soundLow);
btnMedium.addEventListener(MouseEvent.CLICK, soundMedium);
btnHigh.addEventListener(MouseEvent.CLICK, soundHigh);
stop();
backHome.addEventListener(MouseEvent.CLICK, goHome);
}
}
}//package mountain_fla
Section 16
//enswheels_26 (mountain_fla.enswheels_26)
package mountain_fla {
import flash.display.*;
public dynamic class enswheels_26 extends MovieClip {
public function enswheels_26(){
addFrameScript(14, frame15);
}
function frame15(){
}
}
}//package mountain_fla
Section 17
//fsdg_83 (mountain_fla.fsdg_83)
package mountain_fla {
import flash.display.*;
public dynamic class fsdg_83 extends MovieClip {
public var playMorebtn2:SimpleButton;
public function fsdg_83(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 18
//insdwheels_35 (mountain_fla.insdwheels_35)
package mountain_fla {
import flash.display.*;
public dynamic class insdwheels_35 extends MovieClip {
public function insdwheels_35(){
addFrameScript(14, frame15);
}
function frame15(){
}
}
}//package mountain_fla
Section 19
//lapfinish_65 (mountain_fla.lapfinish_65)
package mountain_fla {
import flash.display.*;
public dynamic class lapfinish_65 extends MovieClip {
public function lapfinish_65(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 20
//lapfinishcopy_64 (mountain_fla.lapfinishcopy_64)
package mountain_fla {
import flash.display.*;
public dynamic class lapfinishcopy_64 extends MovieClip {
public function lapfinishcopy_64(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 21
//MainTimeline (mountain_fla.MainTimeline)
package mountain_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var panel:MovieClip;
public var left:Boolean;
public var leftkeyPressed:Boolean;
public var player1Lap:MovieClip;
public var milliseconds:Number;
public var loader:MovieClip;
public var digital:MovieClip;
public var soundBoolean:Boolean;
public var right:Boolean;
public var timeup:MovieClip;
public var midvalue:Number;
public var pauseMc:MovieClip;
public var midPoint:Boolean;
public var roadtop:MovieClip;
public var levelBtn:SimpleButton;
public var twoplayer:SimpleButton;
public var bg:MovieClip;
public var track1:MovieClip;
public var speed:Number;
public var transform1:SoundTransform;
public var currentSpeed:Number;
public var min:Number;
public var signalMc:MovieClip;
public var i:Number;
public var startPnt:MovieClip;
public var option:MovieClip;
public var seconds:Number;
public var acceleration:Number;
public var shift:Boolean;
public var pauseBtn:SimpleButton;
public var playmore:SimpleButton;
public var timecounter:Boolean;
public var up:Boolean;
public var down:Boolean;
public var p2currentLap:Number;
public var gameLevel:Number;
public var oneplayer:SimpleButton;
public var midPnt:MovieClip;
public var levelText:TextField;
public var insBg:MovieClip;
public var c2currentLap:Number;
public var computercar:MovieClip;
public var carSpeed:Number;
public var xpos:Number;
public var car2:MovieClip;
public var downkeyPressed:Boolean;
public var computercarSpeed:Number;
public var speedX:Number;
public var speedY:Number;
public var player2Rect:MovieClip;
public var space:Boolean;
public var xx:Number;
public var sound:bgsound;
public var playmoreBtn:SimpleButton;
public var carmaxSpeed:Number;
public var digital2:MovieClip;
public var computer:Boolean;
public var road:MovieClip;
public var yy:Number;
public var HelpBtn:SimpleButton;
public var soundBoolean1:Boolean;
public var ypos:Number;
public var timer:Timer;
public var c2midPoint:Boolean;
public var c2midvalue:Number;
public var sndChannel:SoundChannel;
public var loaderTxt:TextField;
public var currentLap:Number;
public var rotationSpeed:Number;
public var player2:Boolean;
public var point:Point;
public var congrats:MovieClip;
public var timeArray:Array;
public var upkeyPressed:Boolean;
public var totalLaps:Number;
public var optionBtn:SimpleButton;
public var timerMc:MovieClip;
public var setCheck:Boolean;
public var car:MovieClip;
public var rightkeyPressed:Boolean;
public var soundOff:Boolean;
public var sndVolume:Number;
public var gameOver:MovieClip;
public var p2midvalue:Number;
public var temp:Number;
public var p2midPoint:Boolean;
public var musicBtn:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 11, frame12, 19, frame20, 29, frame30, 37, frame38);
}
public function clicked(_arg1:MouseEvent):void{
this.gotoAndStop("carRace");
}
public function moveCar(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
if (space){
pauseGame();
};
if (((this["car2"].hitTestObject(midPnt)) && ((midPoint == false)))){
midPoint = true;
midvalue = 1;
};
if (((this["car2"].hitTestObject(startPnt)) && ((midvalue == 1)))){
midvalue = 0;
midPoint = false;
currentLap++;
player1Lap.lapText.text = ((currentLap + " / ") + totalLaps);
};
if (((this["car"].hitTestObject(midPnt)) && ((p2midPoint == false)))){
p2midPoint = true;
p2midvalue = 1;
};
if (((this["car"].hitTestObject(startPnt)) && ((p2midvalue == 1)))){
p2midvalue = 0;
p2midPoint = false;
p2currentLap++;
player2Rect.player2Lap.text = ((p2currentLap + " / ") + totalLaps);
};
if (((up) && ((currentSpeed < 7)))){
currentSpeed = (currentSpeed + acceleration);
};
if (((down) && ((currentSpeed > -6)))){
currentSpeed = (currentSpeed - acceleration);
};
if (right){
car2.rotation = (car2.rotation + 9.2);
};
if (left){
car2.rotation = (car2.rotation - 9.2);
};
if (((!(up)) && (!(down)))){
if (currentSpeed > 0){
currentSpeed = (currentSpeed - 0.25);
} else {
if (currentSpeed < -1){
currentSpeed = (currentSpeed + 0.25);
} else {
currentSpeed = 0;
};
};
};
currentSpeed = (currentSpeed * 0.98);
xx = (Math.sin(((car2.rotation * Math.PI) / 180)) * currentSpeed);
yy = ((Math.cos(((car2.rotation * Math.PI) / 180)) * currentSpeed) * -1);
if (!this.road.hitRegion.hitTestPoint((car2.x + xx), (car2.y + yy), true)){
car2.x = (car2.x + xx);
car2.y = (car2.y + yy);
soundBoolean1 = false;
} else {
if (soundBoolean1 == false){
soundBoolean1 = true;
soundEffects("policehitsound");
};
if (((up) || (down))){
currentSpeed = 2;
};
car2.x = (car2.x + (xx / 4));
car2.y = (car2.y + (yy / 4));
};
if (computer == true){
point = new Point(0, 0);
_local2 = track1[("hit" + i)].localToGlobal(point).x;
_local3 = track1[("hit" + i)].localToGlobal(point).y;
if (((this["computercar"].hitTestObject(midPnt)) && ((c2midPoint == false)))){
c2midPoint = true;
c2midvalue = 1;
};
if (((this["computercar"].hitTestObject(startPnt)) && ((c2midvalue == 1)))){
c2midvalue = 0;
c2midPoint = false;
c2currentLap++;
trace(("currentLap:" + c2currentLap));
};
xpos = (_local2 - computercar.x);
ypos = (_local3 - computercar.y);
_local4 = Math.sqrt(((xpos * xpos) + (ypos * ypos)));
_local5 = Math.atan2(ypos, xpos);
computercar.rotation = ((_local5 * 180) / Math.PI);
if (_local4 > 15){
computercar.x = (computercar.x + (Math.cos(_local5) * computercarSpeed));
computercar.y = (computercar.y + (Math.sin(_local5) * computercarSpeed));
} else {
computercar.x = (computercar.x + (Math.cos(_local5) * computercarSpeed));
computercar.y = (computercar.y + (Math.sin(_local5) * computercarSpeed));
if (i < 107){
i++;
} else {
i = 35;
};
};
};
if ((((computer == false)) && ((player2 == true)))){
if (((upkeyPressed) && ((carSpeed < carmaxSpeed)))){
carSpeed = (carSpeed + acceleration);
};
if (((downkeyPressed) && ((carSpeed > -6)))){
carSpeed = (carSpeed - acceleration);
};
if (rightkeyPressed){
car.rotation = (car.rotation + 9.2);
};
if (leftkeyPressed){
car.rotation = (car.rotation - 9.2);
};
if (((!(upkeyPressed)) && (!(downkeyPressed)))){
if (carSpeed > 0){
carSpeed = (carSpeed - 0.25);
} else {
if (carSpeed < -1){
carSpeed = (carSpeed + 0.25);
} else {
carSpeed = 0;
};
};
};
carSpeed = (carSpeed * 0.98);
speedX = (Math.sin(((car.rotation * Math.PI) / 180)) * carSpeed);
speedY = ((Math.cos(((car.rotation * Math.PI) / 180)) * carSpeed) * -1);
if (!this.road.hitRegion.hitTestPoint((car.x + speedX), (car.y + speedY), true)){
car.x = (car.x + speedX);
car.y = (car.y + speedY);
soundBoolean = false;
} else {
if (soundBoolean == false){
soundBoolean = true;
soundEffects("policehitsound");
};
if (((up) || (down))){
carSpeed = 2;
};
car.x = (car.x + (speedX / 4));
car.y = (car.y + (speedY / 4));
};
};
levelChecking();
carCollision();
}
public function pausePlay(_arg1:MouseEvent):void{
if (pauseMc.currentFrame == 1){
pauseGame();
} else {
if (pauseMc.currentFrame == 2){
pauseAct();
};
};
}
function frame12(){
stop();
sndChannel = new SoundChannel();
sndChannel.stop();
computer = false;
player2 = false;
gameLevel = 1;
timecounter = false;
soundOff = false;
sndVolume = 1;
playmore.addEventListener(MouseEvent.CLICK, morePressed);
oneplayer.addEventListener(MouseEvent.CLICK, mousePressed);
optionBtn.addEventListener(MouseEvent.CLICK, optionEnabled);
twoplayer.addEventListener(MouseEvent.CLICK, chooseplayer2);
HelpBtn.addEventListener(MouseEvent.CLICK, helpPlease);
}
public function moveNext(_arg1:MouseEvent):void{
if (gameLevel < 3){
gameLevel++;
gotoAndStop("start");
} else {
gotoAndStop("carRace");
};
}
public function simpleLoader(_arg1:Event):void{
var _local2:int = Math.round(stage.loaderInfo.bytesLoaded);
var _local3:int = Math.round(stage.loaderInfo.bytesTotal);
var _local4:int = Math.round(((_local2 / _local3) * 100));
loader.scaleX = (_local4 / 100);
loaderTxt.text = String(((((Math.round((_local2 / 1000)) + " Kb") + " /") + Math.round((_local3 / 1000))) + " Kb"));
if (_local4 == 100){
gotoAndStop("carRace");
stage.removeEventListener(Event.ENTER_FRAME, simpleLoader);
};
}
function frame20(){
stop();
insBg.BackMenu.addEventListener(MouseEvent.CLICK, clicked);
}
public function moreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.cartitans.com/"), "_blank");
}
function frame1(){
stop();
MochiBot.track(this, "b734d3de");
stage.addEventListener(Event.ENTER_FRAME, simpleLoader);
}
public function gameTimes(_arg1:TimerEvent):void{
if (temp <= timeArray[gameLevel]){
milliseconds++;
if ((milliseconds % 60) == 0){
seconds++;
temp++;
milliseconds = 0;
};
if ((seconds / 60) == 1){
min++;
seconds = 0;
};
timerMc.timeText.text = ((((min + ":") + seconds) + ":") + milliseconds);
} else {
timeup.gotoAndPlay(2);
timecounter = true;
timer.stop();
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyReleased);
stage.removeEventListener(Event.ENTER_FRAME, moveCar);
};
}
public function helpPlease(_arg1:MouseEvent):void{
gotoAndStop("Instruction");
}
function frame38(){
stop();
sndChannel.stop();
if (gameLevel == 3){
panel.gotoAndStop(2);
} else {
if (timecounter == false){
congrats.gotoAndPlay(2);
};
};
if (timecounter == true){
gameLevel = 5;
panel.gotoAndStop(3);
};
levelBtn.addEventListener(MouseEvent.CLICK, moveNext);
panel.playMorebtn2.addEventListener(MouseEvent.CLICK, moreGames);
}
function frame30(){
stop();
stage.scaleMode = StageScaleMode.NO_SCALE;
soundBoolean = false;
soundBoolean1 = false;
upkeyPressed = false;
downkeyPressed = false;
rightkeyPressed = false;
leftkeyPressed = false;
carSpeed = 0;
carmaxSpeed = 7;
rotationSpeed = 8;
acceleration = 0.5;
speed = 0;
i = 35;
up = false;
down = false;
right = false;
left = false;
space = false;
currentSpeed = 0;
midPoint = false;
midvalue = 0;
totalLaps = 8;
currentLap = 1;
p2midPoint = false;
p2midvalue = 0;
p2currentLap = 1;
c2midPoint = false;
c2midvalue = 0;
c2currentLap = 1;
computercarSpeed = 6;
xx = 0;
yy = 0;
midPnt.gotoAndStop(gameLevel);
startPnt.gotoAndStop(gameLevel);
bg.gotoAndStop(gameLevel);
roadtop.gotoAndStop(gameLevel);
track1.gotoAndStop(gameLevel);
road.gotoAndStop(gameLevel);
levelText.text = String(gameLevel);
timerMc.gotoAndStop(gameLevel);
init();
setCheck = false;
milliseconds = 0;
timeArray = new Array("", 90, 100, 120);
seconds = 0;
min = 0;
timer = new Timer(16, 0);
timer.start();
temp = 0;
musicBtn.addEventListener(MouseEvent.CLICK, musicPlay);
sound = new bgsound();
if (soundOff == false){
sndChannel = sound.play(0, int.MAX_VALUE);
transform1 = sndChannel.soundTransform;
transform1.volume = sndVolume;
sndChannel.soundTransform = transform1;
};
pauseBtn.addEventListener(MouseEvent.CLICK, pausePlay);
playmoreBtn.addEventListener(MouseEvent.CLICK, playMoregames);
}
public function pauseAct(){
if (musicBtn.currentFrame == 2){
musicBtn.gotoAndStop(1);
sndChannel = sound.play(0, int.MAX_VALUE);
};
timer.start();
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.addEventListener(Event.ENTER_FRAME, moveCar);
pauseMc.gotoAndStop(1);
}
public function keyPressed(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 65){
leftkeyPressed = true;
};
if (_arg1.keyCode == 68){
rightkeyPressed = true;
};
if (_arg1.keyCode == 87){
upkeyPressed = true;
};
if (_arg1.keyCode == 83){
downkeyPressed = true;
};
if (_arg1.keyCode == Keyboard.UP){
up = true;
};
if (_arg1.keyCode == Keyboard.DOWN){
down = true;
};
if (_arg1.keyCode == Keyboard.RIGHT){
right = true;
};
if (_arg1.keyCode == Keyboard.LEFT){
left = true;
};
if (_arg1.keyCode == Keyboard.SHIFT){
shift = true;
};
}
public function keyReleased(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 65){
leftkeyPressed = false;
};
if (_arg1.keyCode == 68){
rightkeyPressed = false;
};
if (_arg1.keyCode == 87){
upkeyPressed = false;
};
if (_arg1.keyCode == 83){
downkeyPressed = false;
};
if (_arg1.keyCode == Keyboard.UP){
up = false;
};
if (_arg1.keyCode == Keyboard.DOWN){
down = false;
};
if (_arg1.keyCode == Keyboard.RIGHT){
right = false;
};
if (_arg1.keyCode == Keyboard.LEFT){
left = false;
};
if (_arg1.keyCode == Keyboard.SHIFT){
shift = false;
};
if (_arg1.keyCode == Keyboard.SPACE){
if (pauseMc.currentFrame == 1){
pauseGame();
} else {
if (pauseMc.currentFrame == 2){
pauseAct();
};
};
};
}
public function soundEffects(_arg1:String):void{
var _local2:Class;
var _local3:Object;
if (soundOff == false){
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
if (musicBtn.currentFrame == 1){
_local3.play();
};
};
}
public function musicPlay(_arg1:MouseEvent):void{
if (musicBtn.currentFrame == 1){
musicBtn.gotoAndStop(2);
sndChannel.stop();
} else {
if (musicBtn.currentFrame == 2){
musicBtn.gotoAndStop(1);
sndChannel = sound.play(0, int.MAX_VALUE);
};
};
}
public function pauseGame(){
timer.stop();
if (musicBtn.currentFrame == 1){
musicBtn.gotoAndStop(2);
sndChannel.stop();
};
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.removeEventListener(Event.ENTER_FRAME, moveCar);
pauseMc.gotoAndStop(2);
}
public function checkCollision(_arg1, _arg2){
var _local3:Rectangle = checkForCollision(_arg1, _arg2);
if (_local3){
return (true);
};
return (false);
}
public function morePressed(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.cartitans.com/"), "_blank");
}
public function init(){
if ((((gameLevel == 1)) && ((computer == true)))){
this["car2"].x = 200.6;
this["car2"].y = 352.3;
this["computercar"].x = 199;
this["computercar"].y = 373;
} else {
if ((((computer == false)) && ((gameLevel == 1)))){
this["car"].x = 199;
this["car"].y = 373;
this["car2"].x = 200.6;
this["car2"].y = 352.3;
};
};
if ((((gameLevel == 2)) && ((computer == true)))){
this["car2"].x = 251;
this["car2"].y = 316;
this["computercar"].x = 245;
this["computercar"].y = 345;
} else {
if ((((computer == false)) && ((gameLevel == 2)))){
car.x = 248;
car.y = 332;
car2.x = 251;
car2.y = 316;
};
};
if ((((gameLevel == 3)) && ((computer == true)))){
this["car2"].x = 248.7;
this["car2"].y = 325.8;
this["computercar"].x = 248;
this["computercar"].y = 345;
} else {
if ((((computer == false)) && ((gameLevel == 3)))){
this["car"].x = 248;
this["car"].y = 345;
this["car2"].x = 248.7;
this["car2"].y = 325.8;
};
};
if (computer == false){
digital2.gotoAndStop(2);
player2Rect.gotoAndStop(2);
} else {
digital2.gotoAndStop(1);
player2Rect.gotoAndStop(1);
};
}
public function optionEnabled(_arg1:MouseEvent):void{
option.x = 275;
}
public function startGame(){
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.addEventListener(KeyboardEvent.KEY_UP, keyReleased);
stage.addEventListener(Event.ENTER_FRAME, moveCar);
timer.addEventListener(TimerEvent.TIMER, gameTimes);
}
public function chooseplayer2(_arg1:MouseEvent):void{
player2 = true;
gotoAndStop("start");
}
public function levelChecking():void{
var _local3:Number;
var _local4:Number;
if ((((((currentLap == 9)) || ((p2currentLap == 9)))) || ((c2currentLap == 9)))){
if (c2currentLap == 9){
gameOver.gotoAndStop(4);
} else {
if (currentLap == 9){
gameOver.gotoAndStop(2);
} else {
gameOver.gotoAndStop(3);
};
};
timer.stop();
sndChannel.stop();
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyReleased);
stage.removeEventListener(Event.ENTER_FRAME, moveCar);
};
var _local1:Number = Math.round((currentSpeed * 6));
digital.speedMeeter.needle2.gotoAndStop(Math.round(_local1));
var _local2:Number = Math.round((carSpeed * 6));
if ((((player2 == true)) && ((computer == false)))){
digital2.speedMeeter2.needle2.gotoAndStop(Math.round(_local2));
};
if (((shift) && (up))){
currentSpeed = (currentSpeed + 0.2);
_local3 = Math.round(currentSpeed);
digital.turbo.turbometer.gotoAndStop(Math.round(_local3));
if ((((computer == false)) && ((player2 == true)))){
carSpeed = (carSpeed + 0.2);
_local4 = Math.round(carSpeed);
digital2.turbo2.turbometer.gotoAndStop(_local4);
};
} else {
digital.turbo.turbometer.gotoAndStop(1);
if (computer == false){
digital2.turbo2.turbometer.gotoAndStop(1);
};
};
}
public function checkForCollision(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Boolean=true, _arg4:int=0xFF){
var _local5:Rectangle = _arg1.getBounds(_arg1.parent.parent);
var _local6:Rectangle = _arg2.getBounds(_arg2.parent.parent);
var _local7:Rectangle = _local5.intersection(_local6);
_local7.x = Math.floor(_local7.x);
_local7.y = Math.floor(_local7.y);
_local7.width = Math.ceil(_local7.width);
_local7.height = Math.ceil(_local7.height);
if ((((_local7.width < 1)) || ((_local7.height < 1)))){
return (null);
};
if (!_arg3){
return (_local7);
};
var _local8:BitmapData = new BitmapData(_local7.width, _local7.height, false);
var _local9:Matrix = _arg1.transform.concatenatedMatrix;
_local9.translate(-(_local7.left), -(_local7.top));
_local8.draw(_arg1, _local9, new ColorTransform(1, 0, 0, 1, 0xFF, -255, -255, _arg4));
_local9 = _arg2.transform.concatenatedMatrix;
_local9.translate(-(_local7.left), -(_local7.top));
_local8.draw(_arg2, _local9, new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, _arg4), "difference");
var _local10:Rectangle = _local8.getColorBoundsRect(4294967295, 4278255615);
if (_local10.width == 0){
return (null);
};
_local10.offset(_local7.left, _local7.top);
return (_local10);
}
public function mousePressed(_arg1:MouseEvent):void{
computer = true;
gotoAndStop("start");
}
public function carCollision(){
if ((((checkCollision(car, car2) == true)) && ((setCheck == false)))){
soundEffects("carhitsound");
carSpeed = ((carSpeed / carmaxSpeed) * -5);
currentSpeed = ((currentSpeed / 8) * -5);
if ((((currentSpeed >= 0)) && ((carSpeed == 0)))){
carSpeed = -2;
} else {
if (currentSpeed < 0){
carSpeed = 2;
};
};
if ((((carSpeed >= 0)) && ((currentSpeed == 0)))){
currentSpeed = -2;
} else {
if (carSpeed < 0){
currentSpeed = 2;
};
};
setCheck = true;
} else {
setCheck = false;
};
if ((((checkCollision(this["car2"], this["computercar"]) == true)) && ((setCheck == false)))){
soundEffects("carhitsound");
computercarSpeed = 0;
} else {
computercarSpeed = 6;
};
}
public function playMoregames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.cartitans.com/"), "_blank");
}
}
}//package mountain_fla
Section 22
//pauseMc_78 (mountain_fla.pauseMc_78)
package mountain_fla {
import flash.display.*;
public dynamic class pauseMc_78 extends MovieClip {
public function pauseMc_78(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 23
//singletrack_43 (mountain_fla.singletrack_43)
package mountain_fla {
import flash.display.*;
public dynamic class singletrack_43 extends MovieClip {
public var hitRegion:MovieClip;
public function singletrack_43(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 24
//sSymbol1_56 (mountain_fla.sSymbol1_56)
package mountain_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class sSymbol1_56 extends MovieClip {
public function sSymbol1_56(){
addFrameScript(110, frame111);
}
function frame111(){
stop();
MovieClip(this.root).startGame();
}
}
}//package mountain_fla
Section 25
//Symbol4_50 (mountain_fla.Symbol4_50)
package mountain_fla {
import flash.display.*;
public dynamic class Symbol4_50 extends MovieClip {
public function Symbol4_50(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 26
//tier_75 (mountain_fla.tier_75)
package mountain_fla {
import flash.display.*;
public dynamic class tier_75 extends MovieClip {
public function tier_75(){
addFrameScript(0, frame1, 34, frame35);
}
function frame1(){
stop();
}
function frame35(){
stop();
trace("level time is over");
MovieClip(this.root).gotoAndStop("Levelup");
}
}
}//package mountain_fla
Section 27
//tra_36 (mountain_fla.tra_36)
package mountain_fla {
import flash.display.*;
public dynamic class tra_36 extends MovieClip {
public var hit35:MovieClip;
public var hit36:MovieClip;
public var hit37:MovieClip;
public var hit38:MovieClip;
public var hit39:MovieClip;
public var hit40:MovieClip;
public var hit41:MovieClip;
public var hit42:MovieClip;
public var hit43:MovieClip;
public var hit44:MovieClip;
public var hit45:MovieClip;
public var hit46:MovieClip;
public var hit47:MovieClip;
public var hit48:MovieClip;
public var hit49:MovieClip;
public var hit50:MovieClip;
public var hit51:MovieClip;
public var hit55:MovieClip;
public var hit56:MovieClip;
public var hit57:MovieClip;
public var hit58:MovieClip;
public var hit59:MovieClip;
public var hit53:MovieClip;
public var hit54:MovieClip;
public var hit100:MovieClip;
public var hit52:MovieClip;
public var hit102:MovieClip;
public var hit103:MovieClip;
public var hit104:MovieClip;
public var hit105:MovieClip;
public var hit106:MovieClip;
public var hit107:MovieClip;
public var hit108:MovieClip;
public var hit60:MovieClip;
public var hit61:MovieClip;
public var hit62:MovieClip;
public var hit63:MovieClip;
public var hit64:MovieClip;
public var hit65:MovieClip;
public var hit66:MovieClip;
public var hit67:MovieClip;
public var hit68:MovieClip;
public var hit69:MovieClip;
public var hit101:MovieClip;
public var hit71:MovieClip;
public var hit73:MovieClip;
public var hit74:MovieClip;
public var hit75:MovieClip;
public var hit76:MovieClip;
public var hit77:MovieClip;
public var hit78:MovieClip;
public var hit79:MovieClip;
public var hit70:MovieClip;
public var hit72:MovieClip;
public var hit80:MovieClip;
public var hit81:MovieClip;
public var hit82:MovieClip;
public var hit83:MovieClip;
public var hit84:MovieClip;
public var hit85:MovieClip;
public var hit86:MovieClip;
public var hit87:MovieClip;
public var hit88:MovieClip;
public var hit89:MovieClip;
public var hit90:MovieClip;
public var hit91:MovieClip;
public var hit92:MovieClip;
public var hit94:MovieClip;
public var hit95:MovieClip;
public var hit96:MovieClip;
public var hit98:MovieClip;
public var hit93:MovieClip;
public var hit97:MovieClip;
public var hit99:MovieClip;
public function tra_36(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mountain_fla
Section 28
//bgsound (bgsound)
package {
import flash.media.*;
public dynamic class bgsound extends Sound {
}
}//package
Section 29
//carhitsound (carhitsound)
package {
import flash.media.*;
public dynamic class carhitsound extends Sound {
}
}//package
Section 30
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.system.*;
import flash.net.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 31
//placehitsound (placehitsound)
package {
import flash.media.*;
public dynamic class placehitsound extends Sound {
}
}//package
Section 32
//policehitsound (policehitsound)
package {
import flash.media.*;
public dynamic class policehitsound extends Sound {
}
}//package