我已将Flash文件发布到html页面。一旦Flash动画结束,我将如何自动关闭此页面。我可以通过actionscript告诉flash停止,但是我需要整个页面自动关闭。flash(swf)动画结束后关闭html页面
刚刚尝试使用JavaScript告诉网站关闭5秒(动画时间)后。不想工作。关闭时间只要在动画结束后关闭即可。这里是代码:
Splashloadhtml, body { height:100%; background-color: #ffffff;}
body { margin:0; padding:0; overflow:hidden; }
#flashContent { width:100%; height:100%; }
function loaded()
{
window.setTimeout(CloseMe, 500);
}
function CloseMe()
{
window.close();
}
出于测试目的,这里是SWF呸
+0
JavaScript使用毫秒在它的计时器上,你需要执行'setTimeout(CloseMe,5000)'。 –