Ported to Haxe 3/OpenFL