title: can a Flash app running in browser connect to localhost to get data from another app?
body: <p>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?</p>
  
  <p>EDITED:</p>
  
  <p>ok, the answer is yes at least for the case of an SWF file hosted in the file system, see here <a href="http://www.flashsecrets.com/2008/01/security-sandbox-violation-w-localhost.html" rel="nofollow noreferrer">http://www.flashsecrets.com/2008/01/security-sandbox-violation-w-localhost.html</a> (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.</p>