Files
SLikeNet/Samples/Lobby2ClientGFx3.0/Resources/Classes/Screens/ConnectingToServerScreen.as
2025-11-24 14:19:51 +05:30

35 lines
820 B
ActionScript

import flash.external.*;
import gfx.controls.TextInput;
import gfx.controls.Button;
class Screens.ConnectingToServerScreen extends Screen
{
private var failureBackButton:Button;
public function ConnectingToServerScreen()
{
ConsoleWindow.Trace("Constructing ConnectingToServerScreen");
mScreenId = ScreenID.CONNECTING_TO_SERVER;
mScreenTabId = ScreenTab.ID_CONNECTION;
}
public function VOnFinishedLoading():Void
{
failureBackButton.visible=false;
//Add click event for buttons
failureBackButton.addEventListener("click", this, "onPressedFailureBack");
super.VOnFinishedLoading();
}
function onPressedFailureBack():Void
{
//_root.gotoAndPlay("Disconnected");
LobbyInterface.Instance.ShowScreen( ScreenID.CONNECTION );
}
}