
http://github.com/visfleet/FlexStateMachine
I’ll call this the first release :)
Flex state machine is my attempt at getting a domain specific language (DSL) for state machines into Flex.
It’s missing a vital ingredient (to my mind), which is the ability to mix events and ‘cans’ (State events, not the Flex observer pattern) into another class instance.
The kludgy:
controller.machine.start()
should be replaceable with
controller.start()
I just need to take a closer look at the EventDispatcher mixin mechanism and see if I can use that to implement a ‘method missing’ solution that will at least work with controller/model/facade classes marked as dynamic.
Despite this annoyance, I love this class and it works beautifully in our production code. Please give it a whirl and feedback/fork away.
© 2010 - VisFleet Ltd
No prawns were harmed in
the making of this website
Comments