Accessibility

Flex Article

 

Developing Flex RIAs with Cairngorm microarchitecture – Part 3: Architecting the View


Steven Webster

Steven Webster

Adobe Consulting
www.richinternetapps.com

Leon Tanner

Leon Tanner

Adobe Consulting

Table of Contents

Comments
Created:
23 May 2008
User Level:
Beginner

Part 2 of this series focused on managing state within rich Internet applications using the Value Object and Model Locator patterns. In Part 3, the aim is to reach out to your application's users. While the concept of holding state on the client empowers developers, it means nothing to users unless they can visualize and interact with that state in a meaningful way. Part 3 continues to demonstrate concepts by example, again using samples from the Cairngorm Store.

The Cairngorm Store displays product images so that users can select products, view further details on them, drag and drop them into their shopping cart, and purchase these products in a checkout process. In this article, we'll explore how to architect the view and deliver rich, immersive experiences to users using the Cairngorm framework. We’ll describe some best practices that you can use to structure your MXML code and files, even though Cairngorm does not prescribe any specific way to structure your view.

Requirements

In order to make the most of this series, you need the following software and files:

Flex Builder 3

Cairngorm version 2.2

Cairngorm Store

Throughout the series you will find references to code taken from an e-commerce application named Cairngorm Store. You may use this sample application to gain a better understanding of Cairngorm, but please consider it only as a guide. Adobe is not responsible for maintaining the Cairngorm Store application.

Prerequisites

Read the previous articles in the series, starting with Developing Flex RIAs with Cairngorm microarchitecture – Part 1: Introducing Cairngorm before reading Part 3.

About the authors

Steven Webster is the practice director for Rich Internet Applications at Adobe. Steven Webster was a technical director at iteration::two, a world-leading Rich Internet Application consultancy based in Edinburgh, Scotland. Steven is the author of Reality J2EE: Architecting for Flash MX and coauthored ActionScript 2.0 Design Patterns for Rich Internet Applications (ActionScript 2.0 Dictionary) and Developing Rich Clients with Macromedia Flex with Alistair McLeod. Steven speaks regularly at conferences and user group meetings on technical and business aspects of RIAs. Steven is the core contributor to the open-source Cairngorm project, a microarchitecture for RIAs based on J2EE patterns which was innovated by iteration::two over a number of Flash and Flex RIA developments.

Leon Tanner is a Senior Technical Consultant at Adobe Consulting and relishes working on some of the most challenging and interesting Flex-based projects on a daily basis.  Having held a passion for both software development and visual design long before his career started, he fell for Flex as the perfect tool for creating highly engaging and visually stunning applications.  Leon adopted Cairngorm as far back as the Flex 1.0 days and has continued to promote it since.