语法错误 1084:左大括号前需要分号

发布于 2024-12-28 00:19:47 字数 378 浏览 3 评论 0原文

制作了一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

陌路黄昏 2025-01-04 00:19:47

您应该通过以下方式添加一个方法:

Symbol16.onRelease = function() {
getURL('http://www.domainname.nl/');
}

You should add a method by this way:

Symbol16.onRelease = function() {
getURL('http://www.domainname.nl/');
}
删除→记忆 2025-01-04 00:19:47

如果您使用的是 ActionScript 3.0,则应更改脚本版本。

为此,请按 Ctrl+Shift+F12Flash 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文