HaxeFlixel/flixel-addons — pull request #72 by volvis (2014-05-12 19:37:38+00:00)
Title: A Finite-State machine implementation

As discussed here: https://github.com/HaxeFlixel/flixel/issues/1072
An FSM is a relatively common pattern in games, so it might be useful to have an implementation out of the box.

var fsm = new FlxFSM();
fsm.owner = this;
fsm.changeState(new HelloState());