Hello all ,
I am able to display Images displayed on to the Datagrid .
Now clicking on that Image , a PopUp is opening . This all works fine .
How to make the Popup displayed at the Center of the screen ??
Even though i used PopUpManager.centerPopUp(popup); , but its not working .
Means when the last row of a DatagridColumn Row Image has been clicked , the Popup appears at some diferent positions ??
How to resolve this ?? Please guide . Thanks in advance .
Assuming you need the popup in the center of your application.
var testPopup:TestPopup = TestPopup
( PopUpManager.createPopUp( Application.application as DisplayObject, TestPopup, true ));
Use Application.application as the first parameter in the createPopUp function. The popup will take this as a parent page.
Is this answers your question ?