I have been working with your tutorial for Advanced Chat (http://www.es-wiki.com/index.php?tit..._Chat_Tutorial) and it seems like once you hit the "Log Out" button, you queue on the subsequent login.
I made a slight change that you might be interested in.
I imported the "ConnectionClosedEvent"
In the "onConnectionEvent" I added:
Then added:Code:es.addEventListener(MessageType.ConnectionClosedEvent, "onConnectionClosed", this);
Now there is no confusion as to which connection I'm getting the id from and it doesn't seem to queue the login request.Code:public function onConnectionClosed(e:ConnectionClosedEvent) { es.getConnections().pop(); }
(Now if you could just find out where the "^" in the Data.event is coming from)![]()


Reply With Quote
