Joshua described the two modes here. In short, “legacy” mode is the old one, and “next” mode is the new one, but there are still some things that legacy does better than next.
The reason I specified version 3.6.1 is that legacy mode was removed in OpenFL 4.