闪光灯不开放上点击链接不开、闪光灯、放上、链接

由网友(长头发的大脸妹)分享简介:我创造了这个旗帜,Flash和我需要点击它会打开一个网页。I created this banner with Flash and I need that on click it opens a web page.我用此ActionScript 3.0 code ... I used this Actionscr...

我创造了这个旗帜,Flash和我需要点击它会打开一个网页。

I created this banner with Flash and I need that on click it opens a web page.

我用此ActionScript 3.0 code ...

I used this Actionscript 3.0 code...

link_btn.addEventListener(MouseEvent.CLICK, openurl);

function openurl(event:MouseEvent):void {
var url:URLRequest = new URLRequest("http://www.festivity.it");
navigateToURL(url, "_blank");
}

但它没有工作!

BUT it's not working!

WHYYYYY?!

我试过在时间轴上设置它也是一个按钮,但什么都没有改变。

I tried setting it on the timeline and also on a button, but nothing changed.

每当我按一下按钮...什么都没有发生,但有时也有安全警报消息打开。

Whenever I click on the button... nothing happens, but sometimes a message opens with a security alert.

感谢。

基娅拉

推荐答案

请确保您的发布设置启用从网络访问的本地回放安全的:

Make sure your publish settings enable network access from "local playback security":

阅读全文

相关推荐

最新文章