Can''t get pass the "connection" event on 2entwire.net

Hello everyone,

My problem is this :

When I use XIFF classes to connect to the 2enwire.net IM server all the conversation stops after the “connect” event.

I have an outgoing event (requesting to open connection), I receive permission (connection.active = true) but after that all “outgoing” packets don’'t receive any answer.

I have the same code connecting to a local wildfire server and it works much better. I get to the “login” event in a snap.

Here’'s how the code looks like :

connection = new XMPPConnection();

connection.username = user;

connection.password = pass;

connection.server = “2entwire.net”; // for local testing I put my IP here

connection.port = 5332;

globalHandler = new Object();

globalHandler.handleEvent = function(eventObj) {

trace(eventObj.type)

}

connection.addEventListener(“message”, globalHandler);

connection.addEventListener(“login”, globalHandler);

connection.addEventListener(“connection”, globalHandler);

connection.addEventListener(“disconnection”, globalHandler);

connection.addEventListener(“presence”, globalHandler);

connection.addEventListener(“error”, globalHandler);

connection.addEventListener(“changePasswordSuccess”, globalHandler);

connection.addEventListener(“outgoingData”, globalHandler);

connection.addEventListener(“incomingData”, globalHandler);

connection.addEventListener(“registrationSuccess”, globalHandler);

connection.addEventListener(“registrationFields”, globalHandler);

connection.connect(“flash”); //this one returns true

The trace ouput for the 2entwire is :

outgoingData

connection

The trace output for the local wildfire is :

outgoingData

connection

incomingData

outgoingData

incomingData

outgoingData

incomingData

login

Any ideas ?

Do you know any other wildfire server addresses I can try ?

Thanks.

try putting the swf file on 2enwire.net and use the address http://2enwire.net/myswf.swf to load the swf in html. http://www.2enwire.net/myswf.swf will not work unless you have a “crossdomain” policy since you are connecting to 2enwire.net not www.2enwire.net

to see how flash security works… go to google and type “crossdomain.xml”.

I don’'t have any kind of rights for 2entwire server.

I doubt there’'s a crossdomain policy issue though, since I do manage to get connected on that server.

After that the server basically ignores me.

Also, I’'m not testing it through the browser, rather from the macromedia IDE which is a trusted envrionment.

Some other IM clients such as Gush or Spark have no problems.

Message was edited by: adi2006

I don’‘t know what server Wes and Dudley are running over at 2entwine, but as you may know, not all servers support Flash’'s XMLSocket. Wildfire has been designed to support it, but they may be using jabberd2 or something else.