Just to make thinks easier to others:

PDF chapter: http://www.richinternetapps.com/archives/AS2_DesignPatterns_for_RIA.pdf

Code: http://aspatterns.iterationtwo.com/downloads/as2patterns.zip

I hope you meant that pdf Steven.


Oriol.


2006/3/27, Steven Webster <[EMAIL PROTECTED]>:
Just to back up Alex's excellent email here.....
 
When Cairngorm used to be used for Flash-based RIA we would use Flash Remoting, Open AMF, etc with success.  If you do a search on www.richinternetapps.com (or search my previous emails on Flexcoders) you'll find a reference to the ActionScript 2.0 Dictionary where Alistair McLeod and I posted an email link to the PDF chapter we wrote about this.
 
Back in those days, the ServiceLocator was an ActionScript class, that handled all the complexities associated with creating NetConnections/etc that you assume responsibility for when descending to the detail of Flash Remoting.
 
When working with Flex-based RIA, it's typical to ascend the foodchain towards RemoteObejct, WebService and HTTPService (though not necessary) and so we made the decision in Cairngorm that the ServiceLocator be an MXML implementation, that could allow Flex to do all the heavy-lifting with the RPC Service tags.  That way, we didn't have to worry ourselves anymore with NetConnections, and Java object serialisations/etc.
 
However, if you want to use AMFPHP, you can do what many others have done, you can ensure that your ActionScript service locator is able to return these services.  You want to hide all the details of service creation and lookup in the ServiceLocator so that your business delegate is immune to the implementation.
 
I know others have done this already ... but if you can share your solution with us, we can ensure that others can leverage from your findings.
 
If you have any more questions, please don't hesitate to ask.
 
Best,
 
Steven
 
Steven Webster
Practice Director (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6108
m: +44 (0) 7917 428 947 

 
 Alex Uhlmann
Sent: 26 March 2006 11:57
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] [Flex 2 beta 2 - Cairngorm 2 - AMFPHP]

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 6969
m: +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




YAHOO! GROUPS LINKS







--
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




Reply via email to