Flash mx 2004 receiving simple data in real-time?

we are developing a flash-based application used within our intranet only
we are quite new in flash data integration aspect

there is one thing we want to acheive:

what simple method (javascript? ) can make us send simple data (mostly short string) into flash, so that flash can responds immediately? “immediately” or

“real-time” is the most important thing in our consideration. we tried to use
simple text file for the operation but there is file-opne and lock problem
and it’s not very “real-time” the data set is simple, but we may need
continuous stream of data to send and even say. 10 time per second and flash

should responds in real-time. lag is not good

someone sugguest us using “socket” to estalbish such persistent real-time responds
we try to explore the XMLsocket.load but we have the following questions:

  1. what programs, script can we use to generate the data stream? the best for

us is a commandline like program.exe 192.168.1.2 777 “apple”. becus we need

to generate the command on demand from another application
but we cannot find such a comandline exe

  1. except socket, any better