SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast jsegura's Avatar
    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.

  2. #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.

  3. #3
    SitePoint Enthusiast jsegura's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •