haxe读取assets资源

需要先修改application.xml,添加

<assets path="assets" rename="assets" include="*" />

然后通过相对路径取得资源,例如

openfl.Assets.getText ("assets/config/config.xml")

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注