1 Reply Latest reply on Jan 7, 2009 5:52 PM by Newsgroup_User

    Images in a title list

    Arthur-Lockman Level 1
      I have a data source coming in via HTTPService that contains image source. The incoming XML is this:
      <images>
      <image>
      <thumbnail>
      {data}
      </thumbnail>
      </image
      </images>

      The title list code is this:
      <mx:TileList x="10" y="9.9" width="365.9091" height="142.27272" dataProvider="{imageReturn.lastResult.images.image}">
      <mx:itemRenderer>
      <mx:Component>
      <mx:Image source="{thumbnail}" width="50" height="50" />
      </mx:Component>
      </mx:itemRenderer>
      </mx:TileList>

      the images don't display. the source is a complete URL, and it works with a data grid. What is wrong with the image-to-data hookup? how do I correctly access the "thumbnail" property of the XML? Please Help Me!
        • 1. Re: Images in a title list
          Level 7

          "arthurlockman" <webforumsuser@macromedia.com> wrote in message
          news:gk3krp$irs$1@forums.macromedia.com...
          >I have a data source coming in via HTTPService that contains image source.
          >The
          > incoming XML is this:
          > <images>
          > <image>
          > <thumbnail>
          > {data}
          > </thumbnail>
          > </image
          > </images>
          >
          > The title list code is this:
          > <mx:TileList x="10" y="9.9" width="365.9091" height="142.27272"
          > dataProvider="{imageReturn.lastResult.images.image}">
          > <mx:itemRenderer>
          > <mx:Component>
          > <mx:Image source="{thumbnail}" width="50" height="50" />
          > </mx:Component>
          > </mx:itemRenderer>
          > </mx:TileList>
          >
          > the images don't display. the source is a complete URL, and it works with
          > a
          > data grid. What is wrong with the image-to-data hookup? how do I correctly
          > access the "thumbnail" property of the XML? Please Help Me!

          Try:

          source="{data.thumbnail}"