Hello Giles, for you second question, you can setup channels at run time ------------------------------------------------ // setup coldfusion AMFChannel private function setupCFChannel():void{ cSet = new ChannelSet(); var customChannel:Channel = new AMFChannel("my-cfamf", "http://yourcfservername/flex2gateway/"); // Add the Channel to the ChannelSet. cSet.addChannel(customChannel); myService.channelSet = cSet; }
<mx:RemoteObject id="myService" destination="ColdFusion" source="cfc.testGateway" showBusyCursor="true"> <mx:method name="getAll" result="handleResult(event)" fault="Alert.show(event.fault.message)" /> </mx:RemoteObject> ------------------------------------------------ hope this helps. hua On 9/14/07, Giles Roadnight <[EMAIL PROTECTED]> wrote: > > Hi Guys > > I've started looking into Flex Remoting again. I looked into this a > while ago but didn't get very far. I gave up when I realised that the > production server here CF 7.1 so Flex Remoting wouldn't work anyway. > > I'm now pretty confident that I'll be able to updrage production to CF > 7.2 so now I want to get my flex remoting working. > > I know the basics of how it's supposed to work, you create a new > project and point it at the web-inf/flex directory and it builds an > xml file for you. > > I've got 2 problems with that. For a start I already have a large > project built and don't really want to re-start the project just to > get the wizard at the start to set up the xml for me. > Is there any way of converting an existing non-CF remoting project > into a CF remoting one? > > My second problem is that I only have FTP access to the dev box where > CF runs so I can't point flex at the web-inf/flex directory. > How do I get round this? > > I hope someone can help. > > Thanks > > Giles.