ConnectingToServerScreen.as 820 B

1234567891011121314151617181920212223242526272829303132333435
  1. import flash.external.*;
  2. import gfx.controls.TextInput;
  3. import gfx.controls.Button;
  4. class Screens.ConnectingToServerScreen extends Screen
  5. {
  6. private var failureBackButton:Button;
  7. public function ConnectingToServerScreen()
  8. {
  9. ConsoleWindow.Trace("Constructing ConnectingToServerScreen");
  10. mScreenId = ScreenID.CONNECTING_TO_SERVER;
  11. mScreenTabId = ScreenTab.ID_CONNECTION;
  12. }
  13. public function VOnFinishedLoading():Void
  14. {
  15. failureBackButton.visible=false;
  16. //Add click event for buttons
  17. failureBackButton.addEventListener("click", this, "onPressedFailureBack");
  18. super.VOnFinishedLoading();
  19. }
  20. function onPressedFailureBack():Void
  21. {
  22. //_root.gotoAndPlay("Disconnected");
  23. LobbyInterface.Instance.ShowScreen( ScreenID.CONNECTION );
  24. }
  25. }
粤ICP备19079148号