home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / flameout.swf / scripts / __Packages / SplashScreen.as < prev    next >
Encoding:
Text File  |  2006-06-13  |  1.3 KB  |  46 lines

  1. class SplashScreen extends LRG.LRGMovieClip
  2. {
  3.    var m_kBackground;
  4.    var m_kStartButton;
  5.    var onKeyUp;
  6.    var onRelease;
  7.    function SplashScreen()
  8.    {
  9.       super();
  10.    }
  11.    function init()
  12.    {
  13.       super.init();
  14.    }
  15.    function onShow()
  16.    {
  17.       _global.LRG.LRGMusic.startMusic(["fma_titlescreen_music.wav"]);
  18.       this.m_kBackground.onPress = function()
  19.       {
  20.       };
  21.       this.m_kBackground.onRelease = function()
  22.       {
  23.       };
  24.       this.m_kBackground.useHandCursor = false;
  25.       this.m_kStartButton.onRelease = function()
  26.       {
  27.          _global.playSound("fma_button.wav",1,_global.g_kApplication);
  28.          this.onKeyUp = undefined;
  29.          Key.removeListener(this);
  30.          _global.g_kApplication.m_kGui.m_kSplashScreen.gotoAndStop("Hide");
  31.          _global.g_kApplication.m_kGui.m_kSplashScreen._visible = false;
  32.          _global.g_kApplication.m_kGui.m_kHelpPanel.gotoAndStop("Show");
  33.          _global.g_kApplication.m_kGui.m_kHelpPanel._visible = true;
  34.          _global.g_kApplication.m_kGui.m_kHelpPanel.onShow();
  35.       };
  36.       Key.addListener(this.m_kStartButton);
  37.       this.m_kStartButton.onKeyUp = function()
  38.       {
  39.          if(Key.getCode() == 13)
  40.          {
  41.             this.onRelease();
  42.          }
  43.       };
  44.    }
  45. }
  46.