I would just go ahead and attach a listener to the arraycollection. Something like this
var collection:AC = new AC();
collection.addEventListener(CollectionEvent.Change , changeHandler);
private function changeHandler( event:CollectionEvent ):void
for( var i:int = 0; i < collection.length; i++ )
var object:Object = collection.getItemAt(i);
object.index = i;
If you truly don't want to do that , then you can hack something together using the
listDataclass found on mx.controls.listClasses.IDropInListItemRenderer
Thanks for the tip. I'll try it later and let you know about the results.
Besides that, any ideas on why this is happening? I'm asking in order to be able to identify it the next time I see it.
I don't know what you are trying to do , but you could basically inject something into your itemRenderer. And it would keep track of which objects have been seen.
public var iSeeYou:PeekabooManager;
override pubilc function set data( value:Object ):void
iSeeYou.store( value );
where in iSeeYou.store looks like
private var _store:Object/Dictionary/ArrayCollection
public function store( value:Object ):Object
_store[value] = true; // check to make sure the AC doesn't already contain it , _store.addItem( value);
TIME OUT ! I completely submitted to the wrong thread. Please ignore everything I just said.