xmlsocket

ActionScript 3.0 sockets can't reconnect

I'm having trouble connecting (via the Socket and XMLSocket classes) to a TCP listener after a connect timeout. I have a flash applet that needs to maintain a TCP connection to a server. I have implemented timeouts using Timers, a ping-pong system, etc. However, there's a problem. Upon calling Socket.connect(), the flash player (9.0.115...

XMLSockets in Flash Lite?

Are XMLSockets available in Flash Lite, and if yes in which versions, and are there differences between the regular and the lite objects? Thanks! ...

XMLSocket working in firefox but not IE

I'm helping a customer who has a problem with a flash app. The flash app uses an XMLSocket to connect to a service running on localhost. It works fine under firefox. It uses the following line to setup the security policy: System.security.loadPolicyFile("xmlsocket://localhost:10032"); Running the flash app under firefox, the service ...

Flash client XMLSocket not connecting to server.

I have a Flash client that I want to connect to a server. Both are using localhost and port 50000 so there shouldn't be any cross-domain problems. I also set Access Network Only in the publishing settings. When I call the XMLSocket connect, the server seems to get a new connection. But, the XMLSocket.onConnect callback is not called ...

flex XMLSocket over ssl

i am writing a flash app that receives its data over a XMLSocket. On the testmachine that worked really fine, but now the data will be ssl secured. Is there any XMLSSLSocket or something similar available? If not XMLSocket a normal SSLSocket would be a great help as well. ...

What is the xmlsocket:// protocol?

This SO answer says "The Flash Player now looks for a policy file on port 843".. I have a policy server that is listening on port 843 which sends out an XML policy to Flash clients. Is this enough? What is the "xmlsocket://" protocol? Is it just a way to tell Flash player that we're talking about sockets when using the loadPolicyFile() m...

Can XMLSocket send more than once in a frame?

I have a XMLSocket and I call send twice in the same function. The first send works but the second does not? Does XMLSocket have a restriction to only send one message per frame? Do I have to queue messages and have an onEnterFrame function that checks the queue and sends one message for a frame? ...

connection via an XML socket cannot connect Flash movie on same domain to website

Hi, I'm creating a Flash movie which uses an XMLSocket as one of the methods it connects to the server. At the moment I am trying to test this movie and check that the connection works. The problem I'm having is that I cannot establish a connection between the movie and the website via the XMLSocket. I am testing this on my local machi...

Can't connect to server with AS3.0 XMLSocket

I have a server that I have written in Python and I'm trying to connect to it via Flash's XMLSocket. I know for sure that this server is working properly as I have used it successfully with multiple non-Flash client applications. For right now, I just want to connect to the remote server with an SWF residing on my local disk. From what I...

Timeout on xmlsocket (AS2 / Java)

I'm attempting to connect an xmlsocket to a java server using actionscript 2. I can get it to work fine in "Test Movie", but in a browser I'm having problems with the cross domain policy file. The server app receives the request for the policy file and responds to it with the XML content of the file, but when debugging it claims the req...

Flex - XMLSocket truncates the final closing tag of the XML - why?

Hi all, I have a project which tries to send an XML using XMLSocket to a server listening to it on the other side. The application file is: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import MyC...

VB.net flash XMLSocket substitution app

I'm trying to get a VB.net (express 2010) app to connect to a socket server (keeping the connection open), how would I go about this? Right now it works using flash XMLsocket, I'm trying to build a new client without flash, using the existing server. Currently I'm just using a simple window displaying messages, and a place to send messa...

How to split packets in flash, XMLSocket

Hello I believe my flash client is losing some packets the server sends, because some packets get joined together hence I believe it drops them. Here is my packetHandler in flash private var xmlsock:XMLSocket; this.xmlsock = new XMLSocket(); xmlsock.connect("127.0.0.1", 1234); this.xmlsock.addEventListener(DataEvent.DATA, this....

Problem with policy file for ActionScript 3 XMLSocket

Hi everyone, we've developed a tailored server in .NET to host some basic chat/IM functions for our website, and the client is written in Flex (AS3) using XMLSocket. Now we have 2 servers, one dedicated to purely sending policy files, and one handling IM/Chat functions. Problem is, we can see the client connecting, the policy file is s...