Flex :: VGroup: How To Have A New Element Show Up Smoothly (resize) When Added/removedApr 20, 2011
When adding/removing elements to/from a VGroup I need it to happen smoothly, resize the item. I believe I have to use transition effects. But how?
At item (element) level? At VGroup level? Should I use a DataGroup instead and do it at ItemRenderer level?
I've been trying to do it at item level but I still didn't manage to make it work and somehow it doesn't feel right. It feels like it should be done at a higher level.
For example, I defined a "death" state which resizes the item to height=0. But then, after it shrunk, it has to somehow notify VGroup in order for it to be removed or remove itself from VGroup. It feels unnecessarily complicated.
way to associate an effect to inserting and removing items from a VGroup?