title: How can I load images as icons dynamically into a TileList using flex?
body: <p>Ok, so I have a custom render that I have created:</p>
  
  <pre><code>&lt;mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
    horizontalAlign="center"
    verticalAlign="middle"
    width="100"
    height="100"&gt;
    &lt;mx:Script&gt;
      &lt;![CDATA[
        [Bindable]
        private var fileLabel:String;
  
        [Bindable]
        private var fileIcon:Class;
  
        override public function set data(value:Object):void{
          fileLabel = value.label;
          fileIcon = value.file.url;
        }
      ]]&gt;
    &lt;/mx:Script&gt;
    &lt;mx:Image source="{fileIcon}" /&gt;
    &lt;mx:Label text="{fileLabel}" /&gt;
  &lt;/mx:VBox&gt;
  </code></pre>
  
  <p>That I want to use for a photo gallery with images that are dragged and dropped onto a TileList. I have that part down, but I can't seem to get the icon thing to work.</p>
  
  <p>Given: value is sort of wrapper for a File class. I want to set the mx:Image source to something that needs to be of type Class. Using nativePath or url gives me a cast error. I see tons of examples online using XML and something like "Embed(/url/to/img.jpg)". I promise you that if you give me one of those examples (using a static image) I will give you a negative vote. THAT IS NOT WHAT IM LOOKING FOR HERE!</p>