Thursday, September 30, 2010

Cairngorm 3 Example

Publishing Cairngorm 3 Adobe tries to keep itself away from frameworks battle. Cairngorm 3 is an architecture which should be followed with one IOC ( Inversion Of Control) framework present in market. There are so many IOC frameworks available like Parsley, Swiz, RobotLegs and Spring In Actionscript are some of them. Again its a tough task to choose one IOC frameowrk as each one has its own advantages. One of the Advantage of Cairngorm 3 is it helps to write test driven projects.

Alongside of Cairngorm 3 Adobe published some libraries to use if someone thinks its necessary for the project. One may not use a single library and still follow Cairngorm 3. Some of the Libraries supports Parsley (IOC) framework. Yes Parsley is a mature framework (But what if some better frameworks will come in future, will Adobe support them all...oh, thats a different topic).

When I was trying to jump to Cairngorm 3, I found that Adobe docs are not clear enough to start. I didn't find much examples. Here I developed a simple example in Cairngorm 3 and Parsley 2.3.0. code is not well optimized. The original code was written by Joel Hooks to show a Parsley example. Here you can find more in the blog post. You can download the source code of my project here.

Hope this will help others to start Cairngorm 3.
Other examples you can find here.

Adobe Cairngorm 3 Simple Sample application explained.


4 comments:

  1. no more source code :(

    ReplyDelete
  2. Can you please post the source code I am desperately looking for a mixed cairngorm and Parsley examples. Thanks Much

    ReplyDelete
  3. Hi, last year i worked with cairngorm 2 and flex 3 and i only imported the unique .swc into my project. Now, in flex 4.5, i want to use cairngorm 3 but im confused because in the download´s page there are many .swc files (popup, observer, validation and so on). If I only want to work with Cairngorm 3 (without parsley, mate or other frameworks) which .swc file should I import?? Thanks in advance for your help.

    ReplyDelete

Add your Thoughts...