simpleWindow =

PopUpManager.createPopUp(this,windows.SimplePopupWindow,false);

PopUpManager.centerPopUp(simpleWindow as IFlexDisplayObject);
for accessing popup postion

var currentX:Number = this.x;

var currentY:Number = this.y;

var currentWidth:Number = this.width;

var currentHeight:Number = this.height;


On Fri, Apr 17, 2009 at 2:24 PM, Hemanth Kumar T.S <
[email protected]> wrote:

> Hi All,
>
>
> I'm using a PopUpManager to create a popup.
> I'm using a textinout box in my main page. and on click of icon beside it,
> it opens up the popup.
> I want to open up the popup relative to that icon.
>
> Could anyone pls tell me how to do it.
>
> Thanks,
> Hemanth
>
> private function openCalendarPopUp(str:String):void{
>
>     popCal =
> CalendarPopUp(PopUpManager.createPopUp(this,CalendarPopUp,true,str));
>        //PopUpManager.centerPopUp(popCal);
>        popCal.addEventListener(CalendarLayoutChangeEvent.CHANGE,getDate);
>        popCal.addEventListener(MouseEvent.CLICK,selectToday);
>
>    }
>
> >
>


-- 
Thanks & Regards,

Jagan Mady's

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to