对于类似的出错信息:
SecurityError: Error #2148: SWF 文件 file:///x:/bin-debug/index.swf 不能访问本地资源 file:///x:/plugins/plugins.xml。 只有仅限于文件系统的 SWF 文件和可信的本地 SWF 文件可以访问本地资源。
解决方法:
第一种:
flex项目上点右键–>properties–>ActionscriptCompiler–>Additional compiler argum[……]
对于类似的出错信息:
SecurityError: Error #2148: SWF 文件 file:///x:/bin-debug/index.swf 不能访问本地资源 file:///x:/plugins/plugins.xml。 只有仅限于文件系统的 SWF 文件和可信的本地 SWF 文件可以访问本地资源。
解决方法:
第一种:
flex项目上点右键–>properties–>ActionscriptCompiler–>Additional compiler argum[……]
需要先修改application.xml,添加
<assets path=”assets” rename=”assets” include=”*” />
然后通过相对路径取得资源,例如
openfl.Assets.getText (“assets/config/config.xml”)[……]
1、haxe项目入口xml中的haxelib项必须存在,否则项目编译都会失败
2、新项目的项目属性里面,Enable Debugger需要是True,否则无法debug
3、haxelib git有两个参数,第一个是库名,第二个是库地址,大小写敏感
4、AutoVersion的haxe模板Templates\AutoVersion\haXe.fdt需要在inline后加var(?仅haxe3),project-version-versioning style-incrementor中仅只i[……]