My app get close when I reject a connection from the server side =S Help
Hi there,
My app is having a rare behavior when I reject a connection from the server, I really dont understand why my AIR app get closed when I reject a connection from the server, I have in the client-side;
var netConnecttion:NetConnection = new NetConnection();
netConnecttion.client = this;
netConnecttion.connect("rtmp://server/myapp/", user.text, pass.text);
When I run it, it normally connects to the server, in the server-side I Have;
application.onConnect = function (clientObj, user, pass ) {
if (user == "root") {
application.acceptConnection(clientObj);
}
else { application.rejectConnection(clientObj, {mensaje:"El usuario ya existe."}); }}
When the user is "root", my app's behavior is normal, but the problem is when the user is not "root", when isn't, I reject the connection, but I dont understand why the air application is closed completely.When I remove the line where I reject the connection, My app does not close itself.
I need fix this,
Has this happened to someone ? Help me
