4 Replies Latest reply on May 8, 2012 7:53 AM by tripleA999

    tilelist and xml

    tripleA999

      I am unable to load pics from xml to TileList

       

      I tried to add through Array & addItem , but both are not working

       

      below is code , when xml is loaded

       

      function clipsXmlLoaded(event:Event):void
      {
          clipsXml = XML(clipxmlLoader.data);
          trace(clipsXml);
          for(var c:int = 0; c<clipsXml.length ; c++ )
          {
              //clipsArray.push ({label:"" , source:String(clipsXml.clip[c])});
              clips_list.addItem({source:String(clipsXml.clip[c])});
                  trace(clipsXml);
      
          }
          trace("clips");
          //clips_list.dataProvider = new DataProvider(clipsArray);
      }