Misc advanced haXe/Flash functionality