tags:

views:

530

answers:

1

I am trying to turn labels red when they can no longer be added to a list because of size requirements. The renderer works but Flex creates a separate component. I can't think of any good way to get that value to the new component. Any ideas?

<mx:List... >

 <mx:itemRenderer>          
      <mx:Component>
         <comp:SetSizeLabel numIps="{data.numInSet}" remaining= "{remaining}"/>
      </mx:Component>
  </mx:itemRenderer>

+2  A: 

You can use the outerDocument keyword to access the scope outside of the inline component. Look at Example

CookieOfFortune
Thanks, that was extremely helpful.
Ryan H