try capturing the onunload; onbeforeunload
events of BODY tag in java-script and handle in flex via external-interface. You may need to stop propagation of the events in java-script first, take care of that. On Tue, Jan 12, 2010 at 11:39 AM, kishan <[email protected]> wrote: > > Hi All, > > I've been trying to write an code which will trigger flex Alert > when i close the browser. Then > based on Alert's Yes || No i should be able to close the browser. > > The approach i have used is through ExternalInterface to call my > Flex function which gives Alert > when ever browser gets closed.The problem i have been facing is > that browser gets closed even > before i get flex Alert. How to control this browser close event > from java script into flex. Is there > any other way that i could make it happen?? > > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<flex_india%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > > > -- Thanks, Vaibhav Seth.--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

