需要先修改application.xml,添加
<assets path=”assets” rename=”assets” include=”*” />
然后通过相对路径取得资源,例如
openfl.Assets.getText (“assets/config/config.xml”)[……]
需要先修改application.xml,添加
<assets path=”assets” rename=”assets” include=”*” />
然后通过相对路径取得资源,例如
openfl.Assets.getText (“assets/config/config.xml”)[……]