5 Replies Latest reply on Apr 13, 2010 11:26 AM by Artsummus

    Convert text to XML, then XML to Collection, think i'm close... Help!

    EMelville Level 1

      For some reason, when this function executes, nothing really happens.


      What should happen?

      The testtxt.text should populate with the xml "<contact></contact>"


      [Bindable]private var AmbientXMLCollection:XMLListCollection;


      private function getXMLResult(evt:ResultEvent):void {

           //xmlphp = new XML(evt.result);

           var xmlphp:XML = new XML("<contact></contact>");


         AmbientXMLCollection = new XMLListCollection();


         testtxt.text = AmbientXMLCollection.toString();




      I think it's simply structured wrong.