So I investigated this a lot myself a while ago, and you are pretty much out of 
luck. itemsChangeEffect does not work with refresh.

You can fake it a bit, by instead of doing a sort or a filter, manually 
adding/removing/moving elements one at a time in the list, which will trigger 
the itemsChangeEffect. Unfortunately, this only works for very simple changes, 
for complex changes the itemEffect will get confused and do the wrong thing.

For something like sorting a high scores list with a filter, this will probably 
NOT work.

To solve my very similar problem I had to create a brand new custom component 
that did this. I basically recreated the features of List that I needed and 
implemented the animation of them moving around using Move/Fade. The adobe 
sample that has a similar feature you are requesting also does not use 
itemChangeEffect, but instead implements a custom component like I did. 
http://www.adobe.com/devnet/flex/samples/flex_store/


as a side note, I was using itemChangeEffect a lot throughout my ap for the 
simpler lists, but I ended up encountering so many bugs and problems with it 
that I have now completely removed it from my application. Bummer, but 
hopefully they work better in Gumbo when I move to that.

-ctm


_________________________________________________________________________________________________
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of fatmanchan2009
Sent: Friday, November 20, 2009 9:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] triggering itemsChangeEffect when using filters on an 
ArrayCollection's

  
Hey Guys

So what im basically doing is creating a List Component of players scores. The 
dataprovider is type ArrayCollection, and i have applied a sort filter on the 
collection so it sorts by players score, but when the filter is applied and the 
order of the collection changes, the itemsChangeEffect doesnt get triggered, so 
no effects occur. 

So thats the main problem, does anyone have a clue on how to go around this, or 
a fix for it? 

Cheers

Regards

SCHAN (fatmanchan2009)

Reply via email to