what is the Flash event listener when flash is exiting?

こ雲淡風輕ζ 提交于 2019-12-11 04:14:01

问题


anybody knows how to make event listener for flash exiting?

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

Thanks


回答1:


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.

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. ;-)



来源:https://stackoverflow.com/questions/2125830/what-is-the-flash-event-listener-when-flash-is-exiting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!