0 Replies Latest reply on Feb 27, 2010 4:05 PM by jimmyoneshot

    How to populate a tilelist via my remote xml file?

    jimmyoneshot Level 1

      I have a mysql database set up and have produced it's contents into an xml format via php. Here is the xml data:-

       

      http://www.coolvisiontest.com/getcategories.php

       

      In my app I've set up a http request pointing to this url but I now need to assign this as the data provider of my tilelist so that the categorynames are displayed within the tilelist. How do I edit the dataprovider of the tilelist to show this?

       

      Here's my code:-

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application
      
       xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      
      
      <mx:HTTPService id="getProductCategories" url="http://www.coolvisiontest.com/getcategories.php" useProxy="false"/>
      
      <mx:TileList dataProvider="{getProductCategories}" x="137" y="84"/>
      
      </mx:Application>