Hi, Use this code
var p:Point = localToGlobal(new Point(mouseX,mouseY)); popup.move(p.x+10,p.y-220); On Apr 17, 1:54 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); > > } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

