如何使用Flash关闭浏览器窗口 [英] How to close the browser window using Flash
本文介绍了如何使用Flash关闭浏览器窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在编写与关闭当前浏览器窗口的按钮相关的代码时,我需要帮助.
I need help in writing code associated to a button that closes the current browser window.
推荐答案
假设您要从Flash关闭浏览器窗口,人们会使用用Java语言可以做到这一点.
请参阅以下链接:
http://www.flashdesignerzone.com/tutorials/t1022.php [ http://www.flashdesignerzone.com/tutorials/t1041.php [
Assuming you want to close the browser window from Flash, people use Javascript to do that.
See these links:
http://www.flashdesignerzone.com/tutorials/t1022.php[^]
http://www.flashdesignerzone.com/tutorials/t1041.php[^]
没有退出"这样的概念一个窗口".
-SA
There is no such concept as "exit a window".
—SA
btn_c.addEventListener(MouseEvent.CLICK,Close);
函数Close(event:MouseEvent):void {
fscommand("quit",true);
}
我写了这个,但是不起作用??? !!!
btn_c.addEventListener(MouseEvent.CLICK,Close);
function Close(event:MouseEvent):void {
fscommand("quit", true);
}
i wrote this one but it doesn''t work ???!!!
这篇关于如何使用Flash关闭浏览器窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文