I was able to find a work around...kind of. Instead of relying on data binding in my custom cell renderer I now set the new "source" value for the Image inside the setValue() function (see the code below). This seems to fix the image disappearance problem. But now I have a new problem. I can't seem to find any way to get the image to fill the entire cell after a resize. It just remains the same size that it was rendered initially. I've tried a number of things and just can't get it to work. What am I doing wrong??
 
==== MyCustomCellRenderer.mxml ====
 
<?xml version="1.0" encoding="utf-8"?>
 
<mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml"
 horizontalAlign="center"
 verticalAlign="middle"
 >
 
    <mx:Script>
 <![CDATA[
 
        function setValue(str:String, item:Object)
  {
   image.source = item.imageUrl;
        }
  
 ]]>
    </mx:Script>
 
 <mx:Image id="image" scaleContent="true" width="100%" height="100%" />
 
</mx:VBox>
 
====
Kris
 
--
 
Kristopher Schultz
Developer
 
Resource Interactive
p: 614.410.2123
 

 

I just tried a big number of things both documented and undocumented and couldn’t get it to work correctly.  I have no idea why since this is something I thought we tested (though maybe it was with embedded images and not dynamically loaded).  I’ll file a bug on this but I don’t have any good suggestions right now.  Everything I’ve looked at makes it seem like it should do the right thing.

 

Sorry!

Matt

 

 

Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to