Hi Joe, List Thanks for the tip. I have been trying your approach and using the "childCreated" and "childDestroyed" events of the Tile container to apply me effect, but I cant figure out how to get the UI to wait for the effect to render before proceeding (i.e within the handler for childDestroyed, I want the effect to start and finish, before the child gets destroyed).
Any ideas would be appreciated. Thanks, - superabe ----- Original Message ----- From: "Joe Berkovitz" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, April 18, 2005 5:20 PM Subject: Re: [flexcoders] Apply affects before and after databinding occurs in TileList > > I am having success doing this sort of thing with a Repeater instead > (you can use a Tile container for the repeater layout), because it > provides cleaner access to the component(s) on which the effect is to be > applied. > > My technique is to subclass the container component inside the repeater, > and have the subclass listen for childCreated events dispatched from > itself. This event lets one know when a component for some new element > of the list has been added; an effect can then be applied to it (by AS > coding, not in MXML). You can also override destroyChildAt() to find > out when some element of the list has been removed, and arrange to fade > it out and destroy it when the effect completes. > > It would be probably more robust to write a completely new component > that was a lot like Repeater, but which applied such effects itself, but > the above approach was a lot quicker and seems to work fine. > > . . . . ...j > > superabe wrote: >> Hello flexcoders, >> >> I am trying to apply some effects to the items in a TileList before and >> after the dataprovider updates via databinding >> >> i.e the idea being, to have some fade out effect before the new data >> kicks >> in and refreshes the TileList and have a fade in affect after the >> elements >> in the list have finished updating. >> >> Is this possible at all ? >> >> Thx >> >> superabe >> >> >> >> >> Yahoo! Groups Links >> >> >> >> >> >> >> >> >> > > > > > Yahoo! Groups Links > > > > > > > Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

