it seems that Flash was supposed to run in a sandbox in the browser. But, if Flash can get data from a remote server, can it similarly get data from localhost IP on the same machine? In other words, can I use a Windows app that provides a TCP socket on localhost to feed data into a Flash app?
EDITED:
ok, the answer is yes at least for the case of an SWF file hosted in the file system, see here http://www.flashsecrets.com/2008/01/security-sandbox-violation-w-localhost.html (turns out the localhost access error can be fixed if you add the SWF app to some security whitelist). Still wondering if this can also be done for SWF apps hosted on the network.
Yes it can be done. Two caveats: