This simple demo shows how the StateMachine utility works in a PureMVC application.
With click of buttons the Application can transition from OPENED to CLOSED to LOCKED state. Use of entry and exit guards. Also sends changed announcements. The demo was ported from an AS3 implemenation
http://mariusht.com/blog/2009/07/14/puremvc-statemachine-lockable-door-demo/.
Pseudo-classes are written in PureMVC's optional built-in style.
The demo is located here:
https://github.com/PureMVC/puremvc-js-demo-lockabledoor/wikiIt was ported from an AS3 implemenation found here:
http://mariusht.com/blog/2009/07/14/puremvc-statemachine-lockable-door-demo/The authors are Mariush T. and Saad Shams.