3 Replies Latest reply on Jan 14, 2009 9:26 PM by rahimhaji

    close a loaded HTML file

    rahimhaji Level 1
      Dear Friends,

      i have developed a ticker, in that if the user clicks help button, it will load a HTML file from the site. my file works fine, wherever user clicks on that button it is creating new native html file. i can disable my help button when they native HTML browser. i need to enable my help button when they close the HTML window. i dont know how to trace the closing of HTML window.

      to load HTML iam using the following code:

      var initOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
      initOptions.resizable = false;
      initOptions.maximizable = false;
      initOptions.minimizable = false;
      var bounds:Rectangle = new Rectangle(10, 10, 630, 500);
      var html2:HTMLLoader = HTMLLoader.createRootWindow(true, initOptions, true, bounds);
      var urlReq2:URLRequest = new URLRequest(" http://www.xyz.com/desktop/help.html");
      html2.load(urlReq2);
      helpbutton.enable = false;
      html2.stage.nativeWindow.activate();
      i need to enable my helpbutton, when they close (unload), this html page..

      thanks and Regards,
      Syed Abdul Rahim