【发布时间】:2010-06-22 07:34:18
【问题描述】:
我会认为自己是新手,
我已经在 Flash 菜单中制作了按钮来播放动画并在点击时转到一个 url,并且我已经做到了,以便 url 页面在 iframe 中加载。
在 Safari 上一切正常,但最终会在 Firefox 的新标签页中加载 url 页面。
如果有人有解决方案,将不胜感激。非常感谢。
这是动作脚本,iframe 被命名为“myframe”:
present_btn.addEventListener(MouseEvent.CLICK,goPresent);
function goPresent(evt:MouseEvent):void {
// play();
present_btn.gotoAndPlay("present");
var url:String = "http://www.ecuad.ca/~vlo/corelam/blank.html";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, "myframe");
} catch (e:Error) {
trace("Error occurred!");
}
}
【问题讨论】:
标签: flash actionscript-3 firefox iframe targeting