I was trying to open a modal dialog on the click of a panel button the other day. But was unsuccessful. I succeeded in having a panel appear on button click. But the panel appeared in the foreground of the parent panel. I don't want this. Here are some screenshots on what I have succeeded in doing and what I want to do.
This panel appears on the click of the button "Click". Note that the child panel cannot be dragged outside the boundaries of the parent panel.
Instead, I want the behavior of the child panel as shown below. Like the modal dialog that pops up when we create a new Action Set in the Actions panel.
This panel can be dragged all around the application window. Kindly guide my way through to achieve this.
Message was edited by: poortip87
You can open a modal secondary window like this:
var w:Window = new Window(); // An mx:Window, or your own subclass
w.type = CSXSWindowTypes.MODAL_DIALOG; // in com.adobe.csxs.types package
There are up to four different window types you can open as secondary windows, though currently not all are available in all products.
Thanks David! That solved my problem!