0 Replies Latest reply on Jan 29, 2008 1:54 AM by Balaji.r

    How to add the Array value in ListBox.

    Balaji.r
      Hi ,
      I am new to Flex.
      I am assing the Array in to list control but it doesn't show the value. it show only object.
      This is my Coding.
      Please help me.

      var request:URLRequest = new URLRequest("DomainDetail.xml");
      loader.load(request);
      loader.addEventListener(Event.COMPLETE, onComplete);

      function onComplete(event:Event):void
      {
      var loader:URLLoader = event.target as URLLoader;
      if (loader != null)
      {
      externalXML = new XML(loader.data);
      //trace(externalXML.toXMLString());
      for each (var domain:XML in externalXML.children())
      {
      domainArray.push({ID:domain.domainID,Title:domain.domainName});
      }
      domainNameList.dataProvider=domainArray;
      }
      }