Home:ALL Converter>Open modal popup from a modal popup in Flex?

Open modal popup from a modal popup in Flex?

Ask Time:2014-12-04T05:27:09         Author:user3071284

Json Formatter

Is it possible to open a modal popup from a modal popup? I have not been able to get the following to work by calling showDataEntry() from an open modal popup:

// at the top of the modal's mxml, inside <mx:TitleWindow>
import mx.managers.PopUpManager;
import views.windows.MyDataEntry;

...

private function showDataEntry():void {
    var myDataEntry:MyDataEntry = MyDataEntry(PopUpManager.createPopUp(this,MyDataEntry,true));
    PopUpManager.centerPopUp(myDataEntry);
}

...

<mx:Button id="btnDataEntry" label="Data Entry" click="showDataEntry();" />

Author:user3071284,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/27281973/open-modal-popup-from-a-modal-popup-in-flex
yy