I don't know if this will be exactly what you want but I have a solution
of sorts.

Flex 3 has a DefaultTileListEffect that you can use but it only works
with adding or removing items from the dataprovider - not for filtering.
So, one way to get this working is by using two array collections.

This is what I did...

Added a DefaultTileListEffect:
<mx:DefaultTileListEffect id="myTileListEffect" fadeOutDuration="500"
fadeInDuration="500" moveDuration="500"/>

Added another Array Collection:
[Bindable] private var displayCol:ArrayCollection = new
ArrayCollection();

Changed the dataprovider of the tilelist and added the
itemsChangeEffect:
<ns1:RoundedSelectionTileList itemsChangeEffect="{myTileListEffect}"
dataProvider="{displayCol}" rowHeight="110" columnWidth="175"
itemRenderer="components.TileListItemRenderer1" backgroundAlpha="0.0"
borderStyle="none" width="100%" height="100%"/>

Changed the filterGrid function:
private function filterGrid():void
{
     bloggersCol.filterFunction = myFilterFunction;
     bloggersCol.refresh();
     for(var i:int = bloggersCol.length - 1 ; i >= 0 ; i--)
     {
         if(!displayCol.contains(bloggersCol[i]))
         {
             displayCol.addItem(bloggersCol[i]);
         }
     }
     for(i = displayCol.length - 1 ; i >= 0 ; i--)
     {
         if(!bloggersCol.contains(displayCol[i]))
         {
             displayCol.removeItemAt(i);
         }
     }
}


Give that a try and see what you think. If it's not what you want and
you'd rather something like the Flex Store, you will need to dissect the
Flex Store example to find out how they did it (The ProductCatalogPanel
seems to be where they did all this magic).


HTH.



Steve


--- In flexcoders@yahoogroups.com, amanyire arthur <stinas...@...>
wrote:
>
> Ok managed to make it a stand alone. does not require any application
server. just uses xml for data. hope this is what you meant.
>

Reply via email to