Skip to content

Instantly share code, notes, and snippets.

@neilmanuell
Created February 25, 2011 11:06
Show Gist options
  • Save neilmanuell/843658 to your computer and use it in GitHub Desktop.
Save neilmanuell/843658 to your computer and use it in GitHub Desktop.
Limits the access of the IFSMController to its properties
import org.osflash.statemachine.core.IFSMController;
public class FSMProperties implements IFSMProperties
{
private var _fsmController:IFSMController;
[Inject]
public function set fsmController( value:IFSMController ):void
{
_fsmController = value;
}
public function get referringAction():String
{
return _fsmController.referringAction;
}
public function get currentStateName():String
{
return _fsmController.currentStateName;
}
public function get transitionPhase():String
{
return _fsmController.transitionPhase;
}
public function get isTransitioning():Boolean
{
return _fsmController.isTransitioning;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment