HaxeFlixel/flixel-addons — pull request #102 by larsiusprime (2014-09-10 19:51:47+00:00)
Title: Fixed visual glitch with switch-state transitions

This solution distinguishes between two circumstances:

1. A same-state transition (must close substate)
2. A between-state transition (must keep substate open until switch state process closes it)

Rather than stick some sort of conditional parameter in transitionOut(), we instead set a flag in transitionToState(), which is then caught in finishTransOut(). This distinguishes the two use cases without presenting the user with any distracting parameters, etc.