I have a data group:
<s:DataGroup id="stepNumbers" horizontalCenter="0" itemRenderer="stepNumberRenderer"> <s:layout> <s:HorizontalLayout verticalAlign="middle"/> </s:layout> </s:DataGroup>
The item renderer is a label, a rect, and two states. The rect and label change color depending on state. The datagroup is set to have a dataprovider of 1,2,3,4,5 so there are 5 labels on the stage at runtime.
What I am trying to do is find the correct actionscript to target an individual item in the datagroup and change it's state. Let's say I want the second item to change to "active" state. I can't find this information anywhere.
Adding new states to an ItemRenderer:
Using DataRenderer instead of ItemRenderer:
Communicating with items in a DataGroup: