I built an app used SpringGraph, Yahoo! answer API and Cairngorm, display questions and answers (data from Yahoo! answer) like a tree, Cairngorm made the code clearly and easily to debug.
Demo and sourceï¼ http://www.moorwind.com/read.php?67 During developing this app I found an interesting Cairngorm error, when I creat some events super the same type: //event 1 public class SearchAnswerOnQuestionEvent extends CairngormEvent { public function SearchAnswerOnQuestionEvent() { super(AnswerController.SEARCH_ANSWER_ON_QUESTION); } } //event 2 public class RoamerSOQEvent extends CairngormEvent { public function RoamerSOQEvent() { super(RoamerController.SEARCH_ANSWER_ON_QUESTION); } } If AnswerController.SEARCH_ANSWER_ON_QUESTION and RoamerController.SEARCH_ANSWER_ON_QUESTION define the same string such as "searchAnswerOnQuestion", than when i dispatched these two events, the listerner will sonsider them the same event. The following caringorm controls will both receive the two events. //Cairngorm control 1 public class AnswerController extends FrontController { public static const SEARCH_ANSWER_ON_QUESTION:String = "searchAnswerOnQuestion"; public function AnswerController() { this.addCommand(AnswerController.SEARCH_ANSWER_ON_QUESTION, SearchAnswerOnQuestionCommand); } } //Cairngorm control2 public class RoamerController extends FrontController { public static const SEARCH_ANSWER_ON_QUESTION:String = "searchAnswerOnQuestion"; public function RoamerController() { this.addCommand(RoamerController.SEARCH_ANSWER_ON_QUESTION, RoamerSOQCommand); } }