6 Replies Latest reply on Jan 29, 2010 4:58 AM by d0brin

    XML text import problem

    d0brin Level 1

      Here is the thing i am importing text form xml file with this code:

       

      var tl:MovieClip=this;

      var xml:XML=new XML();

      xml.ignoreWhite = true;

      xml.onLoad = parseXML;

      xml.load("controler_file.xml");

       

      function parseXML(){

      for(var i:Number=0;i<this.firstChild.childNodes.length;i++){

      tl["tf"+(i+1)].text=this.firstChild.childNodes[i].firstChild.nodeValue;

      }

      }

       

      but when my text is multiline it shows in the text file on one single line even that the text field is selected as Multiline No Wrap please help?