Using a set up in my ActionScript of:
ExternalInterface.addCallback("tagWithClosed",windowClosed);How can I write a JavaScript function that calls 'tagWithClosed' to Flex when the user closes the window (window.close() ) or when they leave for another page?

