It's actually really simple (at least for the most basic implementation) to get rid of services-config.xml and the need for the -services compiler argument. I've had no problems using it with amfphp or granite.
In the Application's creationComplete() I have something along the lines of channelSet = new ChannelSet(); var uri = "http://path.to.your/amfphp/gateway.php"; channelSet.addChannel(new AMFChannel("whatever", uri)); And I pass the channelSet to Services.mxml as a bindable variable. <business:Services channelSet="{channelSet}" /> Within Services.mxml: <?xml version="1.0" encoding="utf-8"?> <cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:cairngorm="com.universalmind.cairngorm.business.*"> <mx:Script> <![CDATA[ import mx.messaging.ChannelSet; [Bindable] public var channelSet:ChannelSet; ]]> </mx:Script> <mx:RemoteObject id="MyService" channelSet="{channelSet}" destination="MyService" makeObjectsBindable="true" showBusyCursor="true" source="vo.net.likethewolf.whatever.MyServiceDAO" /> </cairngorm:ServiceLocator> MrB --- In [email protected], dnk <d.k.emailli...@...> wrote: > > Hi there, > > I was wondering if it was possible to specify my services-comfig.xml > in either MXML or AS? > > I just wanted to include that in my actual code (as opposed to a > compiler arg) for portability. > > I have been searching google, and nothing yet... > > Thanks! > > ///// D >

