语法错误 1084:左大括号前需要分号
制作了一个 Flash 横幅,一切正常。但是,当我想用矩形工具在整个横幅上放置一个按钮并在操作选项卡中放入代码时:
Symbol16.onRelease() {
getURL('http://www.domainname.nl/');
}
我会得到一个错误:
Scene 1, Layer 'Layer 5', Frame 1, Line 1 1086: Syntax error: expecting semicolon before leftbrace
我已经搜索了很多小时的解决方案,但找不到任何内容网络。
有谁知道如何解决这个问题?
如果需要更多信息,请告诉我。
Did make a Flash banner and it all works fine. But when I want to put with the rectangle tool a button over the whole banner and put in the action tab the code:
Symbol16.onRelease() {
getURL('http://www.domainname.nl/');
}
I will get an error:
Scene 1, Layer 'Layer 5', Frame 1, Line 1 1086: Syntax error: expecting semicolon before leftbrace
I've already searched for many hours to the solution but couldn't find anything on the web.
Does anyone know how to solve this problem?
If more info is needed let me know.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该通过以下方式添加一个方法:
You should add a method by this way:
如果您使用的是 ActionScript 3.0,则应更改脚本版本。
为此,请按 Ctrl+Shift+F12、Flash Tab → 脚本:ActionScript 2.0 → 按<强>确定。
You should change your script version if you are on ActionScript 3.0.
To do this press Ctrl+Shift+F12, Flash Tab → Script: ActionScript 2.0 → Press OK.