Cairngorm Store Example Updated to Cairngorm 2.1

October 31st, 2006

I went ahead and updated the Cairngorm Store example to Cairngorm 2.1. You can find the original example code download on http://www.cairngormdocs.org/.

Get the updated code here.

Here is my short list of changes:

  1. Changed com.adobe.cairngorm.business.Responder to mx.rpc.IResponder
  2. Changed com.adobe.cairngorm.commands.Command to com.adobe.cairngorm.commands.ICommand
  3. Changed com.adobe.cairngorm.vo.ValueObject to com.adobe.cairngorm.vo.IValueObject
  4. Deleted result and fault handlers on RemoteObjects components in the Services.mxml file.
  5. Used Call.addResponder( responder ) instead of resultHandler and faultHandler
  6. Changed onResult/onFault to result/fault
  7. Changed getService to getRemoteObject

Along with this update I have been updating the RemoteObjectAMF0 and got it working with the Cairngorm Store example. I’ll package the changes and PHP example up as a separate download, get more details in a future post.

Entry Filed under: Adobe Flex, Flex,AMF,PHP, Rich Internet Applications

5 Comments Add your own

  • 1. Tom Chiverton  |  2006-11-01 at 4.23 am

    Are all those changes ones that have to be made, or just best practice changes ?

  • 2. Renaun Erickson  |  2006-11-01 at 7.33 am

    They are ones that are encouraged, but since the other methods are just deprecated you could still use them.

  • 3. Jeremy Sanders  |  2006-11-02 at 3.54 pm

    I am wondering how does one implement Data management services in the new cairngorm model. I see that now the service locator can handle DataServices, but not how using the abstraction of the command calling the delegate which calls the service without result of fault being declared, I dont understand how to deal with result or fault if I need to.

    Please advise!

  • 4. Renaun Erickson  |  2006-11-02 at 8.01 pm

    If I remember Steven Websters MAX session correctly then Cairngorm 2.1 has classes to help with Data Management services. The Service Locator was extended to have a Consumer, MessageAgent and Producer. You wont have a Delegate but will bind to the Model directly. Well thats the quick gross overview, so take it for what its worth. Hopefully they will explain more or release the slides from his session.

  • 5. Easy coding to understand&hellip  |  2008-09-01 at 11.55 pm

    [...] of Cairngorm. Even though I’d seriously recommend anyone starting out to look at the Cairngorm Store first, I thought I’d share my experience implementing a tiny  Cairngorm solution. The [...]

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Disclaimer: I work as a Flash/Flex Developer for Adobe Systems Incorporated. The opinions expressed here represent my own and not those of my employer.

My Amazon.com Wish List

Calendar

October 2006
S M T W T F S
« Sep   Nov »
1234567
891011121314
15161718192021
22232425262728
293031  

Most Recent Posts


Flex.org - The Directory for Flex