I am trying to create an MXML ItemRenderer that displays a different
state depending on it's data.  Its state does not change by any user
interaction.  For instance, if data.type = 'text', show the label
state, else show the image state.

Where can I set currentState so that each itemRenderer displays as it
should?  Is this even possible?  All of my renderers always turn out
one way or the other.

I'm beginning to think I have to do this in ActionScript... or maybe a
hack where I fire a function on creationComplete that changes the
data.type to some other value and back again so that the binding fires??

Any help would be great.  Thanks in advance.

Reply via email to