Hello, Teresa,
We have the following code,
_es = new ElectroServer();
_es.loadAndConnect("settings.xml");
_es.engine.addEventListener(MessageType.Connection Response.name, onConnectionResponse);
...
waitpanel = new popup_wait_panel("connecting to server ...");
addChild(waitpanel);
....
private function onConnectionResponse(e:ConnectionResponse):void
{
if (waitpanel && waitpanel.stage) { removeChild(waitpanel) }
if (e.successful) {
...
}else {
waitpanel = new popup_wait_panel("Can not connect to server.");
addChild(waitpanel);
}
}
Usually user would see the "connecting to server ..." popup for a few seconds and see the next screen we display afterwards in the e.successful section. But some users would see the "connecting to server ..." popup and stay there. Usually this happens on their first try (which is going to be their only try if they don't get in) and if they refresh a few times, close browser and reopen, or just come back and try again later, they may get pass that "connecting to server ..." popup.
It sounds to me like they don't get the ConnectionResponse message on their first try. But with nothing changed, they may get it later after refresh or close browser or something.
Do you have any idea what is going on? Thanks.
Regards,
Jesse


Reply With Quote
