I never inject my IFSMController directly into an actor, I wrap it in a façade to expose only what is needed and inject that.
Injecting an FSMProperties façade
The contract, exposing only the FSM’s properties
The concrete implementation
first of my Quick Tips… may mean nothing yet, but intend to use as reference material http://bit.ly/hzDUkx #AS3StateMachine
RT @neilmanuell: Quick Tip 1: Hide your IFSMController ##AS3StateMachine http://is.gd/hL3RtN
Creative Commons License