需要先修改application.xml,添加
<assets path="assets" rename="assets" include="*" />
然后通过相对路径取得资源,例如
openfl.Assets.getText ("assets/config/config.[......]
需要先修改application.xml,添加
<assets path="assets" rename="assets" include="*" />
然后通过相对路径取得资源,例如
openfl.Assets.getText ("assets/config/config.[......]
1、haxe项目入口xml中的haxelib项必须存在,否则项目编译都会失败
2、新项目的项目属性里面,Enable Debugger需要是True,否则无法debug
3、haxelib git有两个参数,第一个是库名,第二个是库地址,大小写敏感
4、AutoVersion的haxe模板Te[……]
It is easy to transition to Haxe from ActionScript. In fact, the Haxe programming language was created by Flash developers. It started wi[……]
[11:11:18] <me> Who knows where and how to use Lib.current?
[11:13:20] <Herschel> ask away and someone will help 🙂
[11:20:30] <me>[……]
* haxe是亦动亦静的语言。
说它是静态语言,因为它基本是强类型的,声明变量时”var a: Int;”,或者带初始化而省略类型的”var a = 5;”,无论哪种方式,编译器都能确定a的类型,如果省略类型也不赋初值,那么也会在运行时首次赋值确定类型(或编译时?)
说它是动态语言,因为你可以使[……]