Cairngorm projects uses event regularly and most of them are asynchronous. In the case of working with data dependency events it’s necessary that the sequence of its dispatching and data is received was sequentially and, for that, Cairngorm have SequenceCommand class whom dispatch consecutive events.
You can implement standar solution with Adobe framework but Bjorn Schultheiss has developed ChainEvent class to a non intrusive solution. Following there is a example based in ChainEvent:
Click with the right button to obtain source code.
Made in Flex has a couple of examples very useful that I recommended.
Vote at your favorite country.
¡Choose with your vote the most favorite country in the world!
- Click in the mark of the country.
- Add points to your favorite country to improve it in the ranking.
- Remove points to the other countries.
Technology:
- Flex-Cairngorm
- J2EE-Blazeds-Spring-Hibernate
- MySQL
Go to he game
Cairngen requires Java 6 (JVM 1.6), but it’s possible to launch it with JVM version 1.5 following Ryan Phelan instructions in his “Running Cairngen on a Mac”.
Nevertheless, on mac intel 64 bit with JVM 1.6 there is an error loading 64-bit libraries.
- Cairngen Errors summary on Mac Intel 64 bit
- Error with JVM 1.5: Unable to load a script engine manager (org.apache.bsf.BSFManager or javax.script.ScriptEngineManager)
- Error with JVM 1.6: Unable to create javax script engine for javascript
- Error with JVM 1.6 y librerías indicadas por Ryan Phelan: java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM
- Solution
Change to JVM 1.5 and follow indications of Ryan Phelan.
CairngormTemplates is a tool to generate a complete structure of Flex framework, Cairngorm, with basic configurations.
Aplication is developed on Java Swing and is compiled as a JAR executable compatible on systems with JRE.
Download CairngormTemplates