Andy Dent wrote: >On 13/04/2007, at 3:04 AM, Peter De Berdt wrote: > > > >One way is using sockets having your RB program talk to a Flash program. > >I did something similar with Flash MX 2004 from a C++ server a while >back. >
I have a RB app that communicates with Flash using the Flash's XMLSocket and RB's TCPSocket. The only real trick is to know that the XMLSocket uses chr(0) to terminate each command, and it expects each incoming command to be terminated with chr(0). So once your connected, you send data to Flash by doing something like: TCPSocket1.write "Hello World!" + chr(0) and in your dataavailable event, look for chr(0) terminated commands. Something like this but checking for multiple commands in a single firing of the event.: i = instr(me.lookahead,chr(0)) s = me.read(i) hth, Brian _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
