Flash and Flex communicate using an AMF Gateway built into ColdFusion. Most of the time it is located at "domain/flex2gateway" so in your case I'd expect it to be "localhost/flex2gateway" . If that URL loads a blank page [as opposed to a 404 error], there is a good chance that the gateway is working properly. Just that your Flex app is looking for the URL in the wrong place.
You probably need to open up the Services-Config file and possibly make changes to it. The full path location of services-config should be listed as a compiler parameter in the project properties. Ian Skinner wrote: > I am playing again with Flex after over a year off. I set up a new > project and was proud of myself that I got one set up in just two tries. > > I can properly serve up simple, static Flex applications. So I moved on > to connecting to my ColdFusion for the back end. When I run it now I > get this error when I try to call the ColdFusion component. > > [RPC Fault faultString="Send failed" > faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed > error NetConnection.Call.Failed: HTTP: Failed: url: > 'http://localhost/playground/flex2gateway/'"] > > "http://localhost/playground/flex2gateway/" is not a valid URL. The > proper path to the Flex project is "http://localhost/flex/playground/". > But this does not have a 'flex2gateway' under it. I am not sure what > this means. > > I presume I have something missing in my configurations, but I am not > sure what. Google searching has told me to look at the compiler > arguments of my project: > -services > "C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex\services-config.xml" > > -locale en_US > > This seems to be correct. That is the location of my ColdFusion server. > > Google results also tell me to look at the endpoint in my > services.congig.xml file. But which one? There are several in there > and I don't see any that are "ColdFusion" as I sort of expected from my > RemoteObject MXML tag. > <mx:RemoteObject > id="cfc" > destination="ColdFusion" > source="cfcs.foobar"> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5661 Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
