Skip navigation
lougris17
Currently Being Moderated

catch the event when you click on the cross of closure

Apr 10, 2012 1:21 AM

Hello,

 

How could you catch the event when you click on the cross of closure?

 

Thanks in advance,

 

Fred

 
Replies
  • Currently Being Moderated
    Apr 10, 2012 2:54 AM   in reply to lougris17

    And in English? If you have questions regarding how to intercept UI events in scripts or plug-ins, refer to the proper SDK and scripting sub-forums. If you ahve a different thing in mind, you need to explain better.

     

    Mylenium

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 11, 2012 1:55 AM   in reply to lougris17

    Check out the Window event-handling callbacks on page 122 of the Adobe Javascript Tools Guide pdf.

     

    You want something like:

     

    myWindow.onClose = function() {

         // your code goes here

    };

     

    or

     

    myWindow.onClose = myCloseFunction;

     

    function myCloseFunction() {

         // your code goes here

    }

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points