Hi virat, i got some thing in this Link, like what you have said, but i get
some errors,
so i cant implement it fully, can you please go through this link and tell
what modification i should do in that code......

1.
http://www.actionscript.org/forums/showthread.php3?p=880766#post880766
2.
http://gregjessup.com/flex-3-catch-browser-exit-or-close-event-using-javascript-and-externalinterface/


I didnt get solution, if you get any successfully kindly reply back to me...

Thanks for your reply,

On Thu, May 7, 2009 at 12:10 PM, v...@t <[email protected]> wrote:

>
> Hello
>
> Using JavaScript in html page you can detect the Closing event
> of the Application or Browser.
>
>
> ////////////////////////////////////////////////////////////////////////////
>
> HTML Code
>
> <script language="JavaScript" type="text/javascript">
>
> function thisMovie(movieName) {
>
>         if (navigator.appName.indexOf("Microsoft") != -1) {
>             return window[movieName];
>         }
>         else if (navigator.appName.indexOf("Netscape") != -1) {
>
>             return document[movieName];
>         }
>         else {
>
>             return document[movieName];
>         }
>     }
>
> function onUnload() {
>
>         thisMovie("RTE").sendToActionScript();
>        // RTE is id property used in the object tag in HTML
>     }
>
> </script>
>
> <body onunload="onUnload()">
>
>
> ///////////////////////////////////////////////////////////////////////////////////////
>
> MXML Code
>
> ExternalInterface.addCallback("closing",onClose);
>
> private function onClose():void
> {
>       // do something
> }
>
> --------------------------------------------
>
> let me know if you need more help
>
> Thanks
> v...@t
>
> On May 6, 1:01 pm, Young Master <[email protected]> wrote:
> > Hi Flexians,
> >
> >               I have a Task which links with Closing the Application
> > or Browser. I have to pass an Event to prevent loss of data while
> > Unexpected or Unknowingly Closing of Application or Browser. Is there
> > any possible way to pass event while closing,
> >
> > Thanks in Advance.....
> >
>


-- 
      With Warm Regards

        Sadrudeen.A
        Software Developer
        Atelier-Soft Pvt ltd
        Chennai.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to