event.dispatch();
In the earlier versions of Cairngorm you need to dispatch events through the CairngormEventDispatcher instance. Now self dispatching events are added in Cairngorm2.2.
Old method
var evt:NavigateEvent = new NavigateEvent();
// Dispatch through the dispatcher
CairngormEventDispatcher.getInstance().dispatchEvent(evt);
New method
var evt:NavigateEvent = new NavigateEvent();
// Event dispatch itself
evt.dispatch();
These are the changes between Cairngorm 2.2 and Cairngorm 2.1(from adobe labs)
- Removed dependency on Flex Data Services (fds.swc) - externalised to Cairngorm Enterprise
- Flex SDK SWCs are no longer linked into Cairngorm.swc (produces a smaller cairngorm.swc)
- Added support for setting remote credentials
- Fixed bug with Web services not loading the WSDL (no longer any need to call loadWSDL() explicitly)
- ModelLocator interface has been deprecated. Added com.adobe.cairngorm.model.IModelLocator
- Added deprecation metadata for compiler support
- Added dispatch() helper method to CairngormEvent class
- Controller added to CairngormEventDispatcher with weak reference
- Added removeCommand to FrontController
- Made commands protected in FrontController (was private)
Changes between Cairngorm 2.2.1 and Cairngorm 2.2
- Changed ServiceLocator to reflect moving of classes to LiveCycle Data Services (fds.swc)
