Modal dialog extension


i building hybrid extension uses flash ui.  extension modal dialog has ok button, when pressed, closes dialog , sends event plugin makes changes current document.

 

the problem running can't dialog close.  plugin getting event , artwork modified, changes don't update (to screen) until dialog goes away.  have tried dozen different ways close dialog.  seems if dispatch csxs event before or after close(), dialog won't close.

 

one thing tried catch csextension.close event.  supposed called after extension closes.  if press escape key, dialog closes, event fired , can dispatch event , works correctly.  if click ok button, dialog doesn't close, , same problem before.

 

here okclicked function:

 

private function okclicked():void

{                  

  // create event here

  csinterface.instance.dispatchevent(event);

 

  close();

}

 

 

other things have tried:

 

  • adding event.existing listener
  • adding nativeapplication.nativeapplication event.existing listener
  • force closing window dispatching event.existing events, nativewindow.close(), nativeapplication.nativeapplication.exit(), etc
  • dispatching keyboard.escape key event (to simulate user pressing esc key)

 

dispatching csxs event during of these result in dialog not closing.

 

any suggestions?

what app with?

 

harbs



More discussions in Creative Suite SDK


adobe

Comments