home *** CD-ROM | disk | FTP | other *** search
- class HelpPanel extends LRG.LRGMovieClip
- {
- var m_kBackground;
- var m_kOkButton;
- var onKeyUp;
- var onRelease;
- function HelpPanel()
- {
- super();
- }
- function init()
- {
- super.init();
- }
- function onShow()
- {
- _global.getApplicationState().setPaused(true);
- this.m_kBackground.onPress = function()
- {
- };
- this.m_kBackground.onRelease = function()
- {
- };
- this.m_kBackground.useHandCursor = false;
- this.m_kOkButton.onRelease = function()
- {
- _global.playSound("fma_button.wav",1,_global.g_kApplication);
- this.onKeyUp = undefined;
- Key.removeListener(this);
- _global.g_kApplication.m_kGui.m_kHelpPanel.gotoAndStop("Hide");
- _global.g_kApplication.m_kGui.m_kHelpPanel._visible = false;
- if(_global.getApplicationState().isCurrentState(_global.getApplicationState().AS_PRE_GAME))
- {
- _global.g_kApplication.m_kGameScreen.startGame();
- }
- else
- {
- _global.g_kApplication.m_kGameScreen.startGame();
- }
- };
- Key.addListener(this.m_kOkButton);
- this.m_kOkButton.onKeyUp = function()
- {
- if(Key.getCode() == 13)
- {
- this.onRelease();
- }
- };
- }
- }
-