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 :)
更多推荐
发布评论