SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Apr 3, 2003, 02:05 #1
- Join Date
- Feb 2002
- Location
- Barcelona (Catalonia-Spain)
- Posts
- 36
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Detecting when application is closing
Hello.
We are creating a flash application that works as a standalone application but as an internet page too, and we need to detect when the user has closed the application and/or the page. In other words, if is there something like "onApplicationUnload" for Flash Player.
Thanks in advance.
-
Apr 3, 2003, 13:33 #2
- Join Date
- Jan 2002
- Location
- London, UK
- Posts
- 759
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
There's no built in feature as far as i know but you could use Javascript to detect when someone exits the browser window.
-
Apr 7, 2003, 09:04 #3
- Join Date
- Feb 2002
- Location
- Barcelona (Catalonia-Spain)
- Posts
- 36
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'll try to call some function into the embedded flash movie when onExit() is done for HTML document, but I think this will not do the trick for me, because I need to write some data into one XML socket before the page is closed, and I don't know if this socket will already be closed when event arrives.
Thanks for your response, I'll tell you if it works.
Bookmarks