We do this in our games, where we have many WCF services that provide different functions for Flash clients running on Facebook / MySpace, etc.
I suggest you first look at this Codeplex project:
http://wcfflashremoting.codeplex.com/
This allows you to implement an AMF endpoint to communicate with Flash clients.
All of your DataContract needs to be exactly mapped, including property names on both sides, so if you have a MyProject.Contracts.Requests.HandShakeRequest object in your WCF project, the Flash client must have a replica defined in the SAME namespace.
Another that helps us a lot is the request / response template, because it allows you to easily add / remove parameter / output values ββand have sufficient backward compatibility - add a new parameter to the Request object on the server for a new one and the client does not have to immediately send a new parameter.
For debugging you absolutely need Charles ( http://www.charlesproxy.com ), the latest version should have the AMF viewer function correctly (I think you used to download the add-in) so that you can see AMF messages returning from the server in a nice, readable format.
Hope this helps! There are some other caveats related to working with the Flash client from WCF, but I canβt remember them from my head: -P, so play with this remote extension and I will put some other bits and beans down when I can remember them!
source share