Flash退出时,Flash事件侦听器是什么? [英] what is the Flash event listener when flash is exiting?

查看:163
本文介绍了Flash退出时,Flash事件侦听器是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何使Flash退出时使用事件监听器吗?

anybody knows how to make event listener for flash exiting?

平均而言,退出是指删除包含Flash对象的标签,以便您不再能看到Flash ...

By mean exiting is when a tag that hold the flash object is removed so that you cant see the flash anymore...

谢谢

推荐答案

如果您的意思是某个事件在Flash销毁后触发(网页关闭,用户离开页面导航,退出浏览器或类似操作),没有帮助Flash不知道它即将被杀死,无法发出信号,也肯定不能采取任何措施延迟/预防这种情况.

If you mean an event that gets fired upon flash destruction (web page closing, user navigating away from the page, exiting the browser or things like that), there's no help. Flash has no idea that it is about to be killed, can't signal about it, and surely can't to anything to delay/prevent the situation.

如果您遇到的问题是服务器不知道Flash应用程序何时被卸载/退出,那么据我所知,唯一的解决方案是与服务器建立会话并等待其超时当闪光灯消失时.如果您需要对其进行更好的控制,则还可以在应用程序中合并一个心跳"(Flash会定期调用服务器,以便服务器知道Flash实例仍在运行).

If the problem you're having is your server not knowing when your flash app is unloaded/exited then the only solution, as far as I know, is to set up a session with the server and wait for it to time out when flash dies. If you need finer control over it, you can also incorporate a 'heartbeat' into your app (flash calls the server in regular intervals so the server knows the flash instance is still alive).

就优雅/简单的解决方案而言,我还没有看到.当然想知道一些. ;-)

As far as elegant/easy solutions, I haven't seen any. Sure would like to know of some. ;-)

这篇关于Flash退出时,Flash事件侦听器是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆