1 Reply Latest reply on Jan 9, 2008 2:17 AM by atta707

    TileList and XML

    vij010
      Hi,

      I have an XML data in the following format....
      <catalog>
      <product id="1">
      <name>USB Watch</name>
      <price>129.99</price>
      <image>assets/juspics/1.jpg</image>
      <thumbnail>assets/juspics/1.jpg</thumbnail>
      </product>

      I have a tilelist in which I display 10-20 images ..the XML is just a snapshot. But what I get out on the screen nothing but for the only words [Object Object]. I read somewhere in the forum that we should not use lastresult.

      Can someone post corrections to the code below ?


      The MXML code

      <?xml version="1.0"?>
      <!-- dpcontrols/TileListDemo.mxml -->
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"
      backgroundAlpha="0" creationComplete="srv.send()">

      <mx:HTTPService id="srv" url="catalog.xml" useProxy="false"/>

      <mx:TileList dataProvider="{srv.lastResult.catalog.product}"
      height="100%" width="100%"
      rowHeight="250" columnWidth="175"/>
      </mx:Application>

      I apologize if this is the wrong forum, but I am now using Flex Builder 3.