Haxe implementation