haxe3/openfl compatibility