AS2 Flash按钮网址不起作用(AS2 Flash button url not working)

编程入门 行业动态 更新时间:2024-10-24 09:21:10
AS2 Flash按钮网址不起作用(AS2 Flash button url not working)

我的按钮上有以下动作代码

on(release){ getURL("http://www.google.com", "_blank"); }

当我点击它时,没有任何反应,没有编译错误。 我在这里挠头,因为它只是一个简单的按钮:(

谢谢。

I have the following actionscript code on my button

on(release){ getURL("http://www.google.com", "_blank"); }

When I click it, nothing happens, no compiler errors. I'm scratching my head here because its just a simple button :(

Thanks.

最满意答案

该事件处理程序没有与其操作关联的对象。 给该按钮命名,比如* my_button *并在时间线中添加此操作代码:

this.my_button.onRelease = function() { getURL("http://www.google.com", "_blank"); }

这将解决你的问题:)

that event handler has not an object associated with its action. Give that button a name, say *my_button* and in the time line add this action code:

this.my_button.onRelease = function() { getURL("http://www.google.com", "_blank"); }

That will solve your problem :)

更多推荐

本文发布于:2023-08-01 19:22:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1363660.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:按钮   不起作用   网址   Flash   url

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!