Well, finally my StateMachine utility is officially hosted on the pureMVC Manifold… download it here.
Its quite different than the original in a number of ways:
1) the utility conforms to the basic SCXML standard, and comes with a FSMInjector class that creates the StateMachine from an SCXML defined model.
2) the transitions from state to state are no longer purely linear; multiple legitimate target states can be defined within each state, so the transitions can be dynamically decided at run time.
3) the StateMachine class now only sends notifications, it doesn’t execute registered commands directly. This means that other actors (ie Mediators) can declare an interest in them.
4) transitions can be cancelled from the exiting phase.
When I’ve a little more time I shall write a more in depth tutorial. But for the moment, have a play, and see what you think…