1 Reply Latest reply on Feb 9, 2010 1:02 PM by archemedia

    Invalidating the contents of a HorizontalList when images are loaded


      I made a custom ItemRenderer for the horizontalList:


      <?xml version="1.0" encoding="utf-8"?>

      <mx:Box name="ThumbRenderer" xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center" verticalAlign="middle" width="100%" height="100%" >

           <mx:Image id="img" source="{data.thumbnailImage}" width="100%" height="100%" />

           <mx:Label text="{data.label}" />

           <mx:CheckBox />



      Whenever these images are loaded, they appear very small. It seems the Component doesn' resize the Items in the list when the image is loaded. I tried to invalidate the ItemRenderer but it doesn't help.

      When I resize my FlashPlayer, the component invalidates and the ListItems have the right size (based on their contents).


      Any Idea how to force the component to resize it's contents based on the loaded images?


      Thanks in advance