我正在尝试改变iframe外部的闪存按钮iframe src。
这是我的密码
this.contact.onRelease = function() {
navigateToURL(new URLRequest("page2.html", target="myframe") );
};但这不起作用
发布于 2013-08-12 12:53:46
如果不使用ExternalInterface,也可以更改iframe内容,但我认为您也被限制在自己的域内。你的密码几乎是对的。我不确定this.contact.onRelease是否能工作,但是navigateToURL应该是这样的:
navigateToURL(new URLRequest("page2.html"), "myframe");您将目标分配给URLRequest,而且目标只是一个字符串,所以没有target=..。
US/FlashPlatform/reference/actionscript/3/flash/net/package.html#navigateToURL()
https://stackoverflow.com/questions/18183381
复制相似问题