How can we prevent application from closing?


hi all!

 

i developing panel ui photoshop. so, panel application type. wanted capture application exit/quit/close event , perform actions on ui before application exit/quit/close. added event listeners same. but, problem receive these events after ui has closed, perform ui based changes, cannot use it.

 

i intended prevent close of applicaiton until these actions @ application exit/quit/close complete. searched internet, , far have seen following example of air application,

 

private function onclose():void

{
     var closingevent:event;
     closingevent = new event(event.closing, true, false);
     stage.nativewindow.dispatchevent(closingevent);
     if (!closingevent.isdefaultprevented())
     {
          stage.nativewindow.close();
     }

}

 

i want similar application.

 

please guide.

thanks!



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support