小编cso*_*akk的帖子

Flex AIR - IntelliJ中的application.xml在哪里

我在IntelliJ中创建了一个AIR桌面项目,除src文件夹外,只有项目iml.在Flash Builder中,我曾编辑application.xml来设置应用程序图标.我在IntelliJ 12哪里可以做到这一点?谢谢.

apache-flex air intellij-idea actionscript-3

5
推荐指数
1
解决办法
1128
查看次数

haxe案例模式重用 - 可能作为变量

有没有办法在haxe中保存模式?我有几个开关函数,其中一些具有相同的模式,为了使代码更清晰,我想将它们保存到一个公共数组或其他东西.所以我有类似的东西

switch (field) {
     case 'x' | 'y' | 'color' : doThis();
} 
//...other function...
switch (field) {
     case 'x' | 'y' | 'color' : doThat();
}
Run Code Online (Sandbox Code Playgroud)

我希望有类似的东西

myPattern = 'x' | 'y' | 'color';

switch (field) {
     case myPattern : doThis();
} 
//...other function...
switch (field) {
     case myPattern : doThat();
}
Run Code Online (Sandbox Code Playgroud)

haxe pattern-matching

1
推荐指数
1
解决办法
113
查看次数