tomerrei
06-06-2009, 10:07 AM
Hi,
Anyone used Sockets in Flex to communicate with other software... So you may have had this problem:
I'm have a C++ my colleague is writing that sends me real time data via Socket (ip 127.0.0.1 port 4102). My Flex program is reading it using standard flash.net.Socket.
This works. However, when I copy my Flex files to another place in the computer (rather than the project's bin-debug folder) it stops working. The bin-release export also doesn't work.
I encountered this exact behaviour (moving files from bin-debug to another folder makes it stop working) when contacting other server (URLRequest and WebService). This was solved by putting crossdomain.xml file.
So I thought that's the solution here. But I don't know where and how to put such a file in my local host.
If someone has the answers, please share it.
Thanks,
Tomer.
Anyone used Sockets in Flex to communicate with other software... So you may have had this problem:
I'm have a C++ my colleague is writing that sends me real time data via Socket (ip 127.0.0.1 port 4102). My Flex program is reading it using standard flash.net.Socket.
This works. However, when I copy my Flex files to another place in the computer (rather than the project's bin-debug folder) it stops working. The bin-release export also doesn't work.
I encountered this exact behaviour (moving files from bin-debug to another folder makes it stop working) when contacting other server (URLRequest and WebService). This was solved by putting crossdomain.xml file.
So I thought that's the solution here. But I don't know where and how to put such a file in my local host.
If someone has the answers, please share it.
Thanks,
Tomer.