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
Post a Comment