home *** CD-ROM | disk | FTP | other *** search
- function goToRaceStart()
- {
- _global.shipClass = shipChoice;
- _global.startSeconds = 60;
- _global.startMilliseconds = 0;
- _global.leg = "london";
- _global.nextCity = "lisbon";
- _global.nextDock = "lisbonDock_mc";
- _global.shipRotation = 0;
- gotoAndStop("start");
- play();
- }
- function goToPracticeStart()
- {
- gotoAndStop("slideShow0");
- play();
- _global.shipClass = shipChoice;
- _global.shipRotation = 0;
- }
- stop();
- _quality = "HIGH";
- detailToggle_mc._visible = false;
- soundToggle_mc._visible = false;
- _global.city = new Array();
- _global.totalPoints = 0;
- nextPortArrow_mc.removeMovieClip();
- endA = 237;
- endB = 150;
- endC = 71;
- endY = endB;
- shipChoice = "B";
- arrowDown = false;
- openingSound.stop();
- slider_mc.onEnterFrame = function()
- {
- if(_xmouse < 120 && _xmouse > 20)
- {
- if(_ymouse >= endC)
- {
- if(_ymouse < endC + 70)
- {
- endY = endC;
- shipChoice = "C";
- }
- else if(_ymouse < endB + 70)
- {
- endY = endB;
- shipChoice = "B";
- }
- else if(_ymouse < endA + 70)
- {
- endY = endA;
- shipChoice = "A";
- }
- }
- }
- if(Key.isDown(49))
- {
- endY = endC;
- shipChoice = "C";
- }
- else if(Key.isDown(50))
- {
- endY = endB;
- shipChoice = "B";
- }
- else if(Key.isDown(51))
- {
- endY = endA;
- shipChoice = "A";
- }
- if(Key.isDown(38) && !arrowDown)
- {
- arrowDown = true;
- if(shipChoice == "A")
- {
- endY = endB;
- shipChoice = "B";
- }
- else
- {
- endY = endC;
- shipChoice = "C";
- }
- }
- else if(Key.isDown(40) && !arrowDown)
- {
- arrowDown = true;
- if(shipChoice == "C")
- {
- endY = endB;
- shipChoice = "B";
- }
- else
- {
- endY = endA;
- shipChoice = "A";
- }
- }
- else if(!Key.isDown(38) && !Key.isDown(40))
- {
- arrowDown = false;
- }
- shipDescriptions_mc.gotoAndPlay(shipChoice);
- if(shipChoice == "A")
- {
- slider_mc.selectArrowUp_mc._visible = true;
- slider_mc.selectArrowDown_mc._visible = false;
- }
- else if(shipChoice == "B")
- {
- slider_mc.selectArrowUp_mc._visible = true;
- slider_mc.selectArrowDown_mc._visible = true;
- }
- else if(shipChoice == "C")
- {
- slider_mc.selectArrowUp_mc._visible = false;
- slider_mc.selectArrowDown_mc._visible = true;
- }
- if(Key.isDown(32) || Key.isDown(82))
- {
- goToRaceStart();
- }
- this._y += (endY - this._y) / 5;
- };
- textBGMask_mc.onEnterFrame = function()
- {
- this._y += (163 + endY - this._y) / 5;
- };
- btnRace_mc.onRelease = function()
- {
- goToRaceStart();
- };
- btnPractice_mc.onRelease = function()
- {
- goToPracticeStart();
- };
-