Jon,
regarding chain events, I use modular which allows this ( in fact thanks
to Bjorn Schultheiss ). All you have to do is to have your events extend
ChainEvent (which extends cairngormEvent ) and your commands extend
SequenceCommand.
Then you can combine any of those events in any order or you can use
them /standalone./
something like this
ev1: firstChainedEvent = new FirstChainedEvent();
ev2: secondChainedEvent= new SecondChainedEvent();
ev3: someOtherEvent = new SomeOtherEvent();
ev : ChainEvent = EventChainFactory.chainEvents( [ ev1 , ev2 , ev3 ] );
ev.dispatch();
all that your commands should do is to store in the command nextEvent
property the value of chainEvent(e).nextChainedEvent and call
executeNextCommand() on result and fault handlers.
Of course this approach could be enhanced and add specific events based
on a result or fault.
--
João Fernandes
http://www.onflexwithcf.org
http://www.riapt.org
Portugal Adobe User Group (http://aug.riapt.org)