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_intro_5.html > > 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. > > -- 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.

