Built FSM structures with Action Script

I just adapted the FSM structure from the PacMan project