1084: Syntax error: expecting rightbrace before end of program. - AS3

岁酱吖の 提交于 2019-12-12 05:17:44

问题


Whats the error in this thing -:

var decodeChars:Vector.<int> = new <int>[-1, -1, -1, -1, -1];

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


回答1:


Your code appears to be properly formed as demonstrated at http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Vector.html#Vector()

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: 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 is indicating that an XML file you loaded is malformed. Run your XML through a syntax validator such as http://validator.w3.org/



来源:https://stackoverflow.com/questions/14569406/1084-syntax-error-expecting-rightbrace-before-end-of-program-as3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!