home *** CD-ROM | disk | FTP | other *** search
- class SplashScreen extends LRG.LRGMovieClip
- {
- var m_kBackground;
- var m_kStartButton;
- var onKeyUp;
- var onRelease;
- function SplashScreen()
- {
- super();
- }
- function init()
- {
- super.init();
- }
- function onShow()
- {
- _global.LRG.LRGMusic.startMusic(["fma_titlescreen_music.wav"]);
- this.m_kBackground.onPress = function()
- {
- };
- this.m_kBackground.onRelease = function()
- {
- };
- this.m_kBackground.useHandCursor = false;
- this.m_kStartButton.onRelease = function()
- {
- _global.playSound("fma_button.wav",1,_global.g_kApplication);
- this.onKeyUp = undefined;
- Key.removeListener(this);
- _global.g_kApplication.m_kGui.m_kSplashScreen.gotoAndStop("Hide");
- _global.g_kApplication.m_kGui.m_kSplashScreen._visible = false;
- _global.g_kApplication.m_kGui.m_kHelpPanel.gotoAndStop("Show");
- _global.g_kApplication.m_kGui.m_kHelpPanel._visible = true;
- _global.g_kApplication.m_kGui.m_kHelpPanel.onShow();
- };
- Key.addListener(this.m_kStartButton);
- this.m_kStartButton.onKeyUp = function()
- {
- if(Key.getCode() == 13)
- {
- this.onRelease();
- }
- };
- }
- }
-