当页面只是加载的 SWF 时,是否可以设置页面标题?
最佳答案
我会这样做:
ExternalInterface.call("document.title = 'Hello World'");
或更一般化:
function setPageTitle( newTitle : String ) : void {
var jsCode : String = "function( title ) { document.title = title; }";
ExternalInterface.call(jsCode, newTitle);
}
关于apache-flex - 从 SWF 设置页面标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/87909/