1084:语法错误:程序结束前需要右括号. -AS3 [英] 1084: Syntax error: expecting rightbrace before end of program. - AS3
问题描述
这件事有什么错误-:
var decodeChars:Vector.<int> = new <int>[-1, -1, -1, -1, -1];
我遇到四个编译器错误,三个错误是:"1084:语法错误:在程序结束前需要右括号."第四句是"1100:语法错误:XML没有匹配的开始和结束标记.".
I get four complier errors three saying that "1084: Syntax error: expecting rightbrace before end of program." and the fourth saying that "1100: Syntax error: XML does not have matching begin and end tags.".
实际问题是什么?谢谢你的帮助
Whats the actual problem? thanks for help
推荐答案
Your code appears to be properly formed as demonstrated at http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Vector.html#Vector()
1:编译之前打开调试模式(发布设置">"Flash">允许调试").从给出的错误中,听起来这行不是问题的根源.调试模式将告诉您哪一行抛出错误.
1: Turn on debugging mode before compiling (Publish Settings > Flash > Permit debugging). From the errors given, It doesn't sound like this line is the cause of the issue. Debugging mode will tell you which line is throwing errors.
2:正如The_asMan已经提到的那样,1084表示您缺少右括号.确保正确缩进代码,此问题应该很明显.
2: As The_asMan already mentioned, 1084 is indicating that you have a shortage of close braces. Make sure you properly indent your code, and this issue should be apparant.
3:1100表示您加载的XML文件格式错误.通过语法验证器(例如 http://validator.w3.org/
3: 1100 is indicating that an XML file you loaded is malformed. Run your XML through a syntax validator such as http://validator.w3.org/
这篇关于1084:语法错误:程序结束前需要右括号. -AS3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!