Search code examples
apache-flexactionscript-3flex4custom-component

Flex 4: Help adressing an object


I found this amazing code to make a dropdownlist with check boxes: Click here

I implemented it and it works, except for one detail I cant for the life of me get the array of selected checkboxes back.

I have implemented as follows:

<local:MultiSelectionDropDown maxHeight="300" x="181" y="-7" width="233" requireSelection="false" itemRenderer="myComponents.MultiSelectItemRenderer" skinClass="myComponents.MultiSelectionDropDownListSkin" dataProvider="{GetIsList.lastResult.ReportFilterList.ReportFilter}" id="dropISLIST" color="#000000"/>

What I cant figure out is what to call to get dropISLIST to give me back the list of selected check boxes and their values.

Does anyone have any ideas.

Please and thank you in advance for any help you can provide....


Solution

  • If your item renderers are properly reporting their checked state back to your data provider, then it is as simple as iterating through dropISLIST.dataProvider. If the data provider does not reflect what is shown in the droplist, then your first job is to make sure your item renderers are working correctly. If you are having trouble, feel free to share your code for the item renderer and we can help you sort it out.