PureMVC Framework for haXe: API Documentation
Back | Index
class org.puremvc.haxe.multicore.utilities.statemachine.FSMInjector
extends org.puremvc.haxe.multicore.patterns.observer.Notifier

Creates and registers a StateMachine described in Xml.

This allows reconfiguration of the StateMachine without changing any code, as well as making it easier than creating all the State instances and registering them with the StateMachine at startup time.

var states(getStates,null) : List<State>
function new(fsm : Xml) : Void
Constructor.
function inject() : Void

Inject the StateMachine into the PureMVC apparatus.

Creates the StateMachine instance, registers all the states and registers the StateMachine with the IFacade.

Back | Index