【发布时间】:2010-06-01 00:13:58
【问题描述】:
如何从 ActionScript 打开多个弹出式浏览器窗口?
【问题讨论】:
标签: apache-flex flash actionscript-3 browser mxml
如何从 ActionScript 打开多个弹出式浏览器窗口?
【问题讨论】:
标签: apache-flex flash actionscript-3 browser mxml
您可以使用 ExternalInterface 直接从 ActionScript 调用 JavaScript 方法
import flash.external.ExternalInterface;
ExternalInterface.call('window.open("http://www.google.com/")');
【讨论】:
您需要使用 callLater 来对 navigateToUrl() 调用进行排队。
如果一次全部发送,屏幕更新只会获取最后一个 navigateToUrl。查看此链接 -> http://www.adobe.com/livedocs/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=passingarguments_086_12.html.
【讨论】: