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.
|Published (Last):||15 April 2012|
|PDF File Size:||8.21 Mb|
|ePub File Size:||1.7 Mb|
|Price:||Free* [*Free Regsitration Required]|
Cairngorm Framework for Flex Developers
The class LoadEmployeesEvent package com. Cairngorm has been around longer than fkex other Flex framework. 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:.
Lets see the related code of BuddyList app: It requires developers to write lots of additional classes, which adds to project timeline.
Flex – Cairngorm Architecture Overview
In recent years, the Flex technology has been widely used. Fill in your details below or click an icon to log in: It allows separate responsibilities of developers.
Get unlimited access to videos, live online training, learning paths, books, tutorials, and more. Sign up or log in Sign up using Google. ServiceLocator can be used not only as a repository of all services, but also as an authorization mechanism that restricts access to certain application services based on specified credentials.
If your project will start growing, the ModelLocator may not scale well. Use either RobotLegs or Parsley. The value objects of the application have been placed in the folder called vo.
It contains no methods or logic and acts as a pure data container. Service Locator; Front Controller.
With a remoting technology like BlazeDS it is even possible ccairngorm 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.
Application developers have to write lots of boilerplate code. And make the developer more professional Geek J. The flwx object may include additional data if required by the developer. Then Do the flrx thing in the front controller.
The command folder is for Command classes; control is for events and FrontController ; the ModelLocator is located in the model folder; and the view folder has visual components as shown in Figures through The global ModelLocator object defines multiple bindable variables representing different models, and the Flex compiler may generate additional EventDispatcher objects on the class level this depends on the types of the variables.
Cairngorm – Agile Enterprise Application Development with Flex [Book]
The delegate is used to call the data source through the service locator: A static reference to the ModelLocator singleton instance is used by the View famework to locate the required data.
Now you can create the view component and dispatch the event from it. Responders implement the mx.
Notify me of new framewok via email. You are commenting using your Twitter account. Then high reusability and ease of use supporting system have been developed.
Typically every action of view will need create a event: Rich Internet Application White Paper.