I've been working also on this, and I couldn't do it with the service locator, cause I didn't know how. I know it's not the best solution but I've defined the gateway in the model locator, and then, on each command I do this:
var model:ModelLocator = ModelLocator.getInstance();
model.gateway.call( "service.method", new Responder(onResult, onFault), args);
My problem now is with VO, I always get a badversion error, and I think I've mapped it correctly at advancedsettings.php, any one has had the same problem?
Oriol.
2006/3/26, Alex Uhlmann <[EMAIL PROTECTED]>:
Hi William,usually, you would define the AMFPHP interface in Services.mxml, retrieve it via ServiceLocator from your Delegate. But ServiceLocator can only return you either mx.rpc.AbstractService or mx.rpc.http.HTTPService (for Flex2 's out of the box RPC services). However you could create the AMFPHP specific details in your Delegate. But better would be to add a method to Cairngorm's ServiceLocator that either returns a generic object or an object compatible to AMFPHP (RemotingConnection or NetConnection). Let me know how you get on.Best,Alex
Alex Uhlmann
Consultant (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6969m: +44 (0) 7917 428 951
[EMAIL PROTECTED]
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of William Lambé
Sent: 25 March 2006 22:10
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP]Hello guys,
Did someone try to use Cairngom (architectural framework for flex) with AMFPHP ?
I ask because I don't see clearly (in the sample Cairngorm Login) how to change LoginDelegate and Services.mxml to use it with AMFPHP… (for exemple where to introduce the RemotingConnection of Tweenpix ( http://www.tweenpix.net/blog/index.php?2006/01/03/543-hello-world-en-amfphp-avec-flex20 ))
If you tried one time, coud you explain us please.
Thank you,
William.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service .
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.