1 Reply Latest reply on Jun 26, 2010 2:11 PM by Shongrunden

    How to target an itemRenderer in a DataGroup?

    Handycam Level 1

      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.