This content has been marked as final. Show 3 replies
Are you using a custom item renderer for this list? If so, could you show some code on how are you using it?
Hm...custom item renderer? Here is my panel with the list component:
<mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" creationComplete="initApplication()"
<mx:Panel x="10" y="10" width="228" height="232" layout="absolute" title="Filters" fontSize="11">
<mx:List x="0" y="0" width="100%" height="100%"
id="avalFilters" dragEnabled="true" dragMoveEnabled="true">
from my initApplication function I make a server call (PHP) -> (the "4" is the ID of they records to return - they are associated by that ID.
gateway.call("SErvice.getRecords", new Responder(onRecordsResult, onFault), 4);
Finally here is my function where I assign the data provider:
public function onFiltersTiersResult(result:Array):void
phpData = new ArrayCollection(result);
// set the data for the filters and tiers list user can choose from
avalFilters.dataProvider = phpData['set1'];
avalTiers.dataProvider = phpData['set2'];
where the index 'set1' and 'set2' both are indexed arrays (0 - num of records-1) and each index points to an array that has a 'data' (the record ID) and 'label' (the record name)
I formatted my array like that because I was sending back a bunch of data and it seems for the AMFPHP interface to work the array returned by PHP must be at the very top level an indexed array (as in phpData above)
All my data appears and is in the arrays...I tried using te Alert.show() to ensure that all rows are found and they are its just that when they appear in the List componenet some rows disappear...not sure why!
Ok i tested it out the problem is NOT that the whole list is not populate but rather that lets say i scroll down in the list then scroll back up it fails to rerender the ites in the list. They appear again if i scroll down and up again but others are appear and disappear as well! Help!