Hi, Thanks a lot for your response. I used stageX and stageY.. it works :) . thanks
thanks Hemanth On Fri, Apr 17, 2009 at 8:10 PM, dlo <[email protected]> wrote: > > To calculate the appropriate x & y values to position the popup, > use the stageX and stageY of the MouseEvent on click of the icon. > > Use helper methods li > > On Apr 17, 10:16 am, AshishMishra <[email protected]> wrote: > > Hi Hemanth, > > > > try this: > > > > var newX:int = 100; > > var newY:int = 100; > > > > var alert:Alert =Alert.show("Please enter alteast one search > > criteria"); > > PopUpManager.centerPopUp(alert); > > alert.move(newX, newY); > > > > This will move the popup to a location to 100, 100. > > > > I hope this will help > > > > Regards > > Ashish > > > > 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); > > > > > }- Hide quoted text - > > > > - Show quoted text - > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

