This content has been marked as final. Show 4 replies
Anybody? .... Bueller? ....
Have you tried embedding the image asset? This stuff is well outside my areas of expertise, but, hey, I'm trying.
The problem is that I want the images to be specified at runtime based on the contents of the XML file which may change without the Flex app ever being recompiled. I've embedded images in other Flex apps before, but that requires that all embedded images to be available at compile time. Thanks for the suggestion, though. I appreciate it.
Ok, got it.
I figured that since the <mx:Image> renders just fine and that the ActionScript Image object doesn't that I'd just create a custom mxml component with Image as the base element and with nothing else in it. Then I add an instance of my custom image component in AS whenever the XML specifies one. The layout was a bit of an issue, but I just added the image dimensions as attributes in my XML and size the CustomImage component based on those.
Must be some subtle difference between the mxml and AS Image classes that isn't documented very well.