Here's what I do. In the event I think something may change in the future , such as a server or image location i just stuff it into an xml file. So I would create an xml file called info.xml and it would look something like this.
Place that in the root directory of the swf folder. Then when your app loads up , just use an httpservice call to read the xml.location variable , and make that the destination of your service calls. That way you can read and modify the xml file without having to recompile the binary.
I don't think that's where my issue is.
If I understand correctly, my compiled swf contains the information that knows where to look for the cfc and the flex gateway. It works on my local machine.
I need to know how I tell the swf where to look on my server.
I finally figured it out.
All I needed to do was change the localhost to my server name. The reason I couldn't get it to work was that I didn't have the crossdomain.xml file on my server.
If someone would have spent 5 minutes to put that on the tutorial, I could have saved about 50 hours.
Any time there is an invalid crossdomain file, flash will throw an error , where you running in debug mode ?