Hi Debashree,
First you have to get the image's x,y position and have to concert the co-ordinates as global co-ordinates(means values respective to whole browser). Those values have to be assigned to the dropdownlist. var myPoint:Point = BaseLevelcontainer.localToGlobal(new Point(image.X, image.y)); myPoint will have global value of image say (300,350)like that. So this value have to be assigned to the drop list. droplist.x = myPoint.x; dropList.y = myPoint.y; Hope this will help you to implement in your app. Thanks, Sam. On Apr 30, 5:59 pm, Debasree Das <[email protected]> wrote: > Hi , > > Can you send me some example on this..? > > Thanks in advance :) > > > > On Fri, Apr 29, 2011 at 2:40 PM, xelf <[email protected]> wrote: > > Hi, > > To make dymanic position you can go for localToglobal concept of > > positioning, which will get the x,y coordinates of images in > > application level. > > > This can be acheveid by creatring a Point object and assign the X, Y > > values to the container where you add the drop list. > > > Please refer: > >http://livedocs.adobe.com/flex/3/html/help.html?content=containers_in... > > > Hope this helps, > > > Thanks, > > Sam > > > On Apr 28, 10:42 am, Debasree Das <[email protected]> wrote: > > > Hi All, > > > > I want 2 display dropdownlist on click of every image...i am getting the > > > images through the repeater..bt whenever i click on any image i am > > getting > > > the drop downlist in one fixed positiopn.i want to display the > > dropdownlist > > > below every image.. > > > > please help.. > > > > <mx:Repeater id="repCheckBox" > > > dataProvider="{mapModelLocator.arrFilterCategories.getItemAt(0)}"> > > > <mx:VBox id="hboxMapFilter" width="50%" height="50%"> > > > <mx:Image id="icnMapFilter" > > > width="25" > > > height="25" > > > enabled="true" > > > source="{mapModelLocator.pathImage + repCheckBox.currentItem.img}" > > > toolTip="{repCheckBox.currentItem.name}" > > > click="icnMapFilter_clickHandler(event)" > > > /> > > > <mx:Spacer width="30"/> > > > </mx:VBox> > > > > protected function icnMapFilter_clickHandler(event:MouseEvent):void > > > { > > > var bc:BorderContainer = new BorderContainer(); > > > bc.width = 100; > > > bc.height = 20; > > > this.addElement(bc); > > > var drpFilter:DropDownList = new DropDownList; > > > drpFilter.width = 100; > > > drpFilter.height = 20; > > > drpFilter.x = 50; > > > drpFilter.y = 25; > > > drpFilter.requireSelection = true; > > > drpFilter.allowMultipleSelection = true; > > > drpFilter.prompt ="Select"; > > > drpFilter.dataProvider = mapModelLocator.arrFilterCategories.getItemAt(0) > > as > > > ArrayCollection; > > > drpFilter.labelField = > > > mapModelLocator.arrFilterCategories.getItemAt(0).range.@lv as String; > > > drpFilter.addEventListener(MouseEvent.CLICK,FilterCtrl_onClick); > > > bc.addElement(drpFilter); > > > } > > > -- > > 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.- 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.

