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.

Reply via email to