|
|||
|
Hi everybody ..
Please tell me how can I knew if the user closes a specified window or not without using RunAndWait method , because when I used this method my application was not responding . I used the following code but it doesn't return any value when the window closed : Code:
App = Shell.run("Program.exe");
W = new Window(App.handle);
W.onClose = function (){
Dialogs.msgBox("window closed");
}
App.close();
|
|
|||
|
You cannot handle the onClose event of another application, because it does not run in the same process of your main app.
And the way to handle event in action script is different from that in ffish script. For example, to handle the onClose event of the main window, you would have to do like this: Code:
import SWFKit.*;
function onClose()
{
Dialogs.msgBox("about to close!");
}
var wnd = Global.getMainWnd();
wnd.setEventHandler("onClose", onClose);
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|