home *** CD-ROM | disk | FTP | other *** search
- function catchKey()
- {
- var _loc1_ = Key.getCode();
- switch(_loc1_)
- {
- case 49:
- onePlayerGame();
- break;
- case 50:
- twoPlayerGame();
- break;
- case 79:
- options();
- }
- }
- function onePlayerGame()
- {
- textIntro.btnOnePlayer.enabled = false;
- Key.removeListener(this);
- sChoix = "1 Player";
- gotoAndPlay(13);
- }
- function twoPlayerGame()
- {
- textIntro.btnTwoPlayers.enabled = false;
- Key.removeListener(this);
- sChoix = "2 Players";
- gotoAndPlay(13);
- }
- function options()
- {
- textIntro.btnOptions.enabled = false;
- Key.removeListener(this);
- sChoix = "Options";
- gotoAndPlay(13);
- }
- stop();
- var nPlayers = 0;
- var sPlayerName1 = "Player1";
- var nLevel1 = 0;
- var nHandicap1 = 0;
- var nMatchPoint1 = 0;
- var sPlayerName2 = "Player2";
- var nLevel2 = 0;
- var nHandicap2 = 0;
- var nMatchPoint2 = 0;
- var sChoix = "Options";
- Key.removeListener(this);
- Key.addListener(this);
- this.onKeyDown = catchKey;
- textIntro.btnOnePlayer.onPress = function()
- {
- onePlayerGame();
- };
- textIntro.btnTwoPlayers.onPress = function()
- {
- twoPlayerGame();
- };
- textIntro.btnOptions.onPress = function()
- {
- options();
- };
-