Chain Events in Cairngorm allow you to chain up a series of Caingorm Events. This is especially useful when you are using a series of webservices and you need the results from the preceding one to execute the next one
Another example will be you need to execute a command that requires a prerequisite, such as authentication. You can use the Chain Event to execute the next command after authentication. It makes your code structured and easier to manage altogether
5 mins Flex video:
In this video, we use Seesmic API to show how we can search for a username existance in Seesmic, and if it exist, we use the result to get his/her videos.
In today 5 mins Flex, we take a look at how you can add Cairngorm to provide a MVC framework for your application in 5 mins. FriendFeed API is used in this example.
What is Cairngorm:
The Cairngorm Microarchitecture is a lightweight yet prescriptive framework for rich Internet application (RIA) development.
Cairngorm is an implementation of design patterns that the consultants at Adobe Consulting have successfully taken from enterprise software development (with technologies including J2EE and .NET) and applied rich Internet application development using Adobe Flex.
Generally what the above means is that Cairngorm solves the problem of “whats goes where” problem in Flex. For many new Flex developers, there is a general confusion where to put the codes of their business logic, and where to put the codes for their views, etc. Cairngorm solves these problem with its MVC architecture. Another framework that is recommendation is PureMVC
I created a short video to demonstrate how you can create a simple Flex application from scratch. This video is targeted to developers who are new to Flex and hope to see what are the basic syntax of Flex and how easy it is to create a working Flex application