1

我一直在按照指南在 eclipse indigo 中启动和运行。在此过程中遇到了一些重大问题(最大的是切换到 gwt 2.3),但我设法让它编译 as 文件。问题是当它开始创建 swf 时,我得到了这个 flash 编译错误:


C:\Users\ted\AppData\Local\Temp\1351877287607-0\testsgameflash.as(145): col: 220 Error: Incorrect number of arguments.  Expected no more than 1.

function $replace_0(this$static,from,to){var regex;if(from<256){regex=toPowerOfTwoString(from);regex='\\x'+'00'.substring(regex.length)+regex}else{regex=String.fromCharCode(from)}return this$static.replace(RegExp(regex,'g'),String.fromCharCode(to))}

C:\Users\ted\AppData\Local\Temp\1351877287607-0\testsgameflash.as(146): col: 131 Error: Incorrect number of arguments.  Expected no more than 1.

function $replaceAll(this$static,regex,replace){replace=__translateReplaceString(replace);return this$static.replace(RegExp(regex,'g'),replace)}

看起来它将值转换为“RegExp”,而不是创建 RegExp 的新实例。我不确定哪里出了问题,我只是想知道我能做些什么来修复它并编译所有内容

4

0 回答 0