flash remoting.
http://www.adobe.com/products/flashremoting/