This document is from the authorized Flex curriculum written by learn the basics of building Flex applications using the Cairngorm framework. Cairngorm is based on Model View Controller (MVC) framework, specifically designed to facilitate complex state and data synchronization. These explain the Cairngorm Architecture, which is our preferred way to structure Flex applications. Below the introductory material can be found more detailed.

Author: Zusar Faelabar
Country: French Guiana
Language: English (Spanish)
Genre: Career
Published (Last): 6 December 2012
Pages: 292
PDF File Size: 19.15 Mb
ePub File Size: 2.25 Mb
ISBN: 215-6-32059-724-9
Downloads: 6921
Price: Free* [*Free Regsitration Required]
Uploader: Shaktihn

This model locator stores the data and the state of this application—in particular, the variable employeeListDPwhich is the place where the list of employees cairnogrm being stored. With Safari, you learn the way you learn best. The Command class updates the model. See its methods setCredentials and setRemoteCredentials for details.

We prefer working with frameworks that offer enhanced Flex components rather than just separation of work among team members.

Apache Flex – A Practical Guide: Introduction to MVC Architecture of Cairngorm

Like frqmework Front Controller, it is placed within the main. The improved version of the Cairngorm framework is more suitable for Web application development and maintenance.

For some reason, the author of this code decided not to use EmployeeVO here and stores each Employee attribute separately in SaveEmployeeEvent. Leave a Reply Cancel reply Enter your comment here The fast development of mobile terminals provides good conditions for constructing function-completed autonomous learning information system. The Delegate implementation package com.


It includes 3 objects: So, is Cairngorm right for your project? To load the employees, the Command class creates an instance of the proper delegate passing the reference to itself this is how the delegate knows where to return the data and calls the method loadEmployeesService:. It defines remoteobject in this example.

It contains no methods or logic and acts as a pure data container. Rich Internet Application White Paper. With a remoting technology like BlazeDS it is even possible to pass back value objects witch are transformed to their corresponding ActionScript objects in the application, so it can interact with them as if they are created by script.

Introducing Cairngorm

Use either RobotLegs or Parsley. Command When a View component fires an event, FrontController finds the Command class that was registered with this event and calls its method execute. All data managed in the model should only be updated through a command or a responder object.

A responder recieves the result of a service call and implements frontend-logic like a command. For example, you have to create additional event and command classes for every event that can be dispatched in your application. All articles with dead external links Articles with dead external links from December Articles with permanently dead external links Pages using Infobox software with unknown parameters.

For web services, call the method getWebService. When a View fgamework fires an event, FrontController finds the Rramework class that was registered with this event and calls its method execute.


The problem with this glex is in the global nature of such an event handler. Using a centralized ModelLocator also makes multiple components dependent on the knowledge of the properties of the model.

Typically every action of view will need create a event: Commands actually do the majority of an applications work. This site uses cookies. The first step of using Cairngorm should be creating the backbone of frame work. If you have to develop a project without experienced Flex developers on your team, however, Cairngorm can give your project a structure that will prevent it from failing.

Model Locator carries all the transport information between the components It is a Bindable object. A static reference to the ModelLocator singleton instance is used by the View layers to locate the required data.

Cut It Off-Cairngorm without front controller. Leave a Reply Cancel reply Enter your comment here Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyfrzmework that your continued use of the website is subject to these policies. Cairngorm is one of the primary open-source software frameworks for caidngorm architecture in Adobe Flex.