I have list with itemrenderer function. In list I have creation complete event in which I set my dataprovider like:
[Bindable] var myArrayCollection:ArrayCollection;
private function creationComplete(event:FlexEvent):void
myList.dataProvider = myArrayCollection;
and then when I add some item to my myArrayCollection in some other class, shouldn't dataProvider get changed and automatically call itemrenderer?
because at the moment when I use myArrayCollection.addItem(someItem); in different class, item renderer doesn't get called...
In my understanding it should get called, because I set myArrayCollection as bindable. Should it be like I discribed above?
or I got the whole picture totally wrong.
If there are enough renderers on the free list, then it won’t create a new one, and if you are using virtualLayout, a renderer will not get created unless the new item is viewable.