Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
June 26, 2017, 11:59:06 AM
Home Help Search Login Register
News: Please DM @puremvc on Twitter to gain forum access. Spambots are why we can't have nice things.
Pages: [1]
Print
Author Topic: LockableDoor - A PureMVC JS StateMachine Demo  (Read 2088 times)
puremvc
Global Moderator
Hero Member
*****
Posts: 2870



View Profile WWW
« on: October 10, 2014, 04:27:32 PM »

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/wiki

It 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.
« Last Edit: October 10, 2014, 05:54:03 PM by puremvc » Logged
Pages: [1]
Print
Jump to: