Updated for Haxe 3/OpenFL