--- In [email protected], "luis_roman_am" 
<[EMAIL PROTECTED]> wrote:
>
> Lets try to add more info. Theres a TileList with a ItemRenderer. 
The
> ItemRenderer code is:
> 
> <mx:Script>
>       <![CDATA[
> 
>             import mx.core.Application;
>           import mx.collections.ArrayCollection;     
>             
>             [Bindable]
>             private var collectionData:ArrayCollection;           
> 
>             
>              private function init():void
>             {
>                 collectionData = MyArrayCollection
>                 collectionData.filterFunction=  
filterUrl;           
>                          
>                 collectionData.refresh();    
>                                  
>             }           
>            
>             private function filterUrl(item:Object):Boolean
>             {
>                 return item.Url == data.Url;
>             }                 
>               ]]>
> </mx:Script>  

You don't say how your variable MyArrayCollection is being set, but I 
suspect you're just using a reference to the _same_ ArrayCollection 
in all itemRenderers.

Try something like this:

collectionData= new ArrayCollection(MyCollection.source);

HTH;

Amy

Reply via email to