作者book153772 (勘吉)
看板Flash
标题[问题] flash 超连结的问题
时间Tue May 14 23:13:34 2013
小弟最近想做一个loading,当他数据跑完後会跳出图片让我超连结
但是小弟已经做好了按了ctrl+enter超连结是没问题的,但是当我到桌面
点下swf党却超连结失败,小弟不知是哪里出错,想请各位帮小弟看一下
这是小弟参考的网址:
http://ppt.cc/C5AL
附上小弟更改的程式码:
stop();
var url:String;
var request:URLRequest;
bt.addEventListener(MouseEvent.CLICK, doClick);
function doClick(e:MouseEvent):void {
url= "
http://tw.yahoo.com/";
request= new URLRequest(url);
navigateToURL(request, "_blank");
}
function AAA(EE:MouseEvent) {
//trace(this.currentFrame,this.totalFrames)
if (this.currentFrame==this.totalFrames - 1) {
this.gotoAndStop(1);
} else {
this.nextFrame();
}
}
function BBB(EE:MouseEvent) {
if (this.currentFrame==1) {
this.gotoAndStop(this.totalFrames-1);
} else {
this.prevFrame();
}
}
RIGHT_btn.addEventListener(MouseEvent.CLICK,AAA);
LEFT_btn.addEventListener(MouseEvent.CLICK,BBB);
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 1.172.128.183
1F:推 zpl:直接执行swf上的超连结会有安全性问题 在实际网页上就不会了 05/15 14:07