1 Reply Latest reply on Nov 19, 2009 5:39 AM by romil mittal

    Icon Dock (Custom Close Function)


      I would like to know if anyone knows of a way to override the default close action in your air app. I have a tray icon on my app with a function onclick



      function Dock(){

      window . nativeWindow . visible = !window.nativeWindow.visible;




      This seems to do the job i want, however when the window is closed using the (X) on the window as most windows users would do this function stops working.

      I am new to air program (just incase you need to know i am using the HTML+AJAX air).


      Thanks in Advance