1 Reply Latest reply on Sep 22, 2006 11:59 PM by WebXperience

    load xml file content directly into a text object

    Level 7
      how would i load an xml file content directly into a text object/string?
        • 1. Re: load xml file content directly into a text object
          WebXperience Level 1
          This is some code that I wrote which loads a list component.. The XML load procedure would be similar, except that you would have to use an assignment statement to load each member of the external XML document into a TextField Object.

          // In the sample code this line adds XML node data one at a time to videoList (an instance of the list component)
          videoList.addItem(videos .attributes.desc,videos.attributes.url);

          To load an onstage textField named myText you could do something like:
          myText = videos .attributes.desc,videos.attributes.url;

          I hope you can makes sense out of this. If not let me know and I'll try to explain it differently.