1 Reply Latest reply on Apr 10, 2007 8:12 AM by peterent

    How to import external XML file

    comlong
      Hello guys:
      From this demo http://www.adobe.com/devnet/flex/quickstart/accessing_xml_data/#section2
      we know how to use a intrernal XML document. I know there are several way to load a external XML like:
      <mx:HTTPService
      id="loadTest"
      useProxy="false"
      showBusyCursor="true"
      resultFormat="xml"
      url="data/login.xml"
      />
      What I want to know is whether I could load a XML file directly, not use HTTPService and send. For a instance:
      [Bindable]
      private var login:XML = ("data/login.xml");
      or something like that. And then I could use login.user or login. pass .
      Now seems it is easy to control a intrernal XML data. I want to import a external XML file and use it like a intrernal XML.
      Thanks a lot