10.10.2008

Flex Applications

A brief collection of nice Flex applications and demos:

OECD Statistics
cynergytv.com
www.lovelycharts.com/
www.adobe.com/acom/buzzword/
blist.com
NASDAQ Market Replay
coghead.com
empressr.com

MVC Frameworks

A variety of MVC frameworks and approaches are available for Flex applications. An independent firm has published a useful review of several of these frameworks.


Cairngorm
This is probably the first and most widely-used MVC framework for Flex. The official version had grown somewhat stale but users have been customizing it and Adobe has recently setup an open-source project where development seems to be progressing.

Most reviews seem to be pretty critical of Cairngorm, primarily for these reasons:
- overuse of Singleton pattern
- no support for module-based apps
- large amount of boilerplate overhead

Here are some useful Cairngorm links:
http://www.adobe.com/devnet/flex/articles/cairngorm_pt1.html
http://www.cairngormdocs.org/.
flexcairngorm project on google code with some extensions



PureMVC
This is the most talked about alternative to Cairngorm. It seems to be pretty sophisticated and well-developed, offering solutions to two of the Cairngorm criticisms - PureMVC supports module-based apps and does not rely heavily on Singletons.

On the other hand it still requires a fair bit of code overhead and since it attempts to be a cross-language architecture it does not take advantage of several Flex-specific features (PureMVC replaces the standard Flex event architecture with its own approach for example).

Here are some useful PureMVC links:
PureMVC Multicore
http://www.websector.de/blog/2007/12/25/10-tips-for-working-with-puremvc/
http://www.dehats.com/drupal/?q=node/26
http://hubflanger.com/building-a-flash-site-using-puremvc/
PureMVC Forum
http://flashenabledblog.com/2008/07/22/tutorials-puremvc-roundup/
http://www.websector.de/blog/2008/06/21/a-basic-puremvc-multicore-as3-example-using-pipes-utility-and-modules/
http://www.nutrixinteractive.com/blog/?p=136



Mate
Mate is a lighter-weight alternative to Cairngorm and PureMVC which is based primarily on the MXML language instead of ActionScript (may be a good or bad thing depending on your preferences). Here is a good overview article.



MVCS
MVCS is not really a framework but a design or approach to architecting Flex applications to achieve an MVC structure. The design is very good - flexible, lightweight and easy to use. I would recommend MVCS (or a similar approach) above the other currently available frameworks.

Another useful article: http://www.joeberkovitz.com/blog/reviewtube/