I have a component based on SkinnablePopUpContainer. I am using 4.5.1 sdk.
I need to pop it up on the very center of my application.
But the open() does not give any parameters as such to specify that.
Sample code for showing popup is:
var popup: MyCustomPopUp = new MyCustomPopUp ();
popup.open( the name of my project file ,true);
popup.verticalCenter =0;
popup.horizontalCenter =0;
Even after mentioning the verticalCenter and horizontalCenter as 0, the popup opens automatically on the left hand side of the screen.
If I use PopUpManager class then it works fine.But for my mobile application, I dont want to use PopUpManager Class.
Please suggest a solution for this.
Sorry Komal, I only looked at the use of my component, not the actual code of it. We have a component that uses SkinnablePopupContainer and modifies its appearance.
What you'll need to do is create your SkinnablePopupContainer and using a Group, or VGroup as you see fit, center the Panel object on the screen. We use the SkinnablePopupContainer's Render function to update the size of the Panel. This is needed if your application may be rotated by the user while the Popup is open.
North America
Europe, Middle East and Africa
Asia Pacific